Neon MCP Server
Neon's hosted server for managing Neon Postgres projects and branches and running SQL; OAuth or API key
What it does
Neon runs this server itself at https://mcp.neon.tech/mcp. It lets an assistant act on a Neon account: list, create and delete projects and branches, run SQL, inspect schemas, run a schema migration on a temporary branch before applying it, and manage the newer parts of Neon such as Neon Auth, Functions, object storage, snapshots and Realtime. The old local npm package, @neondatabase/mcp-server-neon, is deprecated; clients that only speak stdio are pointed at the mcp-remote bridge instead.
The full tool list is very large. Neon publishes an endpoint that shows the tool set for any configuration without signing in: with every category enabled it listed 143 tools, about 41,081 tokens of definitions on every request. Neon's own docs say to switch on only the categories you need with ?category=; the five categories the README's example URL enables still come to 65 tools and about 19,086 tokens.
Neon says the server is for development and testing, not production databases, and asks you to review each action before it runs. It gives you several limits that are enforced on Neon's side: readonly=true (SQL then runs in a read-only transaction), projectId to pin one project, roleName to run SQL as a low-privilege Postgres role, and secrets=none to keep connection strings and passwords out of the model's transcript. By default SQL runs as the database owner and tool results can include credentials. The main endpoint refused our unauthenticated request with HTTP 401; only the docs-only endpoint (?category=docs) answered without a sign-in.
Tools
Listed by connecting to the server ourselves on Dec 1, 2026. The grouping uses the server's own annotations.
Read-only · 4
search_docsget_docsearch_apilist_incidents
Writes or acts · 1
send_feedback
Install
Claude Code
Not yet tested by usFrom Neon's documentation; not run by us.
claude mcp add --transport http neon https://mcp.neon.tech/mcp
Start a new session or run /mcp to sign in with OAuth. Neon also offers a plugin that adds its agent skills with the server: npx neon@latest plugins --agent claude-code.
Codex
Not yet tested by usFrom Neon's documentation; not run by us.
npx add-mcp https://mcp.neon.tech/mcp -a codex
This writes a neon entry to .codex/config.toml (-g for ~/.codex/config.toml). If Codex does not prompt for sign-in, run codex mcp login neon.
Cursor
Not yet tested by usFrom Neon's documentation; not run by us.
Run /add-plugin neon-postgres in Cursor chat for the plugin (skills plus server), or add the server alone to mcp.json:
{ "mcpServers": { "Neon": { "url": "https://mcp.neon.tech/mcp" } } }
Cursor asks you to sign in to Neon the first time it uses a tool.
Remote URL (any Streamable HTTP client)
Tested Dec 1, 2026 on mcp-server-neon 2.0.0 (docs-only endpoint), HTTP test client, protocol 2025-06-18; main endpoint refused without sign-in (401)There is nothing to install. Add this URL to a client that supports remote MCP servers; it will open a browser for Neon OAuth on first use:
https://mcp.neon.tech/mcp
To cut the tool list and limit what the agent can do, add parameters, for example https://mcp.neon.tech/mcp?readonly=true&category=querying&category=schema. For an API key instead of OAuth, send the header Authorization: Bearer <NEON_API_KEY>.
What we ran: with a plain HTTP test client and no credentials, https://mcp.neon.tech/mcp answered HTTP 401 and asked for authorization, so we could not list its tools. The docs-only URL https://mcp.neon.tech/mcp?category=docs completed the handshake with no sign-in and listed five tools (search_docs, get_doc, search_api, send_feedback, list_incidents). We did not call any tool, did not sign in, and have not tested it inside a specific client.
{
"mcpServers": {
"Neon": {
"url": "https://mcp.neon.tech/mcp",
"type": "http"
}
}
}Stdio-only clients (mcp-remote bridge)
Not yet tested by usFrom Neon's documentation; not run by us.
{
"mcpServers": {
"Neon": {
"command": "npx",
"args": ["-y", "mcp-remote@latest", "https://mcp.neon.tech/mcp"]
}
}
}
This replaces the deprecated @neondatabase/mcp-server-neon package. For an API key, add "--header", "Authorization:${NEON_AUTH_HEADER}" to the args and set NEON_AUTH_HEADER to Bearer <YOUR_NEON_API_KEY> in env.
Before you adopt it
6 of 6 key facts checked- Tools and what they can changeExactly what an agent can read, write or delete
- 143 tools with every category enabled, as listed by Neon's public /api/list-tools endpoint on 2026-12-01, in 13 categories plus a few global ones (projects, branches, endpoints, snapshots, schema, querying, neon_auth, data_api, observability, docs, functions, storage, realtime). 58 are flagged by Neon as safe in read-only mode; the rest change things, including delete_project, delete_branch, reset_from_parent, restore_snapshot, delete_storage_objects_by_prefix, rotate_credential and call_api, which sends any request to the Neon API. run_sql executes any SQL, writes included, and Neon's docs say it and explain_sql_statement carry destructiveHint. The docs-only endpoint, which we connected to, listed 5: search_docs, get_doc, search_api, send_feedback, list_incidents; all but send_feedback are marked read-only.Checked Dec 1, 2026 · source
- Required credentials and scopesLeast-privilege setup with no first-run failure
- A Neon account. The main endpoint answered our request with no credentials with HTTP 401 (invalid_token, "No authorization provided") and pointed to its OAuth metadata. Sign in with OAuth, which asks for the scopes read and/or write, or send a Neon API key as an Authorization: Bearer header. An organization API key limits access to that organization's projects. Only https://mcp.neon.tech/mcp?category=docs works without a sign-in.Checked Dec 1, 2026 · source
- Tool-definition token costContext used on every request
- About 41,081 tokens for all 143 tools; about 19,086 for the 65 tools of the README's example URL (projects, branches, endpoints, querying, schema); about 13,836 for the 60 tools left with readonly=true; about 1,320 for the 5 tools of the docs-only endpoint (size of the tool list divided by four; an estimate, not a tokeniser count). The first three are measured from Neon's /api/list-tools preview, not a signed-in tools/list reply.Checked Dec 1, 2026 · source
- Package and versionThe exact package or image you will run, and who publishes it
- Hosted only: https://mcp.neon.tech/mcp, which reported itself as "mcp-server-neon" 2.0.0 on the docs-only endpoint. Registry name com.neon/mcp, version 2.0.0. The npm package @neondatabase/mcp-server-neon (last 0.6.5, 2025-09-16) is marked deprecated in favour of the hosted server.Checked Dec 1, 2026 · source
- Where your data goesLocal only, or through the vendor's cloud; any telemetry
- Everything runs through Neon's cloud: the server is a Next.js app on Vercel that calls the Neon API and connects to your databases from two static IPs (34.192.103.46, 23.22.233.166). Query results, and by default connection strings and role passwords, are returned to your client and so reach your model provider. Telemetry: with a signed-in account the server sends your Neon account ID, name and email to Segment (via track.neon.tech) and records each tool call by name, without arguments or results; errors and traces go to Sentry.Checked Dec 1, 2026 · source
- Last releaseThe spec and upstream APIs change fast
- No GitHub releases (one old tag, v0.2.0). The registry entry com.neon/mcp 2.0.0 was published on 2026-11-05, and the hosted server reported version 2.0.0 on 2026-12-01. The repository had a commit on 2026-12-01; the hosted server deploys from it continuously.Checked Dec 1, 2026 · source
- Sign-in detailOAuth or static key, and where tokens are stored
- OAuth is the default: the client opens a browser and the authorization page lets you untick "Allow writes", pick one project, a Postgres role, tool categories and how many secrets to show. Parameters on the URL (readonly, projectId, category, roleName, secrets) become a fixed grant that the token keeps through refresh; to change it, authorize again. With an API key in the Authorization header, the URL parameters are read on every request, so anyone who can edit the URL can widen access. Stale OAuth credentials are cached under ~/.mcp-auth when using mcp-remote.Checked Dec 1, 2026 · source
- Rate limitsAgents loop quickly
- No limit is documented for the MCP server itself. It calls the Neon API, which allows 700 requests per minute (about 11 per second) with a burst of 40 per second per route, and answers HTTP 429 above that (as of 2026-12-01).Checked Dec 1, 2026 · source
- Known errors and fixesSaves an hour of debugging
- OAuth "invalid redirect uri": delete ~/.mcp-auth, restart the client and sign in again. Old /sse and /message URLs return 410 Gone; use https://mcp.neon.tech/mcp. Projects with IP Allow on must allowlist 34.192.103.46 and 23.22.233.166. Observability tools return 404 telemetry_not_enabled on branches without log access. An invalid roleName or secrets value returns 400 rather than being ignored.Checked Dec 1, 2026 · source
- Runtime requirementsNode, Python, Docker, operating system
- Nothing to install for clients that speak Streamable HTTP. The setup helpers (npx neon, npx add-mcp, npx mcp-remote for stdio-only clients) need Node.js 18 or newer.Checked Dec 1, 2026 · source
- Read-only modeSafe use against production data
- Yes. Add ?readonly=true to the URL (API key) or untick "Allow writes" when authorizing (OAuth). Write tools are then hidden (60 tools remain), run_sql runs each query in a READ ONLY transaction, run_sql_transaction, get_connection_string and call_api are withheld, and no secrets are shown. For a tighter limit, pin a Postgres role with only SELECT grants using ?roleName=; roles created in the Neon Console belong to neon_superuser and can read everything.Checked Dec 1, 2026 · source
- Security recordProvenance and published advisories
- Neon warns that the server can make powerful changes, recommends it for development and testing only, and says never to connect it to production databases or data with PII. It notes that gateways and "code mode" clients can call many tools without showing approval prompts, and recommends limiting the connection itself. No security advisories are published on the GitHub repository as of 2026-12-01. The deprecated npm package receives no further updates.Checked Dec 1, 2026 · source
