SERVICE & TOOLS
Neon
Neon Serverless Postgres — projects, branches, SQL execution (auth required)
127 available tools
list_ organizations
Lists all organizations that the current user has access to. Optionally filter by organization name or ID using the `search` parameter.
add_ auth_ oauth_ provider
Adds a social login provider (Google, GitHub, Microsoft, Vercel, Apple) that users sign in with to the branch's Neon Auth integration. Takes the provider `id` and optionally `client_id`, `client_secre…
add_ 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.
compare_ database_ schema
<use_case> Use this tool to compare the schema of a database between two branches. The output of the tool is a JSON object with one field: `diff`. <example> ```json …
complete_ database_ migration
Complete a database migration by applying changes to the main branch and cleaning up the temporary branch. <important_notes> You MUST pass ALL values from the `prepare_database_migration` r…
complete_ query_ tuning
Complete a query tuning session by either applying the changes to the main branch or discarding them. <important_notes> BEFORE RUNNING THIS TOOL: test out the changes in the temporary bra…
create_ 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` m…
create_ 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.
create_ branch
Create a branch in a Neon project
create_ 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.
create_ 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.
create_ postgres_ endpoint
Creates a compute endpoint on a branch. Does not return a connection string; call `get_connection_string`.
create_ 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.
create_ project
Create a new Neon project. If someone is trying to create a database, use this tool.
create_ 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.
create_ 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.
create_ 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.
delete_ 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…
delete_ auth_ oauth_ provider
Deletes a social login provider (Google, GitHub, Microsoft, Vercel, Apple) from the branch's Neon Auth integration. This is not the OAuth Provider plugin that makes Neon Auth an OAuth 2.1 authorizatio…
delete_ 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.
delete_ 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.
delete_ branch
Delete a branch from a Neon project
delete_ 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.
delete_ 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.
delete_ 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.
delete_ 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.
delete_ postgres_ endpoint
Deletes the specified compute endpoint.
delete_ 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.
delete_ project
Delete a Neon project
delete_ snapshot
Deletes the specified snapshot.
delete_ 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.
delete_ 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.
delete_ 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.
delete_ 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…
deploy_ 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 br…
describe_ branch
Get a tree view of all objects in a branch, including databases, schemas, tables, views, and functions
describe_ project
Describes a Neon project
describe_ table_ schema
Describe the schema of a table in a Neon database
disable_ 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 resolv…
disable_ 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.
enable_ 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.
explain_ sql_ statement
Describe the PostgreSQL query execution plan for a query of SQL statement by running EXPLAIN (ANAYLZE...) in the database
fetch
Fetches detailed information about a specific organization, project, or branch using the ID returned by the search tool. This tool provides comprehensive information about Neon resources for detailed …
finalize_ 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-...), n…
get_ 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.
get_ 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…
get_ 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.
get_ 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…
get_ 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.
get_ connection_ string
Get a PostgreSQL connection string for a Neon database with all parameters being optional