MCP server giving Claude Code IDE-level intelligence for FastAPI projects
Project description
fastapi-architect-mcp
An MCP server that gives Claude Code IDE-level intelligence for FastAPI projects — semantic code navigation, safe renaming, route inspection, dependency trees, and Pydantic model analysis.
Instead of Claude reading files blindly, it calls structured tools backed by Jedi (Python language server) and Python's AST.
Tools
| Tool | Description |
|---|---|
find_references |
Find all usages of a symbol across the project |
rename_symbol |
Safely rename a symbol across all files |
go_to_definition |
Jump to where a symbol is defined |
get_completions |
Get completion suggestions at a cursor position |
list_routes |
List all FastAPI routes with method, path, and handler |
get_dependencies |
Get the full Depends() injection tree for a handler |
list_models |
List all Pydantic models in a file |
inspect_model |
Inspect a Pydantic model's fields, types, and validators |
find_model_usages |
Find all usages of a Pydantic model across the project |
Installation
pip install fastapi-architect-mcp
Configuration
Add this to your Claude Code settings (~/.claude/settings.json):
{
"mcpServers": {
"fastapi-architect": {
"command": "fastapi-architect-mcp"
}
}
}
Then restart Claude Code. You can verify it's connected by asking:
"What MCP tools do you have access to?"
Usage examples
Once connected, you can ask Claude Code things like:
- "List all routes in
main.py" - "What are the dependencies of the
get_usershandler?" - "Find all references to
get_dbacross the project" - "Rename
get_dbtoget_sessioneverywhere" - "Inspect the
UserCreatemodel inschemas.py"
Requirements
- Python 3.11+
- Claude Code (VS Code extension or CLI)
Author
Abdessamad Touzani
- GitHub: @AbdessamadTzn
- LinkedIn: abdessamadtouzani
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file fastapi_architect_mcp-0.1.0.tar.gz.
File metadata
- Download URL: fastapi_architect_mcp-0.1.0.tar.gz
- Upload date:
- Size: 6.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
89bbb1f37dcf1ad7be43fc9bf4aaceb2407bcdb73a92645a66cb9bfea4505648
|
|
| MD5 |
1ee3eda96f63f418f8516441f9b8bee4
|
|
| BLAKE2b-256 |
e1063f3b7d21878dfd77247fa9f2ed7ffa057d511f28175ffabdce7a2e3b7a84
|
File details
Details for the file fastapi_architect_mcp-0.1.0-py3-none-any.whl.
File metadata
- Download URL: fastapi_architect_mcp-0.1.0-py3-none-any.whl
- Upload date:
- Size: 6.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0d0a76f04f30d9914c6dc74e70bfbe6799870e22edcaa55a8f0000e203d55170
|
|
| MD5 |
a6c5291c64147cfe79f3a9ec226fe265
|
|
| BLAKE2b-256 |
935238e729697e777616f8a76dd17e932fcbf31f645d80e2516aa87b06a7c61e
|