Overview
What is Weather MCP Server?
Weather MCP Server is a lightweight weather information service built with the Model Context Protocol (MCP). It provides current weather conditions for cities worldwide and is designed for easy integration with AI assistants and MCP‑compatible applications.
How to use Weather MCP Server?
Clone the repository, run npm install, then npm run build. Start the server with npx @modelcontextprotocol/inspector node dist/index.js. To use in Cursor, add the configuration "mcp-server-get-weather" to ~/.cursor/mcp.json, specifying the command node and the full path to dist/index.js.
Key features of Weather MCP Server
- Retrieves current weather by city name
- Returns temperature, weather description, humidity, and wind speed
- Falls back to generated data when external API is unavailable
- Lightweight and simple implementation built with TypeScript
- Communicates via stdio transport using MCP protocol
Use cases of Weather MCP Server
- Integrating real‑time weather data into an AI assistant or chatbot
- Quickly checking weather for a specific city during conversation
- Providing weather context in automated workflows or decision‑making tools
- Serving as a demo or reference for MCP server development
FAQ from Weather MCP Server
How does Weather MCP Server obtain weather data?
It uses an external API to fetch live weather data; if the external API is unavailable, it falls back to generated data.
What are the system requirements to run this server?
Node.js, npm, and TypeScript are required. The project uses the MCP SDK (@modelcontextprotocol/sdk) and Zod for validation.
How do I configure Weather MCP Server in Cursor?
Add the following to ~/.cursor/mcp.json:
"mcp-server-get-weather": { "command": "node", "args": ["<path-to-your-project>/dist/index.js"] }
What transport protocol does the server use?
The server uses stdio transport, as specified in the project structure.
Does Weather MCP Server require any authentication or API keys?
No authentication or API keys are mentioned in the documentation.