Skip to main content

fastapi-mcp-inspect

Mount an MCP server onto your FastAPI application to let AI agents inspect your routes, endpoints, and schemas at runtime.

Installation

uv add fastapi-mcp-inspect
# or using pip: pip install fastapi-mcp-inspect

Quick Start

from fastapi import FastAPI
from fastapi_mcp_inspect import FastAPIInspect

app = FastAPI()
FastAPIInspect(app, mount_path="/mcp")

Any LLM with MCP support can now connect to your app's /mcp endpoint and inspect all registered routes.

MCP Tools

show_all_routes()

Lists every registered route with its HTTP methods, summary, description, and total count.

show_endpoint_details(method, endpoint)

Shows detailed information for a specific endpoint, including request/response schemas and any referenced Pydantic models.

search_routes(query, method=None, search_in_summary=False, tags=None)

Searches routes by path (case-insensitive) with optional filters:

  • method — filter by HTTP method (e.g. GET, POST).
  • search_in_summary — when True, also matches against summaries and descriptions.
  • tags — filter by tag names (OR logic — any match).

list_all_tags()

Lists every unique tag used across API routes with route counts.

get_schema_definition(schema_name)

Returns the full field-level definition of a Pydantic schema used by any endpoint. Lookup is case-insensitive.

Development

git clone https://github.com/inclinedadarsh/fastapi-mcp-inspect.git
cd fastapi-mcp-inspect
uv sync

License

MIT

Metadata

Release files for fastapi-mcp-inspect 0.2.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for fastapi-mcp-inspect 0.2.3
File Size Uploaded Provenance Actions
fastapi_mcp_inspect-0.2.3.tar.gz 5.7 kB With provenance Details for fastapi_mcp_inspect-0.2.3.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for fastapi-mcp-inspect 0.2.3
File Interpreter ABI Platform Actions
fastapi_mcp_inspect-0.2.3-py3-none-any.whl Python 3 none any Details for fastapi_mcp_inspect-0.2.3-py3-none-any.whl

Total release size: 12.0 kB

Release files / fastapi_mcp_inspect-0.2.3.tar.gz

Download URL fastapi_mcp_inspect-0.2.3.tar.gz
Size 5.7 kB
Tags Source
SHA-256 checksum
How to use checksums
cd34d235acc46d1a6ca7e44dd77ece465f0badfa8cb34b3196ecd76a5b6d18c7
BLAKE2b-256 checksum
How to use checksums
7cd387668356021a56b4704c5961cad7998a57e37aedcb1906631ed22761a3dc
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 27, 2026.

Transparency log

Release files / fastapi_mcp_inspect-0.2.3-py3-none-any.whl

Download URL fastapi_mcp_inspect-0.2.3-py3-none-any.whl
Size 6.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
0c5d4ea2118f03e584a93d97410f8f5b0e6b7ace76428fe21e3a8fc91d22c780
BLAKE2b-256 checksum
How to use checksums
52d491137897a487eb319a3d8915b0e32bf495c3a9b7c382fa93a75c7005d0e0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 27, 2026.

Transparency log

Security for fastapi-mcp-inspect 0.2.3

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for fastapi_mcp_inspect-0.2.3.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 27, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page