mcp-ip
@qiangmzsx
mcp-ip について
Get geographic location information from IP addresses using offline IP database.
基本情報
設定
以下の設定を使って、このサーバーを MCP 対応クライアントに追加してください。
{
"mcpServers": {
"ipinfo": {
"command": "mcp-ip",
"args": [
"-transport",
"stdio",
"-xdb_path",
"./data/ip2region.xdb"
]
}
}
}ツール
ツールは検出されませんでした
ツールは README から自動的に抽出されます。メンテナーは ## Tools という見出しの下に記載することで、このタブに反映できます。
概要
What is mcp-ip?
mcp-ip is an MCP server that retrieves geographic location information from IP addresses using the offline ip2region database. It is intended for users who need IP geolocation without external API calls.
How to use mcp-ip?
Build from source with go build -o mcp-ip, then run via stdio or HTTP transport. For stdio, configure in mcpServers with the command mcp-ip and arguments -transport stdio -xdb_path <path>. For HTTP, run ./mcp-ip -transport streamable_http -port 8080 -xdb_path /data/ip2region.xdb and access at http://127.0.0.1:8080/mcp.
Key features of mcp-ip
- Offline IP geolocation using the ip2region database.
- Supports both stdio and streamable HTTP transports.
- Written in Go; single binary after build.
- Requires an ip2region
.xdbdatabase file. - Lightweight and self-contained.
Use cases of mcp-ip
- Adding IP location context to AI prompts in MCP-compatible clients.
- Geotagging network logs or user requests locally.
- Building privacy‑friendly tools that avoid external geolocation APIs.
FAQ from mcp-ip
What IP database does mcp-ip use?
It uses the offline ip2region database from https://github.com/lionsoul2014/ip2region.
How do I specify the database file?
Pass the -xdb_path argument with the path to the ip2region.xdb file. An absolute path is recommended.
What transports does mcp-ip support?
It supports stdio and streamable_http (HTTP) transports, configured via the -transport flag.
Does mcp-ip require a network connection?
No. The geolocation data is stored in the local .xdb file, so no outbound connections are needed.
How do I build mcp-ip from source?
Clone the repository, run go build -o mcp-ip in the project directory, then use the resulting binary.
「その他」の他のコンテンツ
Inbox Zero AI
elie222The world's best AI personal assistant for email. Open source app to help you reach inbox zero fast.
🚀 Model Context Protocol (MCP) Curriculum for Beginners
microsoftThis open-source curriculum introduces the fundamentals of Model Context Protocol (MCP) through real-world, cross-language examples in .NET, Java, TypeScript, JavaScript, Rust and Python. Designed for developers, it focuses on practical techniques for building modular, scalable,
MCP Toolbox for Databases
googleapisMCP Toolbox for Databases is an open source MCP server for databases.
Mobile Mcp
mobile-nextModel Context Protocol Server for Mobile Automation and Scraping (iOS, Android, Emulators, Simulators and Real Devices)
MCP Go 🚀
mark3labsA Go implementation of the Model Context Protocol (MCP), enabling seamless integration between LLM applications and external data sources and tools.
コメント