Skip to main content
Glama
semdin

MCP Weather

by semdin

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

Related MCP server: MCP Weather Server

Project Structure

.
├── package.json
├── tsconfig.json
├── src/
│   └── index.ts
├── claude_desktop_config.json

Installation

Requirements

Setup

  1. Clone the repository:

    git clone <repository-url>
    cd mcp-weather
  2. Install dependencies:

    npm install
  3. Create a .env file and fill it as follows:

    WEATHER_API_URL=https://api.weatherapi.com/v1/current.json
    WEATHER_API_KEY=<your_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 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

F
license - not found
-
quality - not tested
D
maintenance

Maintenance

Maintainers
Response time
Release cycle
Releases (12mo)
Commit activity

Resources

Unclaimed servers have limited discoverability.

Looking for Admin?

If you are the server author, to access and configure the admin panel.

Related MCP Servers

  • A
    license
    B
    quality
    D
    maintenance
    A simple Model Context Protocol server that provides real-time weather data to AI agents like GitHub Copilot, allowing users to get current weather information for any city through natural language queries.
    Last updated
    2
    21
    97
    MIT
  • F
    license
    -
    quality
    D
    maintenance
    A Model Context Protocol (MCP) server built with the mcp-framework to provide weather-related tools and data to AI clients. It enables integration of weather capabilities and custom tools into the MCP ecosystem for use with platforms like Claude Desktop.
    Last updated
    13
  • A
    license
    -
    quality
    D
    maintenance
    A local Model Context Protocol (MCP) server that exposes custom tools to Claude Desktop, enabling direct interaction with your local environment. It provides a framework for building and integrating custom TypeScript tools into the Claude interface.
    Last updated
    8
    MIT

View all related MCP servers

Related MCP Connectors

  • A comprehensive Model Context Protocol (MCP) server that enables AI assistants to interact with yo…

  • A Model Context Protocol server for Wix AI tools

  • Hosted MCP server connecting claude.ai, ChatGPT and other AI apps to your own computer

View all MCP Connectors

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/semdin/mcp-weather'

If you have feedback or need assistance with the MCP directory API, please join our Discord server