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.

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.

To use with Claude desktop, add the following to the mcpServers section of your claude_desktop_config.json file:

    "ipinfo": {
      "command": "uvx",
      "args": [
        "--from",
        "git+https://github.com/briandconnelly/mcp-server-ipinfo.git",
        "mcp-server-ipinfo"
      ],
      "env": {
        "IPINFO_API_TOKEN": "<YOUR TOKEN HERE>"
      }
    }

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.1.0.tar.gz (288.3 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.1.0-py3-none-any.whl (6.9 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for mcp_server_ipinfo-0.1.0.tar.gz
Algorithm Hash digest
SHA256 e803e1b6c85134e8d81865fda544c6cc17b282842b9759bfb2efdfa50d1040d4
MD5 22cc2f21e6a0b7151258c168363bab67
BLAKE2b-256 510fb26e296681d411a34b092d1e913392f47197e0c1d728fb5818ac3d68040c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mcp_server_ipinfo-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 63782b4d5db4ad4a25d920960a51dac435de052956717ada1d4f92f8281dbb40
MD5 f674719afa6147df48130590bdd2f8bb
BLAKE2b-256 d0901122f1ad9d65dbf5d514effa0b79ae5bc541ff46e8a4ecc11ba9961a2148

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