Weather MCP Server
by aman-panjwani
This project deploys a cloud-based Model Context Protocol (MCP) server that delivers real-time weather data using the U.S. National Weather Service API. It's built with FastAPI, supports Server-Sent Events (SSE), and uses secure API key authentication.
Last updated: N/A
What is Weather MCP Server?
This is a ready-to-deploy Weather MCP server that provides real-time weather data from the U.S. National Weather Service API. It uses FastAPI to expose the data via Server-Sent Events (SSE) and secures access with API key authentication.
How to use Weather MCP Server?
To use this server, first clone the repository and configure your API key. Then, deploy the server to Azure Container Apps using the provided Azure CLI command. Finally, connect to the server from Visual Studio Code using the MCP extension and the provided configuration. You can then query the server for weather data using GitHub Copilot Chat in Agent mode.
Key features of Weather MCP Server
Real-time weather data
U.S. National Weather Service API integration
FastAPI framework
Server-Sent Events (SSE) for real-time communication
API key authentication
Azure Container Apps deployment
Visual Studio Code integration
GitHub Copilot Chat integration
Use cases of Weather MCP Server
Building weather-aware applications
Integrating real-time weather data into agents
Providing weather forecasts in chat applications
Creating custom weather data services
Using weather data in automated workflows
FAQ from Weather MCP Server
What is MCP?
What is MCP?
MCP stands for Model Context Protocol. It’s a protocol for connecting tools and services to large language models and other AI agents.
What API key do I need?
What API key do I need?
You need an API key to access the server. You can set it as an environment variable named API_KEYS.
Where do I get the API key?
Where do I get the API key?
The project uses the U.S. National Weather Service API. You may need to obtain an API key from them if required by their service.
How do I deploy to Azure Container Apps?
How do I deploy to Azure Container Apps?
Use the provided Azure CLI command to build and deploy the server to Azure Container Apps. Make sure you have the Azure CLI installed and configured.
How do I connect to the server from VS Code?
How do I connect to the server from VS Code?
Create a .vscode/mcp.json
file with the provided configuration and open the MCP extension sidebar in VS Code. Click Start next to your server entry and enter the API key when prompted.