Neon Serverless Postgres MCP

๐Ÿ›ก๏ธ Officialโœ“ VerifiedSSEOAuth 2.14 toolsยทDegraded166msยท30d uptime: 100%ยทLast checked 18m ago

Neon's hosted MCP (mcp.neon.tech) exposes the open-source neondatabase/mcp-server-neon toolset remotely: projects, branches, schemas and SQL execution with OAuth.

https://mcp.neon.tech/sse
Provider
Neon โ†—
Source
https://github.com/neondatabase/mcp-server-neon โ†—
Categories
๐Ÿ—„๏ธ Databases & Backend-as-a-Service
ไธญๆ–‡็ฎ€ไป‹

Neon ๅฎ˜ๆ–น่ฟœ็จ‹ MCP ๆœๅŠกๅ™จ๏ผˆServerless Postgres๏ผ‰ใ€‚้€š่ฟ‡ SSE ไธŽ OAuth๏ผŒAI ไปฃ็†ๅฏ็ฎก็†้กน็›ฎใ€ๅˆ›ๅปบๅˆ†ๆ”ฏๅนถๆ‰ง่กŒ SQLใ€‚

SSEhttps://mcp.neon.tech/sse
Install in Cursor โ†’

Or add to ~/.cursor/mcp.json:

{
  "mcpServers": {
    "neon": {
      "url": "https://mcp.neon.tech/sse"
    }
  }
}

๐Ÿงฐ Tools exposed by Neon MCP (4)

ToolSafetyDescriptionParameters
list_projects๐ŸŸข ReadList Neon projects accessible to the authorized account.โ€”
run_sql๐ŸŸ  WriteExecute SQL against a Neon database. Can modify data โ€” review statements carefully.projectId*: stringdatabaseName: stringsql*: string
create_branch๐ŸŸ  WriteCreate a new branch in a Neon project.projectId*: stringbranchName: string
describe_table_schema๐ŸŸข ReadDescribe the schema of a table in a Neon database.projectId*: stringdatabaseName: stringtableName*: string

๐Ÿ” OAuth 2.1 & Security

Auth type
OAuth 2.1
Dynamic Client Registration
โœ… Supported
PKCE S256
โœ… Supported
Protected resource metadata
https://mcp.neon.tech/.well-known/oauth-protected-resource (expected location)
๐Ÿ” Audit OAuth 2.1 Config โ†’

๐Ÿงฉ Recommended Agent Skills

๐Ÿ“– Guide

Neon MCP โ€” Remote MCP Server

Neon's remote MCP is the hosted twin of the open-source mcp-server-neon: list projects, create database branches, describe schemas and run SQL โ€” all authorized through Neon OAuth. Neon's branching model makes it friendly to agents: have them create a branch, run migrations there, and merge when green.

Endpoint & Transport

  • Endpoint URL: https://mcp.neon.tech/sse
  • Transport: HTTP+SSE (legacy SSE transport)

Authentication

Neon MCP uses OAuth 2.1 โ€” the first request returns a 401 Unauthorized challenge with a WWW-Authenticate header pointing at the authorization metadata. Compliant clients (Cursor, Claude, VS Code, ChatGPT) handle the whole flow โ€” PKCE and Dynamic Client Registration, so no manual client setup is needed โ€” and simply open a browser consent screen.

Available Tools (4)

Tool Safety Description
list_projects read List Neon projects accessible to the authorized account.
run_sql write Execute SQL against a Neon database. Can modify data โ€” review statements carefully.
create_branch write Create a new branch in a Neon project.
describe_table_schema read Describe the schema of a table in a Neon database.

Connect in 30 Seconds

Claude Code โ€” one command:

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

Cursor โ€” add to ~/.cursor/mcp.json:

{ "mcpServers": { "neon": { "url": "https://mcp.neon.tech/sse" } } }

VS Code โ€” add to .vscode/mcp.json:

{ "servers": { "neon": { "type": "sse", "url": "https://mcp.neon.tech/sse" } } }

