← Back to docs
Claude Code
Claude Code is Anthropic's AI-powered coding assistant. With Astapa's MCP server, Claude can query and modify your database while you maintain full control over what changes get applied.
Features
- Official MCP server integration
- Works in Claude Code CLI and IDE
- Real-time diff preview
- One-click approve or reject
- Session persistence across conversations
Quick Start
example.py
# Install Astapa MCP server
npm install -g @astapa/mcp-server
# Add to Claude Code config (~/.claude/config.json)
{
"mcpServers": {
"astapa": {
"command": "astapa-mcp",
"env": {
"DATABASE_URL": "postgresql://localhost:5432/mydb",
"ASTAPA_API_URL": "http://localhost:8080"
}
}
}
}
# Now Claude Code can use astapa_query and astapa_mutate tools