Sponsored by Deepsite.site

Ip Region And Ping A Test Mcp

Created By
ipconfig-com5 months ago
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.
Content

IPCONFIG MCP Server

中文文档 | 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.

🌟 Features

  • 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

🔑 Getting Your API Key

Before configuring any MCP client, you need to obtain an API key from IPCONFIG:

Step-by-Step Guide

  1. Create Account

    • Visit IPCONFIG Console
    • Sign up for a free account or log in if you already have one
  2. Access API Keys Management

    • Navigate to the API Keys page in your console
    • You'll see your API key management dashboard
  3. 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"
  4. 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

API Key Features

FeatureFree TierPro Tier
Rate Limit60 requests/min100 requests/sec
Monthly Credits1,00010,000+
Get My IP✅ Free✅ Free
IP Location1 credit/query1 credit/query
Ping Test1 credit/node1 credit/node

For more details, visit the API Key Management documentation.

🚀 Quick Start

For Users

One-Click Install:

One-Click Install to Cursor

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"
      }
    }
  }
}

Claude Desktop Configuration

  1. Get API Key: Follow the API Key guide above to obtain your API key

  2. 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
  3. Add Configuration:

    {
      "mcpServers": {
        "ipconfig": {
          "command": "npx",
          "args": ["mcp-remote", "https://mcp.ipconfig.com/mcp"],
          "env": {
            "IPCONFIG_API_KEY": "your-api-key-here"
          }
        }
      }
    }
    
  4. Restart Claude Desktop and test: "What's my IP address?"

For Developers

1. Clone Repository

git clone https://github.com/your-username/ipconfig-mcp.git
cd ipconfig-mcp

2. Install Dependencies

npm install

3. Configure Environment

# 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)

5. Local Development

npm run dev
# Server will start at http://localhost:8787

6. Deploy to Cloudflare

npm run deploy

📡 MCP Tools

1. get_my_ip - Get Current IP Address

Get the current client's public IP address and basic information.

Parameters:

  • format (optional): json or text, default json

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"
}

2. get_ip_location - IP Geolocation Lookup

Get detailed geographic location information for any IP address.

Parameters:

  • ip (required): IP address (IPv4 or IPv6)
  • format (optional): json or text, default json

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"
}

3. ping_test - Network Connectivity Test

Test network connectivity and latency to any host from multiple global locations.

Parameters:

  • host (required): hostname or IP address
  • count (optional): number of pings, default 2, range 1-10
  • ipVersion (optional): ipv4 or ipv6, default ipv4
  • 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"
    }
  ]
}

🔧 Configuration

Environment Variables

Configure in wrangler.toml:

[vars]
MCP_SERVER_NAME = "IPCONFIG MCP Server"
MCP_SERVER_VERSION = "1.0.0"
LANGUAGE = "en"  # or "zh" for Chinese

Multilingual Support

  • Environment Variable: export LANGUAGE=zh
  • Client Configuration: Set "LANGUAGE": "zh" in MCP config
  • Request Parameter: Include "language": "zh" in MCP requests

API Key Configuration

  • Production: Use wrangler secret put IPCONFIG_API_KEY
  • Client: Set in MCP config env section
  • Get Key: Follow the API Key guide above

🧪 Testing

Health Check

curl https://mcp.ipconfig.com/health

MCP Tools Test

# 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"}}
  }'

Using MCP Inspector

npx @modelcontextprotocol/inspector@latest
# Visit http://localhost:5173 in browser
# Connect to: https://mcp.ipconfig.com/mcp

📊 API Key Usage Limits

API Key TypeRequests/MinRequests/DayFeatures
Free1001,000Basic features
Pro60010,000Full features
Enterprise2,00050,000Advanced features

🏗️ Project Structure

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

❓ FAQ

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.

📄 License

MIT License

🤝 Contributing

Issues and Pull Requests are welcome!


IPCONFIG MCP Server - Empowering AI assistants with network diagnostic capabilities 🚀

Server Config

{
  "mcpServers": {
    "ipconfig": {
      "command": "npx",
      "args": [
        "mcp-remote",
        "https://mcp.ipconfig.com/mcp"
      ],
      "env": {
        "IPCONFIG_API_KEY": "your-api-key-here"
      }
    }
  }
}
Recommend Servers
TraeBuild with Free GPT-4.1 & Claude 3.7. Fully MCP-Ready.
WindsurfThe new purpose-built IDE to harness magic
AiimagemultistyleA Model Context Protocol (MCP) server for image generation and manipulation using fal.ai's Stable Diffusion model.
Zhipu Web SearchZhipu Web Search MCP Server is a search engine specifically designed for large models. It integrates four search engines, allowing users to flexibly compare and switch between them. Building upon the web crawling and ranking capabilities of traditional search engines, it enhances intent recognition capabilities, returning results more suitable for large model processing (such as webpage titles, URLs, summaries, site names, site icons, etc.). This helps AI applications achieve "dynamic knowledge acquisition" and "precise scenario adaptation" capabilities.
CursorThe AI Code Editor
Tavily Mcp
Playwright McpPlaywright MCP server
Visual Studio Code - Open Source ("Code - OSS")Visual Studio Code
Baidu Map百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
MCP AdvisorMCP Advisor & Installation - Use the right MCP server for your needs
ChatWiseThe second fastest AI chatbot™
EdgeOne Pages MCPAn MCP service designed for deploying HTML content to EdgeOne Pages and obtaining an accessible public URL.
DeepChatYour AI Partner on Desktop
MiniMax MCPOfficial MiniMax Model Context Protocol (MCP) server that enables interaction with powerful Text to Speech, image generation and video generation APIs.
Amap Maps高德地图官方 MCP Server
BlenderBlenderMCP connects Blender to Claude AI through the Model Context Protocol (MCP), allowing Claude to directly interact with and control Blender. This integration enables prompt assisted 3D modeling, scene creation, and manipulation.
TimeA Model Context Protocol server that provides time and timezone conversion capabilities. This server enables LLMs to get current time information and perform timezone conversions using IANA timezone names, with automatic system timezone detection.
Y GuiA web-based graphical interface for AI chat interactions with support for multiple AI models and MCP (Model Context Protocol) servers.
Howtocook Mcp基于Anduin2017 / HowToCook (程序员在家做饭指南)的mcp server,帮你推荐菜谱、规划膳食,解决“今天吃什么“的世纪难题; Based on Anduin2017/HowToCook (Programmer's Guide to Cooking at Home), MCP Server helps you recommend recipes, plan meals, and solve the century old problem of "what to eat today"
Jina AI MCP ToolsA Model Context Protocol (MCP) server that integrates with Jina AI Search Foundation APIs.
Serper MCP ServerA Serper MCP Server