- Explore MCP Servers
- remote-mcp-webapp-python
Remote Mcp Webapp Python
What is Remote Mcp Webapp Python
remote-mcp-webapp-python is a Model Context Protocol (MCP) server built with FastAPI that provides weather information using the National Weather Service API. It features streamable HTTP transport for real-time communication with MCP Inspector.
Use cases
Use cases include retrieving weather alerts for specific states, obtaining 5-day weather forecasts for locations, and integrating weather data into other applications or services.
How to use
To use remote-mcp-webapp-python, you can send HTTP POST requests to the provided MCP endpoint with JSON-RPC formatted data. For example, you can retrieve weather alerts for a specific state or get a 5-day weather forecast by specifying latitude and longitude.
Key features
Key features include: FastAPI framework for building APIs, full compliance with JSON-RPC 2.0 MCP protocol, streamable HTTP transport for real-time communication, weather tools for alerts and forecasts, and a properly isolated Python environment.
Where to use
remote-mcp-webapp-python can be used in various fields such as weather forecasting applications, environmental monitoring systems, and any application that requires real-time weather data.
Clients Supporting MCP
The following are the main client software that supports the Model Context Protocol. Click the link to visit the official website for more information.
Overview
What is Remote Mcp Webapp Python
remote-mcp-webapp-python is a Model Context Protocol (MCP) server built with FastAPI that provides weather information using the National Weather Service API. It features streamable HTTP transport for real-time communication with MCP Inspector.
Use cases
Use cases include retrieving weather alerts for specific states, obtaining 5-day weather forecasts for locations, and integrating weather data into other applications or services.
How to use
To use remote-mcp-webapp-python, you can send HTTP POST requests to the provided MCP endpoint with JSON-RPC formatted data. For example, you can retrieve weather alerts for a specific state or get a 5-day weather forecast by specifying latitude and longitude.
Key features
Key features include: FastAPI framework for building APIs, full compliance with JSON-RPC 2.0 MCP protocol, streamable HTTP transport for real-time communication, weather tools for alerts and forecasts, and a properly isolated Python environment.
Where to use
remote-mcp-webapp-python can be used in various fields such as weather forecasting applications, environmental monitoring systems, and any application that requires real-time weather data.
Clients Supporting MCP
The following are the main client software that supports the Model Context Protocol. Click the link to visit the official website for more information.
Content
Python MCP Weather Server with Azure Deployment
A Model Context Protocol (MCP) server built with FastAPI and Python that provides weather information using the National Weather Service API. Ready for deployment to Azure App Service with Azure Developer CLI (azd).
🌟 Features
- FastAPI Framework: Modern, fast web framework for building APIs
- MCP Protocol Compliance: Full support for JSON-RPC 2.0 MCP protocol
- HTTP Transport: HTTP-based communication for web connectivity
- Weather Tools:
get_alerts: Get weather alerts for any US stateget_forecast: Get detailed weather forecast for any location
- Azure Ready: Pre-configured for Azure App Service deployment
- Web Test Interface: Built-in HTML interface for testing
- National Weather Service API: Real-time weather data from official US government source
💻 Local Development
Prerequisites
- Python 3.8+
- pip (Python package installer)
Setup & Run
-
Clone and install dependencies:
git clone <your-repo-url> cd remote-mcp-webapp-python python -m venv venv .\venv\Scripts\Activate.ps1 # Windows # source venv/bin/activate # macOS/Linux pip install -r requirements.txt -
Start the development server:
.\start_server.ps1 # Windows # or manually: uvicorn main:app --host 0.0.0.0 --port 8000 --reload -
Access the server:
- Server: http://localhost:8000/
- Health Check: http://localhost:8000/health
- Test Interface: http://localhost:8000/test
🔌 Connect to the Local MCP Server
Using VS Code - Copilot Agent Mode
-
Add MCP Server from command palette and add the URL to your running server’s HTTP endpoint:
http://localhost:8000 -
List MCP Servers from command palette and start the server
-
In Copilot chat agent mode, enter a prompt to trigger the tool:
What's the weather forecast for San Francisco? -
When prompted to run the tool, consent by clicking Continue
Using MCP Inspector
-
In a new terminal window, install and run MCP Inspector:
npx @modelcontextprotocol/inspector -
CTRL+click the URL displayed by the app (e.g. http://localhost:5173/#resources)
-
Set the transport type to
HTTP -
Set the URL to your running server’s HTTP endpoint and Connect:
http://localhost:8000 -
List Tools, click on a tool, and Run Tool
🚀 Quick Deploy to Azure
Prerequisites
- Azure CLI
- Azure Developer CLI (azd)
- Active Azure subscription
Deploy in 3 Commands
# 1. Login to Azure
azd auth login
# 2. Initialize the project
azd init
# 3. Deploy to Azure
azd up
After deployment, your MCP server will be available at:
- Health Check:
https://<your-app>.azurewebsites.net/health - MCP Capabilities:
https://<your-app>.azurewebsites.net/mcp/capabilities - Test Interface:
https://<your-app>.azurewebsites.net/test
🔌 Connect to the Remote MCP Server
Follow the same guidance as above, but use your App Service URL instead.
🧪 Testing
Visit /test endpoint for an interactive testing interface.
🌦️ Data Source
This server uses the National Weather Service (NWS) API:
- Real-time weather alerts and warnings
- Detailed weather forecasts
- Official US government weather data
- No API key required
- High reliability and accuracy
Dev Tools Supporting MCP
The following are the main code editors that support the Model Context Protocol. Click the link to visit the official website for more information.










