MCP.so
ログイン

MCP Weather Server (Cursor + Node.js + WSL)

@mdkaifansari04

基本情報

カテゴリ

開発者ツール

トランスポート

stdio

作者

mdkaifansari04

MCP Weather Server について

概要はまだありません

MCP Weather Server の設定

標準の設定はありません

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

リポジトリ

MCP Weather Server のツール

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

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

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

概要

What is 🌤️ MCP Weather Server (Cursor + Node.js + WSL)?

A simple Model Context Protocol (MCP) server that provides real‑time weather data via the OpenWeatherMap API. It is built with Node.js, runs inside WSL (Windows Subsystem for Linux), and is designed to be used with the Cursor AI client.

How to use 🌤️ MCP Weather Server (Cursor + Node.js + WSL)?

Clone the repository in WSL, install dependencies with npm install, create a .env file with your OpenWeatherMap API key (WHETHER_API_KEY), then configure the server in Cursor’s mcp.json using the wsl command pointing to index.js. Invoke the tool with getWhetherByCityName({ name: "CityName" }).

Key features of 🌤️ MCP Weather Server (Cursor + Node.js + WSL)

  • Exposes a single MCP tool: getWhetherByCityName
  • Fetches current weather for any city
  • Compatible with Cursor AI client
  • Runs inside WSL with clean .env configuration
  • Uses OpenWeatherMap API (requires free API key)

Use cases of 🌤️ MCP Weather Server (Cursor + Node.js + WSL)

  • Get real‑time weather for a city while coding in Cursor
  • Integrate weather data into AI‑powered workflows
  • Learn how to build and run an MCP server with Node.js

よくある質問

1

What does this MCP server do?

It provides a tool (`getWhetherByCityName`) that returns current weather data for any city name using the OpenWeatherMap API.

2

What are the prerequisites?

You need Cursor installed, WSL enabled with a Linux distribution, Node.js and npm in WSL, and an OpenWeatherMap API key.

3

How do I configure the server in Cursor?

In Cursor’s `mcp.json` (or settings UI), add a `demo` server with `"command": "wsl"` and `"args": ["node", "/path/to/index.js"]`. The `env` key does not work with `wsl`; use a `.env` file instead.

4

Where does the API key go?

Create a `.env` file in the project root with `WHETHER_API_KEY=your_openweather_api_key_here`. The server reads it using `dotenv`.

5

Can I run this server without WSL?

The README explicitly targets WSL. It does not document other environments.

コメント

「開発者ツール」の他のコンテンツ