Overview
Claude Code supports MCP (Model Context Protocol) servers that extend its capabilities with custom tools. Combined with hooks and slash commands, you can build sophisticated LLM-powered development workflows tailored to your team and project. MCP turns Claude Code from a coding assistant into a customizable development platform.
MCP Server Configuration
{
"mcpServers": {
"postgres": {
"command": "npx",
"args": ["-y", "@modelcontextprotocol/server-postgres"],
"env": {
"DATABASE_URL": "postgresql://localhost:5432/mydb"
}
},
"github": {
"command": "npx",
"args": ["-y", "@modelcontextprotocol/server-github"],
"env": {
"GITHUB_TOKEN": "${GITHUB_TOKEN}"
}
}
}
}Popular MCP Servers
PostgreSQL
Query your database, inspect schemas, and generate migrations directly from Claude Code.
GitHub
Create issues, manage PRs, search code, and interact with the GitHub API.
Filesystem
Extended file operations — search, batch edits, and directory analysis beyond built-in tools.
Puppeteer
Browser automation — take screenshots, run E2E tests, and debug UI issues.
Hooks Example
{
"hooks": {
"afterEdit": ["pnpm biome format --write"],
"afterCommit": ["pnpm check"],
"beforePush": ["pnpm test"]
}
}Key Customization Points
- •MCP servers — connect external tools and data sources
- •Hooks — run commands on file edits, commits, pushes
- •CLAUDE.md — project-specific instructions and conventions
- •Slash commands — custom workflows triggered by /name
- •Permission modes — control what Claude Code can do autonomously