Claude Desktop & stdio clients โ€” bridge with mcp-remote:

{ "mcpServers": { "neon": { "command": "npx", "args": ["-y", "mcp-remote", "https://mcp.neon.tech/sse"] } } }

On first connect your client opens a browser OAuth consent screen โ€” approve it and tools become available immediately.

Troubleshooting

  • 401 Unauthorized on connect โ€” that's expected; the server is OAuth-protected. Let your client complete the browser consent flow, or inspect the endpoint in our OAuth debugger to see the exact WWW-Authenticate challenge.
  • Client says "unsupported transport" โ€” this endpoint only speaks the legacy SSE transport. Use a client with SSE support (Claude Code: claude mcp add --transport sse) or bridge it with mcp-remote.
  • "Session expired" / stale Mcp-Session-Id โ€” just re-send initialize; stateless clients can ignore session headers entirely.
  • SSE transport โ€” use --transport sse or an SSE-capable client.
  • run_sql executes real statements โ€” point agents at branches rather than production.

๐Ÿš€ How to Connect

  1. Copy the Neon MCP endpoint URL
    The remote endpoint is https://mcp.neon.tech/sse.
  2. Add it to your MCP client
    Claude Code: claude mcp add --transport sse neon https://mcp.neon.tech/sse. Cursor: add "neon": { "url": "https://mcp.neon.tech/sse" } under mcpServers in ~/.cursor/mcp.json. Other clients work similarly.
  3. Complete the OAuth consent
    On first connection your client opens a Neon consent screen in the browser. Approve it to grant access; the token is stored by the client and refreshed automatically.
  4. Verify with the online inspector
    Paste https://mcp.neon.tech/sse into remotemcp.net/inspector, run initialize and tools/list, and confirm Neon MCP's 4 tools respond.

โ“ FAQ

What is the Neon MCP remote MCP endpoint?

The primary endpoint is https://mcp.neon.tech/sse. It is an official first-party server operated by Neon, speaking the HTTP+SSE (legacy SSE transport) transport.

How do I authenticate with Neon MCP?

Neon MCP uses OAuth 2.1. When your client first connects it receives a 401 challenge, discovers the authorization server via RFC 9728 metadata, and opens a browser consent screen. Dynamic Client Registration is supported, so compliant clients register themselves automatically.

I'm getting a 401 Unauthorized from Neon MCP โ€” what's wrong?

A 401 means your client hasn't completed (or has lost) the OAuth authorization. Remove and re-add the server in your client to restart the consent flow, and check that your browser session can reach the provider's login page. If the 401 arrives without a WWW-Authenticate header, run it through our OAuth debugger to see what's missing.

Which MCP clients work with Neon MCP?

Any client that supports remote MCP servers: Cursor, Claude Code (`claude mcp add --transport sse neon https://mcp.neon.tech/sse`), VS Code Copilot, ChatGPT connectors, Windsurf, and Claude Desktop via the `mcp-remote` bridge. Note this server only offers the SSE transport, so the client must support SSE.

What tools does Neon MCP expose?

4 tools are cataloged in this directory โ€” including `list_projects`, `run_sql`, `create_branch` and more. Use our online inspector to fetch the live tool list straight from the endpoint.

๐Ÿ”— Connect Guides

๐Ÿ“› Embed Status Badge in README

Neon MCP status badge
[![Remote MCP Status](https://remotemcp.net/api/badge/status/neon.svg)](https://remotemcp.net/servers/neon)
Neon MCP inspector badge
[![Test in Inspector](https://remotemcp.net/api/badge/inspect/neon.svg)](https://remotemcp.net/inspector?url=https%3A%2F%2Fmcp.neon.tech%2Fsse)

Related Servers

Supabase MCPSupabase

Supabase's hosted MCP server for your projects and databases. Agents can run SQL, apply migrations and generate TypeScript types with OAuth-scoped access.

https://mcp.supabase.com/mcp
๐Ÿ›ก๏ธ Officialโœ“ VerifiedStreamable HTTPOAuth 2.15 toolsOnline37ms