WA

webrix-ai/secure-mcp-gateway

Deployment & DevOps

Эта страница переведена автоматически. Технические детали смотрите в оригинале. Открыть оригинал

22 stars 4 forks Качество 74 Тренд 10MIT

Webrix MCP-S Gateway A secure, open-source OAuth gateway for MCP authentication Gateway + integration layer for the Model Context Protocol (MCP)

Обзор

Webrix MCP-S Gateway A secure, open-source OAuth gateway for MCP authentication Gateway + integration layer for the Model Context Protocol (MCP) is a secure gateway and integration layer for the . It provides a unified, enterprise-ready interface for connecting, managing, and extending MCP modules and services, with a focus on security and seamless integration. - : Deploy within your own infrastructure for maximum control - : Secure authentication with any OAuth provider via Auth.js - : Fully typed for robust development - : Standard input/output MCP servers - : HTTP-based streaming connections via http://localhost:3000/mcp (or https:// /mcp for hosted deployments) : You can connect to a specific MCP server by adding the ?server_name=XXX query parameter, where XXX is the name of the server from your mcp.json configuration. For example: http://localhost:3000/mcp?server_name=your-server 1. Set up your environment variables (see Advanced Configuration) 2. Create your mcp.

README

Показан фрагмент оригинального README. Открыть оригинал.

Webrix MCP-S Gateway A secure, open-source OAuth gateway for MCP authentication

Gateway + integration layer for the Model Context Protocol (MCP)


MCP-S Gateway

mcp-gateway is a secure gateway and integration layer for the Model Context Protocol (MCP). It provides a unified, enterprise-ready interface for connecting, managing, and extending MCP modules and services, with a focus on security and seamless integration.

Quick Start

1. Configure your MCP servers - Create mcp.json file in your project:

{
  "mcpServers": {
    "your-server": {
      "command": "npx",
      "args": ["-y", "@your-mcp-server"],
      "env": {
        "API_KEY": "your-api-key"
      }
    },
    "octocode": {
      "command": "npx",
      "args": ["octocode-mcp"]
    }
  }
}

2. Use the .env.example file as a base, and override as needed:

3. Start with npx (Recommended):

# Default (uses ./mcp.json and ./.env)
npx @mcp-s/secure-mcp-gateway

# Custom configuration paths
npx @mcp-s/secure-mcp-gateway --mcp-config ./custom/mcp.json --envfile ./custom/.env

Or clone:

git clone https://github.com/mcp-s-ai/secure-mcp-gateway.git && cd secure-mcp-gateway
npm install && npm run start

4. Add to your MCP configuration:

stdio:

{
  "mcpServers": {
    "mcp-gateway": {
      "command": "npx",
      "args": ["-y", "@mcp-s/mcp"],
      "env": {
        "BASE_URL": "http://localhost:3000"
      }
    }
  }
}

Streamable HTTP Configuration:

{
  "mcpServers": {
    "mcp-gateway": {
      "url": "http://localhost:3000/mcp"
    }
  }
}

Features

  • Self-Hosted Gateway: Deploy within your own infrastructure for maximum control
Открыть полный README на GitHub

Установка

npx -y @your-mcp-server
Новичок в MCP? Начните с руководства на mcpskill.org →

Конфигурация

{ "mcpServers": { "your-server": { "command": "npx", "args": ["-y", "@your-mcp-server"], "env": { "API_KEY": "your-api-key" } }, "octocode": { "command": "npx", "args": ["octocode-mcp"] } } }