Skip to content
Skillpedia
βœ“ Official Β· Neon● Free and open source☁️ RemoteπŸ”‘ Needs an API keyData and databases

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

NameWhat it isRequired
AuthorizationOptional Bearer token with a Neon API key.No
x-read-onlyOptional 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 mode
  • run_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

A Neon account and an MCP client. Connect with OAuth or a Neon API key. Node.js 18 or newer is needed for the setup commands.

Skills that pair well

⭐ Skillpedia MCP Β· freeYour agent finds the right skill on its ownInstall our MCP and your agent searches 15,000+ skills whenever it needs one.Install for free β†’

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.