MCP Server Neon logo

MCP Server Neon

by neondatabase

Manage Neon Postgres projects, branches, schemas, endpoints, and queries through natural-language MCP tools.

Install MCP Server Neon

Pick your client, then add it in one click or paste the config.

STDIONode.js
~/Library/Application Support/Claude/claude_desktop_config.json
claude_desktop_config.json
{
  "mcpServers": {
    "neondatabase-mcp-server-neon": {
      "command": "npx",
      "args": [
        "-y",
        "neon@latest"
      ]
    }
  }
}

Settings → Developer → Edit Config, merge this into mcpServers, then fully quit and reopen Claude Desktop.

We couldn’t confirm it starts correctly

We ran the install command but it didn't respond within our test window — this can mean a slow first-time install rather than a real problem.

npx -y neon@latest

No response to initialize.

This is an experimental automated check and can have false negatives — missing environment variables, a slow cold install, etc. It doesn’t necessarily mean something’s wrong. Last checked .

Overview

neondatabase/mcp-server-neon connects MCP clients to Neon Lakebase Postgres through a remote HTTP server and natural-language requests. It exposes tools for projects, branches, compute endpoints, schema inspection, querying, migrations, authentication, data APIs, and related services. Use the managed server with OAuth or a Neon API key, or configure it through supported development tools. Its documentation recommends local development and IDE use rather than production deployment because requests can perform consequential database operations.

Use cases

  • Create Neon projects and PostgreSQL databases from natural-language instructions
  • Create branches for schema changes and database migrations
  • Run queries and inspect PostgreSQL schemas through an MCP client
  • Review project activity, query logs, computes, and database roles

Key features

  • Natural-language Neon database management
  • Project, branch, endpoint, and snapshot operations
  • Schema comparison, migrations, and SQL querying
  • Neon Auth and Data API provisioning
  • OAuth and API-key authentication
  • Category-based tool selection

Tools80

What MCP Server Neon lets your agent do. Expand a tool for its parameters.

Self-reported~290 tokens of context

Security & health

What it can reach and how reliably it runs — from our own checks, not the maintainer’s claims.

ActiveLast checked

Recent health check succeeded.

29/33 checks healthy over the last 99d

Supply-chain signal

No high-severity advisories surfaced by our automated scan.

Critical 0High 0Medium 0Low 0

Scanned 13d ago via OSV.dev · neon@latest (npm)

Adoption & maintenance

Factual signals from GitHub, npm, and our automated checks — not a rating.

GitHub stars665Stargazers on the source repository.
npm downloads1.5MPackage downloads in the last 30 days.
Last commit1d agoMost recent push to the default branch.
Install checkInconclusiveDidn't respond in our test window — often a slow first install.
Tools exposed80Callable tools this server registers over MCP.
Directory activity9 viewsConfig copies, upvotes, and views on AllMCPs.

How MCP Server Neon works

What neondatabase/mcp-server-neon does

neondatabase/mcp-server-neon lets an MCP-compatible client manage Neon Postgres databases using conversational instructions. It translates those requests into calls to the Neon API, so an agent can create or inspect projects, work with branches and endpoints, run database queries, and handle schema changes without requiring every operation to be written directly as SQL or API requests.

The server is organized around capability categories, including projects, branches, endpoints, snapshots, schema, querying, observability, documentation, functions, storage, realtime, Neon Auth, and the Neon Data API. The available operations include listing and deleting projects, describing projects, creating branches, resetting a branch from its parent, comparing schemas, querying logs, listing branch computes and PostgreSQL roles, and creating PostgreSQL databases.

How it works

A client sends a natural-language request through MCP. The server interprets the request and calls the relevant Neon API operation. For example, an agent can create a project and database, alter a table as part of a migration, or summarize projects and their data through a conversation.

Neon provides a hosted MCP endpoint at https://mcp.neon.tech/mcp. Query parameters can restrict the published tool categories. A configuration containing projects, branches, endpoints, querying, and schema exposes those areas, while the unfiltered endpoint publishes all categories.

Authentication is available through OAuth or a Neon API key. OAuth supports read and write scopes. OAuth access defaults to projects in the user's personal Neon account; prompts must include an organization ID or project ID when working with organization-owned projects.

Setup and configuration

The prerequisites are an MCP client, a Neon account, and Node.js 18 or newer. If Neon IP Allow is enabled, the MCP service addresses 34.192.103.46 and 23.22.233.166 must be added to the allowlist.

For Cursor, VS Code with GitHub Copilot, or Claude Code, run:

Terminal
npx neon@latest init

This command authenticates through OAuth, creates a Neon API key, and configures the relevant editor integrations.

For a hosted OAuth connection, use npx add-mcp with the Neon endpoint or add an HTTP entry to the client's MCP configuration. API-key authentication can be supplied through an Authorization: Bearer header. An organization's API key limits access to projects within that organization. The hosted setup requires no local installation of the server.

Development of the repository requires Node.js 22 or newer; pnpm is available through Corepack.

Tools and capabilities

  • Manage Neon projects, including listing, describing, and deleting them.
  • Create and reset database branches, compare schemas, and inspect branch computes.
  • Work with compute endpoints, PostgreSQL roles, snapshots, and PostgreSQL databases.
  • Run queries, inspect schemas, and review query logs.
  • Provision or use Neon Auth and the Neon Data API.
  • Access documented categories for functions, storage, realtime, observability, and related search, fetch, and feedback operations.

Limitations and notes

Review and approve every agent-requested action before execution. The tool surface can make changes to databases and projects, and unauthorized access could result in accidental or unwanted modifications. The project recommends using the server for local development and IDE integrations rather than production environments.

The selected category parameters affect which tools the client receives. OAuth permissions also affect whether operations are read-only or writable. Organization projects require explicit project or organization context when using OAuth.

Reviews

No reviews yet — be the first to share how it worked for you.

Frequently Asked Questions about MCP Server Neon

neondatabase/mcp-server-neon is an MCP server that connects AI clients to Neon Lakebase Postgres. Its main tools manage projects, branches, endpoints, schemas, snapshots, and PostgreSQL databases, while also supporting queries, schema comparisons, migrations, query logs, Neon Auth, and the Neon Data API through natural-language requests.

Use the hosted Neon MCP endpoint, or run `npx neon@latest init` for Cursor, VS Code with GitHub Copilot, or Claude Code. The hosted option requires no local server installation and can be configured with OAuth or an API key.

Yes, neondatabase/mcp-server-neon works with Cursor. Run `npx neon@latest init` to authenticate and configure it, or add the hosted HTTP endpoint to Cursor's MCP configuration. The repository also provides a Cursor installation link.

Authenticate with OAuth or a Neon API key. OAuth opens a browser authorization flow and supports read and write scopes; API-key clients send the key in an `Authorization: Bearer` header.

Yes, it supports migration workflows through natural-language requests, Neon branching, schema comparison, and database querying. A client can create a branch for changes and compare the resulting database schema.

Related MCP servers

Add a badge to your READMEShow it’s listed — live SVG, Markdown or HTML.

AllMCPs Directory Badge

Full Badge Customizer

Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.

Badge Style:
Live Dynamic SVG PreviewMCP Server Neon AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/neondatabase-mcp-server-neon?style=directory)](https://allmcps.com/mcp/neondatabase-mcp-server-neon)
HTML Embed
<a href="https://allmcps.com/mcp/neondatabase-mcp-server-neon"><img src="https://allmcps.com/api/badge/neondatabase-mcp-server-neon?style=directory" alt="MCP Server Neon on AllMCPs" /></a>