Skip to content

Neon MCP server

  • MCP server
  • 59+ callable tools
  • 5 capabilities
Installation guide

Overview

Neon publishes this hosted MCP server, which lets AI agents manage Neon Postgres projects, branches, databases and related services through the Neon API.

Capabilities:

  • Manage Neon projects and branches
  • Run SQL queries and transactions
  • Apply schema migrations on temporary branches
  • Inspect schemas and diagnose slow queries
  • Configure Neon Auth, Data API, storage, functions and Realtime

Works with

The products your agent can work with through this server.

Tools

The callable functions your agent uses to work with this server.

Neon MCP server tools
ToolWhat it does
get_connection_string(the connection string carries a privileged role password, so it is withheld in read-only mode; copy it from the Neon Console instead)
run_sql_transaction(its statements run in one session, so a COMMIT or SET TRANSACTION READ WRITE statement would end the read-only transaction)
prepare_database_migration, complete_database_migration
prepare_query_tuning, complete_query_tuning
list_projectsLists Neon projects. limit caps how many items come back.
count_projectsReturns the number of active projects in an organization.
describe_projectFetches a Neon project by id ({ "project_id": "…" }).
get_project_consumption, get_branch_consumption: Consumption metrics per project or per branch, grouped by billing period.
create_projectCreates a Neon project and waits for the default compute.
delete_projectDeletes an existing Neon project.
list_organizationsLists all organizations that the current user has access to.
list_branchesLists branches in a project.
list_credentials, create_credential, revoke_credential, rotate_credential: Branch-scoped credentials for Object Storage and the AI Gateway.
create_branchCreates a branch with a read-write compute and waits until it is ready.
reset_from_parentResets a branch to its parent's current HEAD ({ "project_id": "…", "branch_id": "br-…" }).
delete_branchDeletes a branch ({ "project_id": "…", "branch_id": "br-…" }).
describe_branchRetrieves a tree of databases, schemas, tables, views, and functions on a branch.
restore_snapshotRestores a snapshot. Pass target_branch_id to restore onto an existing branch; omit it to create a new one.
list_postgres_endpoints, list_branch_computes, get_postgres_endpoint, create_postgres_endpoint, update_postgres_endpoint, delete_postgres_endpoint, start_postgres_endpoint, suspend_po
list_snapshots, get_snapshot_schedule, set_snapshot_schedule, create_snapshot, update_snapshot, delete_snapshot, restore_snapshot
get_database_tables, describe_table_schema
compare_database_schemaSQL schema diff of one database against another branch.
run_sqlExecutes a single SQL query against a specified Neon database.
describe_table_schemaRetrieves the schema definition of a specific table, detailing columns, data types, and constraints.
complete_database_migrationFinalizes and applies a prepared database migration to the main branch.
inspect_databaseRuns one of 15 predefined read-only Postgres diagnostics against a branch — relation and index sizes, index and sequential-scan usage, active queries and locks,
list_slow_queriesIdentifies performance bottlenecks by finding the slowest queries in a database.
explain_sql_statementProvides detailed execution plans for SQL queries to help identify performance bottlenecks.
complete_query_tuningFinalizes query tuning by either applying optimizations to the main branch or discarding them.
provision_neon_auth, get_auth, disable_auth, update_auth_config
get_neon_auth_configSecrets redacted. Reads trusted origins, localhost access, email and password, OAuth providers, the email provider, the organization, magic link, and phone numb
update_auth_allow_localhost, update_auth_email_and_password, update_auth_email_provider, send_auth_test_email, update_auth_plugins_organization, update_auth_plugins_magic_link, update_aut
list_auth_oauth_providers, add_auth_oauth_provider, update_auth_oauth_provider, delete_auth_oauth_provider
get_auth_oauth_server, update_auth_oauth_server: Configure Neon Auth as an OAuth 2.1 authorization server (including for MCP servers).
list_auth_oauth_clients, get_auth_oauth_client, create_auth_oauth_client, update_auth_oauth_client, delete_auth_oauth_client, rotate_auth_oauth_client_secret: Manage the OAuth clients
list_auth_trusted_domains, add_auth_trusted_domain, delete_auth_trusted_domain
create_auth_user, delete_auth_user, update_auth_user_role
provision_neon_data_api, get_data_api, update_data_api, delete_data_api: Manage the Data API for a branch database.
searchSearches across organizations, projects, and branches matching a query.
fetchFetches detailed information about a specific organization, project, or branch using an ID (typically from the search tool).
send_feedbackSends anonymous feedback to the Neon team.
query_logsQueries OpenTelemetry logs for a branch.
query_loki_logsRuns a LogQL range query on the branch's Loki-compatible read API and returns Loki's response: lines grouped by stream labels, with nanosecond timestamps.
list_log_fieldsLists the log fields you can enumerate values for on a branch.
list_log_field_valuesLists the distinct values of a log field within a branch and time window.
search_docsSearches neon.com (docs, API reference, PostgreSQL tutorial, guides, FAQs, changelog, and blog) with the same search as the neon.com search box.
get_docFetches one neon.com page as markdown.
list_functions, get_function, update_function, delete_function, deploy_function
list_functions_custom_domains, register_functions_custom_domain, delete_functions_custom_domain
list_triggers, get_trigger, create_trigger, update_trigger, delete_trigger: Scheduled function triggers (type: "schedule", five-field UTC cron).
list_storage_buckets, create_storage_bucket, delete_storage_bucket
list_storage_objects, delete_storage_object, delete_storage_objects_by_prefix
presign_storage_object, get_storage
get_realtime, enable_realtime, disable_realtime: Branch Realtime state, enable (optional allowed_origins), and disable.
get_realtime_secretThe shared secret the application backend issues Realtime tokens with.
rotate_realtime_secretReplaces the shared secret and waits until the change is applied.
create_postgres_roleCreates a Postgres role; with access set to read_only it creates a role limited to reading.
list_postgres_rolesLists the Postgres roles, one of the branch management tools.
list_incidentsLists Neon incidents so an agent can tell a Neon incident from its own mistake.

Installation

Add Neon MCP server to Claude Code

Run this in your terminal:

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

If the server asks you to sign in, run /mcp in Claude Code and follow the browser prompt.

Other servers for the same products, or from the same vendor.

Sources

Documentation and source code reviewed on 10 November 2026.