MCP Server - FastAPI on Azure App Service

by madebygps

309 downloads
Not rated
GitHub

About

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.

Details

Author
madebygps
Downloads
309
Categories
Developer Tools

- 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

Setting up with Highlight

This MCP is not yet compatible with Highlight’s one-click setup. However, you can still use it with Highlight by following these steps:

  1. Download and install Highlight from highlightai.com/download
  2. Navigate to the plugins tab and select "Add Custom Plugin"
  3. Configure the plugin with the settings below
    Plugin Name MCP Server - FastAPI on Azure App Service
    Command (node, npx, python, etc.)

    Please refer to the README for specific instructions on how to obtain API keys or other required environment variables.

  4. Enable "Start Automatically" if you want the plugin to start when Highlight launches

From the repository

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.

Claude Desktop / Cursor

Paste into your MCP client config file to install this server.

{
    "mcpServers": {
        "mcp server - fastapi on azure app service": {
            "remote-mcp-webapp-python": {
                "command": "uv",
                "args": [
                    "venv"
                ]
            }
        }
    }
}

McpServers

{
    "remote-mcp-webapp-python": {
        "command": "uv",
        "args": [
            "venv"
        ]
    }
}

MCP Server - FastAPI on Azure App Service

This is a Python implementation of the MCP (Model Context Protocol) server using FastAPI and deployed to Azure App Service, providing multiplication, temperature conversion, and weather tools.

Features

- Multiplication Tool: Multiply two numbers
- Temperature Converter Tools: Convert between Celsius and Fahrenheit
- Weather Tools: Get US weather alerts by state and forecasts by coordinates

Local Development

Prerequisites

- Python 3.11+
- uv for faster dependency management and virtual environment creation
- Node.js & npm (for running MCP Inspector)

Setup and Running

1. Create a virtual environment:

```bash
cd src
uv venv

No reviews yet — be the first

Sign in to leave a review

Use Google, GitHub, or an email account so ratings stay tied to real people.

Email sign in

No reviews posted yet.