
安全MCP网关——为MCP服务器设置管理员级网关功能——每个MCP服务器设有保护栏,以克服使用MCP时的多重安全问题
概览
了解安全MCP网关如何防止顶级攻击和漏洞,请参阅我们的最新博客:发现真实世界的攻击场景、安全最佳实践,以及我们的网关如何保护您的AI应用。 该安全MCP网关配备了认证、自动工具发现、缓存和保护栏执行功能。 它位于你的 MCP 客户端和 MCP 服务器之间。所以,从本质上讲,它本身既是 MCP 服务器,也是 MCP 客户端:) 当你的MCP客户端连接到网关时,它作为MCP服务器。当网关连接到实际的MCP服务器时,它作为MCP客户端。 - 另见:- CLI-Commands-Reference.md 命令及其使用列表 - API-Reference.md API 端点及其使用列表 - MCP Gateway 设置笔记本,完整解析所有重要命令 - 1.功能 🚀 - 2.MCP 网关工作🪜原理的高级步骤 - 3.先决条件 🧩 - 4.网关设置 👨 💻 - 5.
概述(AI 翻译)
** 📖 精选博客文章:** 了解安全MCP网关如何防止顶级攻击和漏洞,请参见我们的最新博客:
Enkrypt 的安全 MCP 网关和 MCP 扫描器如何防止顶层攻击
发现真实世界的攻击场景、安全最佳实践,以及我们的网关如何保护您的人工智能应用。
概述
该安全MCP网关配备了认证、自动工具发现、缓存和保护栏执行功能。
它位于你的 MCP 客户端和 MCP 服务器之间。所以,从本质上讲,它本身既是 MCP 服务器,也是 MCP 客户端:)
当你的MCP客户端连接到网关时,它作为MCP服务器。当网关连接到实际的MCP服务器时,它作为MCP客户端。
-
Pypi 包
-
Docker 镜像
-
另见:
-
CLI-Commands-Reference.md 命令列表及其用法
-
API-Reference.md API 端点及其用途列表
-
MCP Gateway 设置笔记本,提供所有基本命令的完整解析
目录
- 1.特色 🚀
- 2.MCP网关工作🪜原理的大致步骤
- 3.前提条件 🧩
- 4.网关设置 👨 💻
- 5.(可选)OpenTelemetry 设置 📊
-
本页由 AI 翻译,技术细节请以原文为准。
README
以下为原文 README 节选,完整内容请查看原文。
Enkrypt AI Secure MCP Gateway
📖 Featured Blog Post: Learn how the Secure MCP Gateway prevents top attacks and vulnerabilities in our latest blog:
How Enkrypt’s Secure MCP Gateway and MCP Scanner Prevent Top Attacks
Discover real-world attack scenarios, security best practices, and how our gateway protects your AI applications.
Overview
This Secure MCP Gateway is built with authentication, automatic tool discovery, caching, and guardrail enforcement.
It sits between your MCP client and MCP servers. So, by it’s nature it itself also acts as an MCP server as well as an MCP client :)
When your MCP client connects to the Gateway, it acts as an MCP server. When the Gateway connects to the actual MCP server, it acts as an MCP client.
-
Also see:
- CLI-Commands-Reference.md for the list of commands and their usage
- API-Reference.md for the list of API endpoints and their usage
- MCP Gateway Setup Notebook for a complete walkthrough of all the essential commands
Table of Contents
- 1. Features 🚀
- 2. High level steps of how the MCP Gateway works 🪜
- 3. Prerequisites 🧩
- 4. Gateway Setup 👨💻
- 5. (Optional) OpenTelemetry Setup 📊
- 6. Verify Installation and check the files generated ✅
- 7. Edit the Gateway config as needed ✏️
- 8. CLI Quick Start Guide 🖥️
- 9. (Optional) Add GitHub MCP Server to the Gateway 🤖
- 9.1 (Optional) Connect to MCP Servers with OAuth 🔐
- 10. (Optional) Protect GitHub MCP Server and Test Echo Server 🔒
- 11. Recommendations for using Guardrails 💡
- 12. Other tools available 🔧
- 13. (Optional) Sandbox Isolation 🛡️
- 14. Deployment Patterns 🪂
- 15. Uninstall the Gateway 🗑️
- 16. Troubleshooting 🕵
- 17. Known Issues being worked on 🏗️
- 18. Known Limitations ⚠️
- 19. Contribute 🤝
- 20. Testing 🧪
- 21. License
1. Features
安装
docker run --rm -i -e MCP_TRANSPORT=stdio -v C:\\Users\\<user>\\.enkrypt\\docker:/app/.enkrypt/docker -e ENKRYPT_GATEWAY_KEY -e ENKRYPT_PROJECT_ID -e ENKRYPT_USER_ID secure-mcp-gateway配置
{
"mcpServers": {
"Enkrypt Secure MCP Gateway": {
"command": "mcp",
"args": [
"run",
"/Users/user/enkryptai/secure-mcp-gateway/venv/lib/python3.13/site-packages/secure_mcp_gateway/gateway.py"
],
"env": {
"ENKRYPT_GATEWAY_KEY": "2W8UupCkazk4SsOcSu_1hAbiOgPdv0g-nN9NtfZyg-rvYGat",
"ENKRYPT_PROJECT_ID": "3c09f06c-1f0d-4153-9ac5-366397937641",
"ENKRYPT_USER_ID": "6469a670-1d64-4da5-b2b3-790de21ac726"
}
}
}
}