MCP Server (AI control)
MCP server — drive Ngris from your AI assistant
Ngris runs a hosted Model Context Protocol (MCP) server at https://mcp.ngris.com/mcp. Connect an MCP client — Claude Code, Claude Desktop, or any other MCP-capable assistant — and manage your whole Ngris edge in natural language: expose a service, deploy an app, write a traffic policy, inspect and replay a request, check usage, open a ticket, and more.
The server is a thin client over the public Ngris REST API. Every tool acts with your own credential, so the assistant can never do more than you could yourself in the dashboard. An API key goes to the API as it is. With an OAuth sign-in, the server calls the API with a short-lived token issued for you, never with the token your assistant holds. There is no admin surface and no standing access of its own — it is user-facing scope only.
# Add the remote MCP server (Streamable HTTP)
claude mcp add --transport http ngris https://mcp.ngris.com/mcp
# Then authenticate in the browser when prompted:
# Claude opens the Ngris login, you approve, and the
# connection is bound — no key to copy or paste.
Connect your MCP client
The transport is Streamable HTTP. Two ways to connect:
Claude Code (recommended)
Run the claude mcp add command on the right, then finish the browser login. Claude discovers the 340+ tools and you can start asking — e.g. “expose my app on port 3000” or “show me the 5xx requests on my API endpoint and replay the last one.”
Any other MCP client
Point a spec-native MCP client at the remote URL below. Clients that support OAuth 2.1 will trigger the browser consent flow automatically; clients that take a static credential can send an Ngris API key as a bearer token instead.
{
"mcpServers": {
"ngris": {
"type": "http",
"url": "https://mcp.ngris.com/mcp"
}
}
}
# For a script or CI: no browser sign-in,
# your API key goes in the Authorization header.
claude mcp add --transport http ngris https://mcp.ngris.com/mcp \
--header "Authorization: Bearer ngk_your-api-key"
What you can do
The server exposes more than 340 tools mapped one-to-one onto the public Ngris API, grouped by domain. Reads are marked read-only; writes declare whether they are destructive so your assistant can ask before applying anything risky.
| Domain | What the assistant can do |
|---|---|
| Endpoints & tunnels | Create and manage endpoints, read tunnel status, and update endpoint settings (routing rules, client access/RBAC, the paths that skip sign-in, health checks, custom error pages, cache). Create a proxy endpoint that forwards to your own server, or turn one on, change it or off, and add or release an endpoint's dedicated TCP and UDP ports (ngris picks the port). |
| Edge security | Traffic policies, firewall policies, and rate-limit rules — with policy_test_expression (CEL) and policy_preview (blast radius) to preview before apply. |
| Domains, TLS & DNS | Check domain availability, add domains, verify CNAMEs, read/reissue certificates, and manage DNS records. |
| Applications / deploy | Full deploy lifecycle: create, deploy, read deploy logs, roll back, set preview URLs, manage env vars (app_env_set and app_env_delete take an environment: production, preview or all, the default), and provision app databases — static and managed apps. |
| Traffic inspector | List and read captured requests, run smart search, analyze a request, replay it against your backend, and export. |
| Account & identity | Account settings, members and roles, SSO config, and the account audit log; your own profile and MFA status; multi-account list/switch. |
| Usage & billing | Read usage and metrics, list plans, preview a plan change, view invoices, and open the billing portal. |
| Support & board | Create, list, reply to, and close support tickets and search the KB; browse and update the kanban board. |
Four guided prompts ship alongside the tools — expose_localhost, deploy_repo, lock_down_endpoint, and debug_5xx — each a multi-tool flow your assistant can run end to end.
You: Expose my app running on localhost:3000
and put a rate limit of 60 req/min on it.
Iris via MCP:
1. endpoint_create → https://calm-fox.ngris.dev
2. policy_preview → shows blast radius
3. rate_limit_create → applied after you confirm
Authentication: OAuth or API key
Two ways to authenticate a connection. Both resolve to your Ngris identity, and api-server is always the authority on what the credential can do.
OAuth 2.1 (browser login)
A spec-native MCP client (like Claude) connects with OAuth 2.1: you click Authenticate, sign in to Ngris, and approve — no key to copy or paste. The MCP server verifies the resulting access token against api-server's public keys, and api-server stays the single authorization server (there is no second identity provider to configure).
The approval page names the app and where it sends you back to (a website, or an app on this computer for a desktop client): approve only when both are what you are connecting. The token you approve works only with the Ngris MCP server, never with another site and never directly with the Ngris API: for each call, the MCP server trades it for a short-lived API token.
For client developers, the flow is standard OAuth 2.1: authorization code with PKCE (S256), dynamic client registration (RFC 7591), server metadata at /.well-known/oauth-authorization-server (RFC 8414), resource indicators (RFC 8707: the token is bound to the resource you name, https://mcp.ngris.com for the MCP server, or https://api.ngris.com or none for the API; any other resource answers invalid_target), the issuer in the authorization response (RFC 9207), rotating refresh tokens and token revocation (RFC 7009). The MCP server trades an MCP token for an API token with a token exchange (RFC 8693); the MCP token itself is refused by the API. The MCP server publishes its protected resource metadata (RFC 9728).
API key (bearer token)
Clients that take a static credential can send an Ngris API key as a bearer token; it is forwarded to api-server, which validates it. The HTTP transport rejects any request that arrives with no credential.
An account key (nak_) works the same way, for automation that should keep working when people change. It acts only in its own account, with its role. Tools that work on a person — your profile, accounts, sessions, billing, credentials, or who has access — answer that account keys can't use them.
Security model
The MCP server is designed to be safe to hand to an autonomous assistant:
- User-facing scope only. The server acts with your own credential and only calls public API routes. No
/admin/*route is reachable — it can never do more than you can. - Least privilege. There is no database in the MCP server and it holds no standing access of its own: every call is bound to the calling user. With an OAuth sign-in, the token it calls the API with is issued for you and lasts a few minutes.
- An OAuth session cannot mint credentials. Requests authenticated with an OAuth/MCP token are refused when they try to create long-lived API keys, account keys or agent auth tokens, or to register an agent key — the API answers 403 (
cannot mint long-lived credentials from an OAuth session); create or register them in the dashboard instead. Nor can it trade its token for a dashboard sign-in: switching or creating accounts, changing your password and signing out other sessions return no session token to it. So a connected assistant can operate your edge, but it cannot forge a durable key to keep for later. - Preview before apply. Mutating policy tools pair with
policy_test_expressionandpolicy_previewso impact is shown before a change lands, and write tools declare when they are destructive. - Secrets stay write-only. App env secrets are set, never read back; a newly created API key is returned exactly once; billing tools never touch card data (they return a billing portal link or a client secret for the card form).