kukapay/whereami-mcp
Free基于当前 IP 精确告知您所在位置的轻量级 MCP 服务器。
About kukapay/whereami-mcp
WhereAmI MCP Server is a lightweight Model Context Protocol (MCP) server that determines your geographic location based on your current IP address. It leverages the ipapi.co API to provide accurate geolocation data including country, city, region, latitude, longitude, timezone, ISP, and ASN. The server offers a dynamic resource (location://{type}) for fetching individual location fields, a comprehensive tool (get_location()) that returns a full location report as a Markdown table, and a natural language prompt ("Where am I?") to trigger the tool. With minimal dependencies (only mcp and httpx), it is designed for easy integration into MCP-enabled environments like Claude Desktop, providing a simple way to add IP-based geolocation awareness.
Key Features
Pros & Cons
- Lightweight and minimal dependencies (mcp, httpx)
- Easy to install and run (single Python file or mcp install)
- Provides both resource and tool endpoints for flexible access
- Uses ipapi.co for reliable, accurate geolocation data
- Open source under MIT license, free to use and modify
- Relies on an external API (ipapi.co) which may have rate limits or require a paid plan for high-volume usage
- Location accuracy is limited to IP-based geolocation (not GPS), which can be imprecise for VPNs, proxies, or mobile networks
- No built-in caching mechanism for repeated queries