MCP.so
登录
服务器

开发一个简单的 mcp 服务

@jingjing20

概览

What is 开发一个简单的 mcp 服务?

This server provides two tools: querying weather and planning driving routes. It integrates with the Amap (高德地图) API using endpoints for weather information and direction driving. The server is built following the patterns of an existing weather-server-typescript example and is designed for developers who need weather data and route planning within the Model Context Protocol framework.

How to use 开发一个简单的 mcp 服务?

No explicit installation or configuration steps are provided in the README. The README references the @weather-server-typescript directory for development rules and structure, and specifies that the server folder should be named china-weather-map.

Key features of 开发一个简单的 mcp 服务?

  • Weather query tool using Amap's weather API.
  • Route planning tool using Amap's direction driving API.
  • Uses an Amap API key embedded in the endpoints.
  • Follows MCP development conventions from a reference server.

Use cases of 开发一个简单的 mcp 服务?

  • Retrieve weather forecasts and current conditions for a location via city code.
  • Calculate driving directions between two sets of coordinates.

FAQ from 开发一个简单的 mcp 服务?

What tools does this server provide?

It provides a weather query tool and a route planning tool.

Which external APIs does it use?

It uses the Amap weather API (restapi.amap.com/v3/weather/weatherInfo) and the Amap direction driving API (restapi.amap.com/v5/direction/driving).

Is there a reference implementation to follow?

Yes, the README suggests referring to the @weather-server-typescript directory for development rules and structure.

What is the recommended folder name?

The folder should be named china-weather-map.

Does the server include an API key?

Yes, the sample endpoints include an Amap API key (2e645bee34ad494cfbd9baceccb351d0).

标签

来自「其他」的更多内容