· Damian · Feature · 2 min read
MCP Server: IP Geolocation for AI Assistants
Connect AI assistants like Claude directly to IP-Sonar's geolocation database using the Model Context Protocol (MCP) for IP lookups in conversations.

We’re excited to announce the launch of IP-Sonar’s Model Context Protocol (MCP) Server – integration that allows AI assistants like Claude to access IP geolocation data directly within conversations.
What is the Model Context Protocol?
Model Context Protocol (MCP) is an open standard that enables AI assistants to securely connect to external data sources and services. Think of it as a bridge that allows AI models to access real-time information beyond their training data, making them more useful and current.
Our MCP server implementation gives AI assistants native access to IP-Sonar’s comprehensive geolocation database, eliminating the need for manual API calls or complex integrations.
Key Features
lookup_ip - Get detailed geolocation data for a single IP address:
- Country and city information
- Geographic coordinates (latitude/longitude)
- Administrative subdivisions
- Postal codes and timezone data
- EU membership status
- Localized names in multiple languages
lookup_batch - Process multiple IP addresses efficiently:
- Batch lookup for improved performance
- Individual error handling per IP
- Supports up to multiple IPs in a single request
Integration
Connect your AI assistant to IP-Sonar in seconds:
claude mcp add --transport http ip-sonar https://api.ip-sonar.com/mcp \
--header "X-Api-Key: your-api-key-here"Built-in Rate Limiting & Security
- Same rate limits as our REST API (31k requests/month for free plans)
- Secure API key authentication
- Structured error responses with quota information
- Individual request counting for batch operations
The AI assistant automatically uses the MCP tools to provide accurate, real-time geolocation information without you needing to write any code or make manual API calls.
Getting Started
Get Your API Key: ign up at IP-Sonar Dashboard
Connect Your AI Assistant: Use the connection command above for Claude Code, or check our MCP documentation for other assistants
Start Asking Questions: Your AI assistant now has direct access to IP geolocation data!

