Skip to main content
Glama

Set up your environment

  1. Install uv and set up your Python project environment:

    curl -LsSf https://astral.sh/uv/install.sh | sh
  2. Create and set up your Python project:

    # Create a new directory for our project
    uv init weather
    cd weather
    
    # Create virtual environment and activate it
    uv venv
    source .venv/bin/activate
    
    # Install dependencies
    uv add "mcp[cli]" httpx
    
    # Create our server file
    touch weather.py

Related MCP server: openweather-mcp

Testing with claude desctop

Add mcpServers config to

~/Library/Application\ Support/Claude/claude_desktop_config.json

{
  "mcpServers": {
    "weather": {
      "command": " /ABSOLUTE/PATH/TO/ uv",
      "args": [
        "--directory",
        "/ABSOLUTE/PATH/TO/PARENT/FOLDER/weatherLinnanmaa",
        "run",
        "weather.py"
      ]
    }
  }
}

Save the file, and restart Claude for Desktop.

VS-CodeAndgithubCo pilot

Testing from terminal MCP-server

  1. Activate virtual enviroment it source .venv/bin/activate

    source .venv/bin/activate
  2. Käynnistä MCP-serveri:

    uv run weatherLinnanmaa.py
  3. Testaa MCP-clientia:

    python3 test_mcp_client.py

Related MCP Connectors

Related MCP Servers