Skip to main content
Glama
sajonaro

weather-server

by sajonaro
README.md
# TL/DR;

This project is a hello world MCP, 
And is based on [this quickstart tutorial](https://modelcontextprotocol.io/quickstart/server)


## How to deploy our mcp server to use it with mcp client [e.g. claude desktop](https://claude.ai/download)

**Step 1**: build and run docker image
```bash
$ docker build -t weather-server .
$ docker run -d --name weather-mcp -i --restart unless-stopped weather-server

#or simply run 
$./start.sh
```
**Step 2**: put WSl bridge (i.e. a script to be invoked by client from windows) to the known location
```bash
# /usr/local/bin/wsl-bridge-weather-mcp.sh becomes the command to be invoked by mcp client
$ cp wsl-bridge-weather-mcp.sh  /usr/local/bin/
```
**Step 3**: update client's config to point to wsl bridge above 

e.g. 
 - locate claude desktop's config: %APPDATA%\Claude\claude_desktop_config.json 

 - update mcpServers section with new record: **my-weather-mcp-server**
    ```json
    {
    "mcpServers": {
        "my-weather-mcp-server": {
        "command": "wsl",
        "args": ["/usr/local/bin/wsl-bridge-weather-mcp.sh"]
        }
    }
    }
    ```

**Step 4**: you can now use the tools (i.e. methods marked by @mcp.tool()) from **my-weather-mcp-server**  in Claude