Skip to main content

IP Geolocation Server for MCP

Project description

IP Geolocation MCP Server

This is a simple Model Context Protocol server that uses the ipinfo.io API to get detailed information about an IP address. This can be used to determine where the user is located (approximately) and what network they are used.

IP Geolocation Server MCP server

Example conversation using mcp-server-ipinfo

Installation

You'll need to create a token to use the IPInfo API. If you don't already have one, you can sign up for a free account at https://ipinfo.io/signup.

While each client has its own way of specifying, you'll generally use the following values:

Field Value
Command uvx
Arguments mcp-server-ipinfo
Environment IPINFO_API_TOKEN = <YOUR TOKEN>

Development Version

If you'd like to use the latest and greatest, the server can be pulled straight from GitHub. Just add an additional --from argument:

Field Value
Command uvx
Arguments --from, git+https://github.com/briandconnelly/mcp-server-ipinfo, mcp-server-ipinfo
Environment IPINFO_API_TOKEN = <YOUR TOKEN>

Components

Tools

  • get_ip_details: Get detailed information about one or more IP addresses including location, ISP, and network details.

    • Input: ips (optional): List of IP addresses to analyze (IPv4 or IPv6). If not provided, analyzes the requesting client's IP address.
    • Output: List of IPDetails containing location, organization, timezone, and more.
    • Note: Batch lookups (multiple IPs) require IPINFO_API_TOKEN.
  • get_residential_proxy_info: Check if an IP address is associated with a residential proxy service.

    • Input: ip: The IP address to check for residential proxy usage.
    • Output: ResidentialProxyDetails with proxy service name, last seen date, and activity percentage.
    • Note: Requires IPINFO_API_TOKEN with residential proxy data access.
  • get_map_url: Generate a URL to an interactive map visualization of IP addresses.

    • Input: ips: List of IP addresses to visualize (max 500,000).
    • Output: URL to an interactive map on ipinfo.io showing geographic locations.
    • Note: Useful for visualizing geographic distribution of traffic or users.

Resources

No custom resources are included

Prompts

No custom prompts are included

Configuration

Environment Variables

Variable Description Default
IPINFO_API_TOKEN IPInfo API token for premium features None (basic lookups only)
IPINFO_CACHE_TTL Cache TTL in seconds 3600 (1 hour)

License

MIT License - See LICENSE file for details.

Disclaimer

This project is not affiliated with IPInfo.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

mcp_server_ipinfo-0.4.0.tar.gz (376.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

mcp_server_ipinfo-0.4.0-py3-none-any.whl (14.0 kB view details)

Uploaded Python 3

File details

Details for the file mcp_server_ipinfo-0.4.0.tar.gz.

File metadata

  • Download URL: mcp_server_ipinfo-0.4.0.tar.gz
  • Upload date:
  • Size: 376.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.11.6 {"installer":{"name":"uv","version":"0.11.6","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for mcp_server_ipinfo-0.4.0.tar.gz
Algorithm Hash digest
SHA256 af544621d4ab3e38de54274f1e1bfa978b405acea86efd0a91ca316ef932a6c0
MD5 529644f07d550dee9b7879e0ddb72d4e
BLAKE2b-256 48384efd75399cec9fb9fcc9ae0c43e30f65acfd9e3a0ce3f39bd03a6dd21f40

See more details on using hashes here.

File details

Details for the file mcp_server_ipinfo-0.4.0-py3-none-any.whl.

File metadata

  • Download URL: mcp_server_ipinfo-0.4.0-py3-none-any.whl
  • Upload date:
  • Size: 14.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.11.6 {"installer":{"name":"uv","version":"0.11.6","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for mcp_server_ipinfo-0.4.0-py3-none-any.whl
Algorithm Hash digest
SHA256 3bbc5bb01388a8535351f06159da5815b2670fbc4d2dfe6d8449a22265d92ba7
MD5 2243f5659c5d6c3a7513f8f8f12972b0
BLAKE2b-256 150698180ffa586415fadf7dc149d6c39c87d3e70d9d58f47a00c11d8584586d

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page