Python + FastAPI Stack
Build Python APIs with database access, documentation, testing, and deployment tools integrated in your editor.
Token Budget
Moderate token usage. You will have good room for prompts but watch if adding more servers.
Config
Paste in ~/.claude.json
{
"mcpServers": {
"github-mcp": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-github"
],
"env": {
"GITHUB_PERSONAL_ACCESS_TOKEN": "YOUR_GITHUB_PERSONAL_ACCESS_TOKEN"
}
},
"docker-mcp": {
"command": "npx",
"args": [
"-y",
"docker-mcp"
]
},
"filesystem-mcp": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-filesystem",
"/path/to/allowed/directory"
]
},
"postgres-mcp": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-postgres",
"postgresql://localhost/mydb"
],
"env": {
"POSTGRES_CONNECTION_STRING": "YOUR_POSTGRES_CONNECTION_STRING"
}
},
"context7-mcp": {
"command": "npx",
"args": [
"-y",
"@upstash/context7-mcp"
]
}
}
}Included Servers
PostgreSQL MCP
Anthropic
Query and interact with PostgreSQL databases, inspect schemas, and run SQL directly from your AI editor.
FastAPI apps almost always use Postgres via SQLAlchemy or Tortoise. Query your database and inspect schemas without a separate tool.
Docker MCP
Community
Manage Docker containers, images, volumes, and networks. Run, stop, inspect, and monitor containers from your AI editor.
Python dependency management is notoriously fragile. Docker gives you reproducible environments from dev to production.
Context7 MCP
Upstash
Pull up-to-date documentation and code examples for any library directly into your prompt context using the Context7 API.
FastAPI, Pydantic, and SQLAlchemy docs at your fingertips. These libraries have breaking changes between versions — current docs matter.
GitHub MCP
Anthropic
Access the GitHub API to manage repositories, issues, pull requests, branches, and workflows directly from your AI editor.
Manage your API repo, CI workflows, and code reviews. Python projects benefit from PR-based review to catch type issues early.
Filesystem MCP
Anthropic
Read, write, search, and manage files on your local filesystem with secure directory-scoped access for your AI editor.
Read config files, write generated code, and manage project structure. Essential for scaffolding FastAPI's route-heavy file layout.
Recommended Skills
Skills that pair with the servers in this stack. Learn more
For PostgreSQL MCP
PostgreSQL optimization guide covering query performance, connection management, indexing strategies, and schema design.
npx skillsadd supabase/agent-skills/supabase-postgres-best-practicesPostgreSQL table design patterns including normalization, indexing, partitioning, and data type selection.
npx skillsadd wshobson/agents/postgresql-table-designFor Docker MCP
Multi-stage builds, image optimization, container security, Compose orchestration, and production deployment patterns.
npx skillsadd sickn33/antigravity-awesome-skills/docker-expertCI/CD pipelines, infrastructure automation, containerization, and cloud platform expertise. Pairs with Docker MCP for hands-on container management.
For GitHub MCP
Use gh CLI for all GitHub operations including stacked PR workflows, issue management, and CI/CD automation.
npx skillsadd callstackincubator/agent-skills/githubDebug and fix failing GitHub PR checks in GitHub Actions. Automatically diagnoses CI issues and suggests fixes.
npx skillsadd openai/skills/gh-fix-ciAddress PR review comments using GitHub CLI. Streamlines the code review response workflow.
npx skillsadd openai/skills/gh-address-commentsAutomated code review for TypeScript, JavaScript, Python, Go. Analyzes PRs for complexity, SOLID violations, and code smells.