MCP Server

Manage a running Ingate gateway from any MCP-capable coding agent, with the same authorization checks as the REST API.

Ingate ships a Model Context Protocol (MCP) surface so any MCP-capable coding agent (Claude Code, Cursor, Windsurf, VS Code, Codex, or a custom client) can manage a running gateway directly: add providers, create keys, inspect logs and usage, run evals, publish skills, wire up exports, and more, all as tool calls instead of hand-rolled curl.

Discover the running gateway's available tools through your MCP client's tools/list request. The catalog below describes the reviewed surface; installed versions can differ. Tools are backed by the same REST API. Every tool call still goes through the gateway's normal RBAC and entitlement checks. MCP is a second transport onto the same authorization boundary, not a bypass of it.

Agent-readable setup instructions

Start with the Free setup prompt for the human workflow. Agents should discover resources/list and, when advertised, read ingate://docs/setup with resources/read. This is a versioned JSON guide (schema: ingate.setup-guide.v1) for Free-first setup, connection checks and optional application integration. Check its version and supported actions; documentation does not grant account permissions.

Discover prompts/list and retrieve setup-guide with prompts/get when available. Older gateways may not expose the documentation resource or may return an unsupported version. Use the linked Quickstart and authentication reference in that case; report the fallback instead of inventing a successful resource read. A denied protected operation still requires the correct private sign-in or permission handoff.

Free setup first; application integration is optional

Verify the selected organization and Free entitlement before connecting supported native coding-agent usage. Keep existing subscription sign-in; no model provider API key is needed for that path. Do not downgrade an existing Enterprise organization. Account creation and credential entry happen privately. A healthy MCP connection alone does not prove stored activity. Provider configuration, proxy code changes and potentially charged inference belong to the separate application integration step, with the owner's decision for any live request.

Two ways to connect

1. Gateway /mcp endpoint (recommended)

POST
/mcp

Streamable-HTTP MCP transport served by the running gateway (GET is also supported).

The running gateway serves MCP directly at POST/GET {base_url}/mcp over the streamable-HTTP transport. One URL, no extra process to install or keep alive. Point any MCP-capable agent at it and authenticate per session with a header.

bash
https://gateway.example.com/mcp

Auth is per-request, not baked into a running process:

  • X-Ingate-Key: sk-ingate-..., a scoped key for the operations supported by that key, or
  • Authorization: Bearer <session-token>, a session credential provisioned through the private sign-in flow supported by your gateway.

Your gateway version may allow public initialization, discovery or explicitly public tools. Those calls do not grant organization access. A credential returned by a tool does not change the connection's authority: configure the appropriate credential privately, then verify the selected identity and permitted operations.

2. Local stdio binary

ingate-mcp is a standalone binary that speaks MCP over stdio and proxies every tool call to a gateway over HTTP. Use this when your agent host only supports launching a local process rather than an HTTP MCP server.

bash
ingate-mcp --api-url http://localhost:7100 --api-key sk-ingate-...

Or via environment variables (the --api-url/--api-key flags win if both are set):

bash
export INGATE_URL=http://localhost:7100      # default if unset
export INGATE_API_KEY=sk-ingate-...
export INGATE_TOKEN=...                       # alternative to INGATE_API_KEY
ingate-mcp

INGATE_URL defaults to http://localhost:7100 when neither the flag nor the env var is set. ingate-mcp also supports --transport sse and --transport streamable-http for running it as its own local HTTP server instead of stdio, but stdio is the common case: most agent hosts spawn it as a child process per the config snippets below.

Connect your agent

Claude Code

bash
claude mcp add --transport http ingate https://gateway.example.com/mcp --header "X-Ingate-Key: sk-ingate-..."

Cursor

json.cursor/mcp.json
{
  "mcpServers": {
    "ingate": {
      "url": "https://gateway.example.com/mcp",
      "headers": {
        "X-Ingate-Key": "sk-ingate-..."
      }
    }
  }
}

Windsurf

json~/.codeium/windsurf/mcp_config.json
{
  "mcpServers": {
    "ingate": {
      "url": "https://gateway.example.com/mcp",
      "headers": {
        "X-Ingate-Key": "sk-ingate-..."
      }
    }
  }
}

