MCP Server - FastAPI on Azure App Service

by learntocloud

195 downloads
Not rated
GitHub

Description

# 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. ## 🎯 For CTF Users (Quick Start) ### Get…

About

# 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. ## 🎯 For CTF Users (Quick Start) ### Get Your API Key Register for an API key with…

Details

Author
learntocloud
Downloads
195
Categories
Developer Tools

- Multiplication, Celsius/Fahrenheit conversion, and US weather alerts/forecast tools
- Public API key registration with rate limiting (5 keys per email per 24 hours)
- Admin script (manage_api_keys.py) to list, activate, deactivate, and create keys
- Deployment to Azure App Service via Azure Developer CLI (azd up)
- Local development with fallback MCP_AUTH_TOKEN authentication
- Rate limiting: 1000 API requests per hour per key

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

Register for an API key via the public /register endpoint, then include the key in the Authorization: Bearer sk_... header when calling tools at /mcp-server/mcp/. For local development, set the MCP_AUTH_TOKEN environment variable to bypass Azure Storage authentication.

Claude Desktop / Cursor

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

{
    "mcpServers": {
        "mcp server - fastapi on azure app service": {
            "mcp-server-learntocloud": {
                "command": "python",
                "args": [
                    "manage_api_keys.py",
                    "list"
                ]
            }
        }
    }
}

McpServers

{
    "mcp-server-learntocloud": {
        "command": "python",
        "args": [
            "manage_api_keys.py",
            "list"
        ]
    }
}

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.

🎯 For CTF Users (Quick Start)

Get Your API Key

Register for an API key with one simple command:

curl -X POST https://your-mcp-server.azurewebsites.net/register \
  -H "Content-Type: application/json" \
  -d '{
    "email": "your@email.com",
    "project_name": "My CTF Solution",
    "github_repo": "yourusername/your-ctf-fork"
  }'

Response:

{
"api_key": "sk_a1b2c3d4e5f6g7h8i9j0k1l2m3n4o5p6",
"message": "API key created successfully! Save this key securely - it won't be shown again.",
"rate_limit": "1000 requests/hour",
"created": "2024-01-15T10:30:00Z"
}

⚠️ Important: Save your API key securely! It won't be shown again.

Use Your API Key

```bash

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.