weather-server-ts

javin9/weather-server-ts

3.1

If you are the rightful owner of weather-server-ts and would like to certify it and/or have it hosted online, please leave a comment on the right or send an email to dayong@mcphub.com.

This document provides a comprehensive overview of a Model Context Protocol (MCP) server demo, detailing its features, tools, resources, and usage instructions.

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>"
    }
  }
}