MCP.so
Sign In
Servers

MCP Server - FastAPI on Azure App Service

@madebygps

FastAPI MCP server on Azure App Service

Overview

What is MCP Server - FastAPI on Azure App Service?

MCP Server - FastAPI on Azure App Service is a Python implementation of the Model Context Protocol (MCP) server built with FastAPI. It provides multiplication, temperature conversion, and US weather alert/forecast tools, and is designed for deployment to Azure App Service.

How to use MCP Server - FastAPI on Azure App Service?

Run locally: create a virtual environment (uv venv), activate it, install dependencies (uv pip install -r requirements.txt), then start with uvicorn main:app --reload. Deploy to Azure using azd up from the project root. The MCP endpoint is at /mcp-server/mcp using streamable-http transport; no authentication is currently required.

Key features of MCP Server - FastAPI on Azure App Service

  • Multiplication tool: multiply two numbers
  • Temperature converter tools: Celsius to Fahrenheit and Fahrenheit to Celsius
  • Weather tools: US alerts by state and forecasts by coordinates
  • Deploys to Azure App Service via Azure Developer CLI
  • Streamable-http MCP transport on a FastAPI backend

Use cases of MCP Server - FastAPI on Azure App Service

  • Integrate an MCP client to perform arithmetic operations
  • Enable temperature unit conversions in AI assistant workflows
  • Provide real-time US weather alerts and forecasts to language models
  • Host a production-ready MCP server on Azure with minimal configuration

FAQ from MCP Server - FastAPI on Azure App Service

What tools are available in MCP Server - FastAPI on Azure App Service?

The server exposes five tools: multiply, celsius_to_fahrenheit, fahrenheit_to_celsius, get_alerts, and get_forecast.

How do I run MCP Server - FastAPI on Azure App Service locally?

You need Python 3.11+, uv, and optionally Node.js for the MCP Inspector. Create a virtual environment, install dependencies from requirements.txt, and run uvicorn main:app --reload.

How do I deploy MCP Server - FastAPI on Azure App Service?

Ensure you have the Azure CLI (az) and Azure Developer CLI (azd) installed and authenticated. Run azd up from the project root to create resources and deploy.

How do I connect to the MCP server after deployment?

Use streamable-http transport with the URL https://<your-app>.azurewebsites.net/mcp-server/mcp. No authentication is currently needed.

Are there security considerations for MCP Server - FastAPI on Azure App Service?

Yes. The current implementation has no authentication (public endpoints), CORS is wide open, and production deployments should implement API key or OAuth2 authentication and validate all user inputs.

Tags

More from Developer Tools