Neon Database
Key Capabilities
- Database Branching: Isolated copies for dev/test/schema changes
- Project Management: Create and manage Neon projects
- Schema Management: Execute SQL, create tables, manage schema
- Connection Strings: Get connection strings for any project/branch
- Autoscaling and scale-to-zero for cost efficiency
MCP Tools
- list_organizations, list_projects, create_project
- get_connection_string, list_branches, create_branch
- execute_sql
Best Practices
- Use database branching for development and testing before production
- Create separate branches for each feature or migration
- Test schema changes on branches before applying to main
- Store connection strings in .env (never commit to version control)
- Name branches descriptively (e.g., "feature-auth", "migration-v2")
- Delete old branches after merging
Common Workflows
Safe Schema Migration
- Create migration branch from main
- Test schema changes on branch
- Verify with test queries
- Apply to main if tests pass
Multi-Environment Setup
- Get main project connection (prod)
- Create development branch
- Create staging branch
- Get connection strings for each environment
MCP Server Config
{
"mcpServers": {
"neon": {
"command": "npx",
"args": ["-y", "mcp-remote", "https://mcp.neon.tech/mcp"]
}
}
}
No API keys required - authentication via Neon CLI or browser login.