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.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| fastapi_mcp_inspect-0.2.2.tar.gz | 5.2 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| fastapi_mcp_inspect-0.2.2-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 11.5 kB
Release files / fastapi_mcp_inspect-0.2.2.tar.gz
| Download URL | fastapi_mcp_inspect-0.2.2.tar.gz |
|---|---|
| Size | 5.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
c615ae7c67ab111efb3c07cf8a25a8d1180c3aaed8190f1cbee3325c29673a99
|
|
BLAKE2b-256 checksum How to use checksums |
6226e6dd02bf87a42064f17c5a285e07df12cf932e780372d9b178769b338ef2
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.12
|
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 Jun 25, 2026.
Transparency logRelease files / fastapi_mcp_inspect-0.2.2-py3-none-any.whl
| Download URL | fastapi_mcp_inspect-0.2.2-py3-none-any.whl |
|---|---|
| Size | 6.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
88a134835c6f4482ff12842563a369004c01382f22a22b7dbf7c8b73678d9b03
|
|
BLAKE2b-256 checksum How to use checksums |
1826a3580a0c6a4d9547ab43aa0955d5fcf9110ee42d52b78d73161e96dac7b1
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.12
|
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 Jun 25, 2026.
Transparency log