Skip to main content

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_users handler?"
  • "Find all references to get_db across the project"
  • "Rename get_db to get_session everywhere"
  • "Inspect the UserCreate model in schemas.py"

Requirements

  • Python 3.11+
  • Claude Code (VS Code extension or CLI)

Author

Abdessamad Touzani

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

fastapi_architect_mcp-0.1.0.tar.gz (6.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

fastapi_architect_mcp-0.1.0-py3-none-any.whl (6.6 kB view details)

Uploaded Python 3

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

Hashes for fastapi_architect_mcp-0.1.0.tar.gz
Algorithm Hash digest
SHA256 89bbb1f37dcf1ad7be43fc9bf4aaceb2407bcdb73a92645a66cb9bfea4505648
MD5 1ee3eda96f63f418f8516441f9b8bee4
BLAKE2b-256 e1063f3b7d21878dfd77247fa9f2ed7ffa057d511f28175ffabdce7a2e3b7a84

See more details on using hashes here.

File details

Details for the file fastapi_architect_mcp-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for fastapi_architect_mcp-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 0d0a76f04f30d9914c6dc74e70bfbe6799870e22edcaa55a8f0000e203d55170
MD5 a6c5291c64147cfe79f3a9ec226fe265
BLAKE2b-256 935238e729697e777616f8a76dd17e932fcbf31f645d80e2516aa87b06a7c61e

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page