原型 · 预览版:收录官方注册中心里的全部服务器,每 30 分钟同步一次。评价和账户功能将在后续阶段推出。
PopNx MCP为使用 AI 的人准备的 MCP 服务器 · 用大白话讲清楚

Cortex Gateway

作者:wellknownmcp版本 0.2.0i★ –i电脑或云端
注册名称io.github.wellknownmcp/cortex-gateway

安装

概览

作者提供的说明(英文原文)

Self-hosted federated MCP gateway: one OAuth 2.1 MCP server in front of N apps, user-level scopes.

PopNx MCP 的三大支柱

这三项永远不会合并成一个分数:意见、测量和人气是不同的东西。

它能帮你做什么

我们还没有为它写通俗的介绍。下面是我们从注册中心读取到的事实。

  • 连接方式: 电脑或云端
  • 传输方式: Streamable HTTP
  • 分类: 其他
  • 你需要填写:CORTEX_CANONICAL_URI, OAUTH_ISSUER, CORTEX_BACKENDS, CORTEX_TECHNICAL_TOKEN

安装

选择你使用的 AI 应用,然后复制设置。

安装之前

  • 基础检查:1 项中通过 1 项
  • 在作者的服务器上运行:你向它提出的内容会经过他们的服务器。
  • 需要你自己填写: CORTEX_CANONICAL_URI, OAUTH_ISSUER, CORTEX_BACKENDS, CORTEX_TECHNICAL_TOKEN

标为机密的值是你账户的钥匙。千万不要分享给别人,也不要粘贴到聊天里。

你需要

你用的是哪个应用?

在上方选择你的应用。我们会记住它,下次按钮会显示“安装到 …”。

适用于网页版、桌面版和手机版 Claude:

  1. 打开 Settings → Connectors
  2. 点击 Add custom connector
  3. 粘贴下面的地址,然后点击 Add
  4. 如果要求登录,请登录作者的服务
SettingsConnectors1+ Add2https://…3
https://mcp.cortex-gateway.dev/mcp

或者在你的电脑上运行

打开 Claude Desktop → Settings → Developer → Edit Config,把下面的内容粘贴到 claude_desktop_config.json

{
  "mcpServers": {
    "cortex-gateway": {
      "command": "docker",
      "args": [
        "run",
        "-i",
        "--rm",
        "-e",
        "CORTEX_CANONICAL_URI",
        "-e",
        "OAUTH_ISSUER",
        "-e",
        "CORTEX_BACKENDS",
        "-e",
        "CORTEX_TECHNICAL_TOKEN",
        "ghcr.io/wellknownmcp/cortex-gateway:v0.2.0"
      ],
      "env": {
        "CORTEX_CANONICAL_URI": "your-value",
        "OAUTH_ISSUER": "your-value",
        "CORTEX_BACKENDS": "your-value",
        "CORTEX_TECHNICAL_TOKEN": "your-value"
      }
    }
  }
}

在终端中运行这条命令

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

或者在你的电脑上运行

claude mcp add cortex-gateway --env CORTEX_CANONICAL_URI=your-value --env OAUTH_ISSUER=your-value --env CORTEX_BACKENDS=your-value --env CORTEX_TECHNICAL_TOKEN=your-value -- docker run -i --rm -e CORTEX_CANONICAL_URI -e OAUTH_ISSUER -e CORTEX_BACKENDS -e CORTEX_TECHNICAL_TOKEN ghcr.io/wellknownmcp/cortex-gateway:v0.2.0

运行前请先填写空着的值。

在 Cursor 中打开

或者自己复制设置

粘贴到项目中的 .cursor/mcp.json,或 ~/.cursor/mcp.json

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

或者在你的电脑上运行

在 Cursor 中打开

或者自己复制设置

粘贴到项目中的 .cursor/mcp.json,或 ~/.cursor/mcp.json

