Neon MCP Server
Lets your AI agent manage Neon Postgres projects, branches and databases in plain language, including running SQL and migrations.
663 stars on GitHubby NeonLicense MITUpdated 18 days ago
How to install
This MCP is remote: it runs in the cloud.
Nothing to install. Copy the address and paste it into your AI app:
Server address
https://mcp.neon.tech/mcp
- βΊClaude (site or app): Settings β Connectors β Add custom connector.
- βΊChatGPT: Settings β Apps β Create app (developer mode), and paste the address.
- βΊClaude Code, Cursor, VS Code and Windsurf: pick your app below.
Paste in the terminal:
claude mcp add --transport http neon https://mcp.neon.tech/mcp --header "Authorization: <your value>"
What to fill in
| Name | What it is | Required |
|---|---|---|
Authorization | Optional Bearer token with a Neon API key. | No |
x-read-only | Optional header to enable read-only mode for tool filtering. | No |
Ready! Now test it
Restart the app and paste one of these requests in the chat:
Create a new Postgres database called my-database with a users table.
Run a migration on my-project that adds a created_at column to users.
What it is
This server connects your agent to Neon, a hosted Postgres service. You can ask it to create projects and branches, run queries and change database schemas without writing SQL or calling the API yourself. It can be set to read-only and limited to one project.
What it can do
run_sql: run a query, in a read-only transaction in read-only moderun_sql_transaction: run several statements in one transaction- Create projects and branches
- Run database migrations
- List projects and describe schemas
- View performance metrics
When to use
- βΊWhen you want to create a new Postgres database and tables by describing them
- βΊWhen you want to try a schema change on a branch before applying it
- βΊWhen you want a summary of all your Neon projects and what data each one holds
What you need
Skills that pair well
MCP or skill?
The MCP gives the agent the hands. The skill teaches the right way to use them. Together, the result is better and uses fewer tokens.
neon-postgres-branchesHelps your agent create and manage different versions (branches) of a database. It's useful for testing changes without affecting main data.neon-postgresGives your agent patterns for Neon serverless Postgres, including connection pooling, database branching and Prisma or Drizzle setup.sql-database-assistantHelps your agent write and speed up SQL queries, explore a database schema, and create migrations for common database tools.Frequently asked questions
Is it free and open source?
The server is open source under the MIT license. You need a Neon account; pricing is not in the readme.
How do I sign in?
Use OAuth in your browser, or pass a Neon API key in the Authorization header.
Can I make it read-only?
Yes. Add readonly=true to the URL, or uncheck Allow writes on the OAuth page. You can also limit it to one project or tool categories.
Is it safe for production?
The readme says it is meant for local development and IDE use and does not recommend production. Always review actions before they run.
Which clients work?
Cursor, VS Code, Claude Code, Kiro and other MCP clients.
Why can I not see organization projects?
With OAuth it uses your personal account by default. Give the org_id or project_id in your prompt to reach organization projects.
If it does not work
- βΊRestart or refresh your MCP client, then complete the OAuth window in your browser.
- βΊIf IP Allow is enabled on Neon, add 34.192.103.46 and 23.22.233.166 to the allowlist.
- βΊRun npx neon@latest init to set up the key and your editor automatically.
5 new skills a week. 1 minute to read.