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.

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

    "ipinfo": {
      "command": "uvx",
      "args": [
        "mcp-server-ipinfo",
        "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.1.tar.gz (302.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.1-py3-none-any.whl (8.5 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for mcp_server_ipinfo-0.1.1.tar.gz
Algorithm Hash digest
SHA256 47f7edb6c4857ae0a2001a4b7ce720ee2ffdd208b6e645348c6de5d9d543b2e5
MD5 018d6bbf4df70c9c2d1e0a05ee8cce32
BLAKE2b-256 9fd3b481a6fb4f930647e75ec07d624513cd4ef3ed900f8a0711c26c22dce56c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mcp_server_ipinfo-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 81832aa59af75acb7da741bae2ed8d813dfe6a65b109bdf04f74db59c6ea6601
MD5 b4df111b13655dc3666fec84e9f3cd93
BLAKE2b-256 421ea8c341a1981aaaddc7c674782e953b28e9d855144e2aee4e6d46fdf8ea15

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