mcp-ip2location

IP2Location.io MCP server This is a simple Model Context Protocol (MCP) server implementation for IP2Location.io API.

Community: Submitted by a user or imported; check the owner before granting accessOnlineAPI key requiredGlobalFreeRead-only

What it can do

  • Get Geolocation: Fetch geolocation for the given IP address(es). CRITICAL INSTRUCTION FOR AI AGENT: If the user provides multiple IP addresses in their prompt, DO NOT call this tool multiple times seq

What data it sees

Do you need an account

An API key from the service settings is required

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 FastMCP tool, allowing for easy integration into compatible systems.
  • Asynchronous: Utilizes httpx for non-blocking asynchronous API requests.

Requirement

This MCP server requires a API key. You can sign up for a free API key and enjoy up to 50,000 queries per month for free.

Server tool list (1)

Raw names from tools/list. Only developers need these.

get_geolocationFetch geolocation for the given IP address(es). CRITICAL INSTRUCTION FOR AI AGENT: If the user provides multiple IP addresses in their prompt, DO NOT call this tool multiple times sequentially. You MUST batch all IP addresses together into a single comma-separated string and make exactly ONE tool call. 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. Args: ip: The IP address to analyze (IPv4 or IPv6). For multiple IPs, you MUST combine them into a single string separated by commas (e.g., "1.1.1.1, 2.2.2.2"). Returns: A JSON string result includes: 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. Note that some information may only available in paid plan. Learn more on this in https://www.ip2location.io/pricing. REMINDER: Always respond with the raw JSON object as returned by the API. Do not summarize, reformat, or add any additional commentary outside of the JSON structure.
mcp-ip2location: connect to Claude, ChatGPT, Cursor · Connectors.fun