FastAPI MCP Application
Provides a Model Context Protocol (MCP) interface for FastAPI endpoints, automatically generating tools from API endpoints decorated with @mcp_app.tool(), enabling interaction with CRUD operations through MCP clients
Integrates with Swagger UI to provide interactive API documentation at /docs, allowing developers to explore and test the API endpoints
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@FastAPI MCP Applicationlist all users in the database"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
FastAPI Application
Este é um projeto de exemplo de uma aplicação REST API construída com FastAPI.
Configuração do Ambiente
Crie o ambiente virtual:
python -m venv venvAtive o ambiente virtual:
Windows:
.\venv\Scripts\activatemacOS/Linux:
source venv/bin/activate
Instale as dependências:
pip install -r requirements.txt
Related MCP server: MCP REST API Server
Executando a Aplicação
Para iniciar o servidor Uvicorn, execute:
uvicorn main:app --reload
ou
python main.pyIsso iniciará a aplicação em http://127.0.0.1:8000. Você pode acessar a documentação interativa da API em http://127.0.0.1:8000/docs (Swagger UI) ou http://127.0.0.1:8000/redoc (ReDoc).
Usando a Interface MCP
Para interagir com as ferramentas MCP geradas automaticamente a partir dos seus endpoints FastAPI, acesse através de um cliente MCP:
http://127.0.0.1:8000/mcpNeste caminho, você encontrará a interface do Model Context Protocol (MCP), onde as ferramentas (seus endpoints CRUD decorados com @mcp_app.tool()) estarão disponíveis para interação via clientes MCP ou diretamente através da interface.
Instalar no cursor
Para funcionar no cursor deve rodar o servidor com o comando acima e adicionar o json abaixo em mcp.json do cursor
"mcp-crud": { "url": "http://127.0.0.1:8000/mcp" }
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- Alicense-qualityDmaintenanceA FastAPI-based implementation of the Model Context Protocol that enables standardized interaction between AI models and development environments, making it easier for developers to integrate and manage AI tasks.10MIT
- Flicense-qualityDmaintenanceA server implementation of the Model Context Protocol (MCP) that provides REST API endpoints for managing and interacting with MCP resources.
- Alicense-qualityDmaintenanceA Model Context Protocol (MCP) server implementation built with Python and FastAPI for educational purposes. Demonstrates MCP server functionality through a books API interface.MIT
- Flicense-qualityCmaintenanceAn end-to-end test MCP server built with FastMCP that exposes a REST API as a set of tools for AI agents. It enables LLMs to perform CRUD operations on an upstream API by mapping HTTP methods to MCP tools.
Related MCP Connectors
MCP (Model Context Protocol) server for Appwrite
A comprehensive Model Context Protocol (MCP) server that enables AI assistants to interact with yo…
A Model Context Protocol (MCP) application for automated GitHub PR analysis and issue management.…
Appeared in Searches
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/christian-felipe9/MCP-API'
If you have feedback or need assistance with the MCP directory API, please join our Discord server