天气服务API

一个基于高德地图API的天气服务,提供天气数据查询功能。

  • by javin9
  • TypeScript
  • 混合部署
  • 更新于
在 GitHub 查看 javin9/weather-server-ts

使用说明

mcp server demo

环境

npm i

cursor 配置

stdio 方式

{
  "mcpServers": {
    "weather-server": {
      "command": "npx",
      "args": ["tsx", "<your_project_path>/weather-server-ts/src/index.ts"],
      "env": {
        "API_KEY": "<your_api_key>"
      }
    }
  }
}

streamenable 方式

启动 server

npm run dev

配置 cursor your_api_key 是高德地图的 api key

{
  "mcpServers": {
    "weather-server-streamable-http": {
      "type": "http",
      "url": "http://localhost:8003/mcp?key=<your_api_key>"
    }
  }
}