GA

general-analysis/mcp-guard

Developer tools

このページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。 原文を見る

57 stars 5 forks 品質 79 トレンド 17MIT

MCPの特長 ガードは、迅速な注射攻撃からMCPクライアントを保護します.

概要

MCP (Model Context Protocol) は、複数の MCP サーバーを 1 つのセキュア インターフェイスに集約する AI 搭載のモデレーションを備えたガードレールです。 MCP Guardrailは、MCP(Model Context Protocol)セットアップ用のAI搭載のセキュリティと簡単な設定を提供します。 既存のMCP設定ファイルを自動的に検出し、インテリジェントなモデレーション機能で保護層を追加します。 - 迅速なインジェクション攻撃を防ぐため - - CLI ツールは、Claude デスクトップ、および Claude コードの MCP 設定ファイルを検出し、更新します - - - ローカルおよびリモート MCP サーバーの両方をサポート - ツール、プロンプト、およびリソースが自動的にプレフィックスされ、利用可能な 始める最も簡単な方法は、一般的な分析CLIツールを使用しています。 ガードレールの設定でMCP設定ファイルを自動更新します。 インストール不要!

概要(AI 翻訳)

MCP (Model Context Protocol) は、複数の MCP サーバーを 1 つのセキュア インターフェイスに集約する AI 搭載のモデレーションを備えたガードレールです。

概要

MCP Guardrailは、MCP(Model Context Protocol)セットアップ用のAI搭載のセキュリティと簡単な設定を提供します。 既存のMCP設定ファイルを自動的に検出し、インテリジェントなモデレーション機能で保護層を追加します。

主な機能:

-迅速な注射攻撃を防ぐためのAI搭載のモデレーション

  • 自動設定 - CLIツールは、Cursor、Claude Desktop、Claudeコード用のMCPコンフィグファイルを検出し、更新します
  • デュアル接続 - ローカルおよびリモートMCPサーバーの両方をサポート
  • 透明なプロキシ - ツール、プロンプト、およびリソースが自動的にプレフィックスされ、利用可能

クイックスタート

始める最も簡単な方法は、一般的な分析CLIツールを使用しています。

ガードレールの設定でMCP設定ファイルを自動更新します。

使い方

使用法

###npxで直接使用

インストール不要! Cursor または Claude デスクトップ MCP の設定で直接使用:

スタンドアローンの使用

設定

####ローカルサーバー(Stdio)

このページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。

README

以下は原文 README の抜粋です。原文を見る。

MCP Guardrail

An MCP (Model Context Protocol) guardrail with built-in AI-powered moderation that aggregates multiple MCP servers into one secure interface.

Overview

The MCP Guardrail provides AI-powered security and easy configuration for your MCP (Model Context Protocol) setup. It automatically detects your existing MCP configuration files and adds a protective layer with intelligent moderation capabilities.

Key features:

  • AI-powered moderation to prevent prompt injection attacks
  • Automatic configuration - CLI tool detects and updates MCP config files for Cursor, Claude Desktop, and Claude Code
  • Dual connectivity - supports both local and remote MCP servers
  • Transparent proxying - tools, prompts, and resources are automatically prefixed and made available

Quick Start

The easiest way to get started is using the General Analysis CLI tool:

# Install the CLI tool
pip3 install generalanalysis==0.1.7

# Login to your account
ga login

# Configure MCP settings for Cursor, Claude Desktop, and Claude Code
ga configure

This will automatically update your MCP configuration files with the guardrail setup.

How It Works

graph LR
    A[MCP Client] --> B[MCP Guard]
    B --> C[MCP Server]
    C --> D[Tool Output]
    D --> B
    B --> E{GA Guardrail}
    E -->|Safe| A
    E -->|Blocked| F[Alert]

Usage

Direct Usage with npx

No installation required! Use directly in your Cursor or Claude Desktop MCP configuration:

{
  "mcpServers": {
    "protected_server": {
      "command": "npx",
      "args": [
        "-y",
        "@general-analysis/mcp-guard",
        "[{\"name\":\"server1\",\"command\":\"path/to/server\",\"args\":[\"arg1\"]}]"
      ]
    }
  }
}

Standalone Usage

npx -y @general-analysis/mcp-guard '[{"name":"server1","command":"path/to/server","args":["arg1"]}]'

Configuration

Local Servers (Stdio)

For local MCP servers that communicate via stdio:

{
  "mcpServers": {
    "protected_server": {
      "command": "npx",
      "args": [
        "-y",
        "@general-analysis/mcp-guard",
        "[{\"name\":\"my-local-server\",\"command\":\"node\",\"args\":[\"path/to/server.js\"]}]"
      ],
      "env": {
        "API_KEY": "your-general-analysis-api-key",
        "ENABLE_GUARD_API": "true"
      }
    }
  }
}

Remote Servers (HTTP/SSE)

For remote MCP servers accessible via HTTP or Server-Sent Events:

{
  "mcpServers": {
    "protected_server": {
      "command": "npx",
      "args": [
        "-y",
        "@general-analysis/mcp-guard",
        "[{\"name\":\"my-remote-server\",\"url\":\"https://api.example.com/mcp\"}]"
      ],
      "env": {
        "API_KEY": "your-general-analysis-api-key",
        "ENABLE_GUARD_API": "true"
      }
    }
  }
}

Environment Variables

  • API_KEY - Your General Analysis API key for the moderation service
GitHub で README 全文を見る

インストール

npx -y @general-analysis/mcp-guard [{\"name\":\"server1\ \"command\":\"path/to/server\ \"args\":[\"arg1\
MCP 初心者?mcpskill.org のガイドから始めましょう →

設定

{ "mcpServers": { "protected_server": { "command": "npx", "args": [ "-y", "@general-analysis/mcp-guard", "[{\"name\":\"server1\",\"command\":\"path/to/server\",\"args\":[\"arg1\"]}]" ] } } }