FastAPI Container App

v1.0.0Cloud Servicesstable

This repo contains a remote MCP server implemented as a containerapp in Azure

mcp-server-fastapi-containerappmcpai-integration
Share:
9
Stars
0
Downloads
0
Weekly
0/5

What is FastAPI Container App?

FastAPI Container App is a Model Context Protocol (MCP) server that allows AI assistants like Claude, Cursor, and VS Code to this repo contains a remote mcp server implemented as a containerapp in azure

This repo contains a remote MCP server implemented as a containerapp in Azure

This server falls under the Cloud Services category on MCPgee, the world's largest MCP server directory with 33,000+ servers.

Features

  • This repo contains a remote MCP server implemented as a cont

Use Cases

Deploy remote MCP servers as containerized FastAPI applications on Azure.
joelborellis

Maintainer

LicenseMIT
Languagepython
Versionv1.0.0
UpdatedSep 17, 2025
Statushealthy
Maintenanceactive

Works with

ClaudeOpenAIwindowsmacoslinux

Installation

Manual Installation

npx mcp-server-fastapi-containerapp

Configuration

Configuration Details

Config File

claude_desktop_config.json

Performance

Response Metrics

Response Time< 200ms
ThroughputMedium

Resource Usage

Memory UsageLow
CPU UsageLow

How to Set Up and Use FastAPI Container App

The MCP Server FastAPI Container App demonstrates how to deploy a remote Model Context Protocol server as a containerized FastAPI application on Azure Container Apps. It provides a production-ready pattern for hosting MCP endpoints in the cloud using Python, FastAPI, and the Streamable HTTP transport, enabling AI clients to connect to MCP tools hosted outside of localhost.

Prerequisites

  • Python 3.10 or higher with pip
  • Azure CLI installed and authenticated (az login)
  • Azure subscription with Container Apps enabled
  • Docker Desktop for local testing
  • Git for cloning the repository
1

Clone the repository

Clone the FastAPI Container App MCP server project from GitHub.

git clone https://github.com/joelborellis/MCP-server-fastapi-containerapp.git
cd MCP-server-fastapi-containerapp
2

Install Python dependencies

Install FastAPI, the MCP SDK, uvicorn, and any other dependencies specified in the project requirements.

pip install -r requirements.txt
3

Run locally with Docker

Build and run the container locally to test the MCP server before deploying to Azure. The server listens on port 8000 by default.

docker build -t mcp-fastapi-server .
docker run -p 8000:8000 mcp-fastapi-server
4

Deploy to Azure Container Apps

Use the Azure CLI to create a Container App environment and deploy the MCP server container. This makes the server accessible at a public HTTPS URL.

az group create --name mcp-rg --location eastus
az containerapp env create --name mcp-env --resource-group mcp-rg --location eastus
az containerapp create \
  --name mcp-fastapi \
  --resource-group mcp-rg \
  --environment mcp-env \
  --image your-registry/mcp-fastapi-server:latest \
  --target-port 8000 \
  --ingress external
5

Connect a client to the remote MCP server

Once deployed, configure your MCP client (Claude Desktop or Cursor) to connect to the Azure Container App URL using the Streamable HTTP transport.

{
  "mcpServers": {
    "remote-fastapi": {
      "url": "https://mcp-fastapi.your-domain.azurecontainerapps.io/mcp"
    }
  }
}

FastAPI Container App Examples

Client configuration

Configure Claude Desktop or Cursor to connect to the remote FastAPI MCP server hosted on Azure Container Apps using the Streamable HTTP transport.

{
  "mcpServers": {
    "remote-fastapi-mcp": {
      "url": "https://mcp-fastapi.your-domain.azurecontainerapps.io/mcp"
    }
  }
}

Prompts to try

After connecting to the deployed FastAPI MCP server, test the available tools exposed by the server.

- "List all available tools on the remote MCP server"
- "What endpoints does the FastAPI MCP server expose?"
- "Run the example tool with a test input"

Troubleshooting FastAPI Container App

Docker build fails with dependency errors

Ensure you are running Docker Desktop and that your Python version matches the base image in the Dockerfile. Run 'pip install -r requirements.txt' locally first to confirm all dependencies resolve correctly before building the Docker image.

Azure Container App deployment fails

Confirm you are logged in with 'az login' and that the target Azure subscription has the Microsoft.App resource provider registered. Run 'az provider register --namespace Microsoft.App' if not registered. Ensure your container registry is accessible from Azure.

MCP client cannot connect to the deployed URL

Verify the Container App has external ingress enabled and that the target port matches the port FastAPI listens on (default 8000). Check that the /mcp path is correct for the Streamable HTTP endpoint. Test with curl: 'curl https://your-app.azurecontainerapps.io/mcp'.

Frequently Asked Questions about FastAPI Container App

What is FastAPI Container App?

FastAPI Container App is a Model Context Protocol (MCP) server that this repo contains a remote mcp server implemented as a containerapp in azure It connects AI assistants to external tools and data sources through a standardized interface.

How do I install FastAPI Container App?

Follow the installation instructions on the FastAPI Container App GitHub repository. Clone the repo, install dependencies, and add the server config to your AI client.

Which AI clients work with FastAPI Container App?

FastAPI Container App works with all major MCP-compatible AI clients including Claude Desktop, Claude Code, Cursor, VS Code (GitHub Copilot), Windsurf, and Cline.

Is FastAPI Container App free to use?

Yes, FastAPI Container App is open source and available under the MIT license. You can use it freely in both personal and commercial projects.

Browse More Cloud Services MCP Servers

Explore all cloud services servers available in the MCPgee directory. Each server includes setup guides for Claude, Cursor, and VS Code.

Quick Config Preview

{ "mcpServers": { "mcp-server-fastapi-containerapp": { "command": "npx", "args": ["-y", "mcp-server-fastapi-containerapp"] } } }

Add this to your claude_desktop_config.json or .cursor/mcp.json

Read the full setup guide →

Ready to use FastAPI Container App?

Browse our complete directory of 33,000+ MCP servers, read setup guides for your editor, and start building with the Model Context Protocol.

33,000+ ServersFree & Open SourceStep-by-Step Guides