Set up Ngrok in Metorial for Claude, ChatGPT and Cursor
Share Ngrok with your team in Claude, ChatGPT and Cursor through Metorial: API key sign-in, 73 tools (29 read-only).
To give your team Ngrok in Claude, ChatGPT, Cursor and other AI clients, an admin shares the Ngrok integration in a Metorial portal, and each person connects with an API key. Agents can manage ngrok cloud endpoints and traffic policies, reserved domains and TCP addresses, connected tunnels and agent sessions, IP policies, TLS certificates, SSH credentials and certificate authorities, API keys, authtokens, bot service accounts, vaults, secrets, and audit or traffic event delivery to supported cloud destinations. The integration has 73 tools, 29 read-only, 21 write and 23 destructive, plus 4 triggers.
What you'll learn
- How an admin shares Ngrok in a portal and how each person connects
- What Ngrok asks for when you connect, and where to find it
- How to keep the 29 read-only tools and reject the other 44
Before you start
- A portal with at least one access group
- An API key from Ngrok 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 | apiKey |
API Key
To connect, a person enters:
apiKey: Ngrok API key (starts with "ak_"). Provisioned from the ngrok dashboard API Keys page.
Admin: share Ngrok 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 Ngrok. 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 Ngrok.
Choose who gets it
Add the access groups that should see Ngrok. 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 Ngrok integration. Once it exists, check which groups have it:
Employee: connect Ngrok
In the portal
Open Ngrok in the catalog
Sign in to your portal and open Ngrok. The status reads Available.
Authenticate
Under Quick setup, select Authenticate. In the setup window, enter your API key (apiKey).
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 Ngrok 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 29 read-only tools, such as get_domain and get_tunnel, and lose the 21 write tools, such as create_vault or update_vault, and the 23 destructive tools, such as delete_vault or delete_domain.
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 73 tools, minus any you rejected. list_vaults takes no input. It lists all vaults.
To see every input a tool takes, run metorial schema <integration-id> <tool-key>.
Tools
Read-only tools (29)
Show all 29 read-only tools
get_domain: Retrieve details of a specific reserved domain by its ID. NeedsdomainId.get_event_subscription: Retrieve details of a specific event subscription including its sources and destinations. NeedssubscriptionId.list_ssh_certificate_authorities: List all SSH certificate authorities.list_domains: List all reserved domains on your ngrok account.list_ssh_credentials: List all SSH public keys registered for tunnel authentication.get_tunnel: Retrieve details of a specific active tunnel, including its public URL, protocol, and where it forwards traffic. NeedstunnelId.list_tunnels: List all active tunnels.list_event_destinations: List all event destinations.get_endpoint: Retrieve details of a specific endpoint by ID, including its traffic routing configuration and associated tunnel or domain. NeedsendpointId.get_credential: Retrieve details of a specific tunnel credential (authtoken) by ID. NeedscredentialId.list_secrets: List all secrets across all vaults.get_api_key: Retrieve details of a specific API key. NeedsapiKeyId.list_addresses: List all reserved TCP addresses.list_ip_policies: List all IP policies.get_bot_user: Retrieve details of a specific bot user (service account) by ID. NeedsbotUserId.get_address: Retrieve details of a specific reserved TCP address by its ID. NeedsaddressId.list_event_subscriptions: List all event subscriptions.list_tls_certificates: List all uploaded TLS certificates.list_endpoints: List all active endpoints.list_tunnel_sessions: List all active tunnel sessions.list_api_keys: List all API keys for your ngrok account.list_bot_users: List all bot users (service accounts).list_certificate_authorities: List all certificate authorities (CAs) used for mutual TLS (mTLS) authentication.get_ip_policy: Retrieve details of a specific IP policy by ID. NeedspolicyId.list_ip_policy_rules: List all IP policy rules across all policies.get_tls_certificate: Retrieve details of a specific TLS certificate including subject, validity, and issuer information. NeedscertificateId.list_credentials: List all tunnel credentials (authtokens).list_vaults: List all vaults.get_tunnel_session: Retrieve a connected agent or SSH session by ID, including the credential and metadata needed to identify it before issuing lifecycle commands.
Write tools (21)
create_address: Reserve a new TCP address for non-HTTP traffic.create_certificate_authority: Upload a CA certificate for mutual TLS authentication. NeedscaPem.update_ip_policy: Update an IP policy's description or metadata. NeedspolicyId.create_ssh_certificate_authority: Create a new SSH certificate authority key pair for signing SSH host and user certificates.create_event_subscription: Create an event subscription to capture audit or traffic events. NeedssourcesanddestinationIds.create_domain: Reserve a new domain (hostname) for receiving HTTP, HTTPS, or TLS traffic. Needsdomain.create_event_destination: Create an event destination for publishing captured events. Needstarget.create_vault: Create a new vault to organize secrets. Needsname.update_api_key: Update an API key's description or metadata. NeedsapiKeyId.create_ip_policy: Create a new IP policy.create_secret: Create a new secret in a vault. NeedsnameandsecretValue.create_api_key: Create a new API key for authenticating with the ngrok API. **Important:** The token value is only returned once at creation time — save it immediately.create_ssh_credential: Register an SSH public key for tunnel authentication. NeedspublicKey.update_secret: Update a secret's name, value, description, or metadata. NeedssecretId.create_endpoint: Create a persistent cloud endpoint with a URL and traffic policy. Needsurl.create_credential: Create a new tunnel credential (authtoken) for ngrok agent authentication. **Important:** The token value is only returned at creation time.update_vault: Update a vault's name, description, or metadata. NeedsvaultId.create_ip_policy_rule: Add a CIDR rule to an IP policy. NeedsipPolicyId,cidrandaction.upload_tls_certificate: Upload a TLS certificate and private key pair. NeedscertificatePemandprivateKeyPem.create_bot_user: Create a new bot user (service account) for programmatic API access. Needsname.update_address: Update the description or metadata of a reserved TCP address. NeedsaddressId.
Destructive tools (23)
delete_ip_policy_rule: Remove a CIDR rule from an IP policy. NeedsruleId.update_domain: Update an existing reserved domain's description, metadata, or certificate configuration. NeedsdomainId.restart_tunnel_session: Restart an ngrok agent tunnel session. NeedssessionId.delete_api_key: Delete an API key. NeedsapiKeyId.delete_certificate_authority: Delete a certificate authority. NeedscertificateAuthorityId.delete_ip_policy: Delete an IP policy and all its associated rules. NeedspolicyId.delete_domain: Release a reserved domain. NeedsdomainId.delete_vault: Delete a vault. NeedsvaultId.update_credential: Update a tunnel credential's description, metadata, or ACL rules. NeedscredentialId.delete_tls_certificate: Delete a TLS certificate. NeedscertificateId.delete_address: Release a reserved TCP address. NeedsaddressId.delete_ssh_certificate_authority: Delete an SSH certificate authority from this account. NeedssshCaId.delete_secret: Delete a secret from its vault. NeedssecretId.delete_event_subscription: Delete an event subscription. NeedssubscriptionId.update_event_subscription: Update an event subscription's sources, destinations, description, or metadata. NeedssubscriptionId.stop_tunnel_session: Stop an ngrok agent tunnel session. NeedssessionId.delete_endpoint: Delete a cloud endpoint. NeedsendpointId.delete_credential: Delete a tunnel credential. NeedscredentialId.delete_ssh_credential: Delete an SSH credential. NeedssshCredentialId.update_bot_user: Update a bot user's name or active status. NeedsbotUserId.update_endpoint: Update an existing endpoint's URL, traffic policy, description, metadata, or bindings. NeedsendpointId.delete_event_destination: Delete an event destination. NeedsdestinationId.delete_bot_user: Delete a bot user. NeedsbotUserId.
Triggers
Ngrok has 4 triggers, which fire on events in Ngrok:
inbound_webhookendpoint_changes: Triggers when endpoints are created or removed.domain_changes: Triggers when reserved domains are added or removed.tunnel_changes: Triggers when tunnels are started or stopped.
Next steps
- Claude Code, Cursor, Codex and ChatGPT: connect each client to your portal and use Ngrok there
- Tool permissions: tool filters and what employees see
- Ngrok on metorial.com: the integration overview