Database · Developer Tools

Neon logo

Neon

neondatabase-labs/mcp-server-neon

Neon MCP Server is an open-source tool that lets you interact with your Lakebase Postgres databases on Neon in natural language.

Install

npx neon@latest init

Client configuration

{
  "mcpServers": {
    "Neon": {
      "url": "https://mcp.neon.tech/mcp?category=projects&category=branches&category=endpoints&category=querying&category=schema"
    }
  }
}
GitHub stars
195
Category
Database, Developer Tools
License
MIT
Updated
Oct 6, 2026

About Neon

The Model Context Protocol (MCP) is a standardized protocol designed to manage context between large language models (LLMs) and external systems. This repository provides a remote MCP Server for Neon.

Features

  • null (tools without a scope category: search, fetch, send_feedback)

  • Management API tools come from @neon/tools. Selectors are SDK paths (projects.list); published MCP names are verb-first (list_projects, delete_project, query_logs). Historical names stay where they…

  • category=branches includes branch, role, and database tools (list_postgres_roles, create_postgres_database, …). A token already issued for branches gains those writes. Compute listing…

  • Project member and permission writes are not published. list_project_members and list_project_permissions are reads.

  • Schema tools (?category=schema) are the host tools get_database_tables and describe_table_schema, plus generated compare_database_schema.

  • Read-only enforcement still relies on readOnlySafe and server-side read-only logic; scope is category metadata, not a standalone read/write switch.

  • In project-scoped mode (?projectId=...), tools without a project path (list_projects, create_project, list_organizations, list_regions, search, fetch, …) are hidden. delete_project is also hidden.

Tools (40)

  • projects

  • branches

  • endpoints

  • snapshots

  • schema

  • querying

  • neon_auth

  • data_api

  • observability

  • docs

  • functions

  • storage

  • list_projects

    Lists Neon projects. limit caps how many items come back.

  • describe_project

    Fetches a Neon project by id ({ "project_id": "…" }).

  • create_project

    Creates a Neon project and waits for the default compute.

  • delete_project

    Deletes an existing Neon project.

  • list_organizations

    Lists all organizations that the current user has access to.

  • list_branches

    Lists branches in a project.

  • list_credentials

    create_credential, revoke_credential, rotate_credential: Branch-scoped credentials for Object Storage and the AI Gateway. reveal is not a tool; rotation…

  • create_branch

    Creates a branch with a read-write compute and waits until it is ready.

  • reset_from_parent

    Resets a branch to its parent's current HEAD ({ "project_id": "…", "branch_id": "br-…" }).

  • delete_branch

    Deletes a branch ({ "project_id": "…", "branch_id": "br-…" }).

  • describe_branch

    Retrieves a tree of databases, schemas, tables, views, and functions on a branch.

  • restore_snapshot

    Restores a snapshot.

  • list_postgres_endpoints

    list_branch_computes, get_postgres_endpoint, create_postgres_endpoint, update_postgres_endpoint, delete_postgres_endpoint, start_postgres_endpoint,…

  • list_snapshots

    get_snapshot_schedule, set_snapshot_schedule, create_snapshot, update_snapshot, delete_snapshot, restore_snapshot

  • get_database_tables

    describe_table_schema

  • compare_database_schema

    SQL schema diff of one database against another branch. database_name is required.

  • get_connection_string

    Returns your database connection string.

  • run_sql

    Executes a single SQL query against a specified Neon database.

  • run_sql_transaction

    Executes a series of SQL queries within a single transaction against a Neon database.

  • describe_table_schema

    Retrieves the schema definition of a specific table, detailing columns, data types, and constraints.

  • prepare_database_migration

    Initiates a database migration process.

  • complete_database_migration

    Finalizes and applies a prepared database migration to the main branch.

  • inspect_database

    Runs one of 15 predefined read-only Postgres diagnostics against a branch — relation and index sizes, index and sequential-scan usage, active queries and…

  • list_slow_queries

    Identifies performance bottlenecks by finding the slowest queries in a database.

  • explain_sql_statement

    Provides detailed execution plans for SQL queries to help identify performance bottlenecks.

  • prepare_query_tuning

    Analyzes query performance and suggests optimizations, like index creation.

  • complete_query_tuning

    Finalizes query tuning by either applying optimizations to the main branch or discarding them.

  • provision_neon_auth

    get_auth, disable_auth, update_auth_config

Details on this page are taken from the project's README. Open README

Supported clients

Clients mentioned in this server's README:

View all
Claude Desktop logo

Claude Desktop

Desktop · Freemium · Proprietary

Anthropic's official Claude AI desktop application. Supports MCP servers to extend functionality.

WindowsMacOS
Cline logo

Cline

Desktop · Free · MIT

An AI coding assistant integrated into the IDE. Supports MCP servers for enhanced functionality.

WindowsMacOSLinux
Cursor logo

Cursor

Desktop · Freemium · Proprietary

The first agentic IDE. The Cursor editor truly merges how developers and AI work together, delivering a magical coding experience.

WindowsMacOSLinux
Windsurf logo

Windsurf

Desktop · Freemium · Proprietary

The first agentic IDE. The Windsurf editor truly merges how developers and AI work together.

WindowsMacOSLinux

Related MCP servers

More servers
Supabase MCP logo

Supabase MCP

supabase-community/supabase-mcp

1.3k

The Model Context Protocol (MCP) standardizes how Large Language Models (LLMs) talk to external services like Supabase. It connects AI assistants directly with your Supabase project and allows them to perform tasks like managing tables, fetching config, and querying data. See the full list of tools.

Database
Genai Toolbox logo

Genai Toolbox

googleapis/genai-toolbox

769

MCP Toolbox for Databases is an open source Model Context Protocol (MCP) server that connects your AI agents, IDEs, and applications directly to your enterprise databases.

Database
Supabase MCP Server logo

Supabase MCP Server

alexander-zuev/supabase-mcp-server

677

Query MCP is an open-source MCP server that lets your IDE safely run SQL, manage schema changes, call the Supabase Management API, and use Auth Admin SDK — all with built-in safety controls.

Database
Awesome MCP List logo

Awesome MCP List

MobinX/awesome-mcp-list

645

This is a continuously updated curated list of MCP servers, covering categories such as browser control, arts and culture, cloud platforms, command line, communication, customer data platforms, databases, developer tools, data science tools, file systems, finance and fintech, gaming, knowledge and memory, location services, marketing, monitoring, search and utilities. Each project includes a GitHub link and star count for quick reference and use.

Database
PostgreSQL Model Context Protocol (PG MCP) Server logo

PostgreSQL Model Context Protocol (PG MCP) Server

stuzero/pg-mcp-server

440

PG-MCP is a server implementation of the Model Context Protocol for PostgreSQL databases. It provides a comprehensive API for AI agents to discover, connect to, query, and understand PostgreSQL databases through MCP's resource-oriented architecture.

Database
dbhub logo

dbhub

bytebase/dbhub

332

[!NOTE] If you need an enterprise-level database MCP server with built-in guardrails like approval flow, access control, data masking, and audit logging beyond what DBHub offers, check out Bytebase.

Database