# Neon MCP Server

> Official Neon MCP server for managing Neon projects and Lakebase Postgres databases.

Version 2.0.0. MCP server URL: `https://mcp.neon.tech/mcp`

## Installation guide

Choose your MCP client. It opens a browser window where you authorize access to your Neon account.

### Claude Code

Run this command in your terminal:

```bash
claude mcp add --transport http "neon" 'https://mcp.neon.tech/mcp'
```

Then start Claude Code, run `/mcp`, select `neon`, and authenticate.

### Cursor

[Open in Cursor](cursor://anysphere.cursor-deeplink/mcp/install?config=eyJ1cmwiOiJodHRwczovL21jcC5uZW9uLnRlY2gvbWNwIn0%3D&name=neon)

Or add it manually: Settings → MCP → Add server, then paste the MCP server URL.

### VS Code

[Open in VS Code](vscode:mcp/install?%7B%22url%22%3A%22https%3A%2F%2Fmcp.neon.tech%2Fmcp%22%2C%22name%22%3A%22neon%22%2C%22type%22%3A%22http%22%7D)

Or add it manually: run **Chat: Open Customizations**, select **MCP Servers** → **Add Server**, choose **HTTP**, paste the MCP server URL, and enter `neon` as the server ID.

### VS Code Insiders

[Open in VS Code Insiders](vscode-insiders:mcp/install?%7B%22url%22%3A%22https%3A%2F%2Fmcp.neon.tech%2Fmcp%22%2C%22name%22%3A%22neon%22%2C%22type%22%3A%22http%22%7D)

Or add it manually: run **Chat: Open Customizations**, select **MCP Servers** → **Add Server**, choose **HTTP**, paste the MCP server URL, and enter `neon` as the server ID.

### ChatGPT

1. **Open Plugins:** In ChatGPT on the web, go to Plugins, select the plus button, then Add custom MCP server
2. **Add this MCP server:** Name it Neon, enter https://mcp.neon.tech/mcp as the Server URL, choose OAuth, accept the risk warning, then select Create as a plugin
3. **Install it:** Find Neon in your personal plugins and install it
4. **Use in conversations:** Type @ in the prompt box and select Neon

### Other clients

Add the server to every agent and editor detected in your workspace:

```bash
npx add-mcp 'https://mcp.neon.tech/mcp'
```

Or add this entry to your client's MCP configuration:

```json
{
  "mcpServers": {
    "Neon": {
      "type": "http",
      "url": "https://mcp.neon.tech/mcp"
    }
  }
}
```

Clients that only support stdio can bridge the endpoint:

```bash
npx -y mcp-remote 'https://mcp.neon.tech/mcp'
```

## Connect with a Neon API key

For remote agents and clients without OAuth.

[Create an API key](https://console.neon.tech/app/settings?modal=create_api_key) in the Neon Console and send it as a bearer token:

```bash
npx add-mcp 'https://mcp.neon.tech/mcp' --header "Authorization: Bearer <NEON_API_KEY>"
```

## Limit access

Add query parameters to the MCP server URL.

- `readonly=true`: publishes only read-only tools.
- `projectId=<id>`: limits the connection to one Neon project.
- `category=<name>`: repeat to publish only those tool categories: `projects`, `branches`, `endpoints`, `snapshots`, `schema`, `querying`, `neon_auth`, `data_api`, `observability`, `docs`, `functions`, `storage`, `realtime`.

Use only the documentation tools, with no account or sign-in:

```text
https://mcp.neon.tech/mcp?category=docs
```

Preview the tools a URL publishes at <https://mcp.neon.tech/api/list-tools> with the same query parameters.

## Tools (141)

Every tool the server can publish, by category. Your grant decides which ones a connection sees.

### Discovery (4)

- `search` (read-only): Finds organizations, projects (including shared ones), branches, computes, and snapshots whose name or id contains query, with ids for fetch. To list projects, use list_projects; for docs, search_docs.
- `fetch` (read-only): Returns an organization, project, branch, compute, or snapshot by an id from search: markdown text, console URL, and records in metadata.
- `send_feedback` (read-only): Sends anonymous feedback text to the Neon team, with no account, project, or connection details. Only call it when the user asks to give feedback.
- `list_incidents` (read-only): Lists open Neon incidents and maintenance from neonstatus.com and the affected components and regions. Needs no credentials. Fetches the page on every call; updated_at is when neonstatus.com last updated the overall status, not when this call fetched it. Call it when Neon requests fail unexpectedly or the user asks whether Neon is down.

### Projects (15)

- `list_organizations` (read-only): Lists the organizations the user belongs to; an organization API key gets its own organization. search filters by name or id.
- `list_projects` (read-only): Lists the projects in an organization; search filters by name or id. To also find branches, computes, or snapshots, use search. Returns every page. Pass limit to cap how many. `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.
- `count_projects` (read-only): Counts an organization's active projects without listing them; ones being created or deleted are not counted. `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.
- `describe_project` (read-only): Gets a project's settings, owner, and usage. For branches, use list_branches.
- `create_project`: Creates a project with a default branch and read-write compute and waits until it is ready. Returns no connection string; use get_connection_string. `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.
- `update_project`: Updates a project's name, settings, default compute settings, or history retention.
- `delete_project`: Deletes a project with all its branches, computes, databases, and roles. NEVER run autonomously: run it only when the user's own message asks for it and unambiguously identifies its target; otherwise ask first. recover_project undoes it within 7 days. For one branch, use delete_branch.
- `recover_project`: Recovers a project deleted in the last 7 days; list_projects with recoverable true finds them. Some integrations need setting up again.
- `list_project_permissions` (read-only): Lists who has access to a project: each permission id, email, and grant date.
- `list_project_members` (read-only): Lists organization members and their roles on an org-owned project; 404 when the project is not org-owned or per-project roles are off. Returns every page. Pass limit to cap how many.
- `list_regions` (read-only): Lists the regions you can create projects in. An organization API key gets 404.
- `list_operations` (read-only): Lists a project's operations; ones older than six months may be gone. Returns every page. Pass limit to cap how many.
- `get_operation` (read-only): Gets one operation and its status.
- `get_project_consumption` (read-only): Returns per-project consumption in an organization. metrics: every name get_branch_consumption takes, plus extra_branches_month and snapshot_storage_bytes_month. Launch, Scale, Agent, Business, or Enterprise plans; others get 403. Returns every page. Pass limit to cap how many.
- `get_branch_consumption` (read-only): Returns per-branch consumption for project_ids. metrics: 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. Usage-based Launch, Scale, Agent, or Enterprise plans only. Returns every page. Pass limit to cap how many.

### Branches (25)

- `describe_branch` (read-only): Returns a branch summary, its database names, and a tree of one database's schemas, tables, views, indexes, sequences, and functions. Read-only: one catalog query in a READ ONLY transaction, so it changes no data; a suspended compute wakes to run it. Branch record only: get_branch; table names: get_database_tables; columns: describe_table_schema.
- `get_connection_string`: Returns a Postgres connection string with a role password; the branch needs a compute. Omitted inputs resolve like the SQL tools: default branch, neondb or the first database, and its owner. Call it after create_project or create_branch, which return none. `project_id` follows the connection scope. Requires write access: the connection string carries a privileged role password, so it is unavailable in read-only mode. A read-only caller who needs a DATABASE_URL must copy it from https://console.neon.tech manually.
- `list_branches` (read-only): Lists a project's branches with id (br-...), name, parent, and default flag; search finds a branch's id by name. Returns every page. Pass limit to cap how many.
- `get_branch` (read-only): Gets a branch record: name, parent, state, protection, size, and timestamps. For its databases and tables, use describe_branch.
- `create_branch`: Creates a branch from its parent's current data, with a read-write compute unless no_compute, and waits until it is ready. Returns no connection string; use get_connection_string.
- `update_branch`: Renames a branch, protects or unprotects it, or sets when it expires.
- `delete_branch`: Deletes a branch with all its data and disconnects its clients. NEVER run autonomously: run it only when the user's own message asks for it and unambiguously identifies its target; otherwise ask first. The root, the default, and a branch with children cannot be deleted. Returns the deleted branch, or null when the project has no branch with that id. For the whole project, use delete_project.
- `get_default_branch` (read-only): Gets the project's default branch by its default flag, not its name.
- `set_default_branch`: Makes a branch the project's default; the previous default loses the flag.
- `reset_from_parent`: Resets a branch to its parent's current state, discarding the branch's own changes. NEVER run autonomously: run it only when the user's own message asks for it and unambiguously identifies its target; otherwise ask first. preserve_under_name first saves the current state as a new branch. To restore a snapshot, use restore_snapshot.
- `finalize_branch_restore`: Finalizes a branch restored with finalize false: moves the original branch's computes onto it, restarting them, and takes over its name. NEVER run autonomously: run it only when the user's own message asks for it and unambiguously identifies its target; otherwise ask first.
- `list_postgres_roles` (read-only): Lists a branch's Postgres roles.
- `get_postgres_role` (read-only): Gets a Postgres role on a branch.
- `create_postgres_role`: Creates a Postgres role on a branch and returns its password. The default access, admin, joins neon_superuser: every database, creating databases and roles, bypassing row-level security, and it cannot be narrowed later. For least privilege pass read_only or read_write with database_name and schemas, covering the tables the database owner owns, now and later.
- `delete_postgres_role`: Deletes a Postgres role from a branch.
- `reset_postgres_role_password`: Sets a new random password for a Postgres role and returns it. Drops the compute's connections.
- `list_postgres_databases` (read-only): Lists a branch's databases and their owners.
- `get_postgres_database` (read-only): Gets a database on a branch and its owner.
- `create_postgres_database`: Creates a database on a branch, owned by owner_name.
- `update_postgres_database`: Renames a database or changes its owner.
- `delete_postgres_database`: Deletes a database and its data from a branch.
- `list_credentials` (read-only): Lists the scoped credentials issued on a branch, without secrets.
- `create_credential`: Issues a scoped credential on a branch. api_token and s3_secret_access_key are returned once: show them to the user and tell them to store them.
- `revoke_credential`: Revokes a scoped credential. Idempotent.
- `rotate_credential`: Replaces a scoped credential's secrets in place and returns them once; token_id stays. Not idempotent: if the response is lost, create a new credential (create_credential) and revoke this one instead of retrying.

### Endpoints (9)

- `list_postgres_endpoints` (read-only): Lists the compute endpoints of every branch in a project. For one branch, use list_branch_computes.
- `list_branch_computes` (read-only): Lists a branch's compute endpoints. For every branch in the project, use list_postgres_endpoints.
- `get_postgres_endpoint` (read-only): Gets a compute endpoint (ep-...), including its host and state.
- `create_postgres_endpoint`: Creates a compute endpoint on a branch; a branch takes one read-write endpoint and any number of read-only. Returns no connection string; use get_connection_string.
- `update_postgres_endpoint`: Updates a compute endpoint's settings.
- `delete_postgres_endpoint`: Deletes a compute endpoint and drops its connections.
- `start_postgres_endpoint`: Starts a suspended compute endpoint.
- `suspend_postgres_endpoint`: Suspends a compute endpoint, dropping its connections.
- `restart_postgres_endpoint`: Restarts a compute endpoint by suspending and starting it, dropping its connections.

### Snapshots (7)

- `list_snapshots` (read-only): Lists a project's snapshots.
- `get_snapshot_schedule` (read-only): Gets a branch's automatic snapshot schedule.
- `set_snapshot_schedule`: Replaces a branch's automatic snapshot schedule.
- `create_snapshot`: Creates a snapshot of a branch.
- `update_snapshot`: Renames a snapshot or changes when it expires.
- `delete_snapshot`: Deletes a snapshot.
- `restore_snapshot`: Restores a snapshot into a new branch and waits until it is ready. finalize true replaces target_branch_id (default: the snapshot's source branch) with it. NEVER finalize autonomously: finalize only when the user's own message asks for it and unambiguously identifies its target; otherwise ask first. Swap in later with finalize_branch_restore.

### Schema (3)

- `describe_table_schema` (read-only): Returns a table's columns, indexes, constraints, and sizes. For every table, use get_database_tables.
- `get_database_tables` (read-only): Lists a database's tables and views outside the system schemas. For one table's columns, use describe_table_schema.
- `compare_database_schema` (read-only): Diffs one database's SQL schema on a branch against another branch, by default its parent. lsn, timestamp, base_lsn, and base_timestamp are only for point-in-time comparisons.

### Querying (9)

- `run_sql` (read-only): Runs one SQL statement on a branch's database and returns its rows. For several statements, send one per call or use run_sql_transaction. After a prepare step, pass its temporary branch_id. NEVER run destructive SQL autonomously: run it only when the user's own message asks for it and unambiguously identifies its target; otherwise ask first.
- `run_sql_transaction`: Runs several SQL statements in one transaction and returns each one's rows. After a prepare step, pass its temporary branch_id. NEVER run destructive SQL autonomously: run it only when the user's own message asks for it and unambiguously identifies its target; otherwise ask first.
- `prepare_database_migration`: Applies a schema change on a new temporary branch and returns a migration_id. Test it there with run_sql, then always call complete_database_migration with the response's complete object so the branch is deleted.
- `complete_database_migration`: Applies or discards a prepared migration and deletes the temporary branch. NEVER run autonomously: run it only when the user's own message asks for it and unambiguously identifies its target; otherwise ask first. Pass the complete object from prepare_database_migration; apply_changes false discards.
- `explain_sql_statement` (read-only): Returns a statement's execution plan as JSON. analyze true executes it, side effects included, so never analyze potentially destructive SQL autonomously. For rows, use run_sql.
- `prepare_query_tuning`: Runs EXPLAIN ANALYZE for a slow query on a new temporary branch; returns the plan, table schemas, and a tuning_id. Try changes there with run_sql and explain_sql_statement, then always call complete_query_tuning with the complete object so the branch is deleted. Not prepare_database_migration.
- `complete_query_tuning`: Applies or discards query-tuning changes and deletes the temporary branch. NEVER run autonomously. Pass the complete object from prepare_query_tuning and suggested_sql_statements; apply_changes true applies, omitted discards. Call it even when the user rejects.
- `list_slow_queries` (read-only): Lists queries from pg_stat_statements, slowest mean execution time first, leaving out Neon's own setup and session-reset statements. For sizes, indexes, locks, cache, bloat, or replication, use inspect_database.
- `inspect_database` (read-only): Runs one read-only neon inspect db check; some are compute-wide. outliers ranks queries by total time and calls by count, both via pg_stat_statements; lfc-hit-rate and working-set need the neon extension. If one is missing, the error gives the CREATE EXTENSION; ask before running it. Other SQL: run_sql; one plan: explain_sql_statement; new indexes: prepare_query_tuning.

### Neon Auth (32)

- `get_neon_auth_config` (read-only): Returns a branch's Neon Auth integration and settings: trusted origins, localhost, email and password, OAuth and email providers, plugins, webhook, and logs export. Needs Neon Auth on the branch (provision_neon_auth).
- `get_auth` (read-only): Gets a branch's Neon Auth integration record: provider, base URL, JWKS URL, and database. Prefer get_neon_auth_config, which adds the auth settings, unless you only need the record.
- `provision_neon_auth`: Enables Neon Auth on a branch and creates the neon_auth schema in its database.
- `disable_auth`: Disables Neon Auth on a branch. delete_data also drops the neon_auth schema and its tables.
- `update_auth_config`: Sets the application name Neon Auth uses in its emails.
- `list_auth_oauth_providers`: Lists the social login providers (Google, GitHub, Microsoft, Vercel, Apple, Discord) of a branch's Neon Auth. For Neon Auth as an OAuth server, use get_auth_oauth_server.
- `add_auth_oauth_provider`: Adds a social login provider (Google, GitHub, Microsoft, Vercel, Apple, Discord) to a branch's Neon Auth. Microsoft, Apple, and Discord have no shared app, so they need your own `client_id` and `client_secret`. Apple and Discord work only on Better Auth projects, not legacy Stack Auth. For Apple, `client_id` is the Services ID, `client_secret` is the `.p8` private key, and `apple_team_id` and `apple_key_id` are required. For Neon Auth as an OAuth server, use update_auth_oauth_server.
- `update_auth_oauth_provider`: Updates a social login provider (Google, GitHub, Microsoft, Vercel, Apple, Discord) on a branch's Neon Auth. For Apple, a new `client_secret` (`.p8` key) must be sent with its `apple_key_id`. For Neon Auth as an OAuth server, use update_auth_oauth_server.
- `delete_auth_oauth_provider`: Deletes a social login provider (Google, GitHub, Microsoft, Vercel, Apple, Discord) from a branch's Neon Auth. For Neon Auth as an OAuth server, use update_auth_oauth_server.
- `list_auth_trusted_domains` (read-only): Lists the domains a branch's Neon Auth may redirect to after sign-in.
- `add_auth_trusted_domain`: Adds a domain a branch's Neon Auth may redirect to after sign-in.
- `delete_auth_trusted_domain`: Removes a domain from the ones a branch's Neon Auth may redirect to.
- `create_auth_user`: Creates a Neon Auth user on a branch who can sign in right away.
- `delete_auth_user`: Deletes a Neon Auth user from a branch. Irreversible.
- `update_auth_user_role`: Sets the roles of a Neon Auth user on a branch.
- `get_auth_oauth_server` (read-only): Gets a branch's Neon Auth OAuth 2.1 server settings (oauth_provider plugin), for example for MCP clients. For social login, use list_auth_oauth_providers.
- `update_auth_oauth_server`: Configures a branch's Neon Auth as an OAuth 2.1 server (oauth_provider plugin); root branch only. Enabling needs login_page, consent_page, and a resource or MCP resource. resources replaces the stored list, so send the full list from get_auth_oauth_server.
- `list_auth_oauth_clients` (read-only): Lists the OAuth clients (apps, MCP clients) of a branch's Neon Auth OAuth server, without secrets; not social login providers.
- `get_auth_oauth_client` (read-only): Gets an OAuth client of a branch's Neon Auth OAuth server, without its secret.
- `create_auth_oauth_client`: Registers an OAuth client with a branch's Neon Auth OAuth server. A confidential client's client_secret is returned once: show it to the user and tell them to store it. resources must already be on the server, or be its MCP resource (get_auth_oauth_server). type is permanent.
- `update_auth_oauth_client`: Updates an OAuth client of Neon Auth's OAuth server; redirect_uris and resources replace the stored lists, and type cannot change.
- `delete_auth_oauth_client`: Deletes an OAuth client from Neon Auth's OAuth server, irreversibly; tokens already issued stay valid.
- `rotate_auth_oauth_client_secret`: Issues a new secret for a confidential OAuth client; the old one stops working at once. The new client_secret is returned once: show it to the user and tell them to store it.
- `update_auth_allow_localhost`: Sets whether a branch's Neon Auth accepts localhost origins; turn it off for production. Current value: get_neon_auth_config.
- `update_auth_email_and_password`: Updates a branch's Neon Auth email and password sign-in; omitted fields keep their value. Current values: get_neon_auth_config.
- `update_auth_email_provider`: Sets the email provider for Neon Auth's emails: body.type "shared" for Neon's sender, or "standard" with your SMTP details. Test it with send_auth_test_email.
- `send_auth_test_email`: Sends a test email through the branch's saved standard SMTP provider to recipient_email. Only send to an address the user gave you. A failed send returns success false with error_message, not an error.
- `update_auth_plugins_magic_link`: Updates the Neon Auth magic link plugin; omitted fields keep their value. Current values: get_neon_auth_config.
- `update_auth_plugins_organization`: Updates the Neon Auth organization plugin, which lets your app's users form organizations (not Neon organizations). Omitted fields keep their value. Current values: get_neon_auth_config.
- `update_auth_plugins_phone_number`: Updates the Neon Auth SMS OTP plugin; omitted fields keep their value. SMS needs a webhook with the send.otp event (update_auth_webhooks). Current values: get_neon_auth_config.
- `update_auth_webhooks`: Replaces a branch's Neon Auth webhook configuration; omitted fields reset, so { enabled: false } alone clears webhook_url and enabled_events. Send every field to keep, read from get_neon_auth_config.
- `update_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.

### Data API (4)

- `get_data_api` (read-only): Gets the Neon Data API configuration for one database on a branch. Returns enabled false when the database has no Data API; provision_neon_data_api enables it.
- `provision_neon_data_api`: Creates the Neon Data API, a REST interface over database_name, on a branch.
- `update_data_api`: Updates the Neon Data API settings for a database and refreshes its schema cache.
- `delete_data_api`: Deletes the Neon Data API for a database; requests to its endpoint start failing.

### Observability (5)

- `query_logs` (read-only): Returns a branch's log records. Filters combine with AND; pass logql or structured filters, not both. Pass since or start_time, not both; default last hour, max seven days. Private beta: a branch without logs returns 404 telemetry_not_enabled. Stream labels: query_loki_logs. Returns every page. Pass limit to cap how many.
- `list_log_fields` (read-only): Lists the low-cardinality log fields seen on a branch, for list_log_field_values.
- `list_log_field_values` (read-only): Lists the distinct values of one log field; a field the branch never emitted returns unknown_field. Pass since or start_time, not both; default last six hours, max seven days.
- `query_loki_logs` (read-only): Runs a LogQL range query on a branch's logs and returns Loki's response: data.result groups lines by stream label as [nanosecond timestamp, line]. query_logs has structured filters; list_log_fields and list_log_field_values list labels. No cursor: limit lines, or the silent 10,000 cap, may mean more exist; narrow the window.
- `get_ai_gateway` (read-only): Gets a branch's AI Gateway host; a 404 says why it is unavailable.

### Docs (2)

- `search_docs` (read-only): Searches neon.com docs, API reference, PostgreSQL tutorial, guides, FAQs, changelog, and blog for ranked pages with the slug get_doc reads.
- `get_doc` (read-only): Returns one neon.com page as markdown, by the slug of a search_docs hit.

### Functions (13)

- `list_functions` (read-only): Lists the functions on a branch. Returns every page. Pass limit to cap how many.
- `get_function` (read-only): Gets a function on a branch by slug.
- `update_function`: Sets a function's display name; null resets it to the slug. Only the branch that owns the function can rename it.
- `delete_function`: Deletes a function from a branch.
- `deploy_function`: Deploys a function version from any of zip, environment, and runtime; omitted ones keep the latest value, and the first deployment needs zip. It can return while still pending.
- `list_functions_custom_domains` (read-only): Lists a branch's custom domains and their targets. Returns every page. Pass limit to cap how many.
- `register_functions_custom_domain`: Routes a domain you own to a function: entity_type function, entity_id the slug from list_functions. It goes live once a CNAME to the returned cname_target resolves.
- `delete_functions_custom_domain`: Removes a custom domain from a branch and stops routing it.
- `list_triggers` (read-only): Lists a branch's function triggers, including inherited ones, which stay disabled on this branch until enabled.
- `get_trigger` (read-only): Gets a function trigger on a branch.
- `create_trigger`: Creates a trigger that calls a function on a five-field UTC cron schedule, or after an upload to one bucket, optionally under a key prefix. Names are unique on the branch.
- `update_trigger`: Updates a function trigger; body.type must match its kind. Editing an inherited trigger makes a local copy, disabled unless this request enables it.
- `delete_trigger`: Deletes a function trigger, or hides an inherited one on this branch. Invocations already queued still run.

### Storage (8)

- `get_storage` (read-only): Checks whether object storage is available on a branch; a 404 says why not.
- `list_storage_buckets` (read-only): Lists a branch's object storage buckets, inherited ones included.
- `create_storage_bucket`: Creates an object storage bucket on a branch.
- `delete_storage_bucket`: Deletes a bucket from a branch.
- `list_storage_objects` (read-only): Lists a bucket's objects on a branch, inherited ones included. Returns every page. Pass limit to cap how many.
- `delete_storage_object`: Deletes one object from a bucket on a branch.
- `delete_storage_objects_by_prefix`: Soft-deletes every object on this branch whose key starts with prefix and returns the count; inherited objects stay.
- `presign_storage_object`: Returns a short-lived presigned PUT or GET URL for one object, with the headers to send; no S3 credentials needed.

### Realtime (5)

- `get_realtime` (read-only): Gets a branch's Realtime state, URL, and allowed origins; the secret comes from get_realtime_secret.
- `enable_realtime`: Enables Realtime on a branch, or changes its allowed origins, and waits until it is applied. Enabling turns on logical replication for the whole project, which cannot be turned off, and suspends every compute in the project, dropping active connections. NEVER run autonomously: run it only when the user's own message asks for it and unambiguously identifies its target; otherwise ask first.
- `disable_realtime`: Disables Realtime on a branch, discarding its secret, and waits until it is applied.
- `get_realtime_secret`: Gets the secret the application backend issues Realtime tokens with; 404 until enable_realtime has run. Requires write access: the secret lets its holder issue Realtime tokens for the branch, so it is unavailable in read-only mode.
- `rotate_realtime_secret`: Replaces a branch's Realtime secret and waits until the old one stops working. NEVER run autonomously: run it only when the user's own message asks for it and unambiguously identifies its target; otherwise ask first. Then update the application backend from get_realtime_secret.

## Links

- [Documentation](https://neon.com/docs/ai/neon-mcp-server)
- [GitHub](https://github.com/neondatabase/mcp-server-neon)
- [Status](https://neonstatus.com)
