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
- A portal with at least one access group
- An API key from Neon for each person, or one for a shared connection
- For the CLI steps: the Metorial CLI, signed in to your portal
Sign-in method
| Method | Type | What a person provides |
|---|---|---|
| API Key | API token | token |
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:
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
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.
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 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. NeedsprojectId.list_projects: Lists all Neon projects accessible to the authenticated user.list_branches: Lists all branches in a Neon project. NeedsprojectId.get_operation: Retrieves the details and current status of a specific operation. NeedsprojectIdandoperationId.list_endpoints: Lists all compute endpoints in a Neon project. NeedsprojectId.list_databases: Lists all databases on a specific branch in a Neon project. NeedsprojectIdandbranchId.list_roles: Lists all database roles on a specific branch. NeedsprojectIdandbranchId.get_consumption: Retrieves consumption metrics across all projects for the account. Needsfrom,toandgranularity.list_operations: Lists recent operations for a Neon project. NeedsprojectId.list_snapshots: Lists snapshots for a Neon project. NeedsprojectId.reveal_role_password: Retrieves the stored password for a Neon database role when password storage is enabled. NeedsprojectId,branchIdandroleName.get_branch: Retrieves details for a specific Neon branch, including its parent, state, default/protected flags, and timestamps. NeedsprojectIdandbranchId.get_connection_uri: Retrieves a PostgreSQL connection URI for a Neon database and role. NeedsprojectId,databaseNameandroleName.get_role: Retrieves details for a database role on a Neon branch, including protection and authentication metadata. NeedsprojectId,branchIdandroleName.get_database: Retrieves details for a specific database on a Neon branch, including owner role and timestamps. NeedsprojectId,branchIdanddatabaseName.get_endpoint: Retrieves details for a specific Neon compute endpoint, including state, host, autoscaling limits, suspend timeout, and access flags. NeedsprojectIdandendpointId.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. NeedsprojectId.create_project: Creates a new Neon project.update_database: Updates a database's name or owner on a specific branch. NeedsprojectId,branchIdanddatabaseName.create_branch: Creates a new branch in a Neon project. NeedsprojectId.create_endpoint: Creates a new compute endpoint for a branch. NeedsprojectId,branchIdandtype.create_role: Creates a new database role on a branch. NeedsprojectId,branchIdandname.restore_branch: Restores a branch to a previous state using a point-in-time timestamp or LSN. NeedsprojectIdandbranchId.control_endpoint: Starts, suspends, or restarts a compute endpoint. NeedsprojectId,endpointIdandaction.create_database: Creates a new database on a branch in a Neon project. NeedsprojectId,branchId,nameandownerName.reset_role_password: Resets the password for a database role. NeedsprojectId,branchIdandroleName.update_endpoint: Updates a compute endpoint's autoscaling limits and suspend timeout configuration. NeedsprojectIdandendpointId.update_branch: Updates a Neon branch name, protected flag, or expiration timestamp. NeedsprojectIdandbranchId.set_default_branch: Sets a branch as the default branch for a Neon project. NeedsprojectIdandbranchId.restore_snapshot: Restores a Neon snapshot to a branch. NeedsprojectIdandsnapshotId.recover_project: Recovers a deleted Neon project within the deletion recovery period. NeedsprojectId.update_snapshot: Renames a Neon project snapshot. NeedsprojectId,snapshotIdandname.create_snapshot: Creates a point-in-time snapshot from a Neon branch. NeedsprojectIdandbranchId.recover_branch: Recovers a soft-deleted Neon branch within the deletion recovery period when branch recovery is available for the project. NeedsprojectIdandbranchId.
Destructive tools (6)
delete_database: Permanently deletes a database from a branch in a Neon project. NeedsprojectId,branchIdanddatabaseName.delete_endpoint: Deletes a compute endpoint from a Neon project. NeedsprojectIdandendpointId.delete_project: Permanently deletes a Neon project and all its branches, databases, endpoints, and roles. NeedsprojectId.delete_role: Deletes a database role from a branch. NeedsprojectId,branchIdandroleName.delete_branch: Deletes a branch from a Neon project. NeedsprojectIdandbranchId.delete_snapshot: Deletes a Neon project snapshot. NeedsprojectIdandsnapshotId.
Next steps
- Claude Code, Cursor, Codex and ChatGPT: connect each client to your portal and use Neon there
- Tool permissions: tool filters and what employees see
- Neon on metorial.com: the integration overview