IP2Location.io
oficialIP2Location.io API integration to retrieve the geolocation information for an IP address.
IP2Location.io MCP server
This is a simple Model Context Protocol (MCP) server implementation for IP2Location.io API. It will return a detailed geolocation information for any given IPv4 or IPv6 address.
Features
- Comprehensive Geolocation Data: Retrieves a wide range of information, including country, region, city, latitude, longitude, ZIP code, time zone, and more.
- Network Details: Provides network-related data such as ASN, ISP, domain, and network speed.
- Security Insights: Detects proxy information, including proxy type and provider.
- Simple Integration: Built as a
FastMCPtool, allowing for easy integration into compatible systems. - Asynchronous: Utilizes
httpxfor non-blocking asynchronous API requests.
Requirement
This MCP server supports to query without an API key, with a limitation of 1,000 queries per day. You can also sign up for a free API key and enjoy up to 50,000 queries per month.
The setup also use uv, which can be install by following the guide.
Setup
Follow the steps to use this MCP server with Claude Desktop:
- Download the repository to your local.
- Setup the
uvpackage manager, you can once again refer to the guide to do so. - Make sure you have installed the Claude Desktop, if you haven't, kindly download from here for Windows and MacOS users, or follow this guide for Linux user.
- Open the
claude_desktop_config.jsonin your choice of editor, if you do not having one yet, follow this guide to create one. - Add the following to your
claude_desktop_config.json:
{
"mcpServers": {
"ip2locationio": {
"command": "uv",
"args": [
"--directory",
"/path/to/ip2locationio/src",
"run",
"server.py"
],
"env": {
"IP2LOCATION_API_KEY": "<YOUR API key HERE>"
}
}
}
}
- Remember to replace the
/path/to/ip2locationiopath with your actual path to IP2Location.io MCP server in local. - To get your API key, just login to your dashboard and get it from there. Replaced the
<YOUR API key HERE>in above with your actual API key. - Restart the Claude Desktop after save the changes, and you should see it appear in the
Connectorsmenu.
Usage
Just enter your query about the IP in a chat in Claude Desktop. Some of the example query will be:
- Where is the location of (IP)?
- Where is (IP) located?
- What is the coordinate of (IP)?
For instance, below is the result of the IP 8.8.8.8:

In Claude Desktop, the model will automatically generate the output based on the result returned by IP2Location.io MCP server.
You can also utilize IP2Location.io Bulk IP Geolocation API to query for multiple IP addresses. Just input all IP addresses with the space in between of each IP address. For example 8.8.8.8 8.8.6.6.
[!NOTE]
IP2Location.io Bulk IP Geolocation API requires a paid plan to work.
Environment Variable
IP2LOCATION_API_KEY
The IP2Location.io API key, which allows you to query up to 50,000 per month and more details of the IP address. You can sign up for a free API key, or subscribe to a plan to enjoy more benefits.
Tool
get_geolocation
Description Fetch geolocation for the given IP address or a batch of IP addresses. It helps users retrieve detailed information such as country, region, city, latitude, longitude, ZIP code, time zone, ASN, and proxy information for any IPv4 or IPv6 address. It automatically routes requests to the IP2Location.io Bulk API for efficient processing when multiple IPs are detected.
Arguments
ip(str): The IP address (IPv4 or IPv6) to analyze. You can query multiple IPs at once by passing them as a single string separated by commas, spaces, or newlines (e.g.,"1.1.1.1, 2.2.2.2").
Returns A JSON string containing the geolocation data. If multiple IPs are queried, it returns a JSON object where each key is an IP address mapped to its respective data. The result may include the following fields, depending on your API plan:
- Location & Geography: Country, region, district, city, ZIP code, latitude & longitude, time zone.
- Network & Connectivity: ASN (Autonomous System Number), ISP (Internet Service Provider), domain, net speed, IDD code, area code, address type, usage type.
- Mobile Information: MNC (Mobile Network Code), MCC (Mobile Country Code), Mobile Brand.
- Currency & Language: currency code, currency name, currency symbol, language code, language name.
- Proxy & Security: proxy type, last seen, threat level/type, proxy provider, fraud score.
- Others: IAB category, weather, elevation, population, and more.
If a single IP request fails or the IP is invalid, the tool returns an error message as a string. For bulk requests, any individual failed IPs will return an error object mapped to that specific IP address without failing the entire batch.
License
See the LICENSE file.
Servidores relacionados
Mevzuat MCP
Provides programmatic access to the Turkish Ministry of Justice Legislation Information System (mevzuat.gov.tr) for searching and retrieving legal texts.
Paper Search MCP
Search and download academic papers from sources like arXiv, PubMed, and Google Scholar.
Volcengine Knowledge Base MCP
Provides knowledge base search and dialogue completion using the Volcengine Knowledge Base service. Requires external credential configuration.
RagDocs
A server for RAG-based document search and management using Qdrant vector database with Ollama or OpenAI embeddings.
Crawleo MCP Server
Crawleo MCP - Web Search & Crawl for AI Enable AI assistants to access real-time web data through native tool integration. Two Powerful Tools: web.search - Real-time web search with flexible formatting Search from any country/language Device-specific results (desktop, mobile, tablet) Multiple output formats: Enhanced HTML (AI-optimized, clean) Raw HTML (original source) Markdown (formatted text) Plain Text (pure content) Auto-crawl option for full content extraction Multi-page search support web.crawl - Deep content extraction Extract clean content from any URL JavaScript rendering support Markdown conversion Screenshot capture Multi-URL support Features: ✅ Zero data retention (complete privacy) ✅ Real-time, not cached results ✅ AI-optimized with Enhanced HTML mode ✅ Global coverage (any country/language) ✅ Device-specific search (mobile/desktop/tablet) ✅ Flexible output formats (4 options) ✅ Cost-effective (5-10x cheaper than competitors) ✅ Simple Claude Desktop integration Perfect for: Research, content analysis, data extraction, AI agents, RAG pipelines, multi-device testing
Nexus
Web search server that integrates Perplexity Sonar models via OpenRouter API for real-time, context-aware search with citations
arch-mcp
An AI-powered bridge to the Arch Linux ecosystem that enables intelligent package management, AUR access, and Arch Wiki queries through the Model Context Protocol (MCP).
Stack Overflow
Access Stack Overflow's trusted and verified technical questions and answers.
IndieStack
Search and discover 130+ curated indie SaaS tools from your AI coding assistant
Search and Book 3M hotels worldwide
Official. Hosted. Free. MCP to connect your AI agent to 3M+ hotels worldwide. Search and book!