fastapi-mcp-server
Server Quality Checklist
Latest release: v0.1.0
- Disambiguation4/5
Each tool has a distinct output type: OpenAPI schema, Pydantic JSON schema, route listing, TypeScript interfaces, Zod schemas, and project discovery. The two code generation tools accept similar targets, but their output formats are clearly described, so misselection is unlikely.
Naming Consistency4/5Most tools follow a get_<object> pattern such as get_openapi_schema, get_pydantic_schema, and get_zod_schema. list_registered_utes and discover_fastapi_project use different verbs but are still predictable and consistent in naming style.
Tool Count5/5Six tools is a well-scoped count for a FastAPI introspection and schema generation server. Each tool serves a clear purpose without unnecessary redundancy.
Completeness5/5The tool set covers OpenAPI extraction, Pydantic schema extraction, route listing, project discovery, and both TypeScript interface and Zod schema generation. This provides comprehensive coverage for the server's stated purpose.
Average 4.2/5 across 6 of 6 tools scored.
See the Tool Scores section below for per-tool breakdowns.
- No community issues in the last 6 months
- 2 commits in the last 12 weeks
- No stable releases found
- No critical vulnerability alerts
- No high-severity vulnerability alerts
- No code scanning findings
- CI status not available
This repository is licensed under MIT License.
This repository includes a README.md file.
No tool usage detected in the last 30 days. Usage tracking helps demonstrate server value.
Tip: use the "Try in Browser" feature on the server page to seed initial usage.
Add a glama.json file to provide metadata about your server.
If you are the author, simply .
If the server belongs to an organization, first add
glama.jsonto the root of your repository:{ "$schema": "https://glama.ai/mcp/schemas/server.json", "maintainers": [ "your-github-username" ] }Then . Browse examples.
Add related servers to improve discoverability.
How to sync the server with GitHub?
Servers are automatically synced at least once per day, but you can also sync manually at any time to instantly update the server profile.
To manually sync the server, click the "Sync Server" button in the MCP server admin interface.
How is the quality score calculated?
The overall quality score combines two components: Tool Definition Quality (70%) and Server Coherence (30%).
Tool Definition Quality measures how well each tool describes itself to AI agents. Every tool is scored 1–5 across six dimensions: Purpose Clarity (25%), Usage Guidelines (20%), Behavioral Transparency (20%), Parameter Semantics (15%), Conciseness & Structure (10%), and Contextual Completeness (10%). The server-level definition quality score is calculated as 60% mean TDQS + 40% minimum TDQS, so a single poorly described tool pulls the score down.
Server Coherence evaluates how well the tools work together as a set, scoring four dimensions equally: Disambiguation (can agents tell tools apart?), Naming Consistency, Tool Count Appropriateness, and Completeness (are there gaps in the tool surface?).
Tiers are derived from the overall score: A (≥3.5), B (≥3.0), C (≥2.0), D (≥1.0), F (<1.0). B and above is considered passing.
Tool Scores
- Behavior3/5
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
No annotations are provided, so the description carries the behavioral disclosure burden. It clearly states that the tool returns TypeScript code as a string or an error dictionary, which is useful, but it does not disclose side effects, network behavior for live URLs, or what triggers the error return path.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Conciseness5/5Is the description appropriately sized, front-loaded, and free of redundancy?
The description is front-loaded with the core purpose and then provides a compact Args/Returns structure. Every sentence contributes useful information, and there is no filler or repetition of schema details.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Completeness4/5Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
Given that there is no output schema and no annotations, the description gives enough context for an agent to understand the input sources and expected return value. It stops short of explaining error dictionary structure or the exact behavior when a target cannot be resolved, but it is reasonably complete for this complexity level.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Parameters4/5Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
Schema description coverage is 0%, so the description must compensate for the schema's bare string fields. It does meaningfully enrich 'target' with concrete formats like 'models.user:UserProfile', 'main:app', and an OpenAPI URL, and it clarifies that 'project_dir' is an optional path to the project root.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Purpose4/5Does the description clearly state what the tool does and how it differs from similar tools?
The description opens with a specific verb and resource: 'Generate strict TypeScript interfaces and types' from a Pydantic model, FastAPI app, or live OpenAPI URL. It is clear about what the tool produces, but it does not explicitly differentiate it from sibling tools like get_zod_schema or get_openapi_schema.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Usage Guidelines3/5Does the description explain when to use this tool, when not to, or what alternatives exist?
The description implies usage by listing the accepted source types ('Pydantic model, FastAPI app, or live OpenAPI URL') and giving target examples, so an agent can infer when it is relevant. However, it provides no explicit when-to-use, when-not-to-use, or comparison with alternatives.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
- Behavior3/5
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
With no annotations, the description carries the burden of disclosing behavior. It does mention accepting import strings or live URLs and returning an error dictionary on failure, which is useful. However, it does not disclose that importing an app or fetching a URL may execute code or make network requests, nor what failure cases produce the error dictionary.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Conciseness5/5Is the description appropriately sized, front-loaded, and free of redundancy?
The description is concise and well structured: a one-sentence purpose, then brief Args and Returns sections. Every sentence adds useful information and the main capability is front-loaded.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Completeness4/5Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
Although there is no output schema and no annotations, the description covers purpose, both parameters, accepted app_path forms, defaults, and the general return type. The first sentence also implies the output shape by listing route fields. A concrete example entry or explicit mention of import/URL side effects would make it fully complete, but for a two-parameter read-only enumeration tool this is strong.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Parameters5/5Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
Schema description coverage is 0%, so the description must do the work for both parameters. It explains app_path as an import string with concrete examples and project_dir as an optional project-root path defaulting to the current working directory. This fully compensates for the empty schema descriptions.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Purpose4/5Does the description clearly state what the tool does and how it differs from similar tools?
The description uses a specific verb ('List') and names the resource ('registered HTTP routes') plus the exact attributes returned (methods, operation IDs, summaries, tags), and lists the possible sources (FastAPI app, APIRouter, live URL). It is clear, but it does not explicitly differentiate itself from sibling get_openapi_schema, which could also expose route/method information.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Usage Guidelines3/5Does the description explain when to use this tool, when not to, or what alternatives exist?
The expected use case is implied: an agent should call this when it needs an inventory of routes from a FastAPI app, router, or URL. However, the description does not state when not to use it or contrast it with alternatives such as get_openapi_schema or discover_fastapi_project.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
- Behavior4/5
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
With no annotations present, the description carries the full transparency burden. It clearly states that the tool automatically scans a directory and returns a structured catalog with import target strings, which goes beyond the minimal schema. It does not mention potential performance costs or failure modes, but the core behavior is adequately disclosed.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Conciseness5/5Is the description appropriately sized, front-loaded, and free of redundancy?
The description is compact and well-structured with Summary, Args, and Returns sections. Each sentence adds meaningful information without redundancy or filler.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Completeness4/5Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
Given the tool's complexity, the lack of an output schema, and the absence of annotations, the description provides a solid high-level contract: input path, default behavior, and returned content. It stops short of giving the exact catalog structure, but it is sufficient for an agent to decide whether and how to invoke the tool.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Parameters5/5Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
The schema only defines project_dir as an optional string or null, but the description adds full semantic meaning: it is a path to the project root and defaults to the current working directory. This fully compensates for the 0% schema description coverage.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Purpose5/5Does the description clearly state what the tool does and how it differs from similar tools?
The description uses specific verbs and resources: 'scan a project directory to discover all FastAPI apps, APIRouters, and Pydantic models.' This clearly separates it from siblings like get_openapi_schema or list_registered_routes, which operate on schemas or routes rather than discovering the project's structural components.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Usage Guidelines3/5Does the description explain when to use this tool, when not to, or what alternatives exist?
The intended use is implied by the description: call this when you need a project-wide catalog of FastAPI apps, routers, and models. However, it does not explicitly state when to prefer this over sibling tools, nor does it mention any exclusions or prerequisite conditions.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
- Behavior3/5
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
With no annotations, the description carries the full burden. It discloses the input forms and that the return is either a spec dictionary or an error dictionary, but it does not mention potential side effects of importing app code, network behavior for URLs, or specific error circumstances beyond a generic error return.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Conciseness5/5Is the description appropriately sized, front-loaded, and free of redundancy?
The description is well-structured: a one-sentence summary is front-loaded, followed by a compact Args section and a terse Returns section. Every sentence provides needed information without repetition or filler.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Completeness4/5Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
Despite missing annotations and output schema, the description gives the essential contract: what to pass, the accepted input forms, and the return shape. It could be slightly more complete by describing the error dictionary structure or side effects of import, but it is adequate for an extraction tool.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Parameters5/5Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
Schema coverage is 0%, but the description fully defines both parameters: app_path is clearly explained as an import string or URL with concrete examples, and project_dir is described as an optional path with a default. This fully compensates for the schema's missing descriptions.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Purpose5/5Does the description clearly state what the tool does and how it differs from similar tools?
The description states a specific verb ('Extract') and a distinct resource ('complete OpenAPI schema'), and enumerates source types (FastAPI app, APIRouter, factory function, live HTTP URL) that clearly separate it from sibling tools like get_pydantic_schema, get_typescript_definition, and get_zod_schema.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Usage Guidelines4/5Does the description explain when to use this tool, when not to, or what alternatives exist?
Clear context is provided for when to call: if you need the OpenAPI schema from a FastAPI target or URL. However, it does not explicitly name alternative tools or state exclusion conditions, relying on the agent to infer the boundary from the purpose and sibling names.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
- Behavior4/5
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
With no annotations provided, the description carries the behavioral disclosure burden. It states that the tool operates on local models, accepts an optional project_dir that defaults to the current working directory, and returns either a JSON schema dictionary or an error dictionary. This gives the agent a clear picture of expected outcomes, though it does not mention potential side effects of importing the model module.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Conciseness5/5Is the description appropriately sized, front-loaded, and free of redundancy?
The description is well-structured and front-loaded with a clear purpose statement, followed by efficient Args and Returns sections. Every sentence adds necessary information, and there is no redundant or vague filler.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Completeness4/5Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
The description provides enough information to call the tool correctly: both parameters are documented, return behavior is stated, and examples clarify the required import-string format. It lacks explicit sibling-tool routing and caveats about invalid or non-importable model paths, but it is otherwise self-contained.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Parameters5/5Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
The input schema has 0% description coverage, so the description's Args section is the only source of parameter meaning. It fully explains model_path as an import string with concrete examples, and project_dir as an optional project root path defaulting to the current working directory. This completely compensates for the bare schema.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Purpose5/5Does the description clearly state what the tool does and how it differs from similar tools?
The description uses a specific verb 'Extract' and a precise resource ('JSON Schema from a local Pydantic BaseModel class definition'). It clearly distinguishes the tool from siblings like get_zod_schema, get_typescript_definition, and get_openapi_schema by targeting local Pydantic models specifically.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Usage Guidelines3/5Does the description explain when to use this tool, when not to, or what alternatives exist?
The description clearly implies this tool is for extracting JSON Schema from local Pydantic model definitions, but it does not explicitly explain when to prefer it over the sibling tools or when not to use it. There is no alternative guidance or exclusion criteria.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
- Behavior4/5
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
No annotations are provided, so the description carries the behavioral disclosure burden. It discloses the return type ('Zod schema definition code as a string, or an error dictionary') and implies network/filesystem interaction through 'live OpenAPI URL' and 'project_dir.' It does not detail side effects or error conditions beyond an error dictionary, but this is reasonable for a code-generation tool.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Conciseness5/5Is the description appropriately sized, front-loaded, and free of redundancy?
The description is compact and well-structured with clear Args and Returns sections. The opening sentence states the core purpose, and every subsequent line adds useful detail without repetition or filler.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Completeness4/5Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
For a two-parameter tool with no output schema, the description provides enough context: target forms, optional project directory, return type, and error outcome. It could mention prerequisites such as whether a local FastAPI app must be importable or whether a URL must be publicly accessible, but the current level is largely sufficient.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Parameters5/5Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
Schema description coverage is 0%, and the description fully compensates. It explains 'target' with three concrete example formats and clarifies that 'project_dir' is an optional path to the project root. Each parameter receives meaning beyond its raw type in the input schema.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Purpose5/5Does the description clearly state what the tool does and how it differs from similar tools?
The description opens with a specific verb and resource: 'Generate Zod validation schemas with inferred TypeScript types.' It then names the accepted source types: Pydantic model, FastAPI app, or live OpenAPI URL. This clearly differentiates it from siblings like get_openapi_schema and get_pydantic_schema.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Usage Guidelines4/5Does the description explain when to use this tool, when not to, or what alternatives exist?
The description clearly states what kinds of targets are accepted and gives concrete examples such as 'models.user:UserProfile' and 'main:app'. It does not explicitly say when to prefer this over get_typescript_definition or get_openapi_schema, but the supported targets and output format make the intended usage clear.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
GitHub Badge
Glama performs regular codebase and documentation scans to:
- Confirm that the MCP server is working as expected.
- Confirm that there are no obvious security issues.
- Evaluate tool definition quality.
Our badge communicates server capabilities, safety, and installation instructions.
Card Badge
Copy to your README.md:
Score Badge
Copy to your README.md:
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/mantle-bearer/fastapi-mcp-server'
If you have feedback or need assistance with the MCP directory API, please join our Discord server