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: --from git+https://github.com/briandconnelly/mcp-server-ipinfo mcp-server-ipinfo

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: This tool is used to get detailed information about an IP address.
    • Input: ip: The IP address to get information about.
    • Output: IPDetails: A Pydantic model containing detailed information about the IP, including location, organization, and country details.

Resources

No custom resources are included

Prompts

No custom prompts are included

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.2.0.tar.gz (394.5 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.2.0-py3-none-any.whl (10.4 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: mcp_server_ipinfo-0.2.0.tar.gz
  • Upload date:
  • Size: 394.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.7.14

File hashes

Hashes for mcp_server_ipinfo-0.2.0.tar.gz
Algorithm Hash digest
SHA256 fb4baf89405429b82c2866581b7dcca607cf1ce16f43bc70a83cfd5e458aeb07
MD5 f08bc87599285d310d47fa895c2d04d6
BLAKE2b-256 48d102a6e6a9dd53c31dc61604de1cf126e68a2f5523acba75e18a4a9e2941b6

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mcp_server_ipinfo-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 44fb93d353c184263dd1437d6822e554c10e8ea436b2811e736412567a4f7188
MD5 2fed0647ad84c189f94d538fa5b1c949
BLAKE2b-256 ab83fb06e983716e817e8030d7481b248bee88ea6c7bc26912f2fdfdccda63bb

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