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": [
        "--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

orange_mcp_server_ipinfo-0.1.0.tar.gz (285.7 kB view details)

Uploaded Source

Built Distribution

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

orange_mcp_server_ipinfo-0.1.0-py3-none-any.whl (7.1 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: orange_mcp_server_ipinfo-0.1.0.tar.gz
  • Upload date:
  • Size: 285.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.11.12

File hashes

Hashes for orange_mcp_server_ipinfo-0.1.0.tar.gz
Algorithm Hash digest
SHA256 4d9896641c060efaeb6bb4f9781a9cf7e0adab63ea87124401cb70496c06f0d2
MD5 fb5ca7ca6130bd3d284fe72bbfd858a2
BLAKE2b-256 a550007da0ee010dc4c30ffebc3bfae2f78d7c2442ddd4670b7f3791faf727ce

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for orange_mcp_server_ipinfo-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 46ede66858747038f83ee94a891b8d0e0cae633cc879603ab7596f98f7982d44
MD5 a62523d25b785f8a94c30ccb4d354b55
BLAKE2b-256 654a0a631340652f87e5509183a237fa7698d1e0a27e7400c5c465f564033ff6

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