mcpField
🌀
🌀️ Weather Microservice with MCP + UV

🌀️ Weather Microservice with MCP + UV

Local
github.com/hightower9Media & Design0Updated 78w ago

About 🌀️ Weather Microservice with MCP + UV

This project is a Python weather API service set up for MCP, using `uv` for dependency management and Docker for deployment. It is intended for local development and Claude Desktop integration, with secrets supplied through environment variables or `.env`.

Key features

  1. 01MCP server development with live reload
  2. 02Docker container deployment
  3. 03Claude Desktop integration setup
  4. 04Secrets from `.env` or environment variables

Use cases

  1. 01Develop an MCP service with live reload
  2. 02Run the service in a Docker container
  3. 03Connect the service to Claude Desktop

MCP support

It presents the weather API as an MCP server for MCP clients, including Claude Desktop. The README describes server development, installation, and execution, but does not specify the weather tools exposed.

Configuration

Local server config is the same for every client. Copy it into your client’s MCP config file.

No install method listed yet

We haven’t collected a package or remote endpoint for this server. Follow the instructions in the project README.

Repository

Tools

No tool list yet

Local servers expose tools only once running on your machine, and the maintainer has not provided a tool list.

Details

From the project README

🌀️ Weather Microservice with MCP + UV

A lightweight, MCP-powered weather API service using uv for Python dependency management and Docker for containerized deployment. Built for seamless local development, Claude Desktop integration, and scalable deployment.


πŸš€ Features

  • πŸ§ͺ Fast local dev with live reload using uv and mcp
  • 🐳 Dockerized for production or staging environments
  • 🧠 Claude Desktop integration-ready
  • πŸ” Loads secrets securely from .env or environment variables

βš™οΈ Running Your Server

πŸ§ͺ Development Mode (with MCP Inspector)

Start your server in development mode with hot reloading:

uv run mcp dev server.py

Add dependencies on-the-fly:

uv run mcp dev server.py --with pandas --with numpy

Mount your local code as editable:

uv run mcp dev server.py --with-editable .

🧠 Claude Desktop Integration

Install your server to Claude Desktop:

uv run mcp install server.py

Custom name:

uv run mcp install server.py --name "My Analytics Server"

Inject environment variables:

uv run mcp install server.py -v API_KEY=abc123 -v DB_URL=postgres://...
uv run mcp install server.py -f .env

πŸ”§ Direct Execution

For more control or advanced deployments:

from mcp.server.fastmcp import FastMCP

mcp = FastMCP("My App")

if __name__ == "__main__":
    mcp.run()

Run it manually:

uv run python server.py
# or
uv run mcp run server.py

🐳 Docker Support

πŸ”¨ Build Image
docker build -t weather-service .
▢️ Run Container
docker run --env-file .env -p 6274:6274 weather-service

πŸ“ Project Structure

.
β”œβ”€β”€ server.py
β”œβ”€β”€ .env
β”œβ”€β”€ pyproject.toml
β”œβ”€β”€ uv.lock
β”œβ”€β”€ Dockerfile
└── README.md

πŸ”’ Environment Variables

Create a .env file:

API_KEY=your_api_key_here
DB_URL=your_database_url_here

πŸ“¦ Dependency Management

Use uv to manage and sync dependencies:

uv pip install mcp
uv pip install pandas numpy
uv sync  # sync dependencies based on uv.lock

πŸ“ƒ License

MIT License – use freely, modify responsibly.

Comments

Markdown supported

New to MCP?

From what the protocol is to installing your first server, these answers cover most first questions.

An open protocol that defines how AI applications connect to external tools and data in a uniform way. Clients talk to the model; MCP servers provide tools, resources and prompt templates. They exchange standard messages, so one server can be reused by many clients.