天气数据服务

一个通过Open-meteo API获取任意位置当前天气数据的MCP服务器。

  • by AlexanderLyon
  • Python
  • 本地部署
  • 更新于
在 GitHub 查看 alexanderlyon/weather-mcp-server

使用说明

气象MCP服务器

MCP服务器,用于使用 开放式气象站 API

阅读更多关于模型上下文协议的信息:https://modelcontextprotocol.io/

发展

使用创建和激活虚拟环境 紫外线:

uv venv
source .venv/bin/activate

安装依赖项:

uv sync

启动MCP检查器以测试服务器:

mcp dev server.py

与Claude Desktop集成

要在Claude Desktop中本地使用,请将以下内容添加到 claude_desktop_config.json

{
    "mcpServers": {
        "weather": {
            "command": "/Users/your-username/.local/bin/uv",
            "args": [
                "run",
                "--with",
                "mcp[cli]",
                "mcp",
                "run",
                "/Users/your-username/path/to/weather-mcp-server/server.py"
            ]
        }
    }
}