轻量级MCP服务器:定位你的位置
一个基于IP提供精准定位的轻量级MCP服务器。
快速入门
安装
- 克隆仓库: git clone https://github.com/kukapay/whereami-mcp.git cd whereami-mcp
- 安装依赖: pip install mcp httpx
- (可选)安装为MCP服务: mcp install whereami_mcp.py --name "WhereAmI"
使用
- 启动服务器: python whereami_mcp.py
- 查询资源示例:
@location://ip
获取IP地址@location://city
获取城市信息
- 获取完整报告:
- 输入“Where am I?”或调用
get_location()
- 输入“Where am I?”或调用