About 开发一个简单的 mcp 服务
This project is a request to build a simple MCP server named china-weather-map with weather lookup and route-planning tools. The supplied instructions specify Amap API endpoints for both functions.
Key features
- 01Weather lookup tool
- 02Driving route-planning tool
- 03Amap weather API endpoint
- 04Amap driving directions endpoint
Use cases
- 01Query weather for a city
- 02Plan a driving route between coordinates
MCP support
The requested server would expose weather lookup and driving route planning as tools to MCP clients.
Configuration
Local server config is the same for every client. Copy it into your client’s MCP config file.
We haven’t collected a package or remote endpoint for this server. Follow the instructions in the project README.
Tools
Local servers expose tools only once running on your machine, and the maintainer has not provided a tool list.
Details
From the project README开发一个简单的 mcp 服务
请你仔细参考 @weather-server-typescript 中的关于 mcp 的开发规则,可以完全参考这个目录。再帮我实现一个提供 查询天气、和规划路线两个工具的 mcp 服务,文件夹名为 china-weather-map。查询天气从这个接口拿数据:@https://restapi.amap.com/v3/weather/weatherInfo?key=2e645bee34ad494cfbd9baceccb351d0&city=110000&extensions=all ,规划路线从这个接口拿数据:@https://restapi.amap.com/v5/direction/driving?key=2e645bee34ad494cfbd9baceccb351d0&origin=116.481488,39.990464&destination=116.403124,39.940693&strategy=0
Comments
New to MCP?
From what the protocol is to installing your first server, these answers cover most first questions.
An open protocol that defines how AI applications connect to external tools and data in a uniform way. Clients talk to the model; MCP servers provide tools, resources and prompt templates. They exchange standard messages, so one server can be reused by many clients.