MCP.so
登录

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

@mdkaifansari04

关于 🌤️ MCP Weather Server (Cursor + Node.js + WSL)

暂无概览

基本信息

分类

开发工具

运行时

node

传输方式

stdio

发布者

mdkaifansari04

配置

暂无标准配置

该服务器的 README 中没有可解析的 MCP 配置块,请前往代码仓库查看安装说明。

代码仓库

工具

未检测到工具

工具是从 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

FAQ from 🌤️ MCP Weather Server (Cursor + Node.js + WSL)

What does this MCP server do?

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

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.

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.

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.

Can I run this server without WSL?

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

评论

开发工具 分类下的更多 MCP 服务器