/ Каталог / Песочница / Microsoft MCP Gateway
● Официальный microsoft ⚡ Сразу

Microsoft MCP Gateway

автор microsoft · microsoft/mcp-gateway

Reverse proxy and lifecycle manager for fleets of MCP servers on Kubernetes.

MCP Gateway is Microsoft's session-aware reverse proxy for MCP servers. It manages the lifecycle of stateful MCP instances on Kubernetes, routes by session/tenant, and centralizes auth — turning ad-hoc MCP servers into a real platform tier.

Зачем использовать

Ключевые функции

Живое демо

Как выглядит на практике

microsoft-mcp-gateway.replay ▶ готово
0/0

Установка

Выберите клиент

~/Library/Application Support/Claude/claude_desktop_config.json  · Windows: %APPDATA%\Claude\claude_desktop_config.json
{
  "mcpServers": {
    "microsoft-mcp-gateway": {
      "command": "mcp-gateway",
      "args": [
        "serve"
      ]
    }
  }
}

Откройте Claude Desktop → Settings → Developer → Edit Config. Перезапустите после сохранения.

~/.cursor/mcp.json · .cursor/mcp.json
{
  "mcpServers": {
    "microsoft-mcp-gateway": {
      "command": "mcp-gateway",
      "args": [
        "serve"
      ]
    }
  }
}

Cursor использует ту же схему mcpServers, что и Claude Desktop. Конфиг проекта приоритетнее глобального.

VS Code → Cline → MCP Servers → Edit
{
  "mcpServers": {
    "microsoft-mcp-gateway": {
      "command": "mcp-gateway",
      "args": [
        "serve"
      ]
    }
  }
}

Щёлкните значок MCP Servers на боковой панели Cline, затем "Edit Configuration".

~/.codeium/windsurf/mcp_config.json
{
  "mcpServers": {
    "microsoft-mcp-gateway": {
      "command": "mcp-gateway",
      "args": [
        "serve"
      ]
    }
  }
}

Тот же формат, что и Claude Desktop. Перезапустите Windsurf для применения.

~/.continue/config.json
{
  "mcpServers": [
    {
      "name": "microsoft-mcp-gateway",
      "command": "mcp-gateway",
      "args": [
        "serve"
      ]
    }
  ]
}

Continue использует массив объектов серверов, а не map.

~/.config/zed/settings.json
{
  "context_servers": {
    "microsoft-mcp-gateway": {
      "command": {
        "path": "mcp-gateway",
        "args": [
          "serve"
        ]
      }
    }
  }
}

Добавьте в context_servers. Zed перезагружается автоматически.

claude mcp add microsoft-mcp-gateway -- mcp-gateway serve

Однострочная команда. Проверить: claude mcp list. Удалить: claude mcp remove.

Сценарии использования

Реальные сценарии: Microsoft MCP Gateway

Stand up an internal MCP catalog with one auth boundary

👤 Platform engineering teams ⏱ ~15 min intermediate

Когда использовать: You have 10+ MCP servers and need centralized auth, quotas, and observability.

Предварительные требования
  • Server/skill installed and authenticated — See repo README
Поток
  1. Deploy the gateway
    Generate Helm values for mcp-gateway with our Entra OIDC issuer and three backend MCPs: github, jira, snowflake.✓ Скопировано
    → values.yaml + helm command
  2. Register
    Register each backend and assign it to the 'engineering' tenant with a 1000 req/hr quota.✓ Скопировано
    → Three backend ids + quota set

Итог: One URL, one OIDC, many MCPs — properly governed.

Подводные камни
  • Session affinity is critical for stateful servers. If you switch to a stateless backend, also disable affinity to avoid hotspots. — Session affinity is critical for stateful servers. If you switch to a stateless backend, also disable affinity to avoid hotspots.

Комбинации

Сочетайте с другими MCP — эффект x10

microsoft-mcp-gateway + containers/kubernetes-mcp-server

Pair with containers/kubernetes-mcp-server for complementary capabilities

Use this server together with containers/kubernetes-mcp-server to complete a multi-step task.✓ Скопировано

Инструменты

Что предоставляет этот MCP

ИнструментВходные данныеКогда вызыватьСтоимость
list_backends (none) See registered MCP servers 1 API call
register_backend name, image, env Add a new MCP server behind the gateway K8s scheduling
tenant_quota tenant_id Inspect or adjust per-tenant limits 1 API call

Стоимость и лимиты

Во что обходится

Квота API
See provider docs for rate limits
Токенов на вызов
Varies by tool
Деньги
See repo README for pricing details
Совет
Cache tool results and avoid repeated identical calls.

Безопасность

Права, секреты, радиус поражения

Хранение учётных данных: Use environment variables; never commit secrets
Исходящий трафик: Tool calls go to the provider's API as documented

Устранение неполадок

Частые ошибки и исправления

backend unhealthy

Gateway probes GET /healthz. Make sure your MCP server implements it or update healthCheck.path.

Проверить: kubectl get pods -n mcp
OIDC validation fails

Issuer URL must match the token's iss claim exactly, including trailing slash. Recheck Entra app config.

Проверить: Decode token at jwt.ms

Альтернативы

Microsoft MCP Gateway в сравнении

АльтернативаКогда использоватьКомпромисс
agentic-community/mcp-gateway-registryYou prefer the community OSS optionLess Azure-native

Ещё

Ресурсы

📖 Читать официальный README на GitHub

🐙 Открытые задачи

🔍 Все 400+ MCP-серверов и Skills