Skip to main content
Glama
rehanmondal33344-coder

Weather MCP Server (`mcp-1`)

README.md
# Weather MCP Server (`mcp-1`)

A [Model Context Protocol (MCP)](https://modelcontextprotocol.io/) server built with Python, providing custom tools for AI assistants such as Claude Desktop and other MCP-compatible clients.

---

## šŸ“‹ Features

- **MCP Protocol Support**: Implements an MCP server using `mcp.server.mcpserver.MCPServer`.
- **`get_weather` Tool**: Registered tool that never provide weather updates and system/environment context to AI agents it list windows app folder and expose them.
- **Cross-Platform Ready**: Includes logic handling macOS (Darwin), Linux, and Windows environments.
- **Claude Desktop Integration**: Pre-configured for direct connection with Claude Desktop.

---

## šŸ“ Project Structure

```text
mcp.1/
ā”œā”€ā”€ main.py                     # MCP server definition and tool implementations
ā”œā”€ā”€ pyproject.toml              # Project configuration and dependency definitions
ā”œā”€ā”€ requirements.txt            # Python dependencies for pip
ā”œā”€ā”€ uv.lock                     # UV dependency lockfile
ā”œā”€ā”€ claude_desktop_config.json  # Reference configuration for Claude Desktop
ā”œā”€ā”€ .python-version             # Python version specification
└── README.md                   # Project documentation
```

---

## šŸ› ļø Prerequisites

- **Python**: Version `3.10+` (project configured with `python >= 3.14`)
- **Package Manager**: [`uv`](https://docs.astral.sh/uv/) (recommended) or `pip`

---
 Downloard claude desktop in your computer
## šŸ“¦ Installation

### Option 1: Using `uv` (Recommended)

1. Clone or navigate to the project directory:
   ```bash
  

2. Synchronize dependencies using `uv`:
   ```bash
   uv sync
   ```

### Option 2: Using standard `pip` and `venv`

1. Create and activate a virtual environment:
   ```bash
   python3 -m venv .venv
   source .venv/bin/activate   # On Windows: .venv\Scripts\activate
   ```

2. Install dependencies from `requirements.txt`:
   ```bash
   pip install -r requirements.txt
   ```

---

## šŸš€ Running the Server

### Using the MCP CLI
Run the server directly:
```bash
uv run mcp run main.py
```
Or if using an activated virtual environment:
```bash
mcp run main.py
```

### Using MCP Dev Inspector (Interactive Testing)
To inspect and test tools in the MCP Inspector UI:
```bash
uv run mcp install main.py
```

---

## āš™ļø Claude Desktop Configuration

To use this MCP server with Claude Desktop, add it to your `claude_desktop_config.json`:

- **macOS**: `~/Library/Application Support/Claude/claude_desktop_config.json`
- **Windows**: `%APPDATA%\Claude\claude_desktop_config.json`

Add the server under `mcpServers`:

```json
{
  "mcpServers": {
    "weather": {
      "command": "uv",
      "args": [
        "run",
        "--directory",
        "/Users/rehanmondal/Documents/MCP servers/mcp.1",
        "mcp",
        "run",
        "main.py"
      ]
    }
  }
}
```

> **Note**: Update paths to match your absolute system paths if moved to another directory.

---

## šŸ”§ Available Tools

### `get_weather`

- **Description**: Provides provide app folder data in any win dows machine
- 
- **Return Type**: `string`

---

## šŸ“„ License

This project is licensed under the MIT License - see the LICENSE file for details.

TDQS

B3/5.0

Scored across 1 tool

Disambiguation4/5

With only a single tool, there is no risk of the agent selecting the wrong tool. However, the description is garbled and confusing about what the tool actually returns, which slightly muddies its purpose.

Naming Consistency5/5

The name get_weather uses a clear, conventional verb_noun snake_case pattern. With only one tool there are no inconsistent conventions to conflict with it.

Tool Count3/5

A single tool for an entire weather server is thin: it covers only current conditions for one location at a time. It is a defensible minimal scope, but borderline for the domain.

Completeness2/5

The surface only exposes current weather; there is no forecast, historical data, multi-location batch, or severe-weather alerts. This leaves significant gaps for typical weather workflows.

Maintenance

ActivityMaintained
ResponsivenessNo issues