PlugWiki
mcp-server-neon logo

Neon MCP Server: Setup for Claude, Cursor and Other Apps

OfficialRemoteLocal
Gethttps://mcp.neon.tech/mcpneondatabase/mcp-server-neon

Lets Claude, Cursor and other assistants create and manage Neon Postgres databases, run SQL and test schema changes on a safe branch.

This is Neon's own hosted server. You sign in with your Neon account and the assistant can create projects and branches, run SQL, compare schemas and tune slow queries. Schema changes first run on a temporary branch, so your main branch is untouched until you approve. Neon says this server is meant for local development and IDE use, not for production. The README names over 100 tools but says the Management API ones are generated, so the exact set you see depends on the categories and read-only setting in your server address.

Good for

  • Developers who set up and change Postgres schemas from their editor
  • Teams who want a safe branch for each migration
  • People who want to ask questions about their data in plain language

Works in

14 should work

Tap an app to see how to set it up and any known problems.

Install mcp-server-neon

Claude Code

  1. 1

    Copy this prompt.

    Add the mcp-server-neon server to Claude Code. Run this command:
    
    claude mcp add --transport http neon https://mcp.neon.tech/mcp
    
    Then check that it loaded and tell me if I need to sign in or restart.
  2. 2

    Paste it into Claude Code. It shows the change and asks before running it.

Requires Sign-in with the vendor account (OAuth).

Hosted OAuth is the default. Add ?readonly=true (and projectId) to the address for a limited grant. Neon says the server is for local development and IDE use, not production.

Built from the package data we hold. Not yet tested by us.

Tools

  • Runs a SQL query on your database

    Runs one SQL statement on a Neon database. It can read and also change or delete data, unless read-only mode is on.

    Try: “Show the 10 newest rows in the users table.”

    Delete · run_sql

  • Runs several SQL statements together

    Runs a series of SQL statements in one transaction. Not available in read-only mode.

    Try: “Insert these three orders and update the stock in one go.”

    Delete · run_sql_transaction

  • Lists the tables in a database

    Lists all tables in a Neon database.

    Try: “What tables are in my database?”

    Read · get_database_tables

  • Shows the columns of a table

    Returns the columns, types and constraints of one table.

    Try: “Describe the users table.”

    Read · describe_table_schema

  • Shows what is in a branch

    Returns a tree of databases, schemas, tables, views and functions on a branch.

    Try: “Show the structure of my main branch.”

    Read · describe_branch

  • Compares two branches' schemas

    Shows the SQL differences between a database and another branch.

    Try: “What changed in schema between dev and main?”

    Read · compare_database_schema

  • Gets your connection string

    Returns a connection string for your database. Withheld in read-only mode.

    Try: “Give me the connection string for my main branch.”

    Read · get_connection_string

  • Lists your Neon projects

    Lists the projects in your account.

    Try: “List my Neon projects.”

    Read · list_projects

  • Shows one project

    Fetches a project by ID.

    Try: “Show details of my-project.”

    Read · describe_project

  • Creates a project

    Creates a Neon project and waits for its default compute.

    Try: “Create a project called my-database.”

    Write · create_project

  • Deletes a project

    Deletes a Neon project.

    Try: “Delete the project old-test.”

    Delete · delete_project

  • Lists your organizations

    Lists the organizations you can access.

    Try: “Which Neon organizations am I in?”

    Read · list_organizations

Read from the source code

Permissions

high risk · 3 things to watch

High risk

It can run any SQL, change schemas and delete projects, branches and data. Turn on read-only mode, scope it to one project, and review each action before you approve it.

What it can do

Watch out for

  • It can delete projects, branches and data

    Delete tools and unrestricted SQL are available by default. Use readonly=true and a projectId in the address to limit it. raw.githubusercontent.com

  • Neon says not to use it in production

    The README says it is for local development and IDE integrations and warns it can make accidental or unauthorized changes. Point it at a development project. raw.githubusercontent.com

  • The connection string tool returns a privileged password

    It is withheld in read-only mode. Avoid asking the assistant to print it in shared chats. raw.githubusercontent.com

Security advisories

No published security advisories as of Nov 1, 2026.

Technical details
Turning on read-onlyAdd ?readonly=true to the server address, or untick Allow writes on the sign-in page. Other options: projectId, category and roleName.
Talks tomcp.neon.tech
Sign-in and keysOAuth: the token is held by your AI app. API key: a bearer token you put in the client config.
Scopes
  • OAuth scopes read and write, or a Neon API key

Questions

Is the Neon MCP server official?

Yes. It is published by Neon in the neondatabase/mcp-server-neon repository.

What is the Neon MCP server URL?

https://mcp.neon.tech/mcp. Add it in your AI app and sign in with your Neon account.

Can I make it read-only?

Yes. Add ?readonly=true to the server address, or untick Allow writes on the sign-in page. In read-only mode the SQL tool runs each query inside a read-only transaction.

Can I limit it to one project?

Yes. Add projectId to the address. You can also limit tool groups with category, and run SQL as a chosen database role with roleName.

Do I need an API key?

No. OAuth sign-in is the easiest option. An API key in an Authorization header is supported for remote agents where OAuth is not available, and an organization key limits access to that organization.

Does it work in production?

Neon says no. The README states it is intended for local development and IDE integrations and does not recommend it for production.

What is the npx neon init command?

It signs you in, creates a Neon API key for you and sets up the server in Cursor, VS Code or Claude Code in one command.

Information

updated Nov 2, 2026

Publisher
Official
Package
mcp/neon
Registry
Docker
Endpoint
https://mcp.neon.tech/mcp
Transport
Streamable HTTP, stdio
Auth
OAuth
Version
1.0.0
License
MIT
Last commit
Oct 31, 2026
Open issues
20
Listed in
Official MCP registry, Docker MCP Catalog

WebsiteGitHubDockerDocker MCP CatalogIssues

Other PostgreSQL MCP servers

Sources

Docs, issue trackers and discussions this page is built from. Issues, quotes and findings above link to their own source.

Show all 1
  1. raw.githubusercontent.com · raw.githubusercontent.com

Facts from the official MCP registry, GitHub, npm, PyPI and the Docker catalog. Updated Nov 2, 2026.