VS Code

json.vscode/mcp.json
{
  "servers": {
    "ingate": {
      "type": "http",
      "url": "https://gateway.example.com/mcp",
      "headers": {
        "X-Ingate-Key": "sk-ingate-..."
      }
    }
  }
}

Codex

yaml~/.codex/config.toml
[mcp_servers.ingate]
url = "https://gateway.example.com/mcp"
http_headers = { "X-Ingate-Key" = "sk-ingate-..." }

stdio (any MCP client that spawns a local process)

json
{
  "mcpServers": {
    "ingate": {
      "command": "ingate-mcp",
      "env": {
        "INGATE_URL": "https://gateway.example.com",
        "INGATE_API_KEY": "sk-ingate-..."
      }
    }
  }
}

Account setup and management access

Start with private dashboard sign-in and the Free setup prompt. Keep passwords and credentials out of chat and tool arguments. An application workload key identifies its workload; it does not establish management access for every tool.

  • Use the management credential and connection method supported by your installed gateway and agent host. Provision credentials privately; the transport examples above show a header format, not a grant of additional permissions.
  • Discover tools/list, then use supported identity and entitlement reads to confirm the selected organization and plan. An advertised tool can still require a different role or entitlement.
  • If a protected operation returns 401 or 403, finish the applicable sign-in or permission step in the dashboard. Keep any existing application and key; repeating setup does not resolve a missing permission.
  • Configure the application workload key separately for its supported ingestion or routing workflow. Verify matching persisted activity before reporting setup complete. Provider configuration and potentially charged inference are optional later steps.

Partial provider failures

Partial provider failures don't abort the rest of the setup flow. Check providers[].success in the result. Keep successful resources; repair only failed provider configuration instead of repeating account creation. Configuration success does not prove provider connectivity or stored inference. Choose a supported model/API shape and follow the stored-request proof.

If your gateway version does not offer an authorized management connection, use the dashboard for those steps and report MCP management as pending. A successful workload connection is a separate result.

Tool catalog

Min role is the minimum RBAC role the underlying REST route requires (viewer < member < admin); "public" means no authentication is required at all. Entitlement gate is the enterprise entitlement feature required, if any.

GroupToolsMin roleEntitlement gate
Setup & Auth6public–viewernone
Providers5viewer/adminnone
Apps & Keys3viewer/membernone
Observability5public–viewernone
Prompts4any authenticatednone
Evals4viewer/memberevals
Datasets5viewer/memberdatasets
Teams7viewer/adminnone
Agent monitoring6membernone
Skill marketplace13viewer/memberskill_marketplace
Exports5viewer/adminintegrations
Eval results2viewer/memberintegrations

Setup & Auth

ToolRead-onlyRoleDescription
ingate_setupnopublicOne-shot onboarding: signup/login + providers + app + key
ingate_signupnopublicCreate a new account and org
ingate_loginnopublicAuthenticate an existing account
ingate_whoamiyesviewerCurrent identity, org, and role
ingate_get_entitlementsyesviewerPlan and feature flags for the caller's org
ingate_get_connection_snippetyesnone (local)Generate a proxy-connection code snippet (python/js/go/curl)

The remaining groups follow the same shape: each tool maps onto a REST endpoint with a read-only flag, a minimum role, and an entitlement gate where one applies. For a machine-readable listing an agent can fetch directly, see {base_url}/llms.txt and {base_url}/openapi.yaml.

Security notes

Tokens in the transcript

Credential-returning tools can expose secrets to the agent host's transcript, logging or replay. Use private dashboard sign-in and your host's supported secret storage. Do not ask an agent to collect passwords or print returned tokens. Keep persistent connection secrets out of source control and shared configuration.
  • Workload keys are bound to their organization and application. Management operations also require an authorized identity, role and entitlement. Use separate scoped credentials for unrelated workloads and follow the supported rotation workflow.
  • Public discovery and protected management are separate. A healthy unauthenticated connection is not proof of organization access. Protected requests still require the credential, role and entitlement checked by the underlying API.
  • The stdio binary holds its credential in the parent process's environment/argv, same as any other locally-launched MCP server: treat ingate-mcp's config file the same way you'd treat a .env with a real API key in it: not committed, not world-readable.