天气服务API

提供天气数据查询功能的API服务,适用于需要集成天气信息的应用开发。

  • by dhinesh-superops
  • Python
  • 混合部署
  • 更新于
在 GitHub 查看 dhinesh-superops/mcp_server_demo

使用说明

要运行,请在环境中设置AUTH_TOKEN、CUSTOMER_SUBDOMAIN

对于STDIO,

  • 在main.py中替换末尾的这一行
if __name__ == "__main__":
	mcp.run(transport="stdio")
  • 将此配置添加到claude
{
  "mcpServers": {
    "weather": {
      "command": "uv",
      "args": [
        "--directory",
              "/Users/dhineshl/superops-mcp/mcp",
        "run",
        "main.py"
      ]
    }
  }
}
  • 对于远程服务器并使用它进行调用,请在末尾的main.py中进行此更改
if __name__ == "__main__":
    mcp.run(transport="streamable-http", port=3001)
  • 运行此命令以检查并调用远程mcp npx @modelcontextprotocol/inspector