weather-mcp-server
A lightweight, MCP-powered weather API service using `uv` for Python dependency management and Docker for containerized deployment.
The Weather Microservice with MCP + UV is designed to provide a seamless and efficient weather API service. It leverages the Model Context Protocol (MCP) for enhanced integration and development capabilities, while utilizing uv
for managing Python dependencies. The service is containerized using Docker, making it suitable for both local development and scalable production deployments. It is also designed to integrate smoothly with Claude Desktop, offering a robust solution for developers looking to build and deploy weather-related applications. The service supports secure loading of secrets from environment variables or .env
files, ensuring that sensitive information is handled appropriately.
Features
- {'name': 'Fast local development', 'description': 'Utilizes
uv
andmcp
for live reload and efficient local development.'} - {'name': 'Dockerized deployment', 'description': 'Supports containerized deployment for production or staging environments.'}
- {'name': 'Claude Desktop integration', 'description': 'Ready for integration with Claude Desktop for enhanced functionality.'}
- {'name': 'Secure secret management', 'description': 'Loads secrets securely from
.env
or environment variables.'}
Usage with Different Platforms
Development Mode
bash
uv run mcp dev server.py
Add dependencies
bash
uv run mcp dev server.py --with pandas --with numpy
Mount local code
bash
uv run mcp dev server.py --with-editable .
Claude Desktop Integration
bash
uv run mcp install server.py
Custom name
bash
uv run mcp install server.py --name "My Analytics Server"
Inject environment variables
bash
uv run mcp install server.py -v API_KEY=abc123 -v DB_URL=postgres://...
uv run mcp install server.py -f .env
Direct Execution
python
from mcp.server.fastmcp import FastMCP
mcp = FastMCP("My App")
if __name__ == "__main__":
mcp.run()
Run manually
bash
uv run python server.py
# or
uv run mcp run server.py
Build Docker Image
bash
docker build -t weather-service .
Run Docker Container
bash
docker run --env-file .env -p 6274:6274 weather-service
Related MCP Servers
View all cloud_platforms servers →edgeone-pages-mcp
by TencentEdgeOne
An MCP service for deploying HTML content, folder, and zip file to EdgeOne Pages and obtaining a publicly accessible URL.
HubSpot
by PipedreamHQ
Pipedream MCP Server is a reference implementation that allows you to run your own MCP server for over 2,500 apps and APIs, powered by Pipedream Connect.
Nx MCP Server
by nrwl
A Model Context Protocol server implementation for Nx, providing LLMs with deep access to monorepo structures.
mcp-atlassian
by sooperset
Model Context Protocol (MCP) server for Atlassian products (Confluence and Jira). This integration supports both Confluence & Jira Cloud and Server/Data Center deployments.
mcp-grafana
by grafana
A Model Context Protocol (MCP) server for Grafana providing access to your Grafana instance and its ecosystem.
firecrawl-mcp-server
by mendableai
Firecrawl MCP Server is a Model Context Protocol server implementation that integrates with Firecrawl for web scraping capabilities.
Figma-Context-MCP
by GLips
Framelink Figma MCP Server allows AI-powered coding tools to access Figma design data, enhancing design implementation accuracy.