ngrok MCP server for AI agents

Live

BEARER TOKEN

TUNNELS AND INGRESS

Developer Tools

ngrok gives your agent control of your ngrok account: list tunnels and endpoints, manage reserved domains and addresses, IP policies, credentials, TLS certificates, and vault secrets.

  • Per-user credentials: each call uses the actual user's access token, never a shared bot.
  • Encrypted per-tenant vault: AES-256, resolved at request time, never in LLM context.
  • Scoped before every call: pre-call scope check, 90-day SIEM-exportable audit chain.
ngrok
agent · Acme Q3
Run
Which tunnels are online right now?
S
ngrok_tunnels_list
380ms
Ingress agent
Listed the 4 tunnels that are online, each with its public URL and forwarding address.
Sources: ngrok tunnels, 1 account
ngrok
4 tunnels
18:29
Message Claude...

Tools your tunnels and ingress agent reaches for on ngrok, scoped per user.

CALL ANY TOOL
59 tools for tunnels and ingress in ngrok: list tunnels, sessions, and endpoints, manage reserved domains, IP policies, credentials, and certificates, and store vault secrets.
ngrok_agent_ingress_get
Get agent ingress
Get one agent ingress by ID. Returns the agent ingress with domain, ns_targets, region domains and certificate status. Use this when you know the ID. Use ngrok_agent_ingresses_list to find it.
Parameters
Name
Type
Required
Description
id
string
Required
a resource identifier. Example: agin_2nGsUw4HfJ1vXq3bZt9eL8CkYdR.
ngrok_agent_ingresses_list
List agent ingresses
ngrok_api_key_create
Create api key
ngrok_api_key_delete
Delete api key
ngrok_api_key_update
Update api key
ngrok_credential_create
Create credential
ngrok_credential_delete
Delete credential
ngrok_credential_get
Get credential
ngrok_credentials_list
List credentials
ngrok_endpoint_update
Update endpoint
ngrok_event_subscription_delete
Delete event subscription
ngrok_event_subscription_get
Get event subscription
ngrok_ip_policies_list
List ip policies
ngrok_ip_policy_create
Create ip policy
ngrok_ip_policy_rule_delete
Delete ip policy rule
ngrok_ip_policy_rule_get
Get ip policy rule
ngrok_ip_policy_update
Update ip policy
ngrok_reserved_addr_create
Create reserved addr
ngrok_reserved_addrs_list
List reserved addrs
ngrok_reserved_domain_delete
Delete reserved domain
ngrok_reserved_domain_get
Get reserved domain
ngrok_reserved_domain_update
Update reserved domain
ngrok_tls_certificates_list
List tls certificates
ngrok_tunnel_get
Get tunnel
ngrok_tunnel_session_restart
Tunnel session restart
ngrok_tunnel_session_stop
Stop tunnel session
ngrok_tunnels_list
List tunnels
ngrok_vault_create
Create vault
ngrok_vault_delete
Delete vault
ngrok_vault_get
Get vault

For more tools, view docs.

Build your Agent
Same auth pattern across LangChain, OpenAI, Anthropic, and Google ADK.
Python · LlamaIndex
import { ScalekitClient } from "@scalekit-sdk/node";
import { createReactAgent } from "@langchain/langgraph/prebuilt";

const sk = new ScalekitClient(env.SCALEKIT_ENV_URL, env.SCALEKIT_CLIENT_ID, env.SCALEKIT_CLIENT_SECRET);

// ngrok tools scoped to this user
const { tools } = await sk.tools.listScopedTools("user_123", {
  filter: { connectionNames: ["ngrok"], toolNames: [
    "ngrok_tunnels_list",
    "ngrok_endpoints_list",
    "ngrok_reserved_domain_create"] },
  pageSize: 100,
});

