by ip2location
Provides detailed geolocation information for IPv4 and IPv6 addresses using the IP2Location.io API.
The server returns comprehensive geolocation data—including country, region, city, coordinates, ASN, ISP, proxy details, and more—for any IPv4 or IPv6 address supplied in a request.
uv package manager (see the Model Context Protocol quick‑start guide).claude_desktop_config.json entry that points to the server script and provides the IP2LOCATION_API_KEY environment variable.uv command as defined in the configuration.get_geolocation tool and display the returned data.httpx.get_geolocation tool with a single ip argument.Do I need an API key?
Which package manager is required?
uv. Install it following the MCP quick‑start guide.How do I configure the server for Claude Desktop?
claude_desktop_config.json under mcpServers as shown in the README, specifying the command, args, and the IP2LOCATION_API_KEY environment variable.What request format does the tool accept?
get_geolocation tool takes a single string argument ip representing the IPv4 or IPv6 address.What happens on invalid input?
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.
FastMCP tool, allowing for easy integration into compatible systems.httpx for non-blocking asynchronous API requests.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.
Follow the steps to use this MCP server with Claude Desktop:
uv package manager, you can once again refer to the guide to do so.claude_desktop_config.json in your choice of editor, if you do not having one yet, follow this guide to create one.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>"
}
}
}
}
/path/to/ip2locationio path with your actual path to IP2Location.io MCP server in local.<YOUR API key HERE> in above with your actual API key.Search and tools menu.Just enter your query about the IP in a chat in Claude Desktop. Some of the example query will be:
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.
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.
get_geolocation
Description Fetch geolocation for the given IP address. It helps users to retrieve detailed information such as country, region, city, latitude, longitude, ZIP code, time zone, ASN, and proxy information for any IPv4 or IPv6 address.
Arguments ip (str): The IP address (IPv4 or IPv6) to analyze.
Returns A JSON string containing the geolocation data. The result may include the following fields, depending on your API plan:
If the request fails or the IP address is invalid, the tool will return an error message as a string.
See the LICENSE file.
Please log in to share your review and rating for this MCP.
{
"mcpServers": {
"ip2locationio": {
"command": "uv",
"args": [
"--directory",
"/path/to/ip2locationio/src",
"run",
"server.py"
],
"env": {
"IP2LOCATION_API_KEY": "<YOUR API KEY>"
}
}
}
}claude mcp add ip2locationio uv --directory /path/to/ip2locationio/src run server.pyExplore related MCPs that share similar capabilities and solve comparable challenges
by mindsdb
Enables humans, AI agents, and applications to retrieve highly accurate answers across large‑scale data sources, unifying heterogeneous databases, warehouses, and SaaS platforms.
by mckinsey
Build high-quality data visualization apps quickly using a low-code toolkit that leverages Plotly, Dash, and Pydantic.
by antvis
Offers over 25 AntV chart types for automated chart generation and data analysis, callable via MCP tools, CLI, HTTP, SSE, or streamable transports.
by reading-plus-ai
A versatile tool that enables interactive data exploration through prompts, CSV loading, and script execution.
by Canner
Provides a semantic engine that lets MCP clients and AI agents query enterprise data with contextual understanding, precise calculations, and built‑in governance.
by surendranb
Provides natural‑language access to Google Analytics 4 data via MCP, exposing over 200 dimensions and metrics for Claude, Cursor and other compatible clients.
by ergut
Provides secure, read‑only access to BigQuery datasets, allowing large language models to query and analyze data through a standardized interface.
by isaacwasserman
Provides an interface for LLMs to visualize data using Vega‑Lite syntax, supporting saving of data tables and rendering visualizations as either a full Vega‑Lite specification (text) or a base64‑encoded PNG image.
by vantage-sh
Fetch and explore cloud cost and usage data from a Vantage account using natural language through AI assistants and MCP clients.