δΈζζζ‘£ | English
A powerful IPCONFIG MCP (Model Context Protocol) server built on Cloudflare Workers, providing IP address lookup, geolocation, and network connectivity testing tools for AI assistants.
- IP Address Lookup - Get current client's public IP address
- IP Geolocation - Detailed geographic location information for any IP address
- Ping Connectivity Test - Test network connectivity and latency to any host
- CORS Support - Full CORS support, accessible from any domain
- High Performance - Built on Cloudflare Workers edge computing platform
- Standard Protocol - Fully compatible with MCP protocol specifications
Before configuring any MCP client, you need to obtain an API key from IPCONFIG:
-
Create Account
- Visit IPCONFIG Console
- Sign up for a free account or log in if you already have one
-
Access API Keys Management
- Navigate to the API Keys page in your console
- You'll see your API key management dashboard
-
Create New API Key
- Click the "Create New Key" button
- Enter a recognizable name for your API key (e.g., "MCP Client", "Claude Desktop")
- Click "Create"
-
Save Your Key
β οΈ Critical: Copy your API key immediately and store it securely- The key will only be displayed once for security reasons
- If you lose it, you'll need to create a new one
Feature | Free Tier | Pro Tier |
---|---|---|
Rate Limit | 60 requests/min | 100 requests/sec |
Monthly Credits | 1,000 | 10,000+ |
Get My IP | β Free | β Free |
IP Location | 1 credit/query | 1 credit/query |
Ping Test | 1 credit/node | 1 credit/node |
For more details, visit the API Key Management documentation.
One-Click Install:
Manual Configuration:
- macOS:
~/Library/Application Support/Cursor/mcp.json
- Windows:
%APPDATA%\Cursor\mcp.json
- Linux:
~/.config/Cursor/mcp.json
{
"mcpServers": {
"ipconfig": {
"command": "npx",
"args": ["mcp-remote", "https://mcp.ipconfig.com/mcp"],
"env": {
"IPCONFIG_API_KEY": "your-api-key-here"
}
}
}
}
-
Get API Key: Follow the API Key guide above to obtain your API key
-
Configure Claude Desktop:
- macOS:
~/Library/Application Support/Claude/claude_desktop_config.json
- Windows:
%APPDATA%\Claude\claude_desktop_config.json
- Linux:
~/.config/Claude/claude_desktop_config.json
- macOS:
-
Add Configuration:
{ "mcpServers": { "ipconfig": { "command": "npx", "args": ["mcp-remote", "https://mcp.ipconfig.com/mcp"], "env": { "IPCONFIG_API_KEY": "your-api-key-here" } } } }
-
Restart Claude Desktop and test: "What's my IP address?"
git clone https://github.com/your-username/ipconfig-mcp.git
cd ipconfig-mcp
npm install
# Copy configuration file
cp wrangler.toml.example wrangler.toml
# Edit configuration (optional)
# - Modify project name
# - Configure custom domain
# - Set language preference
wrangler secret put IPCONFIG_API_KEY
# Enter your API key (follow the API Key guide above to obtain one)
npm run dev
# Server will start at http://localhost:8787
npm run deploy
Get the current client's public IP address and basic information.
Parameters:
format
(optional):json
ortext
, defaultjson
Usage Examples:
- "What's my IP address?"
- "Show me my current IP information"
- "Get my public IP in text format"
Example Call:
{
"name": "get_my_ip",
"arguments": {"format": "json"}
}
Sample Response:
{
"ip": "203.0.113.1",
"country": "United States",
"region": "California",
"city": "San Francisco",
"isp": "Example ISP",
"timezone": "America/Los_Angeles"
}
Get detailed geographic location information for any IP address.
Parameters:
ip
(required): IP address (IPv4 or IPv6)format
(optional):json
ortext
, defaultjson
Usage Examples:
- "Where is 8.8.8.8 located?"
- "Get location information for 1.1.1.1"
- "What's the geographic location of this IP: 208.67.222.222?"
Example Call:
{
"name": "get_ip_location",
"arguments": {"ip": "8.8.8.8", "format": "json"}
}
Sample Response:
{
"ip": "8.8.8.8",
"country": "United States",
"region": "California",
"city": "Mountain View",
"latitude": 37.4056,
"longitude": -122.0775,
"isp": "Google LLC",
"asn": "AS15169",
"timezone": "America/Los_Angeles"
}
Test network connectivity and latency to any host from multiple global locations.
Parameters:
host
(required): hostname or IP addresscount
(optional): number of pings, default 2, range 1-10ipVersion
(optional):ipv4
oripv6
, defaultipv4
areas
(optional): test regions list, default major regions
Usage Examples:
- "Test connectivity to google.com"
- "Ping baidu.com from multiple locations"
- "Check network latency to my server at example.com"
Example Call:
{
"name": "ping_test",
"arguments": {
"host": "google.com",
"count": 4,
"areas": ["california", "london", "tokyo"]
}
}
Sample Response:
{
"host": "google.com",
"results": [
{
"area": "california",
"avg_latency": "12.5ms",
"packet_loss": "0%",
"status": "success"
},
{
"area": "london",
"avg_latency": "45.2ms",
"packet_loss": "0%",
"status": "success"
}
]
}
Configure in wrangler.toml
:
[vars]
MCP_SERVER_NAME = "IPCONFIG MCP Server"
MCP_SERVER_VERSION = "1.0.0"
LANGUAGE = "en" # or "zh" for Chinese
- Environment Variable:
export LANGUAGE=zh
- Client Configuration: Set
"LANGUAGE": "zh"
in MCP config - Request Parameter: Include
"language": "zh"
in MCP requests
- Production: Use
wrangler secret put IPCONFIG_API_KEY
- Client: Set in MCP config
env
section - Get Key: Follow the API Key guide above
curl https://mcp.ipconfig.com/health
# Get tools list
curl -X POST https://mcp.ipconfig.com/mcp \
-H "Content-Type: application/json" \
-d '{"jsonrpc": "2.0", "id": 1, "method": "tools/list", "params": {}}'
# Test tool call
curl -X POST https://mcp.ipconfig.com/mcp \
-H "Content-Type: application/json" \
-d '{
"jsonrpc": "2.0", "id": 2, "method": "tools/call",
"params": {"name": "get_my_ip", "arguments": {"format": "json"}}
}'
npx @modelcontextprotocol/inspector@latest
# Visit http://localhost:5173 in browser
# Connect to: https://mcp.ipconfig.com/mcp
API Key Type | Requests/Min | Requests/Day | Features |
---|---|---|---|
Free | 100 | 1,000 | Basic features |
Pro | 600 | 10,000 | Full features |
Enterprise | 2,000 | 50,000 | Advanced features |
ipconfig-mcp/
βββ src/
β βββ index.ts # Main entry file
β βββ services/
β β βββ ipconfig.ts # IPCONFIG API service
β βββ utils/
β βββ cors.ts # CORS utilities
β βββ i18n.ts # Internationalization
βββ wrangler.toml.example # Configuration template
βββ cursor-mcp-config.json # Cursor IDE configuration
βββ package.json # Project dependencies
βββ tsconfig.json # TypeScript configuration
βββ README.md # Project documentation
Q: How to verify configuration is working? A: Restart your client and ask the AI: "What's my IP address?" If it returns results, the configuration is successful.
Q: What to do when encountering connection errors? A: Check network connection, verify API key is correct, and ensure configuration file format is valid.
Q: What features are supported? A: Supports current IP lookup, IP geolocation, network connectivity testing, compatible with IPv4 and IPv6.
MIT License
Issues and Pull Requests are welcome!
IPCONFIG MCP Server - Empowering AI assistants with network diagnostic capabilities π