const agent = createReactAgent({ llm, tools });
await agent.invoke({ messages: [{ role: "user", content: "List the tunnels that are online, show my endpoints, and reserve the domain staging.example.com" }] });
import OpenAI from "openai";
import { ScalekitClient } from "@scalekit-sdk/node";

const sk = new ScalekitClient(env.SCALEKIT_ENV_URL, env.SCALEKIT_CLIENT_ID, env.SCALEKIT_CLIENT_SECRET);
const openai = new OpenAI();

const { tools } = await sk.tools.listScopedTools("user_123", {
  filter: { connectionNames: ["ngrok"] }, pageSize: 100,
});

const res = await openai.chat.completions.create({
  model: "gpt-5",
  messages: [{ role: "user", content: "List the tunnels that are online, show my endpoints, and reserve the domain staging.example.com" }],
  tools,
});

// Execute the tool call with the user's vaulted ngrok access token
await sk.tools.executeTool(res.choices[0].message.tool_calls[0], "user_123");
import Anthropic from "@anthropic-ai/sdk";
import { ScalekitClient } from "@scalekit-sdk/node";

const sk = new ScalekitClient(env.SCALEKIT_ENV_URL, env.SCALEKIT_CLIENT_ID, env.SCALEKIT_CLIENT_SECRET);
const anthropic = new Anthropic();

const { tools } = await sk.tools.listScopedTools("user_123", {
  filter: { connectionNames: ["ngrok"] }, pageSize: 100,
});

const msg = await anthropic.messages.create({
  model: "claude-sonnet-5",
  max_tokens: 1024,
  messages: [{ role: "user", content: "List the tunnels that are online, show my endpoints, and reserve the domain staging.example.com" }],
  tools,
});

// Tool call runs with the user's vaulted ngrok access token
await sk.tools.executeTool(msg.content, "user_123");
import { Agent } from "@google/adk/agents";
import { ScalekitClient } from "@scalekit-sdk/node";

const sk = new ScalekitClient(env.SCALEKIT_ENV_URL, env.SCALEKIT_CLIENT_ID, env.SCALEKIT_CLIENT_SECRET);

const { tools } = await sk.tools.listScopedTools("user_123", {
  filter: { connectionNames: ["ngrok"] }, pageSize: 100,
});

const agent = new Agent({
  name: "ingress_agent",
  model: "gemini-2.5-pro",
  instruction: "ngrok tools scoped to this user",
  tools,
});

await agent.run("List the tunnels that are online, show my endpoints, and reserve the domain staging.example.com");
Try these prompts
Copy any prompt into your agent. Each maps directly to a ngrok tool. Click to copy, paste into your agent, done.
Tunnels and endpoints
Copy the prompt
Copied
List the tunnels that are online.
Copy the prompt
Copied
Show the endpoints on my account.
Copy the prompt
Copied
Create an endpoint for my staging app.
Domains and IP policies
Copy the prompt
Copied
Reserve the domain staging.example.com.
Copy the prompt
Copied
Create an IP policy and add a rule for 203.0.113.0/24.
Copy the prompt
Copied
List my reserved domains.
Credentials and vaults
Copy the prompt
Copied
List the authtoken credentials on my account.
Copy the prompt
Copied
Create a vault and add a secret to it.
Copy the prompt
Copied
List the tunnel sessions that are connected.
SEE HOW AUTH WORKS
Each user connects their own ngrok access token once, and Scalekit sends it with every call. Tokens stay vaulted, every call is scope checked, and every action is logged.
1
Authorize
Your user connects
ngrok
once. We tie it to their identity and the access they approved, with no shared bot account and no org-wide access
Who:
user ‘A’
when:
Once per user
access:
Limited to user
2
Store
Their
ngrok
credential lives in a vault scoped to them. User A's data is never reachable by an agent acting for user B, even on the same connection
vault:
encrypted
scope:
per-user
tenants:
isolated
3
Resolve
When your agent calls a
ngrok
tool, we fetch the right credential server-side. It never touches your agent, never appears in the LLM context, never shows up in your logs
speed:
~40ms
check:
before every call
seen by:
nobody
4
Audit
Every
ngrok
tool call is logged: who triggered it, which tool ran, what came back. 90 days of history, tied to the user who authorized it
history:
90 days
export:
SIEM-ready
logged:
every call
Test other agents
See the same per-user auth pattern across other developer tools connectors.
Engineering Teams
DevOps assistant agent
Polls GitHub for failing checks and stale PRs, opens Linear issues for the ones that need work, and posts a daily digest to Slack. It acts as the engineer, not a shared service account.
Test other agents
See the same per-user auth pattern across other developer tools connectors.
ENGINEERING
DevOps assistant agent
Poll GitHub for failing checks and stale pull requests, open Linear issues for the ones that need work, and digest to Slack.
Why Scalekit
Secure your agent's access. Connectors ship in minutes
01.
Shared tokens break per-user analytics
A shared ngrok access token looks fine in a demo. In production every ingress change looks like one service account, and you cannot tell which user triggered it. Scalekit resolves the credential of the actual user who triggered the agent, never a shared bot.
// shared token
audit → bot_service_account

