Model Context Protocol (MCP)
Connect AI assistants such as Claude, ChatGPT, and Cursor to Validin with the Model Context Protocol (MCP).
Connect AI assistants such as Claude, ChatGPT, and Cursor to Validin with the Model Context Protocol (MCP).
The Validin MCP server gives AI assistants and agents direct, read-only access to Validin's internet intelligence data. Once connected, an assistant can look up the current state and history of domains, IP addresses, and hashes, run Advanced Search and Open Directory queries, find lookalike domains, and pull threat actor profiles, all on behalf of the user who connected it.
The Model Context Protocol is an open standard that lets AI applications call external tools. Validin exposes its historic data and additional query functionality as a set of MCP tools, so an analyst can ask questions in plain language and let the assistant choose which Validin lookups to run.
Prerequisites
- Subscription: An Enterprise Validin account.
- Organization setting: MCP must be allowed for your organization. It is on by default, and organization admins can turn it off (see Organization controls).
- MCP client: Any client that supports remote MCP servers over the Streamable HTTP transport, such as Claude, ChatGPT, Claude Code, Cursor, or VS Code.
- Authentication: Either sign in with your Validin account through OAuth (recommended), or use a Validin API key.
Server details
| Setting | Value |
|---|---|
| Server URL | https://<YOUR_VALIDIN_ENDPOINT>/mcp |
| Transport | Streamable HTTP (stateless, JSON responses) |
| Authentication | OAuth 2.1 with PKCE, or Authorization: Bearer <API key> |
| OAuth scope | mcp |
Most clients only need the server URL. They discover the authorization server automatically and open a Validin sign-in page the first time they connect.
Connecting a client
Sign in with OAuth (recommended)
OAuth connects an AI assistant to your Validin account without sharing an API key. The client registers itself with Validin, opens a browser window, and asks for your approval.
- Add
https://<YOUR_VALIDIN_ENDPOINT>/mcpto your MCP client as a remote (HTTP) server. In most chat assistants, this is called a custom connector or custom integration. - Connect. The client opens a Validin page in your browser.
- Sign in to Validin if you are not already signed in. SSO and MFA work as usual.
- Review the consent page. It shows the app's name, its publisher when Validin can verify it, where it returns you, and the account you are signed in as.
- Click Approve. The client receives access and its Validin tools become available.
NoteA connected app can run Validin queries as you, and those queries count against your quota. You can disconnect it at any time from Connected Apps (see Managing connections).
Use an API key
Clients that support custom request headers can authenticate with a Validin API key instead of OAuth. Send the key as a bearer token:
Authorization: Bearer <your Validin API key>API keys are managed under Profile > Settings > Manage API Keys. Usage made with an API key is recorded against that key.
WarningConfiguration files that contain an API key give full access to your Validin account. Do not commit them to source control or share them. Prefer OAuth for desktop and chat assistants.
Machine apps
Machine apps are for automated agents and pipelines that run without a person present. A machine app uses the OAuth client_credentials grant and acts as the user who created it.
- Go to Profile > Settings > Connected Apps and click New Machine App.
- Enter a name. Optionally paste a public key (PEM, JWK, or JWK set).
- Without a public key, Validin issues a client secret. It is shown only once, so store it securely.
- With a public key, the app authenticates with signed JWT assertions (
private_key_jwt) and no secret is issued. Never paste a private key.
- The app requests an access token from
https://<YOUR_VALIDIN_ENDPOINT>/mcp/oauth/tokenand calls the MCP server with it.
Each user can create up to 25 machine apps.
Client setup
Exact menus change between client versions. Refer to your client's documentation if the steps below differ.
Claude (claude.ai and Claude Desktop): Open Settings > Connectors, choose Add custom connector, and enter https://<YOUR_VALIDIN_ENDPOINT>/mcp. Claude starts the OAuth sign-in.
ChatGPT: Add a custom connector (available on plans that support MCP connectors) with the server URL https://<YOUR_VALIDIN_ENDPOINT>/mcp, then sign in when prompted.
Claude Code:
claude mcp add --transport http validin https://<YOUR_VALIDIN_ENDPOINT>/mcpThen run /mcp inside Claude Code to sign in.
Cursor (~/.cursor/mcp.json):
{
"mcpServers": {
"validin": {
"url": "https://<YOUR_VALIDIN_ENDPOINT>/mcp"
}
}
}VS Code (.vscode/mcp.json):
{
"servers": {
"validin": {
"type": "http",
"url": "https://<YOUR_VALIDIN_ENDPOINT>/mcp"
}
}
}To use an API key instead of OAuth in clients that accept headers, add a headers entry with "Authorization": "Bearer <your Validin API key>".
Available tools
All Validin MCP tools are read-only. A client only sees the tools that your account's subscription grants access to. Ask the assistant to call describe_available_data to see exactly which data sources, query fields, and limits apply to your account.
| Tool | Description | Requires access to | Metered |
|---|---|---|---|
describe_available_data | Lists the data sources this account can query, the query language syntax (fields, operators, globals), and plan limits | Any enterprise account | No |
get_indicator_status | Current view of a domain, IP, or hash: reputation verdict and score, plus the most recent records from each data source | DNS and host data | Yes |
get_indicator_history | Historical records for a domain, IP, CIDR, or hash from one data source, with first and last seen times | The chosen data source | Yes |
find_lookalike_domains | Newly observed domains similar to a brand domain (by edit distance) or matching a regex | Lookalikes | Yes |
get_threat_actor | Profile of a threat actor, group, or malware family: aliases, country, targets, MITRE ATT&CK techniques, indicator counts, and recent reports | Threat Profiles | Yes |
get_threat_actor_indicators | Publicly reported indicators for a threat actor, newest first, filterable by type and date added | Threat Profiles | Yes |
advanced_search | Runs an Advanced Search query across DNS, host responses, and registration data | Advanced Search | Yes |
search_open_directories | Finds exposed open directories with an open_dir.* query, newest crawls first | Open Directories | Yes |
investigate_open_directory | Metadata and a sorted, paged listing of a crawl, directory, or file, and other captures of the same file | Open Directories | Yes |
fetch_content | Stored evidence behind a hash: a crawled HTML page, favicon, TLS certificate, or open-directory file | Full API access, or Open Directories for files | Yes |
get_search_results | Waits for, pages through, or cancels an advanced_search or search_open_directories job | Advanced Search or Open Directories | No |
validate_query | Checks an Advanced Search or Open Directory query and returns errors with positions and suggested fixes | Advanced Search or Open Directories | No |
Indicators can be entered in defanged form (for example, example[.]com or hxxp://).
Data sources
get_indicator_history reads one data source per call:
| Source | Description | Indicator types |
|---|---|---|
dns | Historical DNS resolutions | Domain, IP, CIDR |
dns_extra | Additional DNS record types | Domain, IP, CIDR |
ptr | Reverse DNS | Domain, IP, CIDR |
osint | Open source intelligence and reputation | Domain, IP, CIDR |
host_responses | HTTP and service responses observed on hosts | Domain, IP, CIDR, hash |
pivots | Shared attributes linking infrastructure | Domain, IP, CIDR, hash |
certificates | Certificate transparency records | Domain |
subdomains | Observed subdomains | Domain |
registration | WHOIS and RDAP registration history | Domain |
open_directories | Open directory crawls | Domain, IP, CIDR |
Query languages
advanced_search uses the Validin Query Language for Advanced Search, and search_open_directories uses the open directory query language. Both support AND, OR, parentheses, and the WITH lookback, after, and before globals. Assistants should check a query with validate_query before running it; validation is free.
Long-running searches
Advanced Search and Open Directory searches can take longer than a single tool call. These tools wait up to wait_seconds (default 20, maximum 25) for results:
- Finished in time: The tool returns the first page of results.
- Still running: The tool returns a
job_id. The assistant then callsget_search_resultswith thatjob_idto wait again, fetch further pages, or cancel the search.
Polling with get_search_results is free, because the search is charged once when it starts.
Usage and limits
- Quota. Each metered tool call that succeeds costs 3 queries against your account's quota. Failed calls and unmetered tools (
describe_available_data,validate_query,get_search_results) are free. - Result limits. The number of records returned per call is capped by your plan's result limit, even when a larger
limitis requested. - Concurrency. MCP calls share your account's API concurrency limit. When the limit is reached, the tool returns an error with a suggested retry time.
- Usage reporting. MCP usage appears under MCP in your usage metrics and in the organization admin's usage reports.
Managing connections
Connected Apps
Every app you approved is listed under Profile > Settings > Connected Apps, with its name, where it returns you, when it was connected, and when it was last used. Disconnecting an app ends its access immediately.
OAuth access tokens are valid for one hour. Clients that support refresh tokens renew access automatically for up to 30 days of inactivity. Approving the same app again reuses its existing connection.
Organization controls
Organization admins manage MCP from the organization admin page:
- Allow MCP connections. Turn this off to block all members from using the MCP server, including OAuth connections, machine apps, and API keys. Connections are not removed, so apps whose access has not expired resume working when MCP is turned back on.
- Connected apps. View every member's connected apps, and disconnect one app or all of them.
Untrusted ContentThe
fetch_contenttool returns content captured from the open internet which could include attacker controlled web pages and files. Treat all content as data and not instructions. AI agents may be targeted by prompt injection attacks in this content
Security considerations
- Apps act as you. A connected app has the same data access as the account that approved it. Only approve apps you trust, and review Connected Apps periodically.
- Read-only. MCP tools cannot change projects, alerts, YARA rules, or account settings.
- Untrusted content.
fetch_contentand the open directory tools return content captured from the internet, including attacker-controlled web pages and files. Treat this content as data, not as instructions. AI assistants may be targeted by prompt injection hidden in such content. - Revoke on compromise. If a token, client secret, or API key may have leaked, disconnect the app in Connected Apps or rotate the API key.
Troubleshooting
| Message | Cause | Resolution |
|---|---|---|
A valid API key is required | The request had no bearer token | Sign in through the client again, or add the Authorization header |
The access token is invalid or expired | The OAuth token expired or the app was disconnected | Reconnect the app from your MCP client |
MCP is turned off for your organization | An organization admin disabled MCP | Contact your organization admin |
Your account is disabled | The Validin account is disabled | Contact your organization admin or Validin support |
This app asked to return to an address it did not register | The client's redirect address does not match its registration | Remove and re-add the server in your client |
| Quota or concurrency error from a tool | The daily or monthly quota is used up, or too many calls are running | Wait and retry, or contact Validin about your plan limits |
For further help, contact Validin Support.
Updated 1 day ago