{
  "mcpServers": {
    "cortex-gateway": {
      "command": "docker",
      "args": [
        "run",
        "-i",
        "--rm",
        "-e",
        "CORTEX_CANONICAL_URI",
        "-e",
        "OAUTH_ISSUER",
        "-e",
        "CORTEX_BACKENDS",
        "-e",
        "CORTEX_TECHNICAL_TOKEN",
        "ghcr.io/wellknownmcp/cortex-gateway:v0.2.0"
      ],
      "env": {
        "CORTEX_CANONICAL_URI": "your-value",
        "OAUTH_ISSUER": "your-value",
        "CORTEX_BACKENDS": "your-value",
        "CORTEX_TECHNICAL_TOKEN": "your-value"
      }
    }
  }
}

浏览器会先询问是否打开应用,然后应用会显示设置并请你确认。密钥的值会留空,由你自己填写。

在 VS Code 中打开

或者自己复制设置

粘贴到项目中的 .vscode/mcp.json

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

或者在你的电脑上运行

在 VS Code 中打开

或者自己复制设置

粘贴到项目中的 .vscode/mcp.json

{
  "servers": {
    "cortex-gateway": {
      "type": "stdio",
      "command": "docker",
      "args": [
        "run",
        "-i",
        "--rm",
        "-e",
        "CORTEX_CANONICAL_URI",
        "-e",
        "OAUTH_ISSUER",
        "-e",
        "CORTEX_BACKENDS",
        "-e",
        "CORTEX_TECHNICAL_TOKEN",
        "ghcr.io/wellknownmcp/cortex-gateway:v0.2.0"
      ],
      "env": {
        "CORTEX_CANONICAL_URI": "your-value",
        "OAUTH_ISSUER": "your-value",
        "CORTEX_BACKENDS": "your-value",
        "CORTEX_TECHNICAL_TOKEN": "your-value"
      }
    }
  }
}

浏览器会先询问是否打开应用,然后应用会显示设置并请你确认。密钥的值会留空,由你自己填写。

ChatGPT 只能连接互联网上的服务器:

  1. 打开网页版 ChatGPT → Settings → Connectors (Apps)
  2. 点击 Create 或 Add(部分套餐需要先在 Advanced 中开启 Developer mode)
  3. 粘贴下面的地址,起个名字,然后保存
  4. 如果要求登录,请登录作者的服务
SettingsConnectors1+ Create2https://…3
https://mcp.cortex-gateway.dev/mcp

菜单名称可能因套餐和版本不同而略有差异。

你的选择通过 Cookie 保存在这台设备上,无需账户。

需要你填写的值

  • CORTEX_CANONICAL_URI 必填 env
    Canonical MCP resource URI (RFC 9728)
  • OAUTH_ISSUER 必填 env
    OAuth 2.1 authorization server URL
  • CORTEX_BACKENDS 必填 env
    Comma-separated federated backend ids
  • CORTEX_TECHNICAL_TOKEN 机密 必填 env
    Static token for backend catalog discovery

这些设置是根据作者在注册中心的条目生成的。如果 README 的写法不同,请以 README 为准。

它能做什么

我们还没有读取这个服务器的工具列表;我们会轮流检查各个端点。

基础检查i

我们检查的是任何人都能看到的信息;我们没有阅读代码。不适用的检查项不计入总数。 · 检查于 2026年11月7日

  • ✓ 通过

    作者与仓库一致

    注册名称已通过 GitHub 账户 wellknownmcp 验证,该账户拥有此仓库

  • … 尚未检查

    仍在维护

    我们还没有从 GitHub 读取这个仓库

  • … 尚未检查

    有许可证

    我们还没有从 GitHub 读取这个仓库

  • … 尚未检查

    端点有响应

    尚未检查;我们会轮流检查各个端点

  • … 尚未检查

    使用 OAuth 登录

    尚未检查;我们会轮流检查各个端点

  • … 尚未检查

    工具描述中没有隐藏指令

    尚未检查;我们会在检查端点时读取工具列表

与“其他”中的其他服务器比较i

  • 星标数多于此分类中其他 32620 个服务器的 0%
  • 发布到注册中心的时间比此分类中其他 32620 个服务器的 18% 更新
  • 基础检查结果等于或优于此分类中其他 32620 个服务器的 100%

与注册中心里这个分类中所有活跃的服务器比较。只有当发布者拥有该仓库时,星标数才计入。