// scalekit
audit → user_abc ✓
02.
Authentication is not authorization
03.
Multi-tenancy is architectural
04.
ngrok today. Ten connectors tomorrow.
“Our agents act across Salesforce, Gong, Google Drive, and more, on behalf of every customer. Scalekit behind the scenes meant we can keep adding tools without ever rebuilding how credentials or tool calling work.”
Venu Madhav Kattagoni
Head of Engineering / Von
FAQs
Frequently Asked Questions
Does the agent access ngrok as the user or through a shared token?
As the user. Each user connects their own ngrok access token once, and Scalekit sends it with every call. Audit logs attribute every endpoint and policy change to that user, not a shared service account.
Where is the ngrok access token stored?
In Scalekit's managed AES-256 token vault, namespaced per tenant. To rotate it, the user reconnects with a new access token. Revocation is a single dashboard action. Credentials never appear in prompts, logs, or LLM context.
Can I limit what the agent does in ngrok?
Yes. Filter by tool name in listScopedTools to expose only what you want, for example the get and list tools without ngrok_endpoint_delete or ngrok_reserved_domain_delete, which permanently delete an endpoint or a reserved domain. Scalekit also enforces scope checks before every API call.
What happens when a user revokes ngrok access?
The connection is invalidated on the next tool call. Subsequent requests for that user fail closed with a clear error. Other users in the tenant remain unaffected. The event is logged for audit.
Can the agent manage ngrok credentials?
Yes, if you expose those tools. ngrok_api_key_create, ngrok_api_key_update, ngrok_credential_create, and ngrok_credential_update create and change credentials and keys, and ngrok_api_key_delete and ngrok_credential_delete remove them. Leave them out of listScopedTools to keep the agent to tunnels, endpoints, and domains.
Start in your coding agent
Up and running in one command
Install the Scalekit skill in your editor of choice. Connector, auth, tools, prompt, all wired up
Claude Code REPL
/plugin marketplace add scalekit-inc/claude-code-authstack
/plugin install agentkit@scalekit-auth-stack
Cursor Code REPL
# ~/.cursor/mcp.json
{
""mcpServers"": {
""ngrok"": {
""url"": ""https://mcp.scalekit.com/ngrok"",
""headers"": { ""Authorization"": ""Bearer $SCALEKIT_TOKEN"" }
}
}
}
Codex Code REPL
# ~/.codex/config.toml
[mcp_servers.ngrok]
url = ""https://mcp.scalekit.com/ngrok""
auth_env = ""SCALEKIT_TOKEN""
Copilot Code REPL
# .vscode/mcp.json
{
""servers"": {
""ngrok"": {
""url"": ""https://mcp.scalekit.com/ngrok"",
""type"": ""http""
}
}
}