Skip to main content
Glama
christian-felipe9

FastAPI MCP Application

FastAPI Application

Este é um projeto de exemplo de uma aplicação REST API construída com FastAPI.

Configuração do Ambiente

  1. Crie o ambiente virtual:

    python -m venv venv
  2. Ative o ambiente virtual:

    • Windows:

      .\venv\Scripts\activate
    • macOS/Linux:

      source venv/bin/activate
  3. 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.py

Isso 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/mcp

Neste 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" }

A
license - permissive license
Not graded
quality - not tested
D
maintenance

Maintenance

Maintainers
Response time
Release cycle
Releases (12mo)
Commit activity

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

  • A
    license
    Not graded
    quality
    D
    maintenance
    A 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.
    10
    MIT
  • F
    license
    Not graded
    quality
    D
    maintenance
    A server implementation of the Model Context Protocol (MCP) that provides REST API endpoints for managing and interacting with MCP resources.
  • F
    license
    Not graded
    quality
    C
    maintenance
    An 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.

View all related MCP servers

Related MCP Connectors

View all MCP Connectors

Latest Blog Posts

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