VPNDetection
v7.0.1VPN, proxy, Tor, hosting and CDN detection for any IP address, from the VPNDetection API.
The official Model Context Protocol server for the VPNDetection API. It gives an AI agent seven read-only tools for anonymity detection: whether an address belongs to a VPN, a residential, datacenter, mobile or public proxy, a Tor node, a privacy relay or web gateway, a hosting provider or a CDN; whether a crawler or other bot uses it, and whose; whether it is anycast, or a mobile carrier's or satellite operator's space; whether an SSH, mail or web server or an open DNS resolver answered on it, or a BitTorrent client was seen on it; plus the database catalog and where your organization's…
Summary extracted from the README.
VPNDetection MCP Server
The official Model Context Protocol server for the VPNDetection API.
It gives an AI agent seven read-only tools for anonymity detection: whether an address belongs to a VPN, a residential, datacenter, mobile or public proxy, a Tor node, a privacy relay or web gateway, a hosting provider or a CDN; whether a crawler or other bot uses it, and whose; whether it is anycast, or a mobile carrier's or satellite operator's space; whether an SSH, mail or web server or an open DNS resolver answered on it, or a BitTorrent client was seen on it; plus the database catalog and where your organization's license for each one stands.
Getting Started
We host it at https://mcp.vpndetection.io/mcp, and you sign in to it with your VPNDetection account. It also runs on your own machine from npm.
In Claude
In claude.ai, the desktop app or Cowork, add VPNDetection from Claude's connectors directory, or add https://mcp.vpndetection.io/mcp yourself as a custom connector and choose Use Claude's published identity when asked. In Claude Code, install our plugin, which adds the server with skills:
/plugin marketplace add vpndetection-io/claude-plugin
/plugin install vpndetection@vpndetection
Either way you sign in with your VPNDetection account, and Claude never sees your API key. The steps, the skills and how to disconnect: docs.vpndetection.io/integrations/claude.
In ChatGPT and Codex
VPNDetection is in the plugin directory ChatGPT and Codex share: add it from its listing. Codex also installs our plugin from the command line, which adds the server with skills:
codex plugin marketplace add vpndetection-io/openai-plugin
codex plugin add vpndetection@vpndetection
codex mcp login vpndetection
Either way you sign in with your VPNDetection account, and neither sees your API key. The steps: docs.vpndetection.io/integrations/chatgpt and docs.vpndetection.io/integrations/codex. On the OpenAI API, the Responses API's mcp tool takes the server as its server_url and your key as its authorization.
In Gemini CLI
Install our extension, which runs the npm package below on your machine:
gemini extensions install https://github.com/vpndetection-io/mcp
It asks for your API key and keeps it in your system keychain. Leave it blank to start without one.
In any other MCP client
Point it at https://mcp.vpndetection.io/mcp. A client that supports MCP authorization signs in the same way. One that doesn't can send a key instead, as Authorization: Bearer your-key.
On your own machine
No API key needed to try it. Without one, the free plan answers ip, is_vpn, Tor and relay detection, is_anycast, hostname (the reverse DNS name), country-level location and asn with the AS's country and RPKI status. A free API key answers more: every field on your organization's first lookups each day, and those fields but is_vpn after them. A paid plan answers every field: is_hosting, is_cdn, the four proxy flags and is_bot as well, the carrier and satellite flags, the five service flags (SSH, SMTP, web, DNS resolver and BitTorrent), city-level location, the AS's type, the company and the abuse contact, whose bot uses the address in bot, and the provider, confidence and last-seen detail behind each flag.
Add this to your MCP client's config:
{
"mcpServers": {
"vpndetection": {
"command": "npx",
"args": ["-y", "vpndetection-mcp"]
}
}
}
Requires Node.js 22 or newer.
A key on a paid plan unlocks every field. Put it in the environment:
{
"mcpServers": {
"vpndetection": {
"command": "npx",
"args": ["-y", "vpndetection-mcp"],
"env": { "VPNDETECTION_API_KEY": "your-key" }
}
}
}
VPNDETECTION_BASE_URL overrides the endpoint if you need to point somewhere else.
Tools
| Tool | What it answers |
|---|---|
lookup_ip |
Classify one address. Pass the User-Agent a client at that address sent as user_agent, and the answer's user_agent says whether the address bears it out, which tells a real crawler from one forging its agent. An answer without it did not check the agent. |
lookup_ips |
Classify a whole list of addresses in one call, keyed by address. A long list is batched for you. user_agents takes one User-Agent per address, keyed as in ips, and checks each as lookup_ip does. Needs a key on a paid plan; with a key on the free plan, a list of up to 10 addresses is looked up one address at a time instead. |
my_entitlement |
What this key is entitled to and what it has spent: plan, field tier, requests so far, allowance, and when it resets. |
list_databases |
Every database we publish, with its standing for your organization: licensed, expired or unlicensed. |
database_metadata |
A database's columns, sample rows, row count, build date and file sizes. |
database_checksum |
The published digests for one database file. |
list_downloads |
Your organization's recent download attempts, refusals included. |
The database tools need a key with the db.download scope, which your organization's Default key has.
Every tool is read-only. There is deliberately no download tool: the databases run to several GB, which is not something an agent should pull into a conversation. Fetch them with the client libraries or the API instead.
There is deliberately no my_ip tool, although every client library has one. Over a hosted transport the address our edge observes belongs to whatever proxied the call - Claude's infrastructure, not the person asking - so the tool would answer confidently and wrongly for the only reading anyone would put on it. my_entitlement has no such problem and is the same answer from any transport, because it describes the credential rather than the connection. A test pins the tool's absence so it cannot be added back by accident.
A paid plan's usage counts against the anniversary of the subscription, not the calendar month and not the billing period, and the free plan's counts the UTC day's lookups answered with every field. hard_limit is where full answers stop, and a null one means they never do; it is not a limit of zero.
Reading a result
Each lookup comes back with a coverage block beside it:
{
"result": { "ip": "45.83.91.1", "is_bogon": false, "is_vpn": true, "is_relay": false, "...": "..." },
"coverage": {
"included": ["ip", "is_bogon", "is_vpn", "is_relay", "is_tor", "is_anycast", "relay", "tor", "location", "asn", "hostname"],
"not_included": ["is_hosting", "is_cdn", "is_bot", "vpn", "hosting", "..."],
"note": "The fields in not_included were not returned, because this API key's plan does not include them. ..."
}
}
This matters more here than in a normal client library. A field missing from a result means your plan doesn't include it, never "we checked and found nothing" - and a model reading the result on its own will otherwise treat the absence as a negative answer. coverage states the difference explicitly so it can't.
An answer to a key also carries cap_reached: false while it has every field, and true once your organization's lookups with every field are used and the API answers with the basics. Such a lookup comes back as an error rather than a result, so an assistant tells you the fields are missing instead of reading the basics as the whole answer. Its kind is quota_exceeded, and it still carries the basics as result, with their coverage:
{
"error": { "kind": "quota_exceeded", "message": "the organization's lookups with every field are used; this answer has the basics", "retryable": false },
"result": { "ip": "45.83.91.1", "is_relay": false, "is_tor": false, "...": "...", "cap_reached": true },
"coverage": {
"included": ["ip", "is_relay", "is_tor", "relay", "tor", "location", "asn"],
"not_included": ["is_vpn", "is_hosting", "is_cdn", "vpn", "hosting", "..."],
"note": "This organization's lookups with every field are used, so this answer has the basics ..."
}
}
In lookup_ips, such an address carries a quota_exceeded error in place of a result, and the other addresses are answered. A free key's lookups with every field come back with the new UTC day, and a paid key's when its quota renews or its overage cap is raised or removed in Billing.
Other Libraries
There are official VPNDetection client libraries available for many languages including PHP, Python, Go, Java, Ruby, and many popular frameworks such as Django, Rails, and Laravel. See our GitHub at https://github.com/vpndetection-io for more.
About VPNDetection
VPN Detection API: Accurate anonymity detection identifying VPNs, residential proxies, hosting servers, Tor nodes, CDNs, relays and more.
License
This project is licensed under the MIT License.