使用说明
阿根廷天气MCP
MCP服务器提供阿根廷天气作为工具。 该项目基于 MCP服务器快速入门文档.
服务器公开了2个工具:
get_forecast:允许基于SMN获取阿根廷位置的天气预报。get_weather:允许基于SMN获取特定阿根廷城市的天气信息。
将Claude Desktop配置为主机:
要将此MCP服务器与Claude Desktop一起使用,您需要将以下配置添加到文件中 claude_desktop_config.json:
{
"mcpServers": {
"weather": {
"command": "uv",
"args": [
"--directory",
"/ABSOLUTE/PATH/TO/PARENT/FOLDER/weather,
"run",
"weather.py"
]
}
}
}
使用示例:
在下图中,您可以看到一个使用MCP和Claude Desktop以西班牙语请求预测的示例:
联系我:
- 领英: Lucas Didone
- 十、 Lucas Didone