Creates a new Neon project
Lists all Neon projects
Gets details about a specific Neon project
Creates a new branch in a Neon project
Lists all branches in a Neon project
Executes SQL queries on a Neon database
Runs database migrations on a Neon project
Neon Database MCP enables natural language interaction with your Neon Postgres databases. This tool bridges the gap between conversational requests and the Neon API, allowing you to manage database projects, run queries, and perform migrations without writing SQL or API calls directly. It empowers both developers and non-technical users to work with Neon's serverless Postgres platform through intuitive language commands.
Neon Database MCP allows you to interact with Neon's serverless Postgres platform using natural language. Instead of writing SQL queries or API calls, you can simply describe what you want to do with your database, and the MCP server will translate your requests into the appropriate actions.
With this MCP, you can:
You have two options for connecting to Neon through MCP:
This option connects to Neon's managed MCP server using OAuth authentication. It's the easiest setup with no local installation required.
{
"mcpServers": {
"Neon": {
"command": "npx",
"args": ["-y", "mcp-remote", "https://mcp.neon.tech/sse"]
}
}
}
Run the Neon MCP server locally on your machine using your Neon API key.
npx -y @smithery/cli@latest install neon --client <client_name>
Replace <client_name>
with your MCP client (e.g., claude
, cursor
, etc.). You'll be prompted to enter your Neon API key during setup.
npm install -g @neondatabase/mcp-server-neon
{
"mcpServers": {
"Neon": {
"command": "neon-mcp-server",
"args": [],
"env": {
"NEON_API_KEY": "YOUR_NEON_API_KEY"
}
}
}
}
YOUR_NEON_API_KEY
with your actual Neon API keyOnce connected, you can interact with your Neon databases using natural language. Here are some example commands:
The Neon MCP server grants powerful database management capabilities through natural language. Always:
If you encounter issues:
For additional help, visit the Neon documentation or GitHub repository.