FastAPI Container App
This repo contains a remote MCP server implemented as a containerapp in Azure
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
Maintainer
Works with
Installation
Manual Installation
npx mcp-server-fastapi-containerappConfiguration
Configuration Details
claude_desktop_config.json
Performance
Response Metrics
Resource Usage
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
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-containerappInstall Python dependencies
Install FastAPI, the MCP SDK, uvicorn, and any other dependencies specified in the project requirements.
pip install -r requirements.txtRun 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-serverDeploy 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 externalConnect 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.
FastAPI Container App Alternatives — Similar Cloud Services Servers
Looking for alternatives to FastAPI Container App? Here are other popular cloud services servers you can use with Claude, Cursor, and VS Code.
Open WebUI
★ 138.2kUser-friendly AI Interface (Supports Ollama, OpenAI API, ...)
Anything LLM
★ 60.4kThe all-in-one AI productivity accelerator. On device and privacy first with no annoying setup or configuration.
LocalAI
★ 46.4kLocalAI is the open-source AI engine. Run any model - LLMs, vision, voice, image, video - on any hardware. No GPU required.
Nacos
★ 33.0kan easy-to-use dynamic service discovery, configuration and service management platform for building AI cloud native applications.
Xiaozhi ESP32
★ 26.7k本项目为xiaozhi-esp32提供后端服务,帮助您快速搭建ESP32设备控制服务器。Backend service for xiaozhi-esp32, helps you quickly build an ESP32 device control server.
Gateway
★ 11.8kA blazing fast AI Gateway with integrated guardrails. Route to 1,600+ LLMs, 50+ AI Guardrails with 1 fast & friendly API.
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.
Set Up FastAPI Container App in Your Editor
Choose your AI client for step-by-step setup instructions.
Quick Config Preview
Add this to your claude_desktop_config.json or .cursor/mcp.json
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.