mcp-server-ipinfo
by: briandconnelly
IP Geolocation Server for MCP
📌Overview
Purpose: To provide a simple server for obtaining detailed geolocation information about IP addresses using the IPInfo API.
Overview: The IP Geolocation MCP Server leverages the Model Context Protocol to interface with the IPInfo service, allowing users to retrieve approximate location and network details based on a given IP address. This functionality is primarily intended to enhance applications that require geolocation data to improve user experience or analytics.
Key Features:
-
IP Detail Retrieval: Utilizes the
get_ip_details
tool to fetch comprehensive information about an IP address, which includes its location, organization, and country, thus enabling applications to accurately gauge user location. -
Easy Integration: The server can be seamlessly integrated with applications such as Claude desktop by simply adding configuration settings in JSON format, making it accessible for developers to implement in their projects.
IP Geolocation MCP Server
This is a simple Model Context Protocol server that uses the ipinfo.io API to retrieve detailed information about an IP address, allowing for approximate user location and network identification.
Installation
-
Create a token for the IPInfo API. Sign up for a free account at ipinfo.io/signup if you do not already have one.
-
To use with Claude desktop, add the following to the
mcpServers
section of yourclaude_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 retrieves detailed information about an IP address.- Input:
ip
: The IP address to get information about. - Output:
IPDetails
: A Pydantic model containing details about the IP, including location, organization, and country.
- Input:
License
MIT License - See the LICENSE
file for details.
Disclaimer
This project is not affiliated with IPInfo.