nitish-2030/mcp-weather-server
A simple MCP (Model Context Protocol) server that connects Claude AI to OpenWeatherMap API — get real-time weather for any city, built with Node.js.
Platform-specific configuration:
{
"mcpServers": {
"mcp-weather-server": {
"command": "npx",
"args": [
"-y",
"mcp-weather-server"
]
}
}
}Add the config above to .claude/settings.json under the mcpServers key.
\# MCP Weather Server 🌤️
A simple MCP (Model Context Protocol) server that connects
Claude AI to OpenWeatherMap API.
Ask Claude anything like:
\- "Delhi mein aaj kaisa mausam hai?"
\- "What's the weather in Tokyo?"
Claude will use THIS server to fetch real-time data!
\## Tech Stack
\- Node.js
\- Anthropic MCP SDK
\- OpenWeatherMap API
\## Setup
\### 1. Clone the repo
git clone https://github.com/TUMHARA\_USERNAME/mcp-weather-server
cd mcp-weather-server
\### 2. Install dependencies
npm install
\### 3. Get API Key
\- Go to openweathermap.org
\- Create free account
\- Copy your API key
\### 4. Add API Key
Open weather.js and replace:
const API\_KEY = "YOUR\_API\_KEY\_HERE";
\### 5. Connect to Claude Desktop
Add this to your claude\_desktop\_config.json:
{
  "mcpServers": {
  "weather-server": {
  "command": "C:\\\\Program Files\\\\nodejs\\\\node.exe",
  "args": \["C:\\\\YOUR\_PATH\\\\mcp-weather\\\\weather.js"]
  }
  }
}
\### 6. Restart Claude Desktop
Ask Claude: "Delhi ka weather kya hai?" 🌤️
\## What I Learned
\- MCP Architecture — Host, Client, Server
\- STDIO Transport layer
\- JSON-RPC communication
\- Tool definition \& execution flow
\## License
MIT
Loading reviews...