MCP Server - FastAPI on Azure App Service
@madebygps
关于 MCP Server - FastAPI on Azure App Service
FastAPI MCP server on Azure App Service
基本信息
配置
使用下面的配置,将此服务器添加到你的 MCP 客户端。
{
"mcpServers": {
"remote-mcp-webapp-python": {
"command": "uv",
"args": [
"venv"
]
}
}
}工具
未检测到工具
工具是从 README 中自动提取的。维护者可以在 ## Tools 标题下列出工具,即可填充这部分内容。
概览
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.
开发工具 分类下的更多 MCP 服务器
Huoshan Test
volcengineStakpak Agent CLI
stakpakShip your code, on autopilot. An open source agent that lives on your machines 24/7 and keeps your apps running. 🦀
FastAPI-MCP
tadata-orgExpose your FastAPI endpoints as Model Context Protocol (MCP) tools, with Auth!
MCP-Bridge
SecretiveShellA middleware to provide an openAI compatible endpoint that can call MCP tools
Code Index MCP
johnhuang316A Model Context Protocol (MCP) server that helps large language models index, search, and analyze code repositories with minimal setup
评论