npm i{
"mcpServers": {
"weather-server": {
"command": "npx",
"args": ["tsx", "<your_project_path>/weather-server-ts/src/index.ts"],
"env": {
"API_KEY": "<your_api_key>"
}
}
}
}启动 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>"
}
}
}