MCP server for IPv4 geolocation with Chinese output: country/region/city, ISP and ASN.
Copy the AI prompt to install this server into Claude Code, Cursor, or another agent — or use 1-click editor setup below.
We haven't yet run this listing's install command through our automated sandbox check. This isn't a red flag — we're steadily working through the catalog.
💡 Paste the JSON block into your client's configuration file under mcpServers, then restart the application.
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
No reviews yet — be the first to share how this listing worked for you.
Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.
[](https://allmcps.com/mcp/ip-location-mcp)<a href="https://allmcps.com/mcp/ip-location-mcp"><img src="https://allmcps.com/api/badge/ip-location-mcp?style=directory" alt="IP Location MCP on AllMCPs" /></a>