mcp-weather
MCP Weather
Documentation
MCP Weather - Claude Desktop Integration
This project is an example MCP (Model Context Protocol) server designed for use with the Claude Desktop application. It is built to work seamlessly with Claude Desktop.
Features
- TypeScript-based MCP server
- Weather query via OpenWeather API
- Easy integration with Claude Desktop
Project Structure
.
├── package.json
├── tsconfig.json
├── src/
│ └── index.ts
├── claude_desktop_config.jsonInstallation
Requirements
- Node.js (v16 or higher)
- npm
- Claude Desktop (https://desktop.anthropic.com/)
Setup
1. Clone the repository:
git clone
cd mcp-weather2. Install dependencies:
npm install3. Create a `.env` file and fill it as follows:
WEATHER_API_URL=https://api.weatherapi.com/v1/current.json
WEATHER_API_KEY=Claude Desktop Integration
1. In Claude Desktop, go to `File -> Settings -> Developer -> Edit Config`.
2. Add a block similar to the example below to the config file (edit the file paths to match your own system):
{
"mcpServers": {
"weather": {
"command": "npx",
"args": ["tsx", "C:/your/path/mcp-weather/src/index.ts"],
"cwd": "C:/your/path/mcp-weather"
}
}
}> Note: Replace `C:/your/path/` with the actual path to your project on your computer.
3. Save the settings and restart Claude Desktop.
.env File and Path Setting
In `src/index.ts`, the path to the `.env` file is set to the project root by default:
import dotenv from "dotenv";
dotenv.config({
// Path to your .env file. Edit as needed, e.g.: path: "C:/your/path/.env"
path: ".env", // By default, uses the .env file in the project root
});If your `.env` file is in a different directory, update the `path` parameter accordingly.
Usage
To start the project:
npm startOr to run the main file directly:
npx ts-node src/index.tsBuild
To compile the TypeScript code:
npm run buildContributing
Contributions are welcome! Please open issues or submit pull requests for improvements or bug fixes.
License
MIT License
Frequently asked questions
What is mcp-weather?
mcp-weather is MCP Weather
How do I install mcp-weather?
Open the GitHub repository and follow its README. Most MCP servers are added to your client's MCP config, then called by your agent.
Is mcp-weather open source?
Yes — it is hosted on GitHub at https://github.com/semdin/mcp-weather.
Related MCP tools
Model Context Protocol Servers
The Open-Source Multimodal AI Agent Stack: Connecting Cutting-Edge AI Models and Agent Infra
A MCP for Claude Desktop / Claude Code / Windsurf / Cursor to build n8n workflows for you
MCP server to provide Figma layout information to AI coding agents like Cursor
The world's best AI personal assistant for email. Open source app to help you reach inbox zero fast.
Instant is the best backend for AI-coded apps. You get auth, permissions, storage, presence, and streams — everything you need to ship apps your users will love.
Run your own MCP server? See who uses it and what to fix.
Measure it with TrackMCP