# neondatabase/mcp-server-neon [Official] [Health: Active]

**Category:** 🗄️ Databases  
**Repository:** https://github.com/neondatabase/mcp-server-neon  
**GitHub Stars:** 667  
**npm Downloads (last month):** 1930313  
**Views:** 9  
**Installs:** 0  
**Upvotes:** 0  
**Directory Page:** https://allmcps.com/mcp/neondatabase-mcp-server-neon

## Description
An MCP Server for creating and managing Postgres databases using Neon Serverless Postgres

## Tools
Capabilities this server exposes over MCP:

- **projects**
- **branches**
- **endpoints**
- **snapshots**
- **schema**
- **querying**
- **neon_auth**
- **data_api**
- **observability**
- **docs**
- **functions**
- **storage**
- **realtime**
- **null**
- **search**
- **fetch**
- **send_feedback**
- **projects.list**
- **list_projects**
- **delete_project**
- **query_logs**
- **describe_project**
- **create_branch**
- **reset_from_parent**
- **compare_database_schema**
- **provision_neon_auth**
- **provision_neon_data_api**
- **list_branch_computes**
- **list_postgres_roles**
- **create_postgres_database**
- **list_project_members**
- **list_project_permissions**
- **get_database_tables**
- **describe_table_schema**
- **readOnlySafe**
- **scope**
- **count_projects**
- **create_project**
- **get_project_consumption**
- **get_branch_consumption**
- **list_organizations**
- **list_regions**
- **limit**
- **org_id**
- **metrics**
- **from**
- **to**
- **granularity**
- **project_ids**
- **extra_branches_month**
- **snapshot_storage_bytes_month**
- **get_connection_string**
- **list_branches**
- **list_credentials**
- **create_credential**
- **revoke_credential**
- **rotate_credential**
- **reveal**
- **preserve_under_name**
- **restore_snapshot**
- **delete_branch**
- **describe_branch**
- **branch_id**
- **br-...**
- **target_branch_id**
- **list_postgres_endpoints**
- **get_postgres_endpoint**
- **create_postgres_endpoint**
- **update_postgres_endpoint**
- **delete_postgres_endpoint**
- **start_postgres_endpoint**
- **suspend_postgres_endpoint**
- **restart_postgres_endpoint**
- **list_snapshots**
- **get_snapshot_schedule**
- **set_snapshot_schedule**
- **create_snapshot**
- **update_snapshot**
- **delete_snapshot**
- **database_name**

## Claude Desktop Quick Installation
Install path detected from listing signals. Uses `npx` (confidence: high):

```json
"mcpServers": {
  "mcp-server-neon": {
    "command": "npx",
    "args": ["-y","neon@latest"]
  }
}
```

## Documentation

## 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:

```bash
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.

_Full upstream README: https://allmcps.com/mcp/neondatabase-mcp-server-neon/readme_

