
traceforce/mcp-xray
Developer toolsこのページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。 原文を見る
traceforce/mcp-xray は [https://github.com/traceforce/mcp-xray. からインポートされた MCP サーバーの候補です
概要
traceforce/mcp-xray は [https://github.com/traceforce/mcp-xray. からインポートされた MCP サーバーの候補です
概要(AI 翻訳)
[!NOTE] AIエージェントのスキルをしっかり確保したいですか? インストール前の悪意のある行動や危険な行動のためにスキルパッケージを分析するオープンソースの静的セキュリティスキャナである Skill X-Ray をチェックしてください。
概要
MCP X-Ray は、モデルコンテキストプロトコル (MCP) サーバーのセキュリティスキャンおよび侵入テストソリューションです。 SARIF レポートは、セキュリティツールと CI/CD パイプラインとのシームレスな統合を実現します。 スキャン結果は、集中管理されたセキュリティ管理と追跡のために、Traceforce Atlasに任意にアップロードすることができます。 アトラスには600以上のMCPが登録されています。MCPエコシステム向けの包括的なセキュリティ評価データベースを提供しています。
インストール
前提条件
- 1.25.4以降に行く
ソースからビルドする
使用法
構成スキャン
セキュリティ問題のMCPコンフィグをスキャンし、ペテストの前に実行してセットアップをベースラインします。
検出能力:
-Connection Security: TLS 証明書を検証し、安全な localhost/loopback の露出を検知し、OAuth 2.0 の設定(PRM/ASMD)を検証します。
- 秘密の検出: 露出された資格情報、APIキー、および機密情報のためのスキャン
このページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。
README
以下は原文 README の抜粋です。原文を見る。
MCP X-Ray
[!NOTE] Looking to secure AI agent skills? Check out Skill X-Ray, an open-source static security scanner that analyzes skill packages for malicious or risky behavior before installation, without executing them.
Overview
MCP X-Ray is a unified open-source security scanning and penetration testing solution for Model Context Protocol (MCP) servers. It generates production-ready SARIF reports for seamless integration with security tooling and CI/CD pipelines. Scan results can be optionally uploaded to Traceforce Atlas for centralized security management and tracking. Atlas has over 600 MCPs in its registry, providing a comprehensive security assessment database for the MCP ecosystem.
Installation
Prerequisites
Build from Source
# Clone the repository
git clone https://github.com/traceforce/mcp-xray
cd mcp-xray
# Install required dependencies (buf, etc.)
make install-dependencies
# Build everything (generates protobuf code and builds the binary)
# The binary will be created as `mcpxray` in the current directory
make all
Usage
Configuration Scan
Scan MCP configs for security issues; run before pentest to baseline your setup.
# Scan a specific MCP config file (uses token analyzer by default)
./mcpxray config-scan /path/to/mcp/config.json
# Scan all known MCP config paths automatically for Cursor, Claude and Windsurf.
# Known config locations (relative to home directory):
# ~/.cursor/mcp.json (Cursor)
# ~/Library/Application Support/Claude/claude_desktop_config.json (Claude Desktop)
# ~/.codeium/windsurf/mcp_config.json (Windsurf)
./mcpxray config-scan --scan-known-configs
# Use LLM analyzer for more extensive and deepr analysis
./mcpxray config-scan /path/to/mcp/config.json --analyzer-type llm --llm-model claude-3-5-sonnet-20241022
# Specify custom output file
./mcpxray config-scan /path/to/mcp/config.json --output custom-report.sarif.json
Detection Capabilities:
- Connection Security: Validates TLS certificates, detects unsafe localhost/loopback exposure, and validates OAuth 2.0 configuration (PRM/ASMD)
- Secrets Detection: Scans for exposed credentials, API keys, and sensitive information
- Tool Analysis: Analyzes tool descriptions using Token Analyzer (default) or LLM Analyzer for risks including arbitrary execution, injection vulnerabilities, authorization bypass, and information disclosure
Pentest
Execute security test plans by making actual tool calls against MCP servers. LLMs are required to run the pentest. Run this before actual deployment in production.
# Run pentest with auto-generated test plan (requires LLM model)
./mcpxray pentest /path/to/mcp/config.json --llm-model claude-sonnet-4-5
# Use a custom test plan YAML file
インストール
This server does not publish a one-line install command.
Open the repository installation guide MCP 初心者?mcpskill.org のガイドから始めましょう →