IPWho MCP Server
IP geolocation for AI agents via the IPWho API: single, bulk and self IP lookups, local or hosted.
IPWho MCP Server scores 66 (Good), licensed MIT and written in JavaScript. It can be reached as a remote MCP endpoint. It declares 3 tools. Filed under Uncategorized. GitHub shows 0 stars. Package registries report about 351 downloads a week. Install configs are generated for 10 clients. Being listed in the registry is not the same as being vendor-official.
Good trust
66 of 100 from six public signals. Nobody can buy a point.
- Listed in the official MCP registry.
- OSI-style license: mit.
License, quality and maintenance
Where the 66 comes from
22 + 20 + 0 + 10 + 4 + 10 = 66. Each factor is capped, so no single signal can carry a listing.
Active in the official MCP registry, plus a known vendor namespace.
Registry: 22 of 30 points.How recently the repository saw a commit or release.
Maintenance: 20 of 20 points.GitHub stars and weekly downloads, on a log scale.
Popularity: 0 of 20 points.A clear, OSI-style open-source license.
License: 10 of 10 points.Not archived, a secure install path, a pinned version.
Security: 4 of 10 points.A real summary, a README with depth, listed tools.
Docs: 10 of 10 points.Install
Pick your client, copy the config, paste it in.
Remote auth: API key required. Get a key or token from the provider first, then add it as a header in your client config. How remote auth works
Needs Cursor or VS Code installed on this device. The button opens the app and asks you to confirm before it adds the server.
{ "mcpServers": { "lavrox-ipwho-mcp": { "command": "npx", "args": [ "-y", "@ipwho/mcp-server@0.1.0" ], "env": { "IPWHO_API_KEY": "YOUR_IPWHO_API_KEY" } } }}
Environment variables
| Name | Required | Notes |
|---|---|---|
IPWHO_API_KEYSecret | Required | Your IPWho API key (free plan at https://www.ipwho.org/free-plan). Lookups count against the key's plan quota. |
Tools3Tool docs quality grade C
All capabilitieslookup_bulktool1–100 addresses in one call. Results are in data.responseArray.
lookup_iptoolOne IPv4 or IPv6 address. Optional get field filter, e.g. geoLocation,security.
lookup_metoolThe public IP of the machine running the server.
About
IPWho MCP server
An MCP server for the IPWho IP geolocation API. It lets AI agents (Claude, Cursor, VS Code Copilot and other MCP clients) look up IP addresses directly.
Status: v0.1.0. The hosted server at
mcp.ipwho.orgis live. The npm package@ipwho/mcp-serveris published from this repository;ipwho-mcpis an alias that runs the same server. Setup guide with per-client tabs: ipwho.org/docs/api/mcp-server.
You need an IPWho API key (sign up at ipwho.org). Every lookup counts against your plan's quota, the same as calling the API directly.
Tools
| Tool | What it does | Local | Hosted |
|---|---|---|---|
lookup_ip | One IPv4 or IPv6 address. Optional get field filter, e.g. geoLocation,security. | ✅ | ✅ |
lookup_bulk | 1–100 addresses in one call. Results are in data.responseArray. | ✅ | ✅ |
lookup_me | The public IP of the machine running the server. | ✅ | — |
lookup_me isn't offered on the hosted server: there it would look up Cloudflare's IP, not yours.
What you get back: two parts. First, the API's JSON, unchanged: { "success": true, "data": { … } }, with the objects geoLocation, timezone, flag, currency, connection, security and userAgent. Field names keep their exact wire casing (postal_Code, flag_Icon, asn_number). See the API docs. Second, a one-line attribution: Data source: IPWho (https://www.ipwho.org). The tool descriptions also ask the agent to name IPWho as the source.
Honest limits (the tool descriptions tell the agent these too):
- IP geolocation is approximate, especially at city level. Many fields can be
null;regionandcityoften are. connection.connection_typeisCable/DSL,Cellular,Corporate,Satelliteornull.Corporatealso covers offices, VPNs and cloud networks, so it isn't datacenter detection.securityis a basic signal:isVpnandisTor(true/false) andisThreat(low/medium/high). It isn't a fraud or risk score.- Only JSON is returned. The API's XML and CSV formats aren't exposed.
Local setup (npm package, runs on your machine)
The server reads your key from the IPWHO_API_KEY environment variable. Node.js 18 or later is required.
Claude Code
claude mcp add ipwho --env IPWHO_API_KEY=YOUR_KEY -- npx -y @ipwho/mcp-server
Claude Desktop
Settings → Developer → Edit Config (claude_desktop_config.json):
{
"mcpServers": {
"ipwho": {
"command": "npx",
"args": ["-y", "@ipwho/mcp-server"],
"env": { "IPWHO_API_KEY": "YOUR_KEY" }
}
}
}
Cursor
~/.cursor/mcp.json (all projects) or .cursor/mcp.json (one project):
{
"mcpServers": {
"ipwho": {
"command": "npx",
"args": ["-y", "@ipwho/mcp-server"],
"env": { "IPWHO_API_KEY": "YOUR_KEY" }
}
}
}
VS Code
.vscode/mcp.json. VS Code asks for the key once and stores it securely:
{
"inputs": [
{ "type": "promptString", "id": "ipwho-key", "description": "IPWho API key", "password": true }
],
"servers": {
"ipwho": {
"type": "stdio",
"command": "npx",
"args": ["-y", "@ipwho/mcp-server"],
"env": { "IPWHO_API_KEY": "${input:ipwho-key}" }
}
}
}
Hosted setup (https://mcp.ipwho.org/mcp)
The hosted server uses Streamable HTTP. Send your key in a header on every request, either X-API-Key: YOUR_KEY or Authorization: Bearer YOUR_KEY. Without a key it returns 401. A key in the URL is refused.
# Claude Code
claude mcp add --transport http ipwho https://mcp.ipwho.org/mcp --header "X-API-Key: YOUR_KEY"
// Cursor (~/.cursor/mcp.json)
{ "mcpServers": { "ipwho": { "url": "https://mcp.ipwho.org/mcp", "headers": { "X-API-Key": "YOUR_KEY" } } } }
// VS Code (.vscode/mcp.json), with the same "inputs" block as above
{ "servers": { "ipwho": { "type": "http", "url": "https://mcp.ipwho.org/mcp", "headers": { "X-API-Key": "${input:ipwho-key}" } } } }
Claude Desktop's and claude.ai's custom connectors expect OAuth sign-in rather than a pasted key, so use the local package there for now. OAuth is planned.
Your key
- It's sent to
api.ipwho.orgonly, in theX-API-Keyheader, and never in a URL. - It's never logged or echoed back in error messages.
- The hosted server is stateless: it keeps no sessions and stores nothing. Each request carries its own key, which is used for that request only.
- The hosted server logs one line per request for operations: the HTTP method, path, status, duration and the MCP method or tool name. It never logs headers, your key, the IP addresses you look up, or results. Cloudflare's automatic request logs are switched off.
Development
npm install
npm run typecheck # Node (stdio) and Cloudflare Workers types
npm test # 20 tests against a local mock API, local and hosted
npm run test:workerd # the Worker in Cloudflare's local runtime (wrangler dev --local), against the mock
IPWHO_API_KEY=... npm run test:live # live API through the local server (uses ~5 lookups)
Publishing to npm (maintainers): server.json (official MCP registry entry) and mcpName in package.json must keep the same name, io.github.lavrox/ipwho-mcp, and the versions must match. From a fresh clone of main: npm ci && npm test && npm publish --access public, then cd packages/ipwho-mcp && npm publish --access public (the alias depends on the exact version just published). Registry entry: mcp-publisher login github, then mcp-publisher publish.
Deploying the hosted server: merging to main runs .github/workflows/deploy.yml. It runs the tests, then wrangler deploy, then checks mcp.ipwho.org. It needs the repo secrets CF_API_TOKEN (a Cloudflare "Edit Cloudflare Workers" token that also has Zone → Workers Routes → Edit on ipwho.org) and CF_ACCOUNT_ID. The deploy attaches the custom domain mcp.ipwho.org itself (routes in wrangler.jsonc).
Layout: src/ipwho.ts (API client) · src/server.ts (tool definitions, shared) · src/stdio.ts (local entry) · src/worker.ts (hosted entry, Cloudflare Worker) · wrangler.jsonc (Worker config; no secrets; Workers Logs on for our own log lines only).
License
MIT
Frequently asked questions
What is IPWho MCP Server?
IP geolocation for AI agents via the IPWho API: single, bulk and self IP lookups, local or hosted.
How do I install IPWho MCP Server in Claude Desktop, Cursor, or VS Code?
Pick your client in the Install section on this page and copy the generated config into the client's config file. Step-by-step guides: Claude Desktop, Cursor, and VS Code. IPWho MCP Server runs locally from the npm package @ipwho/mcp-server with the command npx -y @ipwho/mcp-server@0.1.0.
Is IPWho MCP Server free and open source?
Yes. IPWho MCP Server is released under the MIT license, an OSI-approved open-source license, so you can use, modify, and self-host it under those terms.
Does IPWho MCP Server support remote (HTTP) connections?
Yes. IPWho MCP Server offers a hosted endpoint over Streamable HTTP, so HTTP-capable clients can connect to it without running anything locally.
What tools does IPWho MCP Server provide?
IPWho MCP Server provides 3 tools: lookup_bulk, lookup_ip, and lookup_me. See the full tool list for descriptions and parameters.
How is IPWho MCP Server's trust score calculated?
IPWho MCP Server scores 66 out of 100 (Good). The score adds six capped public signals: registry status, maintenance, popularity, license, documentation, and security. Nobody can pay for points. Read the methodology for the full formula.
Reviews
No reviews yet—Be the first to review
No published reviews yet. Used it? Tell the next person how it went.
Sign inA verified email is required to review this server.
Add badge to your README
Paste either snippet into the repository README. The image links to this listing.