常见问题

Cortex Gateway 安全吗?

它在 1 项适用的基础检查中通过了 1 项。我们没有阅读代码。在添加密钥或令牌之前,请先看看这个服务器要求哪些权限,并使用只具备所需权限的密钥。

它需要哪些密钥或代码?

你需要填写:CORTEX_CANONICAL_URI, OAUTH_ISSUER, CORTEX_BACKENDS, CORTEX_TECHNICAL_TOKEN

它在我的电脑上运行还是在云端?

两种方式都可以:安装在你的电脑上,或者连接云端版本。

它还在维护吗?

GitHub 仓库最后更新于–,最新版本(0.2.0)于4个月前进入注册中心。

哪些应用可以使用它?

支持 MCP 的应用,例如 Claude Desktop、Claude Code、Cursor 和 VS Code。它通过 URL 连接,所以接受远程 MCP 服务器的应用也可以使用,例如开启开发者模式的 ChatGPT。

有什么可以替代它?

同一分类中有:Spec Driven Development, Remote Desktop Commander, Intervals MCP

替代选择

同一分类中其他作者的服务器,按星标数排序。

如何看卡片:★ GitHub 星标i三大支柱:评价 · 检查 · 使用情况i更新 = 最新版本发布到注册中心的时间i

Spec Driven Development

作者:formulahendry

MCP Server that facilitates spec-driven development workflows, not just Vibe Coding.

在你的电脑上运行★ 440MIT14个月前更新
安装

Remote Desktop Commander

作者:desktop-commander

Remote Desktop Commander: use files, terminal and processes on your own computers from any AI app.

在云端运行★ 211前天更新
安装

Intervals MCP

作者:ljcl

Remote MCP server for intervals.icu run data and analysis

在你的电脑上运行今天更新
安装

作者的 README

打开 README

按原文从作者的仓库复制。PopNx MCP 没有审查或背书其内容。HTML、图片和脚本已被移除。链接会离开本站。

Cortex Gateway

A federated MCP gateway: one spec-compliant, OAuth-protected MCP server in front of N plain-HTTP backends.

Your business apps stay ordinary web services. Each one exposes a single POST /api/cortex/backend endpoint (a ~120-line contract, no MCP library, no stdio). The gateway discovers their tools, merges them into one MCP catalog, enforces OAuth 2.1 + scopes, routes tools/call to the owning backend, and keeps a pseudonymized audit trail.

Built for one requirement: everyone in a company should be able to hand their own agent the keys — with exactly that person's rights, nothing more, nothing less. And when agents become autonomous assistants, the answer stays the same: the agent borrows the person's identity, the apps keep enforcing that person's rights. The gateway decides nothing, so there is nothing new to trust.

Put another way: zero-trust principles for AI agents — the missing link between your IAM (who your users are, what they may do) and the MCP ecosystem (how agents call tools). Not a full ZTNA product; the identity-and-access layer for agents.

A backend is a dedicated MCP reduced to its essence: a tool catalog plus tool invocation (and optional prompts/resources) over bare HTTP JSON-RPC — the transport and lifecycle machinery (initialize, sessions, SSE, version negotiation) lives once, in the gateway. Because the contract is a semantic subset of MCP, a native MCP server can also be federated through the built-in MCP→backend proxy adapter (docs/mcp-adapter.md).

[MCP agent: Claude Desktop / claude.ai Custom Connector / any MCP client]

│ HTTPS + OAuth 2.1 JWT (Bearer) ▼ [cortex-gateway] ←— thin gateway, no business logic │ HTTPS + the same JWT propagated (RFC 8707) ▼ [your backends] ←— domain owners, plain HTTP, own their ACLs

Why

  • Permissions match the underlying app, automatically, at the user level. The gateway never copies or mirrors permissions — it propagates the real user identity (your JWT to first-party backends, the user's own linked token to proxied third-party MCP servers), so each app's native permission model applies per user, with nothing to sync and no service-account flattening. Unlike hosted tool aggregators, the token vault and the audit trail stay on your infrastructure.
  • One perimeter, not N connectors. Wiring each app as its own MCP connector also keeps native permissions — and leaves you with N consents, N token stores, no shared audit, no cross-app entitlements, and a flooded tool list. The gateway collapses that to one OAuth surface without giving up the per-user model: aggregation without permission loss.
  • Zero MCP lock-in in your apps. Backends speak a minimal JSON-RPC contract over plain HTTP. Remove the gateway and you can still call them directly (tests, batch jobs, other integrations).
  • One JWT, N backends. The agent authenticates once; the gateway propagates the token; every backend re-validates it and applies its own permissions. Revocation at the authorization server cuts everything.
  • Failure isolation. An unreachable backend just disappears from tools/list; the rest keeps working.
  • Context-aware federation. Backend filtering and a compact "search" mode keep the tool catalog from flooding the agent's context (docs/tool-search-mode.md).
  • Agent feedback loop. Agents can file report_missing_capability tickets when a tool is missing or insufficient — deduplicated, triaged, optionally pushed to a webhook when blocking.

Use cases

Company-wide agent surface. An organization runs N internal apps (CRM, quality docs, billing, analytics...). Each app adds the ~120-line backend endpoint; the gateway exposes them as ONE MCP connector protected by the company's SSO. Employees plug a single URL into Claude Desktop / claude.ai and get exactly the tools their token scopes allow, with a central audit trail. This is the setup the gateway was born in.

Product builder. You ship several products and want agents (yours or your customers') to operate them. Instead of maintaining one MCP server per product, every product implements the backend contract and the gateway is your single, versioned, OAuth-protected agent API. Adding a product to the agent surface is one env var.

Thematic hub / curated registry. Run a gateway as a *topic* endpoint — e.g. "all open-data tools for domain X" — that federates several providers behind one URL with one token. The scope model gives you per-provider opt-in, get_help/get_snapshot give agents self-describing discovery, and the audit trail tells you what is actually used. Providers either speak the (deliberately tiny) backend contract natively, or — for off-the-shelf MCP servers — get fronted by the built-in MCP→backend proxy adapter (docs/mcp-adapter.md).

Free / paid tool tiers. Scopes are entitlements. Let your authorization server grant mcp:yourapp:basic to free users and mcp:yourapp:pro to paying ones (your billing webhook updates the grant): the gateway then shows and allows each caller exactly the tools of their plan — no paywall logic in the gateway or the backends, tools just declare their scope. Revocation and downgrades propagate through the normal OAuth chain.

Federating native MCP servers (adapter, beta)

The built-in MCP→backend proxy adapter lets a bundle mix contract backends and off-the-shelf native MCP servers (Canva, Figma, ...): the adapter is an MCP client downstream (initialize, sessions, SSE framing) and a plain backend upstream, so the gateway core does not change. Per-user downstream OAuth is handled by a token vault (AES-256-GCM at rest) and a linking flow (RFC 9728 discovery, Dynamic Client Registration, PKCE): each user consents once per provider, then agents are identified on the whole bundle with a single Cortex token. See docs/mcp-adapter.md for a worked "design bundle" example (Canva + Figma + your own backend).

Roadmap

  • Per-backend audiences — exchange the caller's token for one audienced to the target backend (RFC 8693), so a backend can no longer replay what it receives against the gateway (docs/security.md §6).
  • Tool annotations and provenance — carry readOnlyHint / destructiveHint from the backend contract into tools/list, mark results with their origin, and confirm writes.
  • 2026-07-28 completeness — subscriptions/listen for list-change notifications to stateless clients; backends are still called over the backend contract, unaffected by the client's protocol generation.
  • Machine identity for discovery — replace the static technical token with a client_credentials flow once your AS supports it.
  • Shared event bus / rate-limit store — for multi-instance deployments.

Features

  • MCP spec 2026-07-28 (stateless: server/discover, no session, Mcp-Method / Mcp-Name headers validated against the body, cache hints) and 2025-11-25 / 2025-06-18 (Streamable HTTP: initialize, GET SSE for listChanged notifications, DELETE session termination) on the same endpoint, chosen per request
  • Primitives: tools, resources (incl. URI templates), prompts
  • OAuth 2.1 resource server: JWKS verification, audience per resource (RFC 8707), protected-resource metadata (RFC 9728), optional RFC 7662 introspection for revocation
  • Scope-based visibility: agents only see (and can call) the tools their token scopes allow; scopes_supported in discovery is derived live from the federated catalog
  • Dynamic discovery: backends are polled every 60s; new tools appear without redeploying the gateway, with SSE tools/list_changed push
  • Builtins: whoami (aggregated identity across backends), find_tools, report_missing_capability, list_cortex_tickets, list_cortex_resources, read_cortex_resource, plus a self-describing cortex://architecture resource generated live
  • Audit trail: one JSON line per call on stdout (hashed email, hashed params) + optional PostgreSQL persistence with retention cron
  • Origin allow-list (anti DNS-rebinding), per-token rate limiting, optional pool sandbox
  • Checked against the official MCP conformance suite in CI, through a real OAuth path: 22 of 32 server scenarios pass; the other 10 exercise optional capabilities the gateway does not declare (completions, logging, subscriptions, progress, sampling, elicitation) — listed with the reason in scripts/conformance/baseline.yml

Quickstart (no OAuth server needed)

git clone https://github.com/wellknownmcp/cortex-gateway

cd cortex-gateway npm install

1. Start the demo backend (dependency-free)

node examples/demo-backend/server.mjs &

2. Configure the gateway

cat > .env.local <<'EOF' OAUTH_ISSUER=https://auth.example.com CORTEX_BACKENDS=demo CORTEX_BACKEND_DEMO_URL=http://127.0.0.1:4820 CORTEX_TECHNICAL_TOKEN=demo-technical-token CORTEX_DEV_BYPASS_TOKEN=dev-secret CORTEX_DEV_BYPASS_SCOPES=mcp:demo:read EOF

3. Run it

npm run dev

4. Talk MCP (dev bypass replaces the Bearer JWT locally)

curl -s http://localhost:3213/mcp \ -H 'Content-Type: application/json' \ -H 'X-Dev-Mode: dev-secret' \ -d '{"jsonrpc":"2.0","id":1,"method":"tools/list"}' | jq '.result.tools[].name'

→ whoami, ..., demo_get_help, demo_echo, demo_get_time

curl -s http://localhost:3213/mcp \ -H 'Content-Type: application/json' \ -H 'X-Dev-Mode: dev-secret' \ -d '{"jsonrpc":"2.0","id":2,"method":"tools/call","params":{"name":"demo_echo","arguments":{"message":"hello"}}}' | jq

In production you point OAUTH_ISSUER at your OAuth 2.1 authorization server (any server that issues RS256 JWTs with a JWKS endpoint and supports the scope claim), and MCP clients connect to https://your-host/mcp with a Bearer token whose aud is the gateway's canonical URI.

stdio bridge (for stdio-only clients and directory sandboxes)

The gateway is a remote Streamable HTTP server, but some MCP clients — and the Docker inspection harnesses of directories like Glama — only speak the stdio transport. scripts/stdio-bridge.mjs bridges the two: it boots the production build against an ephemeral local OAuth issuer (the real JWT verification path, no bypass), mints itself a short-lived token, and relays newline-delimited JSON-RPC between stdin/stdout and POST /mcp.

npm run build

npm run start:stdio # stdio MCP server on stdin/stdout

Self-granted scopes come from BRIDGE_SCOPES (gateway builtins need none); the gateway port from BRIDGE_GATEWAY_PORT (default 3213). Design notes and the gotchas (stdout purity, protocol-version negotiation, session echo): https://cortex-gateway.dev/guides/expose-http-mcp-server-over-stdio/.

Adding a backend

  1. Implement the contract in your app — one POST endpoint, list_tools + your tools (docs/backend-contract.md, reference implementation in examples/demo-backend/).
  2. Declare it:
   CORTEX_BACKENDS=demo,docs

CORTEX_BACKEND_DOCS_URL=http://127.0.0.1:4001

3. Done. The gateway discovers `docs_*` tools within 60s and pushes

tools/list_changed to connected clients.

Configuration

只显示了开头部分;其余内容请在仓库中阅读

问 PopNx