MCP server · Databases
Neon Postgres MCP server
The Neon MCP server is Neon’s official MCP server for Neon serverless Postgres. It lets an assistant manage projects and branches, run SQL, and test schema migrations on a temporary branch first. It runs remotely at https://mcp.neon.tech/mcp with OAuth sign-in; with write access it can delete projects and run any SQL.
- Maintainer
- Neon (official)
- Licence
- MIT
- Runs
- Remote (URL)
- Sign-in
- OAuth sign-in in the app
- Registry version
- 2.0.0 (updated 2026-11-05)
- Last activity
- 2026-10-13
Overview
What can the Neon MCP server do?
Neon’s MCP server is a hosted endpoint at mcp.neon.tech that turns plain-language requests into calls to the Neon API and to your Postgres databases. You sign in with OAuth, or send a Neon API key in an Authorization header, and nothing runs on your machine. URL parameters limit what the assistant sees: tool categories, a single project, read-only mode, or a fixed Postgres role for every query.
It suits day-to-day development on Neon. The assistant can create a project or branch, inspect tables, explain a slow query and suggest an index. Migrations and query tuning run on a temporary branch first, so you can review the result before it reaches your main branch. Neon says the server is meant for local development and IDE use, not production. If you would rather not set up a key by hand, the README also offers “npx neon@latest init” to configure your editor in one step.
Tools
Tools it gives the assistant
- Project, organisation and branch management
- SQL execution with run_sql and run_sql_transaction
- Schema inspection and schema diffs between branches
- Migrations tested on a temporary branch before they are applied
- Query tuning, slow-query lists and EXPLAIN plans
- Compute endpoints, snapshots, Neon Auth and Data API tools
- Search across organisations, projects and branches
Install
How do I install Neon MCP in Claude Code, Cursor or VS Code?
You need:
- A Neon account
- An MCP client that supports remote servers and OAuth
Run in your project. --scope local keeps the servers private to you in this project; use user for every project.
claude mcp add --scope local --transport http neon 'https://mcp.neon.tech/mcp?category=projects&category=branches&category=endpoints&category=querying&category=schema'
- neon: if the server needs a sign-in, the app will ask (run /mcp in Claude Code).
macOS: ~/Library/Application Support/Claude/claude_desktop_config.json · Windows: %APPDATA%\Claude\claude_desktop_config.json (Settings → Developer → Edit Config). Restart Claude after saving.
{
"mcpServers": {}
}
- neon is a remote server: add it as a custom connector (Customize → Connectors → + Add → Add custom connector; on Team and Enterprise plans an owner adds it under Organization settings → Connectors), with the URL https://mcp.neon.tech/mcp?category=projects&category=branches&category=endpoints&category=querying&category=schema.
In your project, or ~/.cursor/mcp.json for every project.
{
"mcpServers": {
"neon": {
"url": "https://mcp.neon.tech/mcp?category=projects&category=branches&category=endpoints&category=querying&category=schema"
}
}
}
- neon: if the server needs a sign-in, the app will ask.
In your workspace. VS Code asks for each secret the first time a server starts and stores it securely.
{
"servers": {
"neon": {
"type": "http",
"url": "https://mcp.neon.tech/mcp?category=projects&category=branches&category=endpoints&category=querying&category=schema"
}
}
}
- neon: if the server needs a sign-in, the app will ask.
Need another app? Open Neon MCP Server in the MCP config generator for a shared project .mcp.json, Devin, or several servers at once; it writes one file per app. The snippets follow the setup in the server’s README, checked on 2026-10-14.
Is the Neon MCP server safe? Check before you install
- With write access the assistant can create and delete projects and branches and run any SQL, so review each action before it runs.
- Add readonly=true to the URL to remove write tools; run_sql then runs each query in a READ ONLY transaction. Add projectId to limit it to one project.
- Use roleName to run all SQL as a Postgres role with only the grants the agent needs.
- A remote server sees whatever the assistant sends it. Sign in with the narrowest access the service offers. See how to choose a safe server.
FAQ
Neon MCP questions
Is the Neon MCP server official?
Yes. Neon publishes and maintains it, under the MIT licence. Install it only from the source linked on this page, not from a copy in another directory.
Is Neon MCP server remote or local?
Remote. Your MCP app connects to https://mcp.neon.tech/mcp?category=projects&category=branches&category=endpoints&category=querying&category=schema over HTTP, so nothing runs on your machine and the service sees the requests the assistant sends.
Does Neon MCP server need an API key or account?
Yes, a sign-in. Your MCP app opens an OAuth sign-in to the service the first time it connects, and the server then acts with that account’s permissions. You also need: A Neon account; An MCP client that supports remote servers and OAuth.
Why it’s listed
Why we list it
Official, actively developed and hosted, with unusually fine-grained scoping for a database server.
Related
Alternatives and related servers: databases
- Prisma MCP server
- MongoDB MCP Server
- Redis MCP Server
- ClickHouse MCP Server
- DuckDB / MotherDuck Local MCP Server
- mcp-server-qdrant
All MCP serversMCP config generatorGuide: MCP servers in Claude CodeGuide: what is MCP?