MetorialDocs

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

Sign-in method

MethodTypeWhat a person provides
API KeyAPI tokenapiKey

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:

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

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

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

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.

metorial list ngrok
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 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 list ngrok
metorial tools <integration-id>
metorial call <integration-id> list_vaults -d '{}'

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. Needs domainId.
  • get_event_subscription: Retrieve details of a specific event subscription including its sources and destinations. Needs subscriptionId.
  • 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. Needs tunnelId.
  • 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. Needs endpointId.
  • get_credential: Retrieve details of a specific tunnel credential (authtoken) by ID. Needs credentialId.
  • list_secrets: List all secrets across all vaults.
  • get_api_key: Retrieve details of a specific API key. Needs apiKeyId.
  • 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. Needs botUserId.
  • get_address: Retrieve details of a specific reserved TCP address by its ID. Needs addressId.
  • 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. Needs policyId.
  • 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. Needs certificateId.
  • 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. Needs caPem.
  • update_ip_policy: Update an IP policy's description or metadata. Needs policyId.
  • 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. Needs sources and destinationIds.
  • create_domain: Reserve a new domain (hostname) for receiving HTTP, HTTPS, or TLS traffic. Needs domain.
  • create_event_destination: Create an event destination for publishing captured events. Needs target.
  • create_vault: Create a new vault to organize secrets. Needs name.
  • update_api_key: Update an API key's description or metadata. Needs apiKeyId.
  • create_ip_policy: Create a new IP policy.
  • create_secret: Create a new secret in a vault. Needs name and secretValue.
  • 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. Needs publicKey.
  • update_secret: Update a secret's name, value, description, or metadata. Needs secretId.
  • create_endpoint: Create a persistent cloud endpoint with a URL and traffic policy. Needs url.
  • 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. Needs vaultId.
  • create_ip_policy_rule: Add a CIDR rule to an IP policy. Needs ipPolicyId, cidr and action.
  • upload_tls_certificate: Upload a TLS certificate and private key pair. Needs certificatePem and privateKeyPem.
  • create_bot_user: Create a new bot user (service account) for programmatic API access. Needs name.
  • update_address: Update the description or metadata of a reserved TCP address. Needs addressId.

Destructive tools (23)

  • delete_ip_policy_rule: Remove a CIDR rule from an IP policy. Needs ruleId.
  • update_domain: Update an existing reserved domain's description, metadata, or certificate configuration. Needs domainId.
  • restart_tunnel_session: Restart an ngrok agent tunnel session. Needs sessionId.
  • delete_api_key: Delete an API key. Needs apiKeyId.
  • delete_certificate_authority: Delete a certificate authority. Needs certificateAuthorityId.
  • delete_ip_policy: Delete an IP policy and all its associated rules. Needs policyId.
  • delete_domain: Release a reserved domain. Needs domainId.
  • delete_vault: Delete a vault. Needs vaultId.
  • update_credential: Update a tunnel credential's description, metadata, or ACL rules. Needs credentialId.
  • delete_tls_certificate: Delete a TLS certificate. Needs certificateId.
  • delete_address: Release a reserved TCP address. Needs addressId.
  • delete_ssh_certificate_authority: Delete an SSH certificate authority from this account. Needs sshCaId.
  • delete_secret: Delete a secret from its vault. Needs secretId.
  • delete_event_subscription: Delete an event subscription. Needs subscriptionId.
  • update_event_subscription: Update an event subscription's sources, destinations, description, or metadata. Needs subscriptionId.
  • stop_tunnel_session: Stop an ngrok agent tunnel session. Needs sessionId.
  • delete_endpoint: Delete a cloud endpoint. Needs endpointId.
  • delete_credential: Delete a tunnel credential. Needs credentialId.
  • delete_ssh_credential: Delete an SSH credential. Needs sshCredentialId.
  • update_bot_user: Update a bot user's name or active status. Needs botUserId.
  • update_endpoint: Update an existing endpoint's URL, traffic policy, description, metadata, or bindings. Needs endpointId.
  • delete_event_destination: Delete an event destination. Needs destinationId.
  • delete_bot_user: Delete a bot user. Needs botUserId.

Triggers

Ngrok has 4 triggers, which fire on events in Ngrok:

  • inbound_webhook
  • endpoint_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