ip-info-mcp
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@ip-info-mcp查询 8.8.8.8 的归属地和 ISP 信息"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
ip-info-mcp
An IP address information query server based on the MCP (Model Context Protocol) protocol, communicating with AI clients via the stdio transport layer.
Features
Query local IP — Get the current public IP and location info
Query a specific IP — Look up the location, ISP, latitude/longitude, etc. of any IP address
Comprehensive query — Supports IPv4/IPv6, including hostname, organization, postal code, timezone, etc.
Related MCP server: Netdetective MCP Server
MCP stdio Communication Mechanism
This project uses the stdio transport layer of the MCP protocol:
┌─────────────────┐ ┌──────────────────────┐
│ AI 客户端 │ stdin │ MCP Server (本进程) │
│ (CodeBuddy 等) │◄───────►│ python server.py │
│ │ stdout │ │
└─────────────────┘ └──────────────────────┘The client sends JSON-RPC requests (e.g.
tools/call) viastdinThe server returns JSON-RPC responses via
stdoutstderris used for log output and does not affect the communication protocolNo HTTP service required, lightweight startup, suitable for local tool integration
Quick Start
1. Install dependencies
pip install -r requirements.txt2. Configure in an AI client
In CodeBuddy, add it under Settings → MCP → Add MCP:
{
"mcpServers": {
"ip-info": {
"type": "stdio",
"command": "python",
"args": ["path/to/server.py"],
"description": "IP 地址信息查询工具"
}
}
}3. Usage
Once configured, just ask directly in the conversation:
"What is my public IP?"
"Look up the location of 8.8.8.8"
"Check the info for this IP: 114.114.114.114"
Project Structure
ip-info-mcp/
├── server.py # MCP 服务器主文件
├── requirements.txt # Python 依赖
├── README.md # 本文件
└── chatmcp.yaml # chatmcp 平台配置Tech Stack
MCP Python SDK — MCP protocol implementation
httpx — Async HTTP client
ip-api.com / ipinfo.io — Free IP lookup API
License
MIT
This server cannot be deployed
Maintenance
Related MCP Connectors
IPInfo MCP — wraps ipinfo.io (free tier, no auth required for basic usage)
IP Lookup MCP — ip-api.com (free, no auth for basic usage)
Official IPinfo MCP Server - IP intelligence tools for AI assistants
Related MCP Servers
- FlicenseNot gradedqualityDmaintenanceAn MCP (Multi-Agent Conversation Protocol) server that enables natural language interaction with the AbstractAPI geolocation service, allowing users to retrieve geographic information about IP addresses.-
- AlicenseBqualityDmaintenanceAn MCP server that provides access to the Netdetective API for querying information about IP addresses. It enables users to retrieve metadata for a specified IP address or the connecting client's default IP address.1MIT
- AlicenseNot gradedqualityCmaintenanceMCP server providing IP address lookup capabilities. Enables AI assistants to fetch details about public IP addresses or the user's current device IP.11 npmISC
- AlicenseNot gradedqualityCmaintenanceProvides IP geolocation data via ipinfo.io, enabling querying IP addresses for location, ISP, and other details through natural language.5 npmMIT