MetorialDocs

Set up Neon in Metorial for Claude, ChatGPT and Cursor

Share Neon with your team in Claude, ChatGPT and Cursor through Metorial: API key sign-in, 41 tools (17 read-only).

To give your team Neon in Claude, ChatGPT, Cursor and other AI clients, an admin shares the Neon integration in a Metorial portal, and each person connects with an API key. Agents can manage serverless PostgreSQL databases on Neon. The integration has 41 tools, 17 read-only, 18 write and 6 destructive.

What you'll learn

  • How an admin shares Neon in a portal and how each person connects
  • How to keep the 17 read-only tools and reject the other 24

Before you start

Sign-in method

MethodTypeWhat a person provides
API KeyAPI tokentoken

API Key

To connect, a person enters:

  • token

Admin: share Neon in a portal

In the dashboard

Open Shared Resources

Open Workforce, choose the portal, and select Shared Resources under Access.

Share a new integration

Select Share a Resource, then New Integration, and choose Neon. For how members connect, choose Each person connects so everyone enters their own API key, or Shared connection to enter one API key for everyone.

Limit the tools

Under Tool Filters, set the write and destructive groups to Reject if agents should only read from Neon.

Choose who gets it

Add the access groups that should see Neon. When a person asks for access from the portal, the request appears under Access Requests.

With the CLI

The CLI cannot create the per-user Neon integration. Once it exists, check which groups have it:

metorial-admin portals access list <portal-id> --type provider_template --search neon

Employee: connect Neon

In the portal

Open Neon in the catalog

Sign in to your portal and open Neon. The status reads Available.

Authenticate

Under Quick setup, select Authenticate. In the setup window, enter your API key (token).

Confirm

The status changes to Configured. If it later reads Needs reconnect, select Reconnect and sign in again.

With the CLI

metorial catalog search neon
metorial setup <catalog-item-id>

catalog search prints the catalog item ID.

Add it to your AI client

metorial install adds your Neon connection to a local MCP client such as Claude Code, Cursor or Codex. metorial list prints the integration ID and metorial client list the client identifiers.

metorial list neon
metorial client list
metorial install <client-identifier> <integration-id>

For a client that takes a server URL, such as ChatGPT, metorial install custom <integration-id> creates an installation token and shows the endpoint details.

Make it read-only

Open the integration's Tool Filters and set the write and destructive groups to Reject. Agents keep the 17 read-only tools, such as get_role and get_branch, and lose the 18 write tools, such as create_role or create_branch, and the 6 destructive tools, such as delete_role or delete_branch.

Employees see the result on the integration's page in the portal under Tool access. For the full walkthrough, see Tool permissions.

Check it worked

metorial list neon
metorial tools <integration-id>
metorial call <integration-id> list_regions -d '{}'

metorial tools lists the 41 tools, minus any you rejected. list_regions takes no input.

To see every input a tool takes, run metorial schema <integration-id> <tool-key>.

Tools

Read-only tools (17)

  • get_project: Retrieves detailed information about a specific Neon project, including its configuration, connection URI, consumption metrics, and settings. Needs projectId.
  • list_projects: Lists all Neon projects accessible to the authenticated user.
  • list_branches: Lists all branches in a Neon project. Needs projectId.
  • get_operation: Retrieves the details and current status of a specific operation. Needs projectId and operationId.
  • list_endpoints: Lists all compute endpoints in a Neon project. Needs projectId.
  • list_databases: Lists all databases on a specific branch in a Neon project. Needs projectId and branchId.
  • list_roles: Lists all database roles on a specific branch. Needs projectId and branchId.
  • get_consumption: Retrieves consumption metrics across all projects for the account. Needs from, to and granularity.
  • list_operations: Lists recent operations for a Neon project. Needs projectId.
  • list_snapshots: Lists snapshots for a Neon project. Needs projectId.
  • reveal_role_password: Retrieves the stored password for a Neon database role when password storage is enabled. Needs projectId, branchId and roleName.
  • get_branch: Retrieves details for a specific Neon branch, including its parent, state, default/protected flags, and timestamps. Needs projectId and branchId.
  • get_connection_uri: Retrieves a PostgreSQL connection URI for a Neon database and role. Needs projectId, databaseName and roleName.
  • get_role: Retrieves details for a database role on a Neon branch, including protection and authentication metadata. Needs projectId, branchId and roleName.
  • get_database: Retrieves details for a specific database on a Neon branch, including owner role and timestamps. Needs projectId, branchId and databaseName.
  • get_endpoint: Retrieves details for a specific Neon compute endpoint, including state, host, autoscaling limits, suspend timeout, and access flags. Needs projectId and endpointId.
  • list_regions: Lists supported Neon regions.

Write tools (18)

  • update_project: Updates an existing Neon project's settings, including its name and default endpoint configuration. Needs projectId.
  • create_project: Creates a new Neon project.
  • update_database: Updates a database's name or owner on a specific branch. Needs projectId, branchId and databaseName.
  • create_branch: Creates a new branch in a Neon project. Needs projectId.
  • create_endpoint: Creates a new compute endpoint for a branch. Needs projectId, branchId and type.
  • create_role: Creates a new database role on a branch. Needs projectId, branchId and name.
  • restore_branch: Restores a branch to a previous state using a point-in-time timestamp or LSN. Needs projectId and branchId.
  • control_endpoint: Starts, suspends, or restarts a compute endpoint. Needs projectId, endpointId and action.
  • create_database: Creates a new database on a branch in a Neon project. Needs projectId, branchId, name and ownerName.
  • reset_role_password: Resets the password for a database role. Needs projectId, branchId and roleName.
  • update_endpoint: Updates a compute endpoint's autoscaling limits and suspend timeout configuration. Needs projectId and endpointId.
  • update_branch: Updates a Neon branch name, protected flag, or expiration timestamp. Needs projectId and branchId.
  • set_default_branch: Sets a branch as the default branch for a Neon project. Needs projectId and branchId.
  • restore_snapshot: Restores a Neon snapshot to a branch. Needs projectId and snapshotId.
  • recover_project: Recovers a deleted Neon project within the deletion recovery period. Needs projectId.
  • update_snapshot: Renames a Neon project snapshot. Needs projectId, snapshotId and name.
  • create_snapshot: Creates a point-in-time snapshot from a Neon branch. Needs projectId and branchId.
  • recover_branch: Recovers a soft-deleted Neon branch within the deletion recovery period when branch recovery is available for the project. Needs projectId and branchId.

Destructive tools (6)

  • delete_database: Permanently deletes a database from a branch in a Neon project. Needs projectId, branchId and databaseName.
  • delete_endpoint: Deletes a compute endpoint from a Neon project. Needs projectId and endpointId.
  • delete_project: Permanently deletes a Neon project and all its branches, databases, endpoints, and roles. Needs projectId.
  • delete_role: Deletes a database role from a branch. Needs projectId, branchId and roleName.
  • delete_branch: Deletes a branch from a Neon project. Needs projectId and branchId.
  • delete_snapshot: Deletes a Neon project snapshot. Needs projectId and snapshotId.

Next steps