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.

📘

Note

The MCP server is only available on Enterprise subscriptions in Beta.

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

SettingValue
Server URLhttps://<YOUR_VALIDIN_ENDPOINT>/mcp
TransportStreamable HTTP (stateless, JSON responses)
AuthenticationOAuth 2.1 with PKCE, or Authorization: Bearer <API key>
OAuth scopemcp

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.

  1. Add https://<YOUR_VALIDIN_ENDPOINT>/mcp to your MCP client as a remote (HTTP) server. In most chat assistants, this is called a custom connector or custom integration.
  2. Connect. The client opens a Validin page in your browser.
  3. Sign in to Validin if you are not already signed in. SSO and MFA work as usual.
  4. 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.
  5. Click Approve. The client receives access and its Validin tools become available.
📘

Note

A 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.

🚧

Warning

Configuration 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.

  1. Go to Profile > Settings > Connected Apps and click New Machine App.
  2. 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.
  3. The app requests an access token from https://<YOUR_VALIDIN_ENDPOINT>/mcp/oauth/token and 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>/mcp

Then 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.

ToolDescriptionRequires access toMetered
describe_available_dataLists the data sources this account can query, the query language syntax (fields, operators, globals), and plan limitsAny enterprise accountNo
get_indicator_statusCurrent view of a domain, IP, or hash: reputation verdict and score, plus the most recent records from each data sourceDNS and host dataYes
get_indicator_historyHistorical records for a domain, IP, CIDR, or hash from one data source, with first and last seen timesThe chosen data sourceYes
find_lookalike_domainsNewly observed domains similar to a brand domain (by edit distance) or matching a regexLookalikesYes
get_threat_actorProfile of a threat actor, group, or malware family: aliases, country, targets, MITRE ATT&CK techniques, indicator counts, and recent reportsThreat ProfilesYes
get_threat_actor_indicatorsPublicly reported indicators for a threat actor, newest first, filterable by type and date addedThreat ProfilesYes
advanced_searchRuns an Advanced Search query across DNS, host responses, and registration dataAdvanced SearchYes
search_open_directoriesFinds exposed open directories with an open_dir.* query, newest crawls firstOpen DirectoriesYes
investigate_open_directoryMetadata and a sorted, paged listing of a crawl, directory, or file, and other captures of the same fileOpen DirectoriesYes
fetch_contentStored evidence behind a hash: a crawled HTML page, favicon, TLS certificate, or open-directory fileFull API access, or Open Directories for filesYes
get_search_resultsWaits for, pages through, or cancels an advanced_search or search_open_directories jobAdvanced Search or Open DirectoriesNo
validate_queryChecks an Advanced Search or Open Directory query and returns errors with positions and suggested fixesAdvanced Search or Open DirectoriesNo

Indicators can be entered in defanged form (for example, example[.]com or hxxp://).

Data sources

get_indicator_history reads one data source per call:

SourceDescriptionIndicator types
dnsHistorical DNS resolutionsDomain, IP, CIDR
dns_extraAdditional DNS record typesDomain, IP, CIDR
ptrReverse DNSDomain, IP, CIDR
osintOpen source intelligence and reputationDomain, IP, CIDR
host_responsesHTTP and service responses observed on hostsDomain, IP, CIDR, hash
pivotsShared attributes linking infrastructureDomain, IP, CIDR, hash
certificatesCertificate transparency recordsDomain
subdomainsObserved subdomainsDomain
registrationWHOIS and RDAP registration historyDomain
open_directoriesOpen directory crawlsDomain, 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 calls get_search_results with that job_id to 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 limit is 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 Content

The fetch_content tool 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_content and 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

MessageCauseResolution
A valid API key is requiredThe request had no bearer tokenSign in through the client again, or add the Authorization header
The access token is invalid or expiredThe OAuth token expired or the app was disconnectedReconnect the app from your MCP client
MCP is turned off for your organizationAn organization admin disabled MCPContact your organization admin
Your account is disabledThe Validin account is disabledContact your organization admin or Validin support
This app asked to return to an address it did not registerThe client's redirect address does not match its registrationRemove and re-add the server in your client
Quota or concurrency error from a toolThe daily or monthly quota is used up, or too many calls are runningWait and retry, or contact Validin about your plan limits

For further help, contact Validin Support.


Did this page help you?