MCP.so
ログイン

MCP 天气预报服务器

@Le-dawn

基本情報

カテゴリ

メディアとデザイン

トランスポート

stdio

作者

Le-dawn

MCP 天气预报服务器 について

An MCP server for China weather queries based on the 高德 API.

MCP 天气预报服务器 の設定

標準の設定はありません

このサーバーの README には解析可能な MCP 設定ブロックが含まれていません。インストール手順はリポジトリをご確認ください。

リポジトリ

MCP 天气预报服务器 のツール

ツール一覧はまだありません

この掲載には表示できるツール一覧がまだありません。サーバーにツールがないという意味ではありません。対応機能はプロジェクトのドキュメントをご確認ください。

ツールは README から自動的に抽出されます。メンテナーは ## Tools という見出しの下に記載することで、このタブに反映できます。

概要

What is MCP 天气预报服务器?

MCP 天气预报服务器 is a Model Context Protocol (MCP) server built with TypeScript that provides weather information for Chinese cities via the Amap (Gaode Maps) API. It is designed for AI assistants and applications that need real-time weather data or multi-day forecasts.

How to use MCP 天气预报服务器?

Install dependencies (npm install), build the project (npm run build), and start the server (npm start or npm run dev). Set the environment variable AMAP_API_KEY with a valid Amap Web Service API key. The server exposes a single tool get-weather-forecast which accepts cityName, date, and forecastType parameters. Configure your MCP client to point to the built index.js file and pass the API key in the environment.

Key features of MCP 天气预报服务器

  • Real-time weather query for any Chinese city
  • Multi-day weather forecast (up to several days)
  • Intelligent city name to code conversion (supports standard Chinese municipal names)
  • Optional timezone parameter for forecast dates
  • Detailed weather data: temperature, humidity, wind direction, wind force
  • Comprehensive error handling and user-friendly output formatting

Use cases of MCP 天气预报服务器

  • An AI travel assistant providing current weather conditions for a user's destination city
  • A schedule planner that checks the forecast for an upcoming event date
  • A smart home system that adjusts settings based on local weather predictions
  • A chatbot that answers "What's the weather like in Shanghai today?"

よくある質問

1

What are the system requirements for MCP 天气预报服务器?

Node.js 16.0 or higher and TypeScript 5.0 or higher are required.

2

How do I obtain an Amap API key?

Register an account on the Amap Open Platform ([https://lbs.amap.com/](https://lbs.amap.com/)), go to Console → Application Management → My Applications, create a new application selecting "Web service" type, and get the API key.

3

Does the server have any API call limits?

Yes. Amap's free developer account has a daily limit of 5,000 API calls.

4

What city name format should I use?

Use standard Chinese municipal names such as "北京市" (Beijing city). Avoid abbreviations.

5

How is the API key secured?

The API key is read from the environment variable `AMAP_API_KEY` and is never passed in the tool call, keeping it out of logs and client code.

コメント

「メディアとデザイン」の他のコンテンツ