# Cortex Gateway

> Cortex Gateway is an open-source MCP server for developer tools. Self-hosted OAuth 2.1 gateway that fronts many HTTP backends as one MCP server. It runs as a hosted remote server, so there is nothing to install locally.

- **Kind:** MCP server
- **Pricing:** Open source
- **Platforms:** Self-hosted, API
- **Repository:** https://github.com/wellknownmcp/cortex-gateway
- **MCP Registry name:** io.github.wellknownmcp/cortex-gateway
- **Categories:** [developer tools](https://ai-powered.com/categories/developer-tools), [security](https://ai-powered.com/categories/security)
- **Listing updated:** 2026-11-23

## About

The gateway exists so each employee can hand their own agent exactly that person's rights and nothing more. Backends are ordinary web services that expose one POST endpoint, a contract of roughly 120 lines with no MCP library. The gateway discovers their tools, merges them into a single catalogue, enforces OAuth 2.1 scopes, routes each tool call to the owning backend and writes a pseudonymized audit trail.

The user's JWT is propagated to every backend, which re-validates it and applies its own permissions, so nothing is mirrored or synced. An unreachable backend simply drops out of the tool list. A compact search mode keeps large catalogues from flooding an agent's context, and agents can file report_missing_capability tickets when a tool is missing.

Native MCP servers can also be federated through a beta proxy adapter with a per-user token vault encrypted with AES-256-GCM. Deployment is a container image; the registry lists required settings for the canonical URI, OAuth issuer, backend ids and a technical token.

## Features

- **Federated tool catalogue:** Merges tools from many plain-HTTP backends into one MCP endpoint.
- **Per-user scopes:** Propagates the caller's JWT so each app's own permission model applies per person.
- **Central audit trail:** Keeps a pseudonymized log of tool calls on your own infrastructure.
- **MCP proxy adapter:** Fronts off-the-shelf MCP servers with a token vault and per-user linking flow (beta).
- **Search mode:** Offers a compact catalogue view so large tool sets do not overload the agent.
- **Failure isolation:** An unreachable backend disappears from tool listings while the rest keep working.

## Good for

- Give employees one company-wide connector for internal CRM, billing and docs apps
- Expose several products through one versioned agent API
- Run a topic hub that federates providers behind one URL
- Offer free and paid tool tiers using OAuth scopes as entitlements

## Install

### Claude Code: Add with the CLI (Terminal)

```sh
claude mcp add --transport http cortex-gateway https://mcp.cortex-gateway.dev/mcp
```

Add --scope user to use it in every project, or --scope project to share it in .mcp.json.

### Claude Code: Or share it with your project (.mcp.json)

```json
{
  "mcpServers": {
    "cortex-gateway": {
      "type": "http",
      "url": "https://mcp.cortex-gateway.dev/mcp"
    }
  }
}
```

### Claude Desktop (Customize → Connectors → Add → Add custom connector)

```text
https://mcp.cortex-gateway.dev/mcp
```

Paste this URL, choose how to sign in, then click Add and Connect. On Team and Enterprise an Owner adds it in Organization settings → Connectors.

### Cursor (~/.cursor/mcp.json)

```json
{
  "mcpServers": {
    "cortex-gateway": {
      "url": "https://mcp.cortex-gateway.dev/mcp"
    }
  }
}
```

Use .cursor/mcp.json in a project to share it with the project.

### VS Code (~/.copilot/mcp-config.json)

```json
{
  "mcpServers": {
    "cortex-gateway": {
      "type": "http",
      "url": "https://mcp.cortex-gateway.dev/mcp"
    }
  }
}
```

Or put the same entry in .mcp.json at your workspace root to share it.

### ChatGPT (chatgpt.com → Plugins → + → Add custom MCP server)

```text
https://mcp.cortex-gateway.dev/mcp
```

Paste this URL, set up sign-in, accept the warning and install the plugin. Then type @ in a chat to use it.

### Codex: Add with the CLI (Terminal)

```sh
codex mcp add cortex-gateway --url https://mcp.cortex-gateway.dev/mcp
```

### Codex: Or add to config.toml (~/.codex/config.toml)

```toml
[mcp_servers.cortex-gateway]
url = "https://mcp.cortex-gateway.dev/mcp"
```

### Gemini CLI and Antigravity: Gemini CLI (~/.gemini/settings.json)

```json
{
  "mcpServers": {
    "cortex-gateway": {
      "httpUrl": "https://mcp.cortex-gateway.dev/mcp"
    }
  }
}
```

Or run: gemini mcp add -s user --transport http cortex-gateway https://mcp.cortex-gateway.dev/mcp

### Gemini CLI and Antigravity: Antigravity (~/.gemini/config/mcp_config.json)

```json
{
  "mcpServers": {
    "cortex-gateway": {
      "serverUrl": "https://mcp.cortex-gateway.dev/mcp"
    }
  }
}
```

Use .agents/mcp_config.json to add it to one workspace only.

### Devin Desktop (~/.config/devin/mcp_config.json)

```json
{
  "mcpServers": {
    "cortex-gateway": {
      "url": "https://mcp.cortex-gateway.dev/mcp",
      "transport": "http"
    }
  }
}
```

On Windows the file is %APPDATA%\\devin\\mcp_config.json. Use .devin/mcp_config.json to share it with a project.

### Cline (cline_mcp_settings.json)

```json
{
  "mcpServers": {
    "cortex-gateway": {
      "type": "streamableHttp",
      "url": "https://mcp.cortex-gateway.dev/mcp"
    }
  }
}
```

Open it from the MCP Servers icon → Configure → Configure MCP Servers.

### Zed (Zed settings.json)

```json
{
  "context_servers": {
    "cortex-gateway": {
      "url": "https://mcp.cortex-gateway.dev/mcp"
    }
  }
}
```

Open it with zed: open settings file. Merge context_servers into the settings you already have.

### JetBrains AI Assistant and Junie: AI Assistant (Settings → Tools → AI Assistant → Model Context Protocol (MCP) → Add)

```json
{
  "mcpServers": {
    "cortex-gateway": {
      "url": "https://mcp.cortex-gateway.dev/mcp"
    }
  }
}
```

### JetBrains AI Assistant and Junie: Junie (~/.junie/mcp/mcp.json)

```json
{
  "mcpServers": {
    "cortex-gateway": {
      "url": "https://mcp.cortex-gateway.dev/mcp"
    }
  }
}
```

Use .junie/mcp/mcp.json to share it with a project.

### Kiro (~/.kiro/settings/mcp.json)

```json
{
  "mcpServers": {
    "cortex-gateway": {
      "url": "https://mcp.cortex-gateway.dev/mcp"
    }
  }
}
```

Use .kiro/settings/mcp.json to add it to one workspace only.

### Grok Bot (Grok Bot desktop app → Connect apps → Add a custom connector)

```sh
https://mcp.cortex-gateway.dev/mcp
```

Enter a Name (for example "Cortex Gateway"), choose Type: Remote HTTPS, paste this as the Server URL and choose Add plugin. When we checked, this server asked for OAuth sign-in. If its docs give you an OAuth client ID and secret, enter them in the form's OAuth Client ID and Client Secret fields.

### Other clients (your client's MCP settings (most use this shape))

```json
{
  "mcpServers": {
    "cortex-gateway": {
      "type": "http",
      "url": "https://mcp.cortex-gateway.dev/mcp"
    }
  }
}
```

## Tools

Going by the tool names, 2 of 3 tools read data; 1 name doesn't say. From the server's own tool labels and tool names; not verified by us.

- `get_help` (name suggests: reads): Self-describing discovery of the gateway's capabilities.
- `get_snapshot` (name suggests: reads): Self-describing snapshot of the federated catalogue.
- `report_missing_capability`: Files a ticket when a tool is missing or insufficient.

## FAQ

### What do backends need to implement?

A single POST /api/cortex/backend endpoint following a small JSON-RPC contract; no MCP library or stdio is required.

### How are permissions handled?

The gateway decides nothing itself. It passes the user's token on and each backend enforces that user's rights.

### Which MCP versions does Cortex Gateway speak?

The README lists spec 2026-07-28 as well as 2025-11-25 and 2025-06-18 on the same endpoint, chosen per request.

### How is Cortex Gateway deployed?

As an OCI container image, ghcr.io/wellknownmcp/cortex-gateway, listening on port 3213 by default.

### Is Cortex Gateway free?

Yes. Cortex Gateway is open source, so you can use and self-host it for free.

### How do I add Cortex Gateway to Claude Code?

Run this command in your terminal: claude mcp add --transport http cortex-gateway https://mcp.cortex-gateway.dev/mcp

### What are the best alternatives to Cortex Gateway?

The closest alternatives to Cortex Gateway are REA, Context7, Chrome DevTools MCP, Codebase Memory and GitHub.

## Where this comes from

- Description: written from the project's README.
- Status: checked automatically by AIPoweredBot on 24 November 2026.
- Install steps: from the official MCP Registry entry.

## Alternatives

- [REA](https://ai-powered.com/mcp/rea): REA is an open-source MCP server for developer tools.
- [Context7](https://ai-powered.com/mcp/context7): Context7 is a freemium MCP server for developer tools.
- [Chrome DevTools MCP](https://ai-powered.com/mcp/chrome-devtools-mcp-2): Chrome DevTools MCP is an open-source MCP server for browser automation.
- [Codebase Memory](https://ai-powered.com/mcp/codebase-memory): Codebase Memory is an open-source MCP server for knowledge and memory.
- [GitHub](https://ai-powered.com/mcp/github): GitHub is an open-source MCP server for developer tools.
- [Serena MCP: the IDE for your agent](https://ai-powered.com/mcp/serena-mcp-the-ide-for-your-agent): Serena MCP: the IDE for your agent is an open-source MCP server for developer tools.
- [XERJ](https://ai-powered.com/mcp/xerj): XERJ is an open-source MCP server for knowledge and memory.
- [awesome-mcp-servers](https://ai-powered.com/mcp/awesome-mcp-servers-2): awesome-mcp-servers is an open-source MCP server for developer tools.

---
Source: https://ai-powered.com/mcp/cortex-gateway
