The Neon MCP connector routes your AI agent's tool calls to Neon's own MCP server through Scalekit. Each user signs in to Neon once, and Scalekit stores and refreshes their tokens, so your agent never handles credentials. It comes with 143 tools.
- Tools
- 143
- What they doRead · write · destructive
- 61 · 60 · 2261 read60 write22 destructive
- Users sign in with
- OAuth
- OAuth app
- Scalekit's or your own
Setup
Install the SDK
Terminal window npm install @scalekit-sdk/node dotenvTerminal window pip install scalekit-sdk-python python-dotenvSet your credentials
Add your Scalekit credentials to your
.envfile. Find values in app.scalekit.com > Developers > API Credentials..env SCALEKIT_ENVIRONMENT_URL=<your-environment-url>SCALEKIT_CLIENT_ID=<your-client-id>SCALEKIT_CLIENT_SECRET=<your-client-secret>Create the Neon MCP connection
In AgentKit > Connections, create a Neon MCP connection. The name you give it is the
connection_nameyour code passes. See Configure connections.Scalekit credentials are available for Neon MCP server, so you don't need to register an OAuth app.
Authorize a user and make your first call
quickstart.mts import { ScalekitClient } from '@scalekit-sdk/node'import 'dotenv/config'import { createInterface } from 'node:readline/promises'const scalekit = new ScalekitClient(process.env.SCALEKIT_ENVIRONMENT_URL,process.env.SCALEKIT_CLIENT_ID,process.env.SCALEKIT_CLIENT_SECRET,)const actions = scalekit.actionsconst connector = 'neonmcp'const identifier = 'user_123'// Generate an authorization link for the userconst { link } = await actions.getAuthorizationLink({ connectionName: connector, identifier })console.log('Authorize Neon MCP:', link)const rl = createInterface({ input: process.stdin, output: process.stdout })await rl.question('Press Enter after authorizing...')rl.close()// Make your first callconst result = await actions.executeTool({connector,identifier,toolName: 'neonmcp_describe_project',toolInput: {},})console.log(result)Terminal window npx tsx quickstart.mtsquickstart.py import osfrom scalekit import ScalekitClientfrom dotenv import load_dotenvload_dotenv()scalekit_client = ScalekitClient(env_url=os.getenv("SCALEKIT_ENVIRONMENT_URL"),client_id=os.getenv("SCALEKIT_CLIENT_ID"),client_secret=os.getenv("SCALEKIT_CLIENT_SECRET"),)actions = scalekit_client.actionsconnection_name = "neonmcp"identifier = "user_123"# Generate an authorization link for the userlink_response = actions.get_authorization_link(connection_name=connection_name,identifier=identifier,)print("Authorize Neon MCP:", link_response.link)input("Press Enter after authorizing...")# Make your first callresult = actions.execute_tool(tool_input={},tool_name="neonmcp_describe_project",connection_name=connection_name,identifier=identifier,)print(result)Terminal window python quickstart.pyEach user signs in once. See Authorize a user for the full flow and statuses.
Tools
Pass the exact name toexecute_toolneonmcp_compare_database_schemaCompare the database schema between two branches to identify differences in tables, columns, and constraints.Read-onlyCompare Database Schema
Compare the database schema between two branches to identify differences in tables, columns, and constraints.
Inputs
branch_idstringrequired- A br-... id, not a name.
database_namestringrequired- Name of the database for which the schema is retrieved
base_branch_idstring- Branch id (br-...) to compare against, not its name. Omit for the parent branch.
base_lsnstring- The Log Sequence Number (LSN) for the base branch schema
base_timestampstring- The point in time for the base branch schema
lsnstring- The Log Sequence Number (LSN) for which the schema is retrieved
project_idstring- Project id. Required for an unscoped connection. May be omitted when the connection is scoped to one project; if provided, it must match that project.
timestampstring- The point in time for which the schema is retrieved
neonmcp_describe_branchGet a tree view of all objects in a branch including databases, schemas, tables, views, and functions.Read-onlyDescribe Branch
Get a tree view of all objects in a branch including databases, schemas, tables, views, and functions.
Inputs
branch_idstringrequired- A br-... id, not a name.
database_namestring- Database name. Omit for neondb, else the first database.
project_idstring- Project id. Required for an unscoped connection. May be omitted when the connection is scoped to one project; if provided, it must match that project.
neonmcp_describe_projectGet details and configuration of a specific Neon project by its ID.Read-onlyDescribe Project
Get details and configuration of a specific Neon project by its ID.
Inputs
project_idstring- Project id. Required for an unscoped connection. May be omitted when the connection is scoped to one project; if provided, it must match that project.
neonmcp_describe_table_schemaGet column definitions, data types, and constraints for a specific table in a Neon database.Read-onlyDescribe Table Schema
Get column definitions, data types, and constraints for a specific table in a Neon database.
Inputs
table_namestringrequired- The table name, optionally schema-qualified (for example, crm.contacts)
branch_idstring- A br-... id, not a name. Omit it for the default branch.
database_namestring- Database name. Omit for neondb, else the first database.
project_idstring- Project id. Required for an unscoped connection. May be omitted when the connection is scoped to one project; if provided, it must match that project.
neonmcp_explain_sql_statementAnalyze the query execution plan for a SQL statement using EXPLAIN ANALYZE.Read-onlyExplain Sql Statement
Analyze the query execution plan for a SQL statement using EXPLAIN ANALYZE.
Inputs
sqlstringrequired- The SQL statement to explain.
analyzeboolean- Run EXPLAIN ANALYZE, which executes the statement and its side effects.default
false branch_idstring- A br-... id, not a name. Omit it for the default branch.
database_namestring- Database name. Omit for neondb, else the first database.
project_idstring- Project id. Required for an unscoped connection. May be omitted when the connection is scoped to one project; if provided, it must match that project.
neonmcp_fetchFetch detailed information about a specific organization, project, or branch using its ID.Read-onlyFetch
Fetch detailed information about a specific organization, project, or branch using its ID.
Inputs
idstringrequired- The entity ID returned by the `search` tool.
neonmcp_get_ai_gatewayReturns the AI Gateway endpoint host for the specified branch, used to render code-snippet base URLs.Read-onlyGet Ai Gateway
Returns the AI Gateway endpoint host for the specified branch, used to render code-snippet base URLs. branch_id is a branch id (br-...), not a branch name. Call list_branches to resolve a name.
Inputs
branch_idstringrequired- No description.
project_idstring- Required for an unscoped connection. May be omitted when the connection is scoped to one project; if provided, it must match that project.
neonmcp_get_authRetrieves the Neon Auth integration details for the specified branch, including the auth provider type and integration status.Read-onlyGet Auth
Retrieves the Neon Auth integration details for the specified branch, including the auth provider type and integration status. branch_id is a branch id (br-...), not a branch name. Call list_branches to resolve a name.
Inputs
branch_idstringrequired- No description.
project_idstring- Required for an unscoped connection. May be omitted when the connection is scoped to one project; if provided, it must match that project.
neonmcp_get_auth_oauth_clientReturns an OAuth client registered with the branch's Neon Auth OAuth server.Read-onlyGet Auth Oauth Client
Returns an OAuth client registered with the branch's Neon Auth OAuth server. Not a social login provider. branch_id is a branch id (br-...), not a branch name. Call list_branches to resolve a name.
Inputs
branch_idstringrequired- No description.
client_idstringrequired- No description.
project_idstring- Required for an unscoped connection. May be omitted when the connection is scoped to one project; if provided, it must match that project.
neonmcp_get_auth_oauth_serverRetrieves how Neon Auth acts as an OAuth 2.1 authorization server for the branch, including for MCP servers.Read-onlyGet Auth Oauth Server
Retrieves how Neon Auth acts as an OAuth 2.1 authorization server for the branch, including for MCP servers. This is Better Auth's OAuth Provider plugin (API plugin `oauth_provider`), not social login; for providers such as GitHub or Google call `list_auth_oauth_providers`. branch_id is a branch id (br-...), not a branch name. Call list_branches to resolve a name.
Inputs
branch_idstringrequired- No description.
project_idstring- Required for an unscoped connection. May be omitted when the connection is scoped to one project; if provided, it must match that project.
neonmcp_get_branchRetrieves information about the specified branch.Read-onlyGet Branch
Retrieves information about the specified branch. branch_id is a branch id (br-...), not a branch name. Call list_branches to resolve a name.
Inputs
branch_idstringrequired- No description.
project_idstring- Required for an unscoped connection. May be omitted when the connection is scoped to one project; if provided, it must match that project.
neonmcp_get_branch_consumptionReturns consumption metrics per branch for the 1 to 100 projects in `project_ids`, grouped by billing period.Read-onlyGet Branch Consumption
Returns consumption metrics per branch for the 1 to 100 projects in `project_ids`, grouped by billing period. Pass `branch_ids` to narrow it. Requires a usage-based Launch, Scale, Agent, or Enterprise plan; other plans return HTTP 403. `metrics` is required, one or more of `compute_unit_seconds`, `root_branch_bytes_month`, `child_branch_bytes_month`, `instant_restore_bytes_month`, `public_network_transfer_bytes`, `private_network_transfer_bytes`, `functions_active_capacity_microseconds`, `functions_waiting_capacity_microseconds`, `functions_invocations`, `functions_egress_bytes`; any other name returns HTTP 400. `extra_branches_month`, `snapshot_storage_bytes_month` are per-project only, on `get_project_consumption`. `org_id` is required; call `list_organizations` for it. `from` and `to` are UTC date-times rounded to `granularity`: `hourly` reaches back 168 hours, `daily` 60 days, `monthly` one year. Returns every page. Pass `limit` to cap how many. There is no `cursor` argument.
Inputs
fromstringrequired- Specify the start `date-time` for the consumption period.
granularitystringrequired- Specify the granularity of consumption metrics.one of
hourlydailymonthly metricsarrayrequired- Required. List the metrics to return.
org_idstringrequired- Organization ID.
project_idsarrayrequired- Project IDs to include (required, 1 to 100).
tostringrequired- Specify the end `date-time` for the consumption period.
branch_idsarray- Optional branch IDs to filter the response (up to 100).
limitinteger- Maximum number of branches per page.
neonmcp_get_connection_stringGet a PostgreSQL connection string for a Neon database, resolving project, branch, and database automatically.Read-onlyGet Connection String
Get a PostgreSQL connection string for a Neon database, resolving project, branch, and database automatically.
Inputs
branch_idstring- A br-... id, not a name. Omit it for the default branch.
compute_idstring- Compute endpoint id (ep-...). Omit for the read-write compute.
database_namestring- Database name. Omit for neondb, else the first database.
project_idstring- Project id. Required for an unscoped connection. May be omitted when the connection is scoped to one project; if provided, it must match that project.
role_namestring- Postgres role to log in as. Omit for the database owner.
neonmcp_get_data_apiRetrieves the Neon Data API configuration for the specified branch, including endpoint URL, enabled state, and database settings.Read-onlyGet Data Api
Retrieves the Neon Data API configuration for the specified branch, including endpoint URL, enabled state, and database settings. branch_id is a branch id (br-...), not a branch name. Call list_branches to resolve a name.
Inputs
branch_idstringrequired- No description.
database_namestringrequired- No description.
project_idstring- Required for an unscoped connection. May be omitted when the connection is scoped to one project; if provided, it must match that project.
neonmcp_get_database_tablesList all tables in a Neon database on a specific branch.Read-onlyGet Database Tables
List all tables in a Neon database on a specific branch.
Inputs
branch_idstring- A br-... id, not a name. Omit it for the default branch.
database_namestring- Database name. Omit for neondb, else the first database.
project_idstring- Project id. Required for an unscoped connection. May be omitted when the connection is scoped to one project; if provided, it must match that project.
neonmcp_get_default_branchResolve the project's default branch by the default flag, not by name.Read-onlyGet Default Branch
Resolve the project's default branch by the default flag, not by name.
Inputs
project_idstring- Required for an unscoped connection. May be omitted when the connection is scoped to one project; if provided, it must match that project.
neonmcp_get_docFetch one neon.com page as markdown.Read-onlyGet Doc
Fetch one neon.com page as markdown. Pass the slug of a search_docs hit (for example docs/guides/prisma).
Inputs
slugstringrequired- The slug of a hit returned by search_docs, e.g. 'docs/guides/prisma' or 'postgresql/tutorial/inner-join'.
neonmcp_get_doc_resourceFetch a specific Neon documentation page as markdown content by its URL.Read-onlyGet Doc Resource
Fetch a specific Neon documentation page as markdown content by its URL.
Inputs
slugstringrequired- The docs page slug (path) to fetch, e.g. 'docs/guides/prisma.md'. Slugs use .md file endings matching the URLs in the documentation index. Use the list_docs_resources tool first to discover available slugs.
neonmcp_get_functionReturns the function identified by its slug.Read-onlyGet Function
Returns the function identified by its slug. branch_id is a branch id (br-...), not a branch name. Call list_branches to resolve a name.
Inputs
branch_idstringrequired- No description.
slugstringrequired- No description.
project_idstring- Required for an unscoped connection. May be omitted when the connection is scoped to one project; if provided, it must match that project.
neonmcp_get_neon_auth_configRead the full Neon Auth configuration for a specific branch.Read-onlyGet Neon Auth Config
Read the full Neon Auth configuration for a specific branch.
Inputs
branch_idstring- A br-... id, not a name. Omit it for the project's default branch.
project_idstring- Project id. Required for an unscoped connection. May be omitted when the connection is scoped to one project; if provided, it must match that project.
neonmcp_get_operationRetrieves details for the specified operation.Read-onlyGet Operation
Retrieves details for the specified operation.
Inputs
operation_idstringrequired- No description.
project_idstring- Required for an unscoped connection. May be omitted when the connection is scoped to one project; if provided, it must match that project.
neonmcp_get_postgres_databaseRetrieves information about the specified database.Read-onlyGet Postgres Database
Retrieves information about the specified database. branch_id is a branch id (br-...), not a branch name. Call list_branches to resolve a name.
Inputs
branch_idstringrequired- No description.
database_namestringrequired- No description.
project_idstring- Required for an unscoped connection. May be omitted when the connection is scoped to one project; if provided, it must match that project.
neonmcp_get_postgres_endpointRetrieves information about the specified compute endpoint.Read-onlyGet Postgres Endpoint
Retrieves information about the specified compute endpoint.
Inputs
endpoint_idstringrequired- No description.
project_idstring- Required for an unscoped connection. May be omitted when the connection is scoped to one project; if provided, it must match that project.
neonmcp_get_postgres_roleRetrieves details about the specified role.Read-onlyGet Postgres Role
Retrieves details about the specified role. branch_id is a branch id (br-...), not a branch name. Call list_branches to resolve a name.
Inputs
branch_idstringrequired- No description.
role_namestringrequired- No description.
project_idstring- Required for an unscoped connection. May be omitted when the connection is scoped to one project; if provided, it must match that project.
neonmcp_get_project_consumptionReturns consumption metrics per project in an organization, grouped by billing period.Read-onlyGet Project Consumption
Returns consumption metrics per project in an organization, grouped by billing period. Omitting `project_ids` returns every project with history in the organization, including deleted ones; pass `project_ids` to narrow it. Requires a Launch, Scale, Agent, Business, or Enterprise plan; other plans return HTTP 403. `metrics` is required, one or more of `compute_unit_seconds`, `root_branch_bytes_month`, `child_branch_bytes_month`, `instant_restore_bytes_month`, `public_network_transfer_bytes`, `private_network_transfer_bytes`, `functions_active_capacity_microseconds`, `functions_waiting_capacity_microseconds`, `functions_invocations`, `functions_egress_bytes`, `extra_branches_month`, `snapshot_storage_bytes_month`; unknown names return no data instead of an error. `org_id` is required; call `list_organizations` for it. `from` and `to` are UTC date-times rounded to `granularity`: `hourly` reaches back 168 hours, `daily` 60 days, `monthly` one year. Returns every page. Pass `limit` to cap how many. There is no `cursor` argument. For per-branch numbers, call `get_branch_consumption`.
Inputs
fromstringrequired- Specify the start `date-time` for the consumption period.
granularitystringrequired- Specify the granularity of consumption metrics.one of
hourlydailymonthly metricsarrayrequired- Required. List the metrics to return.
org_idstringrequired- Organization ID.
tostringrequired- Specify the end `date-time` for the consumption period.
limitinteger- Maximum number of projects per page.
project_idsarray- Optional project IDs to filter the response (up to 100).
neonmcp_get_realtimeRetrieves whether Realtime is enabled for the branch, whether a change is still being applied, and, once provisioned, its invocation URL and allowed origins.Read-onlyGet Realtime
Retrieves whether Realtime is enabled for the branch, whether a change is still being applied, and, once provisioned, its invocation URL and allowed origins. branch_id is a branch id (br-...), not a branch name. Call list_branches to resolve a name.
Inputs
branch_idstringrequired- No description.
project_idstring- Required for an unscoped connection. May be omitted when the connection is scoped to one project; if provided, it must match that project.
neonmcp_get_realtime_secretRetrieves the secret the application backend issues Realtime tokens with.Read-onlyGet Realtime Secret
Retrieves the secret the application backend issues Realtime tokens with. Requires write access: the secret lets its holder issue Realtime tokens for the branch, so it is unavailable in read-only mode. Call `enable_realtime` first. branch_id is a branch id (br-...), not a branch name. Call list_branches to resolve a name.
Inputs
branch_idstringrequired- No description.
project_idstring- Required for an unscoped connection. May be omitted when the connection is scoped to one project; if provided, it must match that project.
neonmcp_get_snapshot_scheduleReturns the backup schedule for the specified branch, including the configured snapshot frequencies.Read-onlyGet Snapshot Schedule
Returns the backup schedule for the specified branch, including the configured snapshot frequencies. branch_id is a branch id (br-...), not a branch name. Call list_branches to resolve a name.
Inputs
branch_idstringrequired- No description.
project_idstring- Required for an unscoped connection. May be omitted when the connection is scoped to one project; if provided, it must match that project.
neonmcp_get_storageReturns whether branchable object storage is usable for the specified branch.Read-onlyGet Storage
Returns whether branchable object storage is usable for the specified branch. branch_id is a branch id (br-...), not a branch name. Call list_branches to resolve a name.
Inputs
branch_idstringrequired- No description.
project_idstring- Required for an unscoped connection. May be omitted when the connection is scoped to one project; if provided, it must match that project.
neonmcp_get_triggerReturns the trigger visible on the branch.Read-onlyGet Trigger
Returns the trigger visible on the branch. branch_id is a branch id (br-...), not a branch name. Call list_branches to resolve a name.
Inputs
branch_idstringrequired- No description.
trigger_idstringrequired- No description.
project_idstring- Required for an unscoped connection. May be omitted when the connection is scoped to one project; if provided, it must match that project.
neonmcp_inspect_databaseRun a predefined, read-only Postgres diagnostic check (table sizes, unused indexes, locks, bloat, etc.) against a Neon branch.Read-onlyInspect Database
Run a predefined, read-only Postgres diagnostic check (table sizes, unused indexes, locks, bloat, etc.) against a Neon branch.
Inputs
checkstringrequired- The diagnostic to run.one of
table-sizesindex-sizesunused-indexesseq-scanslong-running-queriesstalled-querieslocksoutlierscallslfc-hit-rateworking-setvacuum-statsbloatreplication-slotssubscriptions branch_idstring- A br-... id, not a name. Omit it for the default branch.
compute_idstring- Compute endpoint id (ep-...). Omit for the read-write compute.
database_namestring- Database to inspect, or to connect through for a compute-wide check. Omit for every database; one failure fails the run.
limitinteger- Rows to return. Raise it only when truncated is true.default
50 project_idstring- Project id. Required for an unscoped connection. May be omitted when the connection is scoped to one project; if provided, it must match that project.
neonmcp_list_auth_oauth_clientsLists the OAuth clients registered with the branch's Neon Auth OAuth server (apps and MCP clients that users authorize).Read-onlyList Auth Oauth Clients
Lists the OAuth clients registered with the branch's Neon Auth OAuth server (apps and MCP clients that users authorize). Not social login providers. branch_id is a branch id (br-...), not a branch name. Call list_branches to resolve a name.
Inputs
branch_idstringrequired- No description.
project_idstring- Required for an unscoped connection. May be omitted when the connection is scoped to one project; if provided, it must match that project.
neonmcp_list_auth_oauth_providersLists the OAuth providers configured for the specified branch's Neon Auth integration.Read-onlyList Auth Oauth Providers
Lists the OAuth providers configured for the specified branch's Neon Auth integration. branch_id is a branch id (br-...), not a branch name. Call list_branches to resolve a name.
Inputs
branch_idstringrequired- No description.
project_idstring- Required for an unscoped connection. May be omitted when the connection is scoped to one project; if provided, it must match that project.
neonmcp_list_auth_trusted_domainsLists the trusted domains in the redirect URI whitelist for the specified branch.Read-onlyList Auth Trusted Domains
Lists the trusted domains in the redirect URI whitelist for the specified branch. branch_id is a branch id (br-...), not a branch name. Call list_branches to resolve a name.
Inputs
branch_idstringrequired- No description.
project_idstring- Required for an unscoped connection. May be omitted when the connection is scoped to one project; if provided, it must match that project.
neonmcp_list_branch_computesList all compute endpoints for a project or branch.Read-onlyList Branch Computes
List all compute endpoints for a project or branch.
Inputs
branch_idstringrequired- No description.
project_idstring- Required for an unscoped connection. May be omitted when the connection is scoped to one project; if provided, it must match that project.
neonmcp_list_branchesRetrieves a list of branches for the specified project.Read-onlyList Branches
Retrieves a list of branches for the specified project. Returns every page. Pass limit to cap how many.
Inputs
include_deletedboolean- No description.
limitinteger- No description.
project_idstring- Required for an unscoped connection. May be omitted when the connection is scoped to one project; if provided, it must match that project.
searchstring- No description.
sort_bystring- No description.one of
namecreated_atupdated_at sort_orderstring- No description.one of
ascdesc
neonmcp_list_credentialsReturns metadata for customer-issued credentials on the branch.Read-onlyList Credentials
Returns metadata for customer-issued credentials on the branch. branch_id is a branch id (br-...), not a branch name. Call list_branches to resolve a name.
Inputs
branch_idstringrequired- No description.
project_idstring- Required for an unscoped connection. May be omitted when the connection is scoped to one project; if provided, it must match that project.
neonmcp_list_docs_resourcesList all available Neon documentation pages from the Neon docs index.Read-onlyList Docs Resources
List all available Neon documentation pages from the Neon docs index.
Inputs
This tool takes no inputs.
neonmcp_list_functionsLists functions on the specified branch.Read-onlyList Functions
Lists functions on the specified branch. Returns every page. Pass limit to cap how many. branch_id is a branch id (br-...), not a branch name. Call list_branches to resolve a name.
Inputs
branch_idstringrequired- No description.
limitinteger- No description.
project_idstring- Required for an unscoped connection. May be omitted when the connection is scoped to one project; if provided, it must match that project.
neonmcp_list_functions_custom_domainsLists all custom domains registered on the branch, across every target entity.Read-onlyList Functions Custom Domains
Lists all custom domains registered on the branch, across every target entity. Returns every page. Pass limit to cap how many. branch_id is a branch id (br-...), not a branch name. Call list_branches to resolve a name.
Inputs
branch_idstringrequired- No description.
limitinteger- No description.
project_idstring- Required for an unscoped connection. May be omitted when the connection is scoped to one project; if provided, it must match that project.
neonmcp_list_incidentsLists open Neon incidents and maintenance from neonstatus.com and the affected components and regions.Read-onlyList Incidents
Lists open Neon incidents and maintenance from neonstatus.com and the affected components and regions. Needs no credentials. Call it when Neon requests fail unexpectedly or the user asks whether Neon is down.
Inputs
This tool takes no inputs.
neonmcp_list_log_field_valuesList the distinct values of a log field (e.g.Read-onlyList Log Field Values
List the distinct values of a log field (e.g. service_name or severity_text) within a branch and time window.
Inputs
branch_idstringrequired- A br-... id, not a name.
field_namestringrequired- A field name from list_log_fields.
end_timestring- Exclusive end of the lookup window.
limitinteger- Maximum number of distinct values to return.
project_idstring- Project id. Required for an unscoped connection. May be omitted when the connection is scoped to one project; if provided, it must match that project.
sincestring- Length of the lookup window, ending at `end_time` or at the current time when `end_time` is omitted.
sourcestring- Only consider records emitted by this Neon service. neon_auth returns 404 telemetry_not_enabled when the project's Neon Auth logs are not enabled, even when other sources return logs.one of
functionstoragepg_endpointneon_auth start_timestring- Inclusive beginning of the lookup window.
neonmcp_list_log_fieldsList the log fields whose values list_log_field_values can enumerate for a branch (e.g.Read-onlyList Log Fields
List the log fields whose values list_log_field_values can enumerate for a branch (e.g. service_name, severity_text, scope_name, entity_type).
Inputs
branch_idstringrequired- No description.
project_idstring- Required for an unscoped connection. May be omitted when the connection is scoped to one project; if provided, it must match that project.
neonmcp_list_operationsLists operations for a project.Read-onlyList Operations
Lists operations for a project. Omitting `limit` returns every remaining page. There is no `cursor` argument.
Inputs
limitinteger- No description.
project_idstring- Required for an unscoped connection. May be omitted when the connection is scoped to one project; if provided, it must match that project.
neonmcp_list_organizationsList all organizations the current user belongs to, with optional name or ID filter.Read-onlyList Organizations
List all organizations the current user belongs to, with optional name or ID filter.
Inputs
searchstring- Filter results by partial name or ID.
neonmcp_list_postgres_databasesRetrieves a list of databases for the specified branch.Read-onlyList Postgres Databases
Retrieves a list of databases for the specified branch. branch_id is a branch id (br-...), not a branch name. Call list_branches to resolve a name.
Inputs
branch_idstringrequired- No description.
project_idstring- Required for an unscoped connection. May be omitted when the connection is scoped to one project; if provided, it must match that project.
neonmcp_list_postgres_endpointsRetrieves a list of compute endpoints for the specified project.Read-onlyList Postgres Endpoints
Retrieves a list of compute endpoints for the specified project.
Inputs
project_idstring- Required for an unscoped connection. May be omitted when the connection is scoped to one project; if provided, it must match that project.
neonmcp_list_postgres_rolesRetrieves a list of Postgres roles from the specified branch.Read-onlyList Postgres Roles
Retrieves a list of Postgres roles from the specified branch. branch_id is a branch id (br-...), not a branch name. Call list_branches to resolve a name.
Inputs
branch_idstringrequired- No description.
project_idstring- Required for an unscoped connection. May be omitted when the connection is scoped to one project; if provided, it must match that project.
neonmcp_list_project_membersLists organization members and their per-project roles for an org-owned project.Read-onlyList Project Members
Lists organization members and their per-project roles for an org-owned project. Returns every page. Pass limit to cap how many.
Inputs
limitinteger- No description.
project_idstring- Required for an unscoped connection. May be omitted when the connection is scoped to one project; if provided, it must match that project.
neonmcp_list_project_permissionsRetrieves details about users who have access to the project, including the permission `id`, the granted-to email address, and the date project access was granted.Read-onlyList Project Permissions
Retrieves details about users who have access to the project, including the permission `id`, the granted-to email address, and the date project access was granted.
Inputs
project_idstring- Required for an unscoped connection. May be omitted when the connection is scoped to one project; if provided, it must match that project.
neonmcp_list_projectsList Neon projects in your account with optional search and pagination.Read-onlyList Projects
List Neon projects in your account with optional search and pagination.
Inputs
limitinteger- No description.
org_idstring- No description.
recoverableboolean- No description.
searchstring- No description.
timeoutinteger- No description.
neonmcp_list_regionsLists Neon regions available to the authenticated account.Read-onlyList Regions
Lists Neon regions available to the authenticated account.
Inputs
This tool takes no inputs.
neonmcp_list_slow_queriesList slow queries from a Neon database to identify performance bottlenecks.Read-onlyList Slow Queries
List slow queries from a Neon database to identify performance bottlenecks.
Inputs
branch_idstring- A br-... id, not a name. Omit it for the default branch.
compute_idstring- Compute endpoint id (ep-...). Omit for the read-write compute.
database_namestring- Database name. Omit for neondb, else the first database.
limitnumber- Maximum number of queries to return.default
10 min_execution_timenumber- Ignored; results are not filtered by time.default
1000 project_idstring- Project id. Required for an unscoped connection. May be omitted when the connection is scoped to one project; if provided, it must match that project.
neonmcp_list_snapshotsLists the snapshots for the specified project.Read-onlyList Snapshots
Lists the snapshots for the specified project.
Inputs
project_idstring- Required for an unscoped connection. May be omitted when the connection is scoped to one project; if provided, it must match that project.
neonmcp_list_storage_bucketsLists branchable object storage buckets visible on the specified branch, including those inherited from ancestor branches.Read-onlyList Storage Buckets
Lists branchable object storage buckets visible on the specified branch, including those inherited from ancestor branches. branch_id is a branch id (br-...), not a branch name. Call list_branches to resolve a name.
Inputs
branch_idstringrequired- No description.
project_idstring- Required for an unscoped connection. May be omitted when the connection is scoped to one project; if provided, it must match that project.
neonmcp_list_storage_objectsLists objects visible in the named bucket on the specified branch, including those inherited from ancestor branches.Read-onlyList Storage Objects
Lists objects visible in the named bucket on the specified branch, including those inherited from ancestor branches. Returns every page. Pass limit to cap how many. branch_id is a branch id (br-...), not a branch name. Call list_branches to resolve a name.
Inputs
branch_idstringrequired- No description.
bucket_namestringrequired- No description.
delimiterstring- No description.
limitinteger- No description.
prefixstring- No description.
project_idstring- Required for an unscoped connection. May be omitted when the connection is scoped to one project; if provided, it must match that project.
neonmcp_list_triggersLists the complete project-bounded set of triggers visible on the branch, ordered by `trigger_id`.Read-onlyList Triggers
Lists the complete project-bounded set of triggers visible on the branch, ordered by `trigger_id`. branch_id is a branch id (br-...), not a branch name. Call list_branches to resolve a name.
Inputs
branch_idstringrequired- No description.
project_idstring- Required for an unscoped connection. May be omitted when the connection is scoped to one project; if provided, it must match that project.
neonmcp_query_logsQuery logs emitted by Neon serverless functions and other services (structured filters or raw LogQL), correlated by trace ID and time window.Read-onlyQuery Logs
Query logs emitted by Neon serverless functions and other services (structured filters or raw LogQL), correlated by trace ID and time window.
Inputs
branch_idstringrequired- A br-... id, not a name.
body_containsstring- Match records whose rendered `message` contains this case-sensitive substring.
end_timestring- Exclusive end of the query window.
limitinteger- Maximum number of log records to return per page.
logqlstring- Escape hatch for selections the structured filters cannot express: a raw LogQL expression, evaluated against this branch's log stream.
minimum_severitystring- An OpenTelemetry severity level.one of
tracedebuginfowarnerrorfatal project_idstring- Project id. Required for an unscoped connection. May be omitted when the connection is scoped to one project; if provided, it must match that project.
scope_namestring- Match the OpenTelemetry instrumentation scope name exactly.
service_namestring- Match the OpenTelemetry `service.name` resource attribute exactly.
severity_textstring- Match the OpenTelemetry severity text exactly.
sincestring- A length of time as a count and a unit, for example `30m`, `6h`, or `7d`.
sort_orderstring- Order matching records by timestamp.one of
ascdesc sourcestring- Only records emitted by this Neon service. neon_auth returns 404 telemetry_not_enabled when the project's Neon Auth logs are not enabled, even when other sources return logs.one of
functionstoragepg_endpointneon_auth start_timestring- Inclusive beginning of the query window.
trace_idstring- Match records associated with this OpenTelemetry trace ID.
neonmcp_query_loki_logsRuns a LogQL range query on the branch's Loki-compatible read API and returns Loki's response: `data.result` groups lines by stream labels, and each value is `[nanosecond timestamp string, line]`.Read-onlyQuery Loki Logs
Runs a LogQL range query on the branch's Loki-compatible read API and returns Loki's response: `data.result` groups lines by stream labels, and each value is `[nanosecond timestamp string, line]`. Use it for sub-second ordering or stream labels; use `query_logs` for structured filters and one record per line. The source label is `entity_type`; `list_log_fields` and `list_log_field_values` list labels and values. There is no cursor: a result with `limit` lines, or 10,000 (the server's cap, which adds no warning), may be incomplete, so narrow `since` or the selector. Max seven days. branch_id is a branch id (br-...), not a branch name. Call list_branches to resolve a name.
Inputs
branch_idstringrequired- The Neon branch ID
querystringrequired- LogQL stream selector with optional line filters, e.g. {entity_type="function"} |= "error". The source label is entity_type. No parsers, formatting stages, or metric queries.
directionstring- backward (default) is newest first.one of
forwardbackward endstring- Window end as RFC 3339 or Unix nanoseconds. Defaults to now.
limitinteger- Maximum log lines. The server enforces its own cap.
project_idstring- The Neon project ID. Required for an unscoped connection. May be omitted when the connection is scoped to one project; if provided, it must match that project.
sincestring- Lookback as a Go duration such as 30m or 24h, ending at end or now. Defaults to 1h. start takes precedence.
startstring- Window start as RFC 3339 or Unix nanoseconds.
neonmcp_searchSearch across all organizations, projects, and branches by keyword, returning matching items with IDs and URLs.Read-onlySearch
Search across all organizations, projects, and branches by keyword, returning matching items with IDs and URLs.
Inputs
querystringrequired- The search keyword. Must be at least 3 characters.
neonmcp_search_docsSearch neon.com: docs, API reference, PostgreSQL tutorial, guides, FAQs, changelog, and blog.Read-onlySearch Docs
Search neon.com: docs, API reference, PostgreSQL tutorial, guides, FAQs, changelog, and blog. Returns ranked pages with title, URL, the matching section, and a slug; read a full page with get_doc.
Inputs
querystringrequired- What to search for, in words, e.g. "reset a branch" or "connection pooling".
categoriesarray- Only return pages in these categories: docs, api (API reference), postgresql (PostgreSQL tutorial), guides, faqs, blog, changelog. Omit to search everything.
limitinteger- Maximum number of pages to return (1-40).default
10
neonmcp_add_auth_oauth_providerAdds an OAuth provider configuration to the specified branch's Neon Auth integration.WriteAdd Auth Oauth Provider
Adds an OAuth provider configuration to the specified branch's Neon Auth integration. branch_id is a branch id (br-...), not a branch name. Call list_branches to resolve a name.
Inputs
branch_idstringrequired- A br-... id, not a name.
idstringrequired- OAuth provider to configure for Neon Auth.one of
googlegithubmicrosoftvercelapplediscord apple_key_idstring- Key ID of the Sign in with Apple private key supplied in `client_secret`.
apple_team_idstring- Apple Developer Team ID.
client_idstring- The client ID issued by the OAuth provider for your application.
client_secretstring- OAuth client secret for the provider.
microsoft_tenant_idstring- Tenant ID for the Microsoft OAuth provider.
project_idstring- Project id. Required for an unscoped connection. May be omitted when the connection is scoped to one project; if provided, it must match that project.
neonmcp_add_auth_trusted_domainAdds a domain to the redirect URI whitelist for the specified branch.WriteAdd Auth Trusted Domain
Adds a domain to the redirect URI whitelist for the specified branch. branch_id is a branch id (br-...), not a branch name. Call list_branches to resolve a name.
Inputs
auth_providerstringrequired- No description.one of
mockstackbetter_auth branch_idstringrequired- No description.
domainstringrequired- No description.
project_idstring- Required for an unscoped connection. May be omitted when the connection is scoped to one project; if provided, it must match that project.
neonmcp_count_projectsReturns the number of active projects you can access in an organization, without listing them.WriteCount Projects
Returns the number of active projects you can access in an organization, without listing them. `org_id` is optional: organization API keys use their organization; personal API keys auto-select when unambiguous and otherwise return the IDs to choose from.
Inputs
org_idstring- Count projects in the organization with this `org_id`.
neonmcp_create_auth_oauth_clientRegisters an OAuth client with the branch's Neon Auth OAuth server.WriteCreate Auth Oauth Client
Registers an OAuth client with the branch's Neon Auth OAuth server. A confidential client returns `client_secret` only once: show it to the user and tell them to store it. Every entry in `resources` must already be configured on the OAuth server (see `get_auth_oauth_server`) or be its MCP resource. `type` cannot be changed later. branch_id is a branch id (br-...), not a branch name. Call list_branches to resolve a name.
Inputs
branch_idstringrequired- No description.
namestringrequired- No description.
redirect_urisarrayrequired- No description.
resourcesarrayrequired- No description.
typestringrequired- No description.one of
confidentialpublic project_idstring- Required for an unscoped connection. May be omitted when the connection is scoped to one project; if provided, it must match that project.
skip_consentboolean- No description.
neonmcp_create_auth_userCreates a new user in the Neon Auth user directory for the specified branch.WriteCreate Auth User
Creates a new user in the Neon Auth user directory for the specified branch. branch_id is a branch id (br-...), not a branch name. Call list_branches to resolve a name.
Inputs
branch_idstringrequired- No description.
emailstringrequired- No description.
namestring- No description.
project_idstring- Required for an unscoped connection. May be omitted when the connection is scoped to one project; if provided, it must match that project.
neonmcp_create_branchCreate a new branch in a Neon project for isolated development or testing.WriteCreate Branch
Create a new branch in a Neon project for isolated development or testing.
Inputs
computeobject- Autoscaling limits and suspend timeout for the read-write endpoint.
namestring- The branch name
no_computeboolean- Skip the read-write endpoint. Default false. Cannot be combined with compute.
parent_idstring- Parent branch id (br-...). Omit for the project's default branch.
project_idstring- Project id. Required for an unscoped connection. May be omitted when the connection is scoped to one project; if provided, it must match that project.
neonmcp_create_credentialIssues a new scoped service credential anchored to the specified branch.WriteCreate Credential
Issues a new scoped service credential anchored to the specified branch. branch_id is a branch id (br-...), not a branch name. Call list_branches to resolve a name.
Inputs
branch_idstringrequired- A br-... id, not a name.
principal_typestringrequired- Principal type for the credential.one of
user scopesarrayrequired- Capabilities to grant. The credential may only perform actions in these scopes.
expires_atstring- When the credential stops working, 1 minute to 365 days from now. Omit for a credential that never expires.
namestring- Free-form customer label for the credential.
project_idstring- Project id. Required for an unscoped connection. May be omitted when the connection is scoped to one project; if provided, it must match that project.
neonmcp_create_postgres_databaseCreates a database in the specified branch.WriteCreate Postgres Database
Creates a database in the specified branch. branch_id is a branch id (br-...), not a branch name. Call list_branches to resolve a name.
Inputs
branch_idstringrequired- No description.
namestringrequired- No description.
owner_namestringrequired- No description.
project_idstring- Required for an unscoped connection. May be omitted when the connection is scoped to one project; if provided, it must match that project.
neonmcp_create_postgres_endpointCreates a compute endpoint on a branch.WriteCreate Postgres Endpoint
Creates a compute endpoint on a branch. Does not return a connection string; call `get_connection_string`.
Inputs
branch_idstringrequired- No description.
typestringrequired- No description.one of
read_onlyread_write autoscaling_limit_max_cunumber- No description.
autoscaling_limit_min_cunumber- No description.
disabledboolean- No description.
namestring- No description.
passwordless_accessboolean- No description.
pooler_enabledboolean- No description.
pooler_modestring- No description.one of
transaction project_idstring- Required for an unscoped connection. May be omitted when the connection is scoped to one project; if provided, it must match that project.
provisionerstring- No description.
region_idstring- No description.
settingsobject- No description.
suspend_timeout_secondsinteger- No description.
neonmcp_create_postgres_roleCreates a Postgres role in the specified branch.WriteCreate Postgres Role
Creates a Postgres role in the specified branch. branch_id is a branch id (br-...), not a branch name. Call list_branches to resolve a name.
Inputs
branch_idstringrequired- The branch ID
namestringrequired- The role name.
accessstring- What the role may do. Default admin: the role joins neon_superuser. read_only: SELECT. read_write: SELECT, INSERT, UPDATE, DELETE and sequence use. Scoped roles get these grants on top of whatever PUBLIC already has in the database.one of
adminread_onlyread_write database_namestring- Database a read_only or read_write role is scoped to. Optional when the branch has exactly one database.
no_loginboolean- Whether to create a role that cannot login.
project_idstring- The Neon project ID. Required for an unscoped connection. May be omitted when the connection is scoped to one project; if provided, it must match that project.
schemasarray- Schemas a read_only or read_write role can use. Default ["public"].
neonmcp_create_projectCreate a new Neon project with a default database and branch, returning the connection string.WriteCreate Project
Create a new Neon project with a default database and branch, returning the connection string.
Inputs
autoscaling_limit_max_cunumber- No description.
autoscaling_limit_min_cunumber- No description.
branchobject- No description.
default_endpoint_settingsobject- No description.
history_retention_secondsinteger- No description.
namestring- No description.
org_idstring- No description.
pg_versioninteger- No description.
provisionerstring- No description.
realtimeobject- No description.
region_idstring- No description.
settingsobject- No description.
store_passwordsboolean- No description.
neonmcp_create_snapshotCreates a snapshot from the specified branch.WriteCreate Snapshot
Creates a snapshot from the specified branch. branch_id is a branch id (br-...), not a branch name. Call list_branches to resolve a name.
Inputs
branch_idstringrequired- No description.
expires_atstring- No description.
lsnstring- No description.
namestring- No description.
project_idstring- Required for an unscoped connection. May be omitted when the connection is scoped to one project; if provided, it must match that project.
timestampstring- No description.
neonmcp_create_storage_bucketCreates a new branchable object storage bucket on the specified branch.WriteCreate Storage Bucket
Creates a new branchable object storage bucket on the specified branch. branch_id is a branch id (br-...), not a branch name. Call list_branches to resolve a name.
Inputs
branch_idstringrequired- No description.
namestringrequired- No description.
access_levelstring- No description.one of
privatepublic_read project_idstring- Required for an unscoped connection. May be omitted when the connection is scoped to one project; if provided, it must match that project.
neonmcp_create_triggerCreates a trigger for a Function visible on the branch.WriteCreate Trigger
Creates a trigger for a Function visible on the branch. branch_id is a branch id (br-...), not a branch name. Call list_branches to resolve a name.
Inputs
bodystringrequired- No description.
branch_idstringrequired- No description.
project_idstring- Required for an unscoped connection. May be omitted when the connection is scoped to one project; if provided, it must match that project.
neonmcp_deploy_functionCreates a deployment for the function.WriteDeploy Function
Creates a deployment for the function. Supply at least one of `zip`, `environment`, or `runtime`; omitted fields inherit the latest version. The first deployment must include `zip`. branch_id is a branch id (br-...), not a branch name. Call list_branches to resolve a name.
Inputs
branch_idstringrequired- No description.
slugstringrequired- No description.
environmentstring- No description.
project_idstring- Required for an unscoped connection. May be omitted when the connection is scoped to one project; if provided, it must match that project.
runtimestring- No description.one of
nodejs24 zipstring- Base64-encoded binary file contents.
neonmcp_disable_authDisables the Neon Auth integration for the specified branch, removing the connection to the authentication provider.WriteDisable Auth
Disables the Neon Auth integration for the specified branch, removing the connection to the authentication provider. branch_id is a branch id (br-...), not a branch name. Call list_branches to resolve a name.
Inputs
branch_idstringrequired- No description.
delete_databoolean- No description.
project_idstring- Required for an unscoped connection. May be omitted when the connection is scoped to one project; if provided, it must match that project.
neonmcp_disable_realtimeDisables Realtime for the branch and discards its shared secret.WriteDisable Realtime
Disables Realtime for the branch and discards its shared secret. branch_id is a branch id (br-...), not a branch name. Call list_branches to resolve a name.
Inputs
branch_idstringrequired- No description.
project_idstring- Required for an unscoped connection. May be omitted when the connection is scoped to one project; if provided, it must match that project.
neonmcp_enable_realtimeEnables Realtime for the branch, or applies new options to an enabled branch.WriteEnable Realtime
Enables Realtime for the branch, or applies new options to an enabled branch. branch_id is a branch id (br-...), not a branch name. Call list_branches to resolve a name.
Inputs
branch_idstringrequired- No description.
allowed_originsarray- No description.
project_idstring- Required for an unscoped connection. May be omitted when the connection is scoped to one project; if provided, it must match that project.
neonmcp_finalize_branch_restoreFinalize a branch created with `restore_snapshot` and `finalize: false`: reassign computes (this restarts them) and swap names so it replaces the original branch.WriteFinalize Branch Restore
Finalize a branch created with `restore_snapshot` and `finalize: false`: reassign computes (this restarts them) and swap names so it replaces the original branch. branch_id is a branch id (br-...), not a branch name. Call list_branches to resolve a name.
Inputs
branch_idstringrequired- No description.
namestring- No description.
project_idstring- Required for an unscoped connection. May be omitted when the connection is scoped to one project; if provided, it must match that project.
neonmcp_prepare_database_migrationPrepare a database schema migration by generating and executing DDL statements on a temporary branch.WritePrepare Database Migration
Prepare a database schema migration by generating and executing DDL statements on a temporary branch.
Inputs
migration_sqlstringrequired- The migration SQL. It is split on every semicolon, including one inside a string or function body.
database_namestring- Database name. Omit for neondb, else the first database.
project_idstring- Project id. Required for an unscoped connection. May be omitted when the connection is scoped to one project; if provided, it must match that project.
neonmcp_prepare_query_tuningStart a query tuning session by analyzing execution plans and suggesting optimizations on a temporary branch.WritePrepare Query Tuning
Start a query tuning session by analyzing execution plans and suggesting optimizations on a temporary branch.
Inputs
database_namestringrequired- The database the statement runs in.
sqlstringrequired- The slow SQL statement to analyze.
project_idstring- Project id. Required for an unscoped connection. May be omitted when the connection is scoped to one project; if provided, it must match that project.
role_namestring- Postgres role to connect as. Omit for the database owner.
neonmcp_presign_storage_objectReturns a presigned URL that transfers bytes directly to or from the object's bucket on the specified branch, without the caller ever handling S3 credentials.WritePresign Storage Object
Returns a presigned URL that transfers bytes directly to or from the object's bucket on the specified branch, without the caller ever handling S3 credentials. branch_id is a branch id (br-...), not a branch name. Call list_branches to resolve a name.
Inputs
branch_idstringrequired- No description.
bucket_namestringrequired- No description.
object_keystringrequired- No description.
operationstringrequired- No description.one of
uploaddownload content_typestring- No description.
expires_in_secondsinteger- No description.
project_idstring- Required for an unscoped connection. May be omitted when the connection is scoped to one project; if provided, it must match that project.
neonmcp_provision_neon_authProvision Neon Auth for a branch, enabling managed authentication backed by Better Auth.WriteProvision Neon Auth
Provision Neon Auth for a branch, enabling managed authentication backed by Better Auth.
- Idempotent
Inputs
auth_providerstringrequired- Authentication provider integrated with this Neon Auth configuration.one of
mockstackbetter_auth branch_idstringrequired- A br-... id, not a name.
database_namestring- Name of the database to enable Neon Auth on.
project_idstring- Project id. Required for an unscoped connection. May be omitted when the connection is scoped to one project; if provided, it must match that project.
neonmcp_provision_neon_data_apiProvision the Neon Data API for HTTP-based access to a Postgres database with JWT authentication.WriteProvision Neon Data Api
Provision the Neon Data API for HTTP-based access to a Postgres database with JWT authentication.
- Idempotent
Inputs
branch_idstringrequired- A br-... id, not a name.
database_namestringrequired- The database name
add_default_grantsboolean- Grants the authenticated role read and write access to public-schema tables, including tables the database owner creates later. Without it, the Data API can read no table until you GRANT access. Never grants anonymous.
auth_providerstring- Authentication provider for the Neon Data API.one of
neon_authexternal jwks_urlstring- URL of the JWKS endpoint used to verify JWTs for this Data API.
jwt_audiencestring- Expected `aud` claim in incoming JWTs.
project_idstring- Project id. Required for an unscoped connection. May be omitted when the connection is scoped to one project; if provided, it must match that project.
provider_namestring- Display name for the authentication provider.
settingsobject- Auth and schema configuration for the Data API.
skip_auth_schemaboolean- Skip creating the auth schema and RLS functions
neonmcp_recover_projectRecovers a deleted project within the 7-day deletion recovery period.WriteRecover Project
Recovers a deleted project within the 7-day deletion recovery period.
Inputs
project_idstring- Required for an unscoped connection. May be omitted when the connection is scoped to one project; if provided, it must match that project.
neonmcp_register_functions_custom_domainRegisters a hostname on the branch and routes it to a function.WriteRegister Functions Custom Domain
Registers a hostname on the branch and routes it to a function. Pass `entity_type: "function"` and `entity_id` as the slug from `list_functions`. Point a CNAME at the returned `cname_target`. branch_id is a branch id (br-...), not a branch name. Call list_branches to resolve a name.
Inputs
branch_idstringrequired- No description.
domainstringrequired- No description.
entity_idstringrequired- No description.
entity_typestringrequired- No description.
project_idstring- Required for an unscoped connection. May be omitted when the connection is scoped to one project; if provided, it must match that project.
neonmcp_reset_postgres_role_passwordResets the password for the specified Postgres role.WriteReset Postgres Role Password
Resets the password for the specified Postgres role. branch_id is a branch id (br-...), not a branch name. Call list_branches to resolve a name.
Inputs
branch_idstringrequired- No description.
role_namestringrequired- No description.
project_idstring- Required for an unscoped connection. May be omitted when the connection is scoped to one project; if provided, it must match that project.
neonmcp_restart_postgres_endpointRestarts the specified compute endpoint by immediately suspending it and then starting it again.WriteRestart Postgres Endpoint
Restarts the specified compute endpoint by immediately suspending it and then starting it again.
Inputs
endpoint_idstringrequired- No description.
project_idstring- Required for an unscoped connection. May be omitted when the connection is scoped to one project; if provided, it must match that project.
neonmcp_restore_snapshotRestore a snapshot onto a new or existing branch.WriteRestore Snapshot
Restore a snapshot onto a new or existing branch. The call waits until the branch is ready. Pass `target_branch_id` to restore onto an existing branch; omit it to create one. Pass `finalize: false` then call `finalize_branch_restore` to swap names later.
Inputs
snapshot_idstringrequired- No description.
finalizeboolean- Finalize immediately (move computes onto the restored branch). Defaults to true when restoring as a new branch and false when restoring onto an existing branch.
namestring- No description.
project_idstring- Required for an unscoped connection. May be omitted when the connection is scoped to one project; if provided, it must match that project.
target_branch_idstring- No description.
neonmcp_revoke_credentialSoft-deletes the credential.WriteRevoke Credential
Soft-deletes the credential. branch_id is a branch id (br-...), not a branch name. Call list_branches to resolve a name.
Inputs
branch_idstringrequired- No description.
token_idstringrequired- No description.
project_idstring- Required for an unscoped connection. May be omitted when the connection is scoped to one project; if provided, it must match that project.
neonmcp_rotate_auth_oauth_client_secretGenerates a new secret for a confidential client of the Neon Auth OAuth server.WriteRotate Auth Oauth Client Secret
Generates a new secret for a confidential client of the Neon Auth OAuth server. The old secret stops working immediately. The new `client_secret` is shown only once: show it to the user and tell them to store it. branch_id is a branch id (br-...), not a branch name. Call list_branches to resolve a name.
Inputs
branch_idstringrequired- No description.
client_idstringrequired- No description.
project_idstring- Required for an unscoped connection. May be omitted when the connection is scoped to one project; if provided, it must match that project.
neonmcp_rotate_credentialReplaces the secret material on an existing scoped credential in place.WriteRotate Credential
Replaces the secret material on an existing scoped credential in place. branch_id is a branch id (br-...), not a branch name. Call list_branches to resolve a name.
Inputs
branch_idstringrequired- No description.
token_idstringrequired- No description.
project_idstring- Required for an unscoped connection. May be omitted when the connection is scoped to one project; if provided, it must match that project.
neonmcp_rotate_realtime_secretReplaces the branch's Realtime shared secret and waits until the change is applied.WriteRotate Realtime Secret
Replaces the branch's Realtime shared secret and waits until the change is applied. NEVER run autonomously; always ask the user first. Call `get_realtime_secret` afterwards and update the application backend with the new value. branch_id is a branch id (br-...), not a branch name. Call list_branches to resolve a name.
Inputs
branch_idstringrequired- No description.
project_idstring- Required for an unscoped connection. May be omitted when the connection is scoped to one project; if provided, it must match that project.
neonmcp_send_auth_test_emailSends a test email through the branch's saved SMTP provider (`type: "standard"`) to `recipient_email`.WriteSend Auth Test Email
Sends a test email through the branch's saved SMTP provider (`type: "standard"`) to `recipient_email`. Only send to an address the user gave you. A failed send returns `success: false` with `error_message`, not a tool error. branch_id is a branch id (br-...), not a branch name. Call list_branches to resolve a name.
Inputs
branch_idstringrequired- The Neon branch ID
recipient_emailstringrequired- The email address to send the test email to.
project_idstring- The Neon project ID. Required for an unscoped connection. May be omitted when the connection is scoped to one project; if provided, it must match that project.
neonmcp_send_feedbackSend anonymous feedback about Neon or this MCP server to the Neon team.WriteSend Feedback
Send anonymous feedback about Neon or this MCP server to the Neon team. Only call this when the user asks to give feedback. Sends only the feedback text, not account, project, or connection details.
Inputs
feedbackstringrequired- The feedback to send to Neon. Do not include passwords, API keys, connection strings, or other secrets.
neonmcp_set_default_branchSets the specified branch as the project's default branch.WriteSet Default Branch
Sets the specified branch as the project's default branch. branch_id is a branch id (br-...), not a branch name. Call list_branches to resolve a name.
- Idempotent
Inputs
branch_idstringrequired- No description.
project_idstring- Required for an unscoped connection. May be omitted when the connection is scoped to one project; if provided, it must match that project.
neonmcp_set_snapshot_scheduleReplace a branch's automatic snapshot schedule.WriteSet Snapshot Schedule
Replace a branch's automatic snapshot schedule. Frequency must be daily, weekly, or monthly. branch_id is a branch id (br-...), not a branch name. Call list_branches to resolve a name.
- Idempotent
Inputs
branch_idstringrequired- No description.
schedulearrayrequired- No description.
project_idstring- Required for an unscoped connection. May be omitted when the connection is scoped to one project; if provided, it must match that project.
neonmcp_start_postgres_endpointStarts a compute endpoint.WriteStart Postgres Endpoint
Starts a compute endpoint.
Inputs
endpoint_idstringrequired- No description.
project_idstring- Required for an unscoped connection. May be omitted when the connection is scoped to one project; if provided, it must match that project.
neonmcp_suspend_postgres_endpointSuspends the specified compute endpoint.WriteSuspend Postgres Endpoint
Suspends the specified compute endpoint.
Inputs
endpoint_idstringrequired- No description.
project_idstring- Required for an unscoped connection. May be omitted when the connection is scoped to one project; if provided, it must match that project.
neonmcp_update_auth_allow_localhostSets whether the branch's Neon Auth accepts requests from localhost origins.WriteUpdate Auth Allow Localhost
Sets whether the branch's Neon Auth accepts requests from localhost origins. Turn it off for production. Call `get_neon_auth_config` to read the current value. branch_id is a branch id (br-...), not a branch name. Call list_branches to resolve a name.
Inputs
allow_localhostbooleanrequired- Whether to allow localhost connections
branch_idstringrequired- The Neon branch ID
project_idstring- The Neon project ID. Required for an unscoped connection. May be omitted when the connection is scoped to one project; if provided, it must match that project.
neonmcp_update_auth_configUpdates the auth configuration for the branch.WriteUpdate Auth Config
Updates the auth configuration for the branch. branch_id is a branch id (br-...), not a branch name. Call list_branches to resolve a name.
Inputs
branch_idstringrequired- No description.
namestringrequired- No description.
project_idstring- Required for an unscoped connection. May be omitted when the connection is scoped to one project; if provided, it must match that project.
neonmcp_update_auth_email_and_passwordUpdates email and password sign-in for the branch's Neon Auth: whether it is enabled, sign-up, email verification, and whether a password reset revokes the user's sessions.WriteUpdate Auth Email And Password
Updates email and password sign-in for the branch's Neon Auth: whether it is enabled, sign-up, email verification, and whether a password reset revokes the user's sessions. Omitted fields keep their value. Call `get_neon_auth_config` to read the current value. branch_id is a branch id (br-...), not a branch name. Call list_branches to resolve a name.
Inputs
branch_idstringrequired- The Neon branch ID
auto_sign_in_after_verificationboolean- Whether users are automatically signed in after verifying their email
disable_sign_upboolean- Whether to disable new user sign ups.
email_verification_methodstring- Email verification method.one of
linkotp enabledboolean- Controls whether email and password authentication is enabled for this project.
project_idstring- The Neon project ID. Required for an unscoped connection. May be omitted when the connection is scoped to one project; if provided, it must match that project.
require_email_verificationboolean- When true, users must verify their email address before they can sign in.
revoke_sessions_on_password_resetboolean- Whether all of a user's sessions are revoked when their password is reset.
send_verification_email_on_sign_inboolean- Whether to send a verification email when a user with an unverified email signs in.
send_verification_email_on_sign_upboolean- Whether to send a verification email when users sign up.
neonmcp_update_auth_email_providerSets the email provider Neon Auth sends verification, reset, and invitation emails with.WriteUpdate Auth Email Provider
Sets the email provider Neon Auth sends verification, reset, and invitation emails with. Pass `body.type: "shared"` for Neon's sender, or `body.type: "standard"` with `host`, `port`, `username`, `password`, `sender_email`, and `sender_name` for your own SMTP server. The response omits `password`. Check the server with `send_auth_test_email`. branch_id is a branch id (br-...), not a branch name. Call list_branches to resolve a name.
Inputs
bodystringrequired- Email provider configuration for the branch's Neon Auth integration.
branch_idstringrequired- The Neon branch ID
project_idstring- The Neon project ID. Required for an unscoped connection. May be omitted when the connection is scoped to one project; if provided, it must match that project.
neonmcp_update_auth_logs_exportTurns the export of a branch's Neon Auth events to Neon Platform logs on or off.WriteUpdate Auth Logs Export
Turns the export of a branch's Neon Auth events to Neon Platform logs on or off. A project without logs export accepts only enabled: false; enabling there returns 404 feature not available. get_neon_auth_config reports the current value as logs_export, or null where logs export is not available.
Inputs
branch_idstringrequired- A br-... id, not a name.
enabledbooleanrequired- Whether Neon Auth events are exported to Neon Platform logs.
project_idstring- Project id. Required for an unscoped connection. May be omitted when the connection is scoped to one project; if provided, it must match that project.
neonmcp_update_auth_oauth_clientUpdates an OAuth client of the Neon Auth OAuth server.WriteUpdate Auth Oauth Client
Updates an OAuth client of the Neon Auth OAuth server. `redirect_uris` and `resources` replace the stored lists, so send the full list. At least one resource is required. `type` cannot be changed. branch_id is a branch id (br-...), not a branch name. Call list_branches to resolve a name.
Inputs
branch_idstringrequired- No description.
client_idstringrequired- No description.
disabledboolean- No description.
namestring- No description.
project_idstring- Required for an unscoped connection. May be omitted when the connection is scoped to one project; if provided, it must match that project.
redirect_urisarray- No description.
resourcesarray- No description.
skip_consentboolean- No description.
neonmcp_update_auth_oauth_providerUpdates an OAuth provider for the specified project.WriteUpdate Auth Oauth Provider
Updates an OAuth provider for the specified project. branch_id is a branch id (br-...), not a branch name. Call list_branches to resolve a name.
Inputs
branch_idstringrequired- A br-... id, not a name.
oauth_provider_idstringrequired- The OAuth provider IDone of
googlegithubmicrosoftvercelapplediscord apple_key_idstring- Key ID of the Sign in with Apple private key supplied in `client_secret`.
apple_team_idstring- Apple Developer Team ID.
client_idstring- The OAuth client ID registered with the provider.
client_secretstring- OAuth client secret for the provider.
microsoft_tenant_idstring- The tenant ID scoping the Microsoft OAuth provider.
project_idstring- Project id. Required for an unscoped connection. May be omitted when the connection is scoped to one project; if provided, it must match that project.
neonmcp_update_auth_oauth_serverConfigures Neon Auth as an OAuth 2.1 authorization server for the branch, including for MCP servers.WriteUpdate Auth Oauth Server
Configures Neon Auth as an OAuth 2.1 authorization server for the branch, including for MCP servers. This is Better Auth's OAuth Provider plugin (API plugin `oauth_provider`), not social login; for providers such as GitHub or Google see `list_auth_oauth_providers`. Enabling requires `login_page`, `consent_page` and at least one resource (or an MCP resource). `resources` replaces the stored list: call `get_auth_oauth_server` first and send the full list to add or remove one. `mcp.resource` is required whenever `mcp` is sent; omitted `mcp` booleans keep their stored value, and `mcp.resource: ""` removes the MCP configuration. Prefer `client_id_metadata_documents` over the deprecated `dynamic_registration`. branch_id is a branch id (br-...), not a branch name. Call list_branches to resolve a name.
Inputs
branch_idstringrequired- No description.
consent_pagestring- No description.
enabledboolean- No description.
login_pagestring- No description.
mcpobject- No description.
project_idstring- Required for an unscoped connection. May be omitted when the connection is scoped to one project; if provided, it must match that project.
resourcesarray- No description.
neonmcp_update_auth_plugins_magic_linkUpdates the Neon Auth magic link plugin: whether it is enabled, how many minutes a link is valid (`expires_in`), and whether it can sign up new users.WriteUpdate Auth Plugins Magic Link
Updates the Neon Auth magic link plugin: whether it is enabled, how many minutes a link is valid (`expires_in`), and whether it can sign up new users. Omitted fields keep their value. Call `get_neon_auth_config` to read the current value. branch_id is a branch id (br-...), not a branch name. Call list_branches to resolve a name.
Inputs
branch_idstringrequired- The Neon branch ID
disable_sign_upboolean- When true, sign-up via magic link is disabled.
enabledboolean- Whether to enable the magic link plugin.
expires_ininteger- Minutes until the magic link expires.
project_idstring- The Neon project ID. Required for an unscoped connection. May be omitted when the connection is scoped to one project; if provided, it must match that project.
neonmcp_update_auth_plugins_organizationUpdates the Neon Auth organization plugin, which lets your app's users create and join organizations.WriteUpdate Auth Plugins Organization
Updates the Neon Auth organization plugin, which lets your app's users create and join organizations. These are not Neon organizations. Omitted fields keep their value. Call `get_neon_auth_config` to read the current value. branch_id is a branch id (br-...), not a branch name. Call list_branches to resolve a name.
Inputs
branch_idstringrequired- The Neon branch ID
creator_rolestring- Role of the organization's creator.one of
adminowner enabledboolean- Controls whether the organization plugin is active for the organization.
membership_limitinteger- Maximum members per organization.
organization_limitinteger- Maximum organizations a user can belong to (created or joined).
project_idstring- The Neon project ID. Required for an unscoped connection. May be omitted when the connection is scoped to one project; if provided, it must match that project.
send_invitation_emailboolean- When true, invited users receive an email containing an accept link.
neonmcp_update_auth_plugins_phone_numberUpdates the Neon Auth phone number (SMS OTP) plugin: whether it is enabled and how many seconds an OTP is valid (`otp_expires_in`).WriteUpdate Auth Plugins Phone Number
Updates the Neon Auth phone number (SMS OTP) plugin: whether it is enabled and how many seconds an OTP is valid (`otp_expires_in`). Omitted fields keep their value. Call `get_neon_auth_config` to read the current value. branch_id is a branch id (br-...), not a branch name. Call list_branches to resolve a name.
Inputs
branch_idstringrequired- The Neon branch ID
enabledboolean- Whether the phone number plugin is enabled.
otp_expires_ininteger- Time in seconds before the OTP expires
project_idstring- The Neon project ID. Required for an unscoped connection. May be omitted when the connection is scoped to one project; if provided, it must match that project.
neonmcp_update_auth_user_roleUpdates the role of a user in the Neon Auth user directory for the specified branch.WriteUpdate Auth User Role
Updates the role of a user in the Neon Auth user directory for the specified branch. branch_id is a branch id (br-...), not a branch name. Call list_branches to resolve a name.
Inputs
auth_user_idstringrequired- No description.
branch_idstringrequired- No description.
rolesarrayrequired- No description.
project_idstring- Required for an unscoped connection. May be omitted when the connection is scoped to one project; if provided, it must match that project.
neonmcp_update_auth_webhooksReplaces the branch's Neon Auth webhook configuration.WriteUpdate Auth Webhooks
Replaces the branch's Neon Auth webhook configuration. Omitted fields reset: `{ enabled: false }` alone clears `webhook_url` and `enabled_events`. Call `get_neon_auth_config` first and send every field to keep. branch_id is a branch id (br-...), not a branch name. Call list_branches to resolve a name.
Inputs
branch_idstringrequired- The Neon branch ID
enabledbooleanrequired- Whether the webhook is active.
enabled_eventsarray- Event types that trigger this webhook.
project_idstring- The Neon project ID. Required for an unscoped connection. May be omitted when the connection is scoped to one project; if provided, it must match that project.
timeout_secondsinteger- Maximum time, in seconds, to wait for a response from the webhook endpoint.
webhook_urlstring- Destination URL that receives webhook event payloads.
neonmcp_update_branchUpdates the specified branch.WriteUpdate Branch
Updates the specified branch. branch_id is a branch id (br-...), not a branch name. Call list_branches to resolve a name.
Inputs
branch_idstringrequired- No description.
expires_atstring- No description.
namestring- No description.
project_idstring- Required for an unscoped connection. May be omitted when the connection is scoped to one project; if provided, it must match that project.
protectedboolean- No description.
neonmcp_update_data_apiUpdates the Neon Data API configuration for the specified branch.WriteUpdate Data Api
Updates the Neon Data API configuration for the specified branch. branch_id is a branch id (br-...), not a branch name. Call list_branches to resolve a name.
Inputs
branch_idstringrequired- No description.
database_namestringrequired- No description.
db_aggregates_enabledboolean- No description.
db_anon_rolestring- No description.
db_extra_search_pathstring- No description.
db_max_rowsinteger- No description.
db_schemasarray- No description.
jwt_cache_max_lifetimeinteger- No description.
jwt_role_claim_keystring- No description.
openapi_modestring- No description.
project_idstring- Required for an unscoped connection. May be omitted when the connection is scoped to one project; if provided, it must match that project.
server_cors_allowed_originsstring- No description.
server_timing_enabledboolean- No description.
neonmcp_update_functionUpdates the function's mutable metadata â currently only the display `name`.WriteUpdate Function
Updates the function's mutable metadata â currently only the display `name`. branch_id is a branch id (br-...), not a branch name. Call list_branches to resolve a name.
Inputs
branch_idstringrequired- No description.
namestringrequired- No description.
slugstringrequired- No description.
project_idstring- Required for an unscoped connection. May be omitted when the connection is scoped to one project; if provided, it must match that project.
neonmcp_update_postgres_databaseUpdates the specified database in the branch.WriteUpdate Postgres Database
Updates the specified database in the branch. branch_id is a branch id (br-...), not a branch name. Call list_branches to resolve a name.
Inputs
branch_idstringrequired- No description.
database_namestringrequired- No description.
namestring- No description.
owner_namestring- No description.
project_idstring- Required for an unscoped connection. May be omitted when the connection is scoped to one project; if provided, it must match that project.
neonmcp_update_postgres_endpointUpdates the specified compute endpoint.WriteUpdate Postgres Endpoint
Updates the specified compute endpoint.
Inputs
endpoint_idstringrequired- No description.
autoscaling_limit_max_cunumber- No description.
autoscaling_limit_min_cunumber- No description.
branch_idstring- No description.
disabledboolean- No description.
namestring- No description.
passwordless_accessboolean- No description.
pooler_enabledboolean- No description.
pooler_modestring- No description.one of
transaction project_idstring- Required for an unscoped connection. May be omitted when the connection is scoped to one project; if provided, it must match that project.
provisionerstring- No description.
settingsobject- No description.
suspend_timeout_secondsinteger- No description.
neonmcp_update_projectUpdates the specified project.WriteUpdate Project
Updates the specified project.
Inputs
default_endpoint_settingsobject- No description.
history_retention_secondsinteger- No description.
namestring- No description.
project_idstring- Required for an unscoped connection. May be omitted when the connection is scoped to one project; if provided, it must match that project.
settingsobject- No description.
neonmcp_update_snapshotUpdates the specified snapshot.WriteUpdate Snapshot
Updates the specified snapshot.
Inputs
snapshot_idstringrequired- No description.
expires_atstring- No description.
namestring- No description.
project_idstring- Required for an unscoped connection. May be omitted when the connection is scoped to one project; if provided, it must match that project.
neonmcp_update_triggerApplies a partial update.WriteUpdate Trigger
Applies a partial update. branch_id is a branch id (br-...), not a branch name. Call list_branches to resolve a name.
Inputs
bodystringrequired- No description.
branch_idstringrequired- No description.
trigger_idstringrequired- No description.
project_idstring- Required for an unscoped connection. May be omitted when the connection is scoped to one project; if provided, it must match that project.
neonmcp_complete_database_migrationApply a database migration to the main branch and clean up the temporary migration branch.DestructiveComplete Database Migration
Apply a database migration to the main branch and clean up the temporary migration branch.
Inputs
database_namestringrequired- The exact database_name from prepare_database_migration.
migration_idstringrequired- The migration_id from prepare_database_migration.
migration_sqlstringrequired- The exact migration_sql from prepare_database_migration.
parent_branch_idstringrequired- The branch the migration is applied to.
temporary_branch_idstringrequired- The temporary branch to delete.
apply_changesboolean- Apply the migration to the parent branch. false only deletes the temporary branch.default
true project_idstring- The exact project_id from prepare_database_migration. Required for an unscoped connection. May be omitted when the connection is scoped to one project; if provided, it must match that project.
neonmcp_complete_query_tuningFinish a query tuning session by applying or discarding changes from the temporary tuning branch.DestructiveComplete Query Tuning
Finish a query tuning session by applying or discarding changes from the temporary tuning branch.
Inputs
database_namestringrequired- The database_name from prepare_query_tuning.
suggested_sql_statementsarrayrequired- The DDL statements that improved the plan on the temporary branch, for example CREATE INDEX.
temporary_branch_idstringrequired- The temporary_branch_id from prepare_query_tuning.
tuning_idstringrequired- The tuning_id from prepare_query_tuning, not a branch id.
apply_changesboolean- Apply suggested_sql_statements to branch_id.default
false branch_idstring- A br-... id, not a name. The branch that receives the changes; omit it for the default branch.
project_idstring- Project id. Required for an unscoped connection. May be omitted when the connection is scoped to one project; if provided, it must match that project.
role_namestring- The role_name passed to prepare_query_tuning, if any. Omit for the database owner.
should_delete_temporary_branchboolean- Delete the temporary branch.default
true
neonmcp_delete_auth_oauth_clientDeletes an OAuth client from the Neon Auth OAuth server.DestructiveDelete Auth Oauth Client
Deletes an OAuth client from the Neon Auth OAuth server. Irreversible. Tokens already issued to the client are not revoked. branch_id is a branch id (br-...), not a branch name. Call list_branches to resolve a name.
Inputs
branch_idstringrequired- No description.
client_idstringrequired- No description.
project_idstring- Required for an unscoped connection. May be omitted when the connection is scoped to one project; if provided, it must match that project.
neonmcp_delete_auth_oauth_providerDeletes an OAuth provider from the specified project.DestructiveDelete Auth Oauth Provider
Deletes an OAuth provider from the specified project. branch_id is a branch id (br-...), not a branch name. Call list_branches to resolve a name.
Inputs
branch_idstringrequired- A br-... id, not a name.
oauth_provider_idstringrequired- The OAuth provider IDone of
googlegithubmicrosoftvercelapplediscord project_idstring- Project id. Required for an unscoped connection. May be omitted when the connection is scoped to one project; if provided, it must match that project.
neonmcp_delete_auth_trusted_domainRemoves a domain from the redirect URI whitelist for the specified branch.DestructiveDelete Auth Trusted Domain
Removes a domain from the redirect URI whitelist for the specified branch. branch_id is a branch id (br-...), not a branch name. Call list_branches to resolve a name.
Inputs
auth_providerstringrequired- No description.one of
mockstackbetter_auth branch_idstringrequired- No description.
domainsarrayrequired- No description.
project_idstring- Required for an unscoped connection. May be omitted when the connection is scoped to one project; if provided, it must match that project.
neonmcp_delete_auth_userDeletes the specified user from the Neon Auth user directory for the specified branch.DestructiveDelete Auth User
Deletes the specified user from the Neon Auth user directory for the specified branch. branch_id is a branch id (br-...), not a branch name. Call list_branches to resolve a name.
Inputs
auth_user_idstringrequired- No description.
branch_idstringrequired- No description.
project_idstring- Required for an unscoped connection. May be omitted when the connection is scoped to one project; if provided, it must match that project.
neonmcp_delete_branchPermanently delete a branch and all its data from a Neon project.DestructiveDelete Branch
Permanently delete a branch and all its data from a Neon project.
Inputs
branch_idstringrequired- A br-... id, not a name.
project_idstring- Project id. Required for an unscoped connection. May be omitted when the connection is scoped to one project; if provided, it must match that project.
neonmcp_delete_data_apiDeletes the Neon Data API for the specified branch.DestructiveDelete Data Api
Deletes the Neon Data API for the specified branch. branch_id is a branch id (br-...), not a branch name. Call list_branches to resolve a name.
Inputs
branch_idstringrequired- No description.
database_namestringrequired- No description.
project_idstring- Required for an unscoped connection. May be omitted when the connection is scoped to one project; if provided, it must match that project.
neonmcp_delete_functionDeletes the function identified by its slug.DestructiveDelete Function
Deletes the function identified by its slug. branch_id is a branch id (br-...), not a branch name. Call list_branches to resolve a name.
Inputs
branch_idstringrequired- No description.
slugstringrequired- No description.
project_idstring- Required for an unscoped connection. May be omitted when the connection is scoped to one project; if provided, it must match that project.
neonmcp_delete_functions_custom_domainRemoves a custom domain registered on the branch and stops routing it.DestructiveDelete Functions Custom Domain
Removes a custom domain registered on the branch and stops routing it. branch_id is a branch id (br-...), not a branch name. Call list_branches to resolve a name.
Inputs
branch_idstringrequired- No description.
domainstringrequired- No description.
project_idstring- Required for an unscoped connection. May be omitted when the connection is scoped to one project; if provided, it must match that project.
neonmcp_delete_postgres_databaseDeletes the specified database from the branch.DestructiveDelete Postgres Database
Deletes the specified database from the branch. branch_id is a branch id (br-...), not a branch name. Call list_branches to resolve a name.
Inputs
branch_idstringrequired- No description.
database_namestringrequired- No description.
project_idstring- Required for an unscoped connection. May be omitted when the connection is scoped to one project; if provided, it must match that project.
neonmcp_delete_postgres_endpointDeletes the specified compute endpoint.DestructiveDelete Postgres Endpoint
Deletes the specified compute endpoint.
Inputs
endpoint_idstringrequired- No description.
project_idstring- Required for an unscoped connection. May be omitted when the connection is scoped to one project; if provided, it must match that project.
neonmcp_delete_postgres_roleDeletes the specified Postgres role from the branch.DestructiveDelete Postgres Role
Deletes the specified Postgres role from the branch. branch_id is a branch id (br-...), not a branch name. Call list_branches to resolve a name.
Inputs
branch_idstringrequired- No description.
role_namestringrequired- No description.
project_idstring- Required for an unscoped connection. May be omitted when the connection is scoped to one project; if provided, it must match that project.
neonmcp_delete_projectPermanently delete a Neon project and all its branches and data.DestructiveDelete Project
Permanently delete a Neon project and all its branches and data.
Inputs
project_idstringrequired- Project id.
neonmcp_delete_snapshotDeletes the specified snapshot.DestructiveDelete Snapshot
Deletes the specified snapshot.
Inputs
snapshot_idstringrequired- No description.
project_idstring- Required for an unscoped connection. May be omitted when the connection is scoped to one project; if provided, it must match that project.
neonmcp_delete_storage_bucketDeletes the named bucket from the specified branch.DestructiveDelete Storage Bucket
Deletes the named bucket from the specified branch. branch_id is a branch id (br-...), not a branch name. Call list_branches to resolve a name.
Inputs
branch_idstringrequired- No description.
bucket_namestringrequired- No description.
project_idstring- Required for an unscoped connection. May be omitted when the connection is scoped to one project; if provided, it must match that project.
neonmcp_delete_storage_objectDeletes the named object from the bucket on the specified branch.DestructiveDelete Storage Object
Deletes the named object from the bucket on the specified branch. branch_id is a branch id (br-...), not a branch name. Call list_branches to resolve a name.
Inputs
branch_idstringrequired- No description.
bucket_namestringrequired- No description.
object_keystringrequired- No description.
project_idstring- Required for an unscoped connection. May be omitted when the connection is scoped to one project; if provided, it must match that project.
neonmcp_delete_storage_objects_by_prefixSoft-deletes every object on the specified branch whose key starts with `prefix`, in a single call.DestructiveDelete Storage Objects By Prefix
Soft-deletes every object on the specified branch whose key starts with `prefix`, in a single call. branch_id is a branch id (br-...), not a branch name. Call list_branches to resolve a name.
Inputs
branch_idstringrequired- No description.
bucket_namestringrequired- No description.
prefixstringrequired- No description.
project_idstring- Required for an unscoped connection. May be omitted when the connection is scoped to one project; if provided, it must match that project.
neonmcp_delete_triggerDeletes a branch-local trigger or writes a branch-local tombstone for an inherited trigger so it does not reappear.DestructiveDelete Trigger
Deletes a branch-local trigger or writes a branch-local tombstone for an inherited trigger so it does not reappear. branch_id is a branch id (br-...), not a branch name. Call list_branches to resolve a name.
Inputs
branch_idstringrequired- No description.
trigger_idstringrequired- No description.
project_idstring- Required for an unscoped connection. May be omitted when the connection is scoped to one project; if provided, it must match that project.
neonmcp_reset_from_parentReset a branch to its parent branch state, discarding all changes made on the branch.DestructiveReset From Parent
Reset a branch to its parent branch state, discarding all changes made on the branch.
Inputs
branch_idstringrequired- A br-... id, not a name.
preserve_under_namestring- Name under which to save the current branch before the reset. Required when the branch has children; those children move to the new branch.
project_idstring- Project id. Required for an unscoped connection. May be omitted when the connection is scoped to one project; if provided, it must match that project.
neonmcp_run_sqlExecute a single SQL statement against a Neon database and return the results.DestructiveRun Sql
Execute a single SQL statement against a Neon database and return the results.
Inputs
sqlstringrequired- The SQL statement to run.
branch_idstring- A br-... id, not a name. Omit it for the default branch.
compute_idstring- Compute endpoint id (ep-...). Omit for the read-write compute.
database_namestring- Database name. Omit for neondb, else the first database.
max_rowsinteger- Rows to return per statement. Raise it only when a result has truncated: true.default
100 project_idstring- Project id. Required for an unscoped connection. May be omitted when the connection is scoped to one project; if provided, it must match that project.
role_namestring- Postgres role to log in as. Omit for the database owner.
neonmcp_run_sql_transactionExecute multiple SQL statements as a single transaction against a Neon database.DestructiveRun Sql Transaction
Execute multiple SQL statements as a single transaction against a Neon database.
Inputs
sql_statementsarrayrequired- The SQL statements to run, in order.
branch_idstring- A br-... id, not a name. Omit it for the default branch.
compute_idstring- Compute endpoint id (ep-...). Omit for the read-write compute.
database_namestring- Database name. Omit for neondb, else the first database.
max_rowsinteger- Rows to return per statement. Raise it only when a result has truncated: true.default
100 project_idstring- Project id. Required for an unscoped connection. May be omitted when the connection is scoped to one project; if provided, it must match that project.
role_namestring- Postgres role to log in as. Omit for the database owner.
No tools match.