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.

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:
| 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: Get detailed information about one or more IP addresses including location, ISP, and network details.- Input:
ips(optional): List of IP addresses to analyze (IPv4 or IPv6). If not provided, analyzes the requesting client's IP address. - Output: List of
IPDetailscontaining location, organization, timezone, and more. - Note: Batch lookups (multiple IPs) require
IPINFO_API_TOKEN.
- Input:
-
get_residential_proxy_info: Check if an IP address is associated with a residential proxy service.- Input:
ip: The IP address to check for residential proxy usage. - Output:
ResidentialProxyDetailswith proxy service name, last seen date, and activity percentage. - Note: Requires
IPINFO_API_TOKENwith residential proxy data access.
- Input:
-
get_map_url: Generate a URL to an interactive map visualization of IP addresses.- Input:
ips: List of IP addresses to visualize (max 500,000). - Output: URL to an interactive map on ipinfo.io showing geographic locations.
- Note: Useful for visualizing geographic distribution of traffic or users.
- Input:
Resources
No custom resources are included
Prompts
No custom prompts are included
Configuration
Environment Variables
| Variable | Description | Default |
|---|---|---|
IPINFO_API_TOKEN |
IPInfo API token for premium features | None (basic lookups only) |
IPINFO_CACHE_TTL |
Cache TTL in seconds | 3600 (1 hour) |
License
MIT License - See LICENSE file for details.
Disclaimer
This project is not affiliated with IPInfo.
Recommend MCP Servers 💡
cycode-cli
Cycode CLI's MCP command starts a server to expose Cycode's security scanning capabilities (secrets, SCA, IaC, SAST) to AI systems via stdio, SSE, or streamable-http transports.
helebest/my-mcp-lab
A lab project for setting up an SSE-based Model Context Protocol (MCP) server.
@pyroprompts/any-chat-completions-mcp
MCP Server for using any LLM as a Tool
python-mcp-server
An MCP server that runs a Python environment to execute LLM-generated code, useful for web scraping.
@tsavo/creatify-mcp
Enterprise-grade MCP Server for Creatify AI, providing 12 AI video generation tools with complete API coverage.
screenshotone
An official MCP server implementation for the ScreenshotOne API, enabling AI models to render website screenshots.