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
Two ways to connect
1. Gateway /mcp endpoint (recommended)
/mcpStreamable-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.
https://gateway.example.com/mcpAuth is per-request, not baked into a running process:
X-Ingate-Key: sk-ingate-..., a scoped key for the operations supported by that key, orAuthorization: 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.
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):
export INGATE_URL=http://localhost:7100 # default if unset
export INGATE_API_KEY=sk-ingate-...
export INGATE_TOKEN=... # alternative to INGATE_API_KEY
ingate-mcpINGATE_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
claude mcp add --transport http ingate https://gateway.example.com/mcp --header "X-Ingate-Key: sk-ingate-..."Cursor
{
"mcpServers": {
"ingate": {
"url": "https://gateway.example.com/mcp",
"headers": {
"X-Ingate-Key": "sk-ingate-..."
}
}
}
}Windsurf
{
"mcpServers": {
"ingate": {
"url": "https://gateway.example.com/mcp",
"headers": {
"X-Ingate-Key": "sk-ingate-..."
}
}
}
}VS Code
{
"servers": {
"ingate": {
"type": "http",
"url": "https://gateway.example.com/mcp",
"headers": {
"X-Ingate-Key": "sk-ingate-..."
}
}
}
}Codex
[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)
{
"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
401or403, 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
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.
| Group | Tools | Min role | Entitlement gate |
|---|---|---|---|
| Setup & Auth | 6 | public–viewer | none |
| Providers | 5 | viewer/admin | none |
| Apps & Keys | 3 | viewer/member | none |
| Observability | 5 | public–viewer | none |
| Prompts | 4 | any authenticated | none |
| Evals | 4 | viewer/member | evals |
| Datasets | 5 | viewer/member | datasets |
| Teams | 7 | viewer/admin | none |
| Agent monitoring | 6 | member | none |
| Skill marketplace | 13 | viewer/member | skill_marketplace |
| Exports | 5 | viewer/admin | integrations |
| Eval results | 2 | viewer/member | integrations |
Setup & Auth
| Tool | Read-only | Role | Description |
|---|---|---|---|
ingate_setup | no | public | One-shot onboarding: signup/login + providers + app + key |
ingate_signup | no | public | Create a new account and org |
ingate_login | no | public | Authenticate an existing account |
ingate_whoami | yes | viewer | Current identity, org, and role |
ingate_get_entitlements | yes | viewer | Plan and feature flags for the caller's org |
ingate_get_connection_snippet | yes | none (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
- 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.envwith a real API key in it: not committed, not world-readable.