Neon MCP — Manage Serverless Postgres with AI
What Is Neon?
Neon is a serverless PostgreSQL platform with features like branching (instant database copies), autoscaling, and a generous free tier. The MCP server exposes all Neon management operations to AI agents.
Available MCP Tools
| Tool | Description |
|---|---|
| Create Project | Spin up a new Neon Postgres project |
| List Projects | View all your Neon projects |
| Create Branch | Instant database branch for testing |
| Run SQL | Execute queries against any branch |
| Schema Migration | Safe migrations via temporary branches |
| Query Optimization | AI-powered slow query analysis |
| Delete Project | Clean up unused projects |
| Auth Setup | Provision Neon Auth and Data API |
Safe Migration Workflow
- AI creates a temporary branch from your main database
- Schema changes are applied to the branch
- AI verifies the migration works correctly
- You approve → changes are committed to main
- Temporary branch is cleaned up
This prevents accidental data loss from migrations.
Configuration Options
Remote MCP (recommended — zero install):
{
"mcpServers": {
"Neon": {
"type": "http",
"url": "https://mcp.neon.tech/mcp"
}
}
}With API key authentication:
{
"mcpServers": {
"Neon": {
"type": "http",
"url": "https://mcp.neon.tech/mcp",
"headers": {
"Authorization": "Bearer YOUR_NEON_API_KEY"
}
}
}
}FAQ
Q: What is Neon MCP Server? A: An MCP server that lets AI agents manage Neon serverless PostgreSQL databases through natural language — creating projects, branching, running SQL, and performing safe migrations.
Q: Is Neon MCP free? A: The MCP server is free and open-source (MIT). Neon Postgres has a generous free tier with 0.5 GB storage and 190 hours of compute.
Q: Do I need to install anything?
A: No — the remote MCP endpoint at mcp.neon.tech/mcp works without local installation. Just add the config to your MCP client.