
lasso-security/mcp-gateway
Analytics & monitoringこのページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。 原文を見る
lasso-security/mcp-gatewayは、https://github.com/lasso-security/mcp-gateway.からインポートされたMCPサーバー候補です。
概要
lasso-security/mcp-gatewayは、https://github.com/lasso-security/mcp-gateway.からインポートされたMCPサーバー候補です。
概要(AI 翻訳)
概要
MCPゲートウェイは、モデルコンテキストプロトコル(MCP)サーバー向けの高度な仲介ソリューションであり、AIインフラを集中化・強化します。
MCPゲートウェイはLLMと他のMCPサーバーの間の仲介者として機能します。それ:
- 📄 ルートディレクトリにある
mcp.jsonファイルからサーバー設定を読み込む。 - ⚙️ 構成済みMCPサーバーのライフサイクル管理。
- 🛡️ 機密情報をサニタイトするためにリクエストや応答を傍受する。
- 🔗 プロキシされたすべてのMCPを発見し、やり取りするための統一インターフェースを提供します。
- 🔒 セキュリティスキャナー - MCPサーバーを読み込む前にサーバーの評判とセキュリティリスクを分析します。
設置
Python(おすすめ)
mcp-gatewayパッケージをインストールしてください:
--mcp-json-path- mcp.jsonかclaude_desktop_config.jsonへとつながらなければならない--pluginまたは-p- 有効にするプラグインを指定する(複数回使用可能)
使用法
この例は、トークンマスキングとファイルシステムMCP用のXetrackトレーシングプラグインの基本的なガードレールを可能にします。
「server」キーの下にMCPサーバー設定を入れることで、ゲートウェイの下にあるMCPを追加できます。
カーソルの例:
クロードの例:
[[T4]を手に入れる
Docker
このページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。
README
以下は原文 README の抜粋です。原文を見る。
Overview
MCP Gateway is an advanced intermediary solution for Model Context Protocol (MCP) servers that centralizes and enhances your AI infrastructure.
MCP Gateway acts as an intermediary between LLMs and other MCP servers. It:
- 📄 Reads server configurations from a
mcp.jsonfile located in your root directory. - ⚙️ Manages the lifecycle of configured MCP servers.
- 🛡️ Intercepts requests and responses to sanitize sensitive information.
- 🔗 Provides a unified interface for discovering and interacting with all proxied MCPs.
- 🔒 Security Scanner - Analyzes server reputation and security risks before loading MCP servers.
Installation
Python (recommended)
Install the mcp-gateway package:
pip install mcp-gateway
--mcp-json-path- must lead to your mcp.json or claude_desktop_config.json
--pluginor-p- Specify the plugins to enable (can be used multiple times)
Usage
This example enables the basic guardrail for token masking and xetrack tracing plugin for filesystem MCP:
mcp-gateway --mcp-json-path ~/.cursor/mcp.json -p basic -p xetrack
You can add more MCPs that will be under the Gateway by putting the MCP server configuration under the “servers” key.
Get ``
which python
{
"mcpServers": {
"mcp-gateway": {
"command": "",
"args": [
"-m",
"mcp_gateway.server",
"--mcp-json-path",
"",
"--plugin",
"basic"
],
"servers": {
インストール
npx -y @modelcontextprotocol/server-filesystem .設定
{
"mcpServers": {
"mcp-gateway": {
"command": "mcp-gateway",
"args": [
"--mcp-json-path",
"~/.cursor/mcp.json",
"--plugin",
"basic",
"--plugin",
"xetrack"
],
"servers": {
"filesystem": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-filesystem",
"."
]
}
}
}
}
}