Skip to main content
Archived

This project has been archived by its maintainers, and is no longer receiving any updates.

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.

Metadata

Release files for mcp-server-ipinfo 0.3.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for mcp-server-ipinfo 0.3.0
File Size Uploaded Provenance Actions
mcp_server_ipinfo-0.3.0.tar.gz 368.4 kB Without provenance Details for mcp_server_ipinfo-0.3.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for mcp-server-ipinfo 0.3.0
File Interpreter ABI Platform Actions
mcp_server_ipinfo-0.3.0-py3-none-any.whl Python 3 none any Details for mcp_server_ipinfo-0.3.0-py3-none-any.whl

Total release size: 381.9 kB

Release files / mcp_server_ipinfo-0.3.0.tar.gz

Download URL mcp_server_ipinfo-0.3.0.tar.gz
Size 368.4 kB
Tags Source
SHA-256 checksum
How to use checksums
6b96db722ea1d36b1ec382be6a24051a72312059cbbafd9089ed1bc63caa9395
BLAKE2b-256 checksum
How to use checksums
be7f10bc88192eeb9a2486a21286480e0c4fe56754cfc6fdfbf9e09da9d65a6e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.10.2 {"installer":{"name":"uv","version":"0.10.2","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}

Release files / mcp_server_ipinfo-0.3.0-py3-none-any.whl

Download URL mcp_server_ipinfo-0.3.0-py3-none-any.whl
Size 13.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
ebd99c5cd9b65f1ef23fa6574f3f7fbf138101563690dc547594c2c7b6784b1a
BLAKE2b-256 checksum
How to use checksums
1dc4751087d6ab376cff799b405076e42ea5f5ca833613722bf063f0c69ac712
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.10.2 {"installer":{"name":"uv","version":"0.10.2","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}

Security for mcp-server-ipinfo 0.3.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page