The full upstream README, mirrored here for reference. Install config, tool schemas, adoption signals, and an original overview live on the IP Location MCP listing page.
IPv4 geolocation lookup with Chinese output — country/region/city, coordinates, timezone and ISP/ASN info, with automatic fallback between two free providers.
Transport: Streamable HTTP (MCP 2025-03-26 compatible). No authentication required.
Add this to your MCP client's mcpServers configuration (Claude Desktop claude_desktop_config.json, Cursor mcp.json, Cline, Cherry Studio, etc.):
Clients that do not accept
"type": "http"(some Cherry Studio / older Cline versions) accept the same entry with just"url".
| Tool | Parameters | Returns |
|---|---|---|
query_ip_location(ip="", ctx=None) | ip: IPv4 address, e.g. "8.8.8.8". Empty: attempts the caller's own public IP (via X-Forwarded-For). | 归属地 (country/region/city), coordinates, timezone, ISP, organization and AS number — in Chinese. Error message for invalid/non-IPv4 input. |
Then point your MCP client at http://127.0.0.1:8006/mcp.
No API keys or accounts are ever required.
ip_lookup_mcp_server.py — the MCP server (FastMCP, Streamable HTTP transport).rate_limit.py — lightweight per-IP sliding-window rate-limit middleware (200 req/min default).requirements.txt — mcp, uvicorn, starlette.server.json — official MCP Registry manifest (remote server entry, ready to publish with mcp-publisher).smithery.yaml / glama.json — directory listing metadata.一句话:IP 归属地查询,国家/省份/城市/运营商/ASN 全中文输出,主备双通道高可用。
在线直连地址(免费、无需 Key、开箱即用):https://mcp.pianam.cn/ip-mcp/mcp
在 MCP 客户端(Claude Desktop / Cursor / Cherry Studio / Cline 等)的配置里加入:
工具:
query_ip_location(ip):查 IPv4 归属地。传 IP 地址(如 8.8.8.8);留空时尝试查询调用方自己的公网 IP。服务特性:数据源全部为公开接口、无需注册/付费;服务端内存缓存、失败自动降级/切换备用通道;单 IP 限流 200 次/分钟。
本地部署:
MIT © 2026 boy-373
One-click install for Smithery-supported clients (Claude Desktop, Cursor, etc.):
Or run:
We host a free MCP aggregation gateway: your AI assistant (Cherry Studio, Claude Desktop, Cursor, Cline — any MCP client) discovers and uses MCP tools through a single URL:
Add it once, then talk in plain language — the AI automatically searches → inspects → calls the right MCP for you.
📖 3-step setup guide / 中文接入教程: https://mcp.pianam.cn/ai-gateway