
Webrix MCP-S 网关 一个安全的开源 OAuth 网关,用于 MCP 认证网关 + 模型上下文协议(MCP)集成层
概览
Webrix MCP-S 网关 一个安全的开源 OAuth 网关,用于 MCP 认证网关 + 模型上下文协议(MCP)集成层 是 的安全网关和集成层。它提供了一个统一的、企业级接口,用于连接、管理和扩展 MCP 模块和服务,重点在于安全性和无缝集成。 - : 在自有基础设施内部署以实现最大控制 - : 通过Auth.js与任何OAuth提供商进行安全认证 - : 全类型化以实现稳健开发 - :标准输入/输出MCP服务器- :通过http://localhost:3000/mcp(或 https:// /mcp用于托管部署)的基于HTTP的流式连接 : 你可以通过添加 ?server_name=XXX 查询参数连接特定的 MCP 服务器,其中 XXX 是你mcp.json配置中服务器的名称。例如:[http://localhost:3000/mcp?server_name=your-server 1. 设置环境变量(参见高级配置) 2.创建你的MCP。
概述(AI 翻译)
Webrix MCP-S 网关 一个安全的开源 OAuth 网关用于 MCP 认证
模型上下文协议(MCP)的网关+集成层
MCP-S 网关
mcp-gateway 是 Model Context 协议(MCP) 的安全网关和集成层。它提供了一个统一的、企业级接口,用于连接、管理和扩展 MCP 模块和服务,重点在于安全性和无缝集成。
快速开始
1.配置你的MCP服务器- 在你的项目中创建mcp.json文件:
2.以 .env.example 文件为基础,必要时覆盖:
3.建议从NPX(推荐)开始使用:
或者克隆:
**4.添加到你的MCP配置中:
标准:
可流式HTTP配置:
特色
- 自托管网关:在自有基础设施内部署以获得最大控制
- OAuth 认证:通过 Auth.js 与任何 OAuth 提供商进行安全认证
- TypeScript 支持:全类型支持,支持稳健的开发
TODO:给我们加视频——>
支持所有MCP连接类型:
- STDIO:标准输入/输出MCP服务器
本页由 AI 翻译,技术细节请以原文为准。
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
安装
npx -y @your-mcp-server配置
{
"mcpServers": {
"your-server": {
"command": "npx",
"args": ["-y", "@your-mcp-server"],
"env": {
"API_KEY": "your-api-key"
}
},
"octocode": {
"command": "npx",
"args": ["octocode-mcp"]
}
}
}