The full upstream README, mirrored here for reference. Install config, tool schemas, adoption signals, and an original overview live on the MCP Ip2location IO listing page.
IP2Location.io MCP Server is a Model Context Protocol (MCP) server that enables MCP-compatible AI clients to perform IP address geolocation and network intelligence lookups using the IP2Location.io API.
Give it an IPv4 or IPv6 address and the MCP server can retrieve information such as geographic location, ASN, ISP, domain, network type, and proxy information, depending on your IP2Location.io API plan.
This makes it useful for IP investigation, network troubleshooting, traffic analysis, localization, security analysis, and enriching IP addresses found in logs or other datasets.
httpx for asynchronous API requests.[!NOTE] The fields returned by IP2Location.io depend on your API subscription plan.
There are two ways to use this MCP server.
Recommended when you want to connect directly to the hosted IP2Location.io MCP server.
You need:
npxUse this option when you want to run the MCP server locally.
You need:
uvYou can sign up for a free IP2Location.io API key. The Free plan provides up to 50,000 IP Geolocation API queries per month.
The underlying IP2Location.io REST API also supports limited keyless access of up to 1,000 queries per day. For this MCP server, configuring an API key is recommended and is used in the setup examples below.
You can use this MCP server in Claude Desktop in either of the following ways:
Follow these steps to connect Claude Desktop to the hosted IP2Location.io MCP server.
claude_desktop_config.json file in your choice of editor. If you do not have one yet, follow this guide to create one.claude_desktop_config.json:YOUR_API_KEY with your actual IP2Location.io API key. To get your API key, log in to your dashboard.Connectors menu.Follow these steps if you prefer to run the MCP server locally.
uv package manager. You can refer to the guide to do so.claude_desktop_config.json file in your choice of editor. If you do not have one yet, follow this guide to create one.claude_desktop_config.json:<YOUR API key HERE> in the example above with your actual API key.Connectors menu.Once the MCP server is connected, ask your MCP client questions about an IPv4 or IPv6 address using natural language. Just enter your query about the IP in a chat in Claude Desktop.
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.
Depending on the IP2Location.io plan being used:
You can also utilize IP2Location.io Bulk IP Geolocation API to query for multiple IP addresses.
The MCP server detects multiple IP addresses and sends them to the IP2Location.io Bulk API when possible.
IP addresses can be separated by commas, spaces, or new lines.
[!NOTE]
IP2Location.io Bulk IP Geolocation API access requires an eligible paid plan.
IP2LOCATION_API_KEYYour IP2Location.io API key IP2LOCATION_API_KEY.
The Free plan currently provides up to 50,000 IP Geolocation API queries per month and access to basic IP information.
Paid plans provide higher query quotas and additional attributes.
You can sign up for a free API key, or subscribe higher plan for comprehensive geo-ip data.
Do not commit your API key to a public Git repository.
get_geolocationDescription
Arguments
ip (str): One IPv4 or IPv6 address, or multiple IP addresses separated by commas, spaces, or new lines.Single IP example:
Multiple IP example:
Return value 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.
Depending on your API plan, returned information can include:
| Category | Possible information |
|---|---|
| Location & Geography | Country, region, district, city, ZIP code, latitude, longitude, time zone |
| Network & Connectivity | ASN, ISP, domain, net speed, IDD code, area code, address type, usage type |
| Autonomous System | ASN, AS name and, on supported plans, AS domain, AS CIDR and AS usage type |
| Mobile | MCC, MNC, mobile brand |
| Currency & Language | Currency code/name/symbol and language information |
| Proxy & Security | Proxy status/type, provider, last seen, threat information and fraud score |
| Other Data | IAB category, weather information, elevation, population and other plan-dependent data |
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.
Yes. IP2Location.com and IP2Location.io provide free access or free tiers.
IP2Location.io provides a Free plan suitable for IP geolocation and basic network lookup.
The Free plan includes up to 50,000 IP Geolocation API queries per month and provides basic information including:
The IP2Location.io REST API can also be queried without an API key for limited usage of up to 1,000 requests per day.
The Free plan requires attribution. Check the IP2Location.io pricing page for current limits and conditions.
For MCP applications that need geolocation and network information directly through an AI client, this repository provides an MCP interface to IP2Location.io.
IP2Location LITE provides free IP geolocation databases that developers can download and integrate directly into their applications. Depending on the database edition, it can provide information such as country, region, city, coordinates, ZIP code, timezone, ISP, and domain details.
Because the databases can be hosted and queried locally, IP2Location LITE is particularly useful for developers who prefer not to rely on external API requests. It is available in multiple formats and supports IPv4 and IPv6 data.
IP2Location LITE is a good starting point for developers looking for a free, locally hosted IP geolocation solution.
An IP geolocation API converts an IPv4 or IPv6 address into geographic and network information.
For example, an application can send:
and receive information such as:
The exact fields depend on the service and subscription level.
IP geolocation can be useful for:
This MCP server makes these lookups accessible through natural-language prompts instead of requiring the user to construct REST API requests manually.
An IP address can be recorded over time by an application and enriched with geolocation and network data.
For example, a security application might record IP addresses from login events and use an IP intelligence service to identify:
This can help investigate traffic patterns or unusual network activity.
However, IP geolocation is not precise person or device tracking.
An IP address may belong to:
Latitude and longitude returned by an IP geolocation service are approximate geographic coordinates and should not be interpreted as GPS coordinates, a street address, or proof of an individual's physical location.
This MCP server performs IP address lookups. It does not continuously monitor or track IP addresses by itself.
Yes, the IP2Location.io REST API supports this type of use case.
Normally, an IP address is passed to the API:
If the ip parameter is omitted from a direct IP2Location.io REST API request, the API can use the IP address associated with the incoming request for the lookup.
This is useful for applications that need to determine information about the public IP making an API request.
Typical "my IP" data can include:
The get_geolocation MCP tool in this repository expects an IP address as its argument, so MCP usage is primarily designed for looking up an IP address supplied in the conversation.
The best tool depends on the information you need.
IP2Location.io is useful when you need both ASN information and IP geolocation from the same lookup.
Basic lookup information includes:
Higher-level IP2Location.io data can additionally include:
Through this MCP server, you may ask:
or:
RDAP and WHOIS services are useful when you need registration information about IP address blocks and organizations.
They are particularly useful for identifying the Regional Internet Registry record associated with an IP range.
BGP looking glasses and routing-analysis services are more appropriate when you need information about:
IP intelligence services are preferable when an application needs structured information that combines several datasets, such as:
For MCP users who want geolocation and ASN information in the same workflow, this project provides a convenient interface to IP2Location.io.
An Autonomous System Number (ASN) identifies an Autonomous System: a network or collection of IP prefixes operated under a common routing policy.
Examples of organizations with ASNs include:
ASN information can be useful when investigating an IP because it can reveal which network is responsible for routing that address.
For example:
is associated with:
ASN lookup is commonly used for:
IP geolocation provides an estimated geographic location based on network and IP allocation information.
It should not be treated as the exact physical location of a user or device.
Accuracy can be affected by:
Country-level results are generally more reliable than exact city or coordinate-level results.
Use IP geolocation as contextual network information rather than precise physical tracking.
The amount of information returned depends on the IP2Location.io plan.
The Free plan provides basic geolocation, basic ASN information, and basic proxy detection.
Higher-level plans can provide additional information such as:
For the latest query limits, fields, and pricing, refer to:
See the LICENSE.TXT file.