MCP.so
ログイン

MCP Weather Server

@mohaimenhasan

基本情報

カテゴリ

メディアとデザイン

トランスポート

stdio

作者

mohaimenhasan

MCP Weather Server について

概要はまだありません

MCP Weather Server の設定

標準の設定はありません

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

リポジトリ

MCP Weather Server のツール

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

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

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

概要

What is MCP Weather Server?

MCP Weather Server is a simple Model Context Protocol (MCP) server that provides current weather data via an Express API. It integrates with OpenWeatherMap and is designed for developers who want to query weather information through MCP-compatible clients like VS Code.

How to use MCP Weather Server?

Clone the repository, run npm install, add an OpenWeatherMap API key in index.ts line 6, then build with npm run build. To use it in VS Code, add the server as a stdio MCP server with the command node and the argument pointing to the compiled dist/index.js. Once configured, you can ask questions about any city’s weather.

Key features of MCP Weather Server

  • Provides current weather data via a single API endpoint.
  • Uses the Model Context Protocol for AI tool integration.
  • Built on Express, making it lightweight and easy to run.
  • Configured as a stdio MCP server for use with VS Code.
  • Pulls weather data from OpenWeatherMap (API key required).

Use cases of MCP Weather Server

  • Ask an AI assistant in VS Code about the current weather in a city.
  • Integrate weather queries into custom MCP-based tools or agents.
  • Test or demo MCP server functionality with a real data source.
  • Quickly prototype a weather-aware chatbot or coding assistant.

よくある質問

1

What weather data does MCP Weather Server provide?

It returns current weather data for a specified city via the `GET /weather?location={city}` endpoint.

2

How do I get an API key for OpenWeatherMap?

You can obtain an API key from openweathermap.org. The README also suggests contacting the author (@mohaimenhasan) if you need one.

3

How do I integrate the server with VS Code?

Build the project (`npm run build`), then add a new MCP server in VS Code’s settings with `"type": "stdio"`, `"command": "node"`, and `"args"` pointing to the full path of `dist/index.js`.

4

What runtime dependencies does MCP Weather Server require?

It requires Node.js (version 18 or higher) and npm (version 9 or higher). The only external dependency is the OpenWeatherMap API.

5

Is the server limited to a single transport type?

The README only describes stdio transport for VS Code integration. The Express API is also available via HTTP at the default port, but no configuration details are provided for that.

コメント

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