用于Yandex Maps API的MCP服务器。
"显示柏林的地图"
<p align="center"> <img src="https://raw.githubusercontent.com/peschinskiy/yandex-maps-mcp/main/example-usage.png" width="60%" alt="Yandex Maps MCP截图"> </p>"显示...的位置"
maps_geocode
country(字符串)- 国家名称lang(字符串)- 语言代码(例如:'ru_RU', 'en_US')state(字符串,可选)- 州、地区或省份名称city(字符串,可选)- 城市或局部区域名称district(字符串,可选)- 城市内的区或社区street(字符串,可选)- 街道名称house_number(字符串,可选)- 房屋或建筑物编号maps_reverse_geocode
latitude(数字)longitude(数字)lang(字符串)- 语言代码(例如:'ru_RU', 'en_US')maps_render
latitude(数字)- 地图中心的纬度坐标longitude(数字)- 地图中心的经度坐标latitude_span(数字)- 地图图像的高度(以度为单位)longitude_span(数字)- 地图图像的宽度(以度为单位)lang(字符串)- 语言代码(例如:'ru_RU', 'en_US')placemarks(数组,可选)- 显示在地图上的地标数组,样式为"pm2rdm"
latitude和longitude属性你需要两个Yandex Maps API密钥:
生成API密钥的方法:
npm install
export YANDEX_MAPS_API_KEY="your-geocoder-api-key"
export YANDEX_MAPS_STATIC_API_KEY="your-static-api-key"
npm run build
node dist/index.js
在你的claude_desktop_config.json中添加以下内容:
{
"mcpServers": {
"yandex-maps": {
"command": "node",
"args": [
"path/to/index.js"
],
"env": {
"YANDEX_MAPS_API_KEY": "<YOUR_GEOCODER_API_KEY>",
"YANDEX_MAPS_STATIC_API_KEY": "<YOUR_STATIC_API_KEY>"
}
}
}
}
Yandex Maps Places API没有免费层级,这意味着LLMs无法通过Yandex Maps MCP检索组织的地址和坐标。它只能地理编码那些地址或坐标已经由模型知晓或从其他来源如显式用户输入、网络搜索或第三方MCPs检索到的地方。
本项目根据MIT许可证发布 - 详情见LICENSE文件。