这是一个通过IP-API.com提供IP地理位置服务的模型上下文协议(MCP)服务器。免费使用,无需API密钥。
npm install -g mcp-ip-geolocator
mcp-ip-geolocator
git clone https://github.com/tedlikeskix/mcp-ip-geolocator.git
cd mcp-ip-geolocator
yarn install
yarn build
yarn start
一旦运行起来,在Claude桌面中连接到服务器。示例用法:
Claude,你能检查一下IP地址8.8.8.8的位置吗?
Claude将使用该工具获取并显示位置信息。
该工具返回结构化数据,包括:
IP-API.com的免费层级包括:
MIT许可证 - 随意使用和修改!