🌤️ Weather Microservice with MCP + UV
@hightower9
Overview
What is 🌤️ Weather Microservice with MCP + UV?
A lightweight, MCP-powered weather API service that uses uv for Python dependency management and Docker for containerized deployment. It is built for seamless local development, Claude Desktop integration, and scalable deployment.
How to use 🌤️ Weather Microservice with MCP + UV?
Run the server in development mode with hot reload using uv run mcp dev server.py. For Claude Desktop integration, install the server with uv run mcp install server.py. For production, build and run the Docker image with docker build -t weather-service . and docker run --env-file .env -p 6274:6274 weather-service.
Key features of 🌤️ Weather Microservice with MCP + UV
- Fast local development with live reload using
uvandmcp - Dockerized for production or staging environments
- Claude Desktop integration‑ready
- Loads secrets securely from
.envor environment variables
Use cases of 🌤️ Weather Microservice with MCP + UV
- Rapid prototyping of a weather API with hot‑reload support
- Integration with Claude Desktop for conversational weather queries
- Containerized deployment to cloud or on‑premises infrastructure
- Local development with dependency management via
uv
FAQ from 🌤️ Weather Microservice with MCP + UV
What dependencies are required to run this server?
The server requires Python and the mcp package, managed via uv. Additional dependencies like pandas and numpy can be added on the fly with --with flags.
How do I set environment variables for the server?
Create a .env file in the project root with variables such as API_KEY and DB_URL, or inject them via the -v flag when installing to Claude Desktop.
How do I run the server in development mode?
Use uv run mcp dev server.py to start with hot reload. Optionally add --with pandas --with numpy to include extra dependencies.
Can I deploy this server in a container?
Yes, build the Docker image with docker build -t weather-service . and run it with docker run --env-file .env -p 6274:6274 weather-service.