Skip to content

Neon MCP Server

Create Neon Postgres projects and branches, run SQL and test migrations safely.

Officialby NeonHosted, nothing to installChecked November 8, 2026

Neon's official MCP server is hosted at https://mcp.neon.tech/mcp and lets Claude manage Neon Postgres projects, branches and roles, run SQL, and test schema changes and query tuning on a temporary branch before they touch your main data. You connect with OAuth or a Neon API key, and npx neon@latest mcp can write the config for you. Neon recommends it for development and testing rather than production, and it has deprecated its old local npm package.

Who is Neon MCP for?

  • Developers using Neon Postgres
  • Teams that test schema changes on branches
  • Solo founders building on serverless Postgres

What can you ask Neon MCP to do?

Once it is connected, ask in plain words. Your AI tool decides when to use the server and asks before it changes anything important.

Prompt 1
Create a new Neon project called side-project and give me its connection string.
Prompt 2
Add a nullable last_login column to the users table, test it on a branch first, then apply it.
Prompt 3
Find the slowest queries on my main branch and suggest indexes for them.

How to connect Neon to Claude

MCP is an open standard. The setup steps below cover this server in Claude Code, Claude app, Codex, ChatGPT, Cursor, VS Code, Gemini CLI, Antigravity, OpenCode, Windsurf. Pick your tool:

New to MCP? Read what an MCP server is and how to add one.

Easiest: paste this into Claude Code
Connect the Neon MCP server to Claude Code for me: run this command: claude mcp add --transport http neon https://mcp.neon.tech/mcp
If a value starts with YOUR_, ask me for it first. When it is connected, help me sign in if needed and show me one thing I can ask it to do.

Or do it yourself:

claude mcp add --transport http neon https://mcp.neon.tech/mcp

Type /mcp inside Claude Code, pick the server and choose Authenticate to sign in.

Hosted address: https://mcp.neon.tech/mcp

Unlock the setup steps

Free. Leave your email once to open the setup steps for all 152 servers, and get the best new connectors each month.

No spam. One click to unsubscribe. We use your email to send you this bonus, new guides and news about our courses.

Good to know

Run /mcp to sign in, or add --header "Authorization: Bearer YOUR_NEON_API_KEY" to use an API key. Add ?readonly=true for read-only access and ?projectId=YOUR_PROJECT_ID to keep it to one project. If your project uses IP Allow, add 34.192.103.46 and 23.22.233.166.

How did we check Neon MCP?

Checked on November 8, 2026: Neon's MCP server docs (updated November 6, 2026), Neon's pricing page and the neondatabase/mcp-server-neon repo (MIT, 663 stars, last commit November 7, 2026). A test MCP initialize request to the hosted endpoint returned HTTP 401 (no authorization), the expected answer before sign-in.

Source: neon.com/docs/ai/neon-mcp-server

What do people ask about Neon MCP?

What does Neon MCP read-only mode block?

With ?readonly=true, SELECT queries and schema inspection still work, but write operations such as creating branches, running migrations and changing auth settings are turned off. run_sql_transaction and get_connection_string are unavailable too, so reads go through run_sql.

Can I still run the Neon MCP server locally?

Neon has deprecated the local package @neondatabase/mcp-server-neon, and the old /sse and /message endpoints now return 410 Gone. Use the hosted server: npx neon@latest mcp sets it up for your agent, and neon mcp -y --agent YOUR_AGENT --api-key YOUR_KEY does it without prompts, for CI.

Will Claude's work cost money on Neon's Free plan?

The Free plan is $0 with 100 projects, 10 branches per project and 100 CU-hours of compute per project each month, and its compute scales to zero after 5 minutes idle. Branches Claude creates count toward those limits; paid plans bill compute from $0.106 per CU-hour (Neon pricing page, checked November 8, 2026).

How do I keep Claude inside one Neon project?

Add ?projectId=YOUR_PROJECT_ID to the URL: list_projects and create_project disappear and every tool works in that project. ?category= limits the tool groups, and ?roleName= makes the SQL tools connect as a specific Postgres role.

We wrote these answers from the official pages of each product named, read on November 8, 2026.

Building a site around tools like Neon? Our Builders course, in early access, covers planning, design without a designer, launch and getting found on Google.