Skip to main content
Glama
mantle-bearer

fastapi-mcp-server

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault

No arguments

Instructions

Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.

This server publishes no instructions, or was last inspected before Glama recorded them.

Capabilities

Features and capabilities supported by this server

Protocol revision2025-11-25

CapabilityDetails
tools
{
  "listChanged": false
}
prompts
{
  "listChanged": false
}
resources
{
  "subscribe": false,
  "listChanged": false
}
experimental
{}

Tools

Functions exposed to the LLM to take actions

NameDescription
get_openapi_schemaA

Extract the complete OpenAPI schema from a local FastAPI app, APIRouter, factory function, or live HTTP URL.

Args: app_path: Import string pointing to the target (e.g. 'main:app', 'routers.users:router', 'https://api.example.com/openapi.json'). project_dir: Optional path to the project root directory. Defaults to current working directory.

Returns: The OpenAPI specification dictionary or an error dictionary.

get_pydantic_schemaA

Extract the JSON Schema from a local Pydantic BaseModel class definition.

Args: model_path: Import string pointing to the Pydantic model (e.g. 'models.user:UserCreate', 'src/schemas.py:Item'). project_dir: Optional path to the project root directory. Defaults to current working directory.

Returns: The JSON schema dictionary for the Pydantic model or an error dictionary.

list_registered_routesA

List all registered HTTP routes, methods, operation IDs, summaries, and tags from a FastAPI app, APIRouter, or live URL.

Args: app_path: Import string pointing to the target (e.g. 'main:app', 'routers.items:router', 'http://localhost:8000/docs'). project_dir: Optional path to the project root directory. Defaults to current working directory.

Returns: A list of registered routes or an error dictionary.

get_typescript_definitionA

Generate strict TypeScript interfaces and types from a Pydantic model, FastAPI app, or live OpenAPI URL.

Args: target: Target identifier (e.g. 'models.user:UserProfile', 'main:app', 'https://api.example.com/openapi.json'). project_dir: Optional path to the project root directory.

Returns: TypeScript interface/type definitions code as a string, or an error dictionary.

get_zod_schemaA

Generate Zod validation schemas with inferred TypeScript types from a Pydantic model, FastAPI app, or live OpenAPI URL.

Args: target: Target identifier (e.g. 'models.user:UserProfile', 'main:app', 'https://api.example.com/openapi.json'). project_dir: Optional path to the project root directory.

Returns: Zod schema definition code as a string, or an error dictionary.

discover_fastapi_projectA

Automatically scan a project directory to discover all FastAPI apps, APIRouters, and Pydantic models.

Args: project_dir: Optional path to the project root directory. Defaults to current working directory.

Returns: A structured catalog listing all discovered apps, routers, and models with import target strings.

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription

No resources

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/mantle-bearer/fastapi-mcp-server'

If you have feedback or need assistance with the MCP directory API, please join our Discord server