Weather Microservice logo

Weather Microservice

by hightower9

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

View on GitHub

Last updated: N/A

What is Weather Microservice?

This is a lightweight weather API service built with MCP (Microservice Control Plane) and using uv for Python dependency management. It's designed to be easily containerized with Docker and integrated with Claude Desktop.

How to use Weather Microservice?

The server can be run in development mode with hot reloading using uv run mcp dev server.py. It can be installed to Claude Desktop using uv run mcp install server.py. For production, build a Docker image and run the container, ensuring to set environment variables.

Key features of Weather Microservice

  • Fast local development with live reload

  • Dockerized for production

  • Claude Desktop integration-ready

  • Securely loads secrets from .env or environment variables

Use cases of Weather Microservice

  • Developing a weather API

  • Integrating weather data into Claude Desktop

  • Deploying a scalable weather service

  • Local development and testing of microservices

FAQ from Weather Microservice

How do I run the server in development mode?

Use the command uv run mcp dev server.py.

How do I install the server to Claude Desktop?

Use the command uv run mcp install server.py.

How do I build a Docker image?

Use the command docker build -t weather-service ..

How do I run the Docker container?

Use the command docker run --env-file .env -p 6274:6274 weather-service.

How do I manage dependencies?

Use uv pip install and uv sync to manage and sync dependencies.