MCP Weather
A server for fetching weather information using the OpenWeather API.
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.json
Installation
Requirements
- Node.js (v16 or higher)
- npm
- Claude Desktop (https://desktop.anthropic.com/)
Setup
- Clone the repository:
git clone <repository-url> cd mcp-weather - Install dependencies:
npm install - Create a
.envfile and fill it as follows:WEATHER_API_URL=https://api.weatherapi.com/v1/current.json WEATHER_API_KEY=<your_API_KEY>
Claude Desktop Integration
-
In Claude Desktop, go to
File -> Settings -> Developer -> Edit Config. -
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. -
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 start
Or to run the main file directly:
npx ts-node src/index.ts
Build
To compile the TypeScript code:
npm run build
Contributing
Contributions are welcome! Please open issues or submit pull requests for improvements or bug fixes.
License
MIT License
Server Terkait
Portainer MCP Docker
Dockerized Portainer MCP Server (stdio/streamable HTTP) for easy deployment alongside Portainer
KiotViet SDK
Access the KiotViet API, a popular sales and inventory management platform. Manage products, categories, customers, and orders with automatic authentication.
soundside.ai
MCP-native AI media generation with x402 pay-per-call. Image, video, audio, and music from 6 providers — composable via resource IDs. USDC on Base.
GPT-SoVITS MCP Server
An MCP server for GPT-SoVITS, providing text-to-speech synthesis, voice cloning, and multi-language support.
OpenDota MCP Server
Access real-time Dota 2 statistics, match data, and player information from the OpenDota API.
Google Cloud Run
Official MCP Server to deploy to Google Cloud Run.
Alibaba Cloud OPS
A server for managing Alibaba Cloud services, requiring an Access Key ID and Secret for authentication.
Remote MCP Server on Cloudflare
A remote MCP server running on Cloudflare Workers with OAuth login support.
middleBrick
Discover vulnerabilities of your APIs in less than a minute.
Cloudglue
Connects Cloudglue to AI assistants, turning video collections into structured data for LLMs. Requires a Cloudglue API Key.