JM

johnhalloran321/mcpsafetyscanner

API development

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

178 stars 21 forks 品質 54 トレンド 17MPL-2.0

johnhalloran321/mcpsafetyscannerは、https://github.com/johnhalloran321/mcpsafetyscanner.からインポートされたMCPサーバー候補です。

概要

johnhalloran321/mcpsafetyscannerは、https://github.com/johnhalloran321/mcpsafetyscanner.からインポートされたMCPサーバー候補です。

概要(AI 翻訳)

MCP安全監査:モデルコンテキストプロトコルを持つLLMは大規模なセキュリティ脆弱性を可能にします
ブランドン・ラドセヴィッチ*、ジョン・ハロラン*
紙:https://www.arxiv.org/abs/2504.03767

概要

MCPSafetyScannerはModel Contenxt Protocol(MCP)サーバーの安全監査ツールです。MCPサーバーの設定ファイルに向けると、ソフトウェアは複数のエージェントを使用します セットアップを監査し、安全報告を作成するために。開発者はこの情報を使ってエクスプロイトを修正でき、ユーザーはこの情報を使ってシステムを強化できます。

Claudeデスクトップユーザーは以下の場所でMCPサーバーの設定ファイルを見つけることができます:

  • macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
  • ウィンドウズ:%APPDATA%\Claude\claude_desktop_config.json

設置

gitクローン https://github.com/johnhalloran321/mcpSafetyScanner cd mcpSafetyScanner Python -m pip install -e .

例の利用例

例のMCP設定はリポジトリの[examplesに提供されています。関連するディレクトリとアクセス認証情報を更新した後、インストールされたソフトウェアで安全監査を行うことができます:

export OPENAI_API_KEY=“YOUR_API_KEY” python3 mcpsafety/scanner/scan.py --config examples/example_config.json

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

README

MCPSafetyScanner

MCP Safety Audit: LLMs with the Model Context Protocol Allow Major Security Exploits
Brandon Radosevich*, John Halloran*
Paper: https://www.arxiv.org/abs/2504.03767

About

MCPSafetyScanner is a safety auditor for Model Contenxt Protocol (MCP) servers. Point it at your MCP server config file and the software will use multiple agents to audit your setup and produce a safety report. Developers can use this info to patch exploits and users can use this info to harden their system.

Claude Desktop Users can find their MCP server config files at:

  • macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
  • Windows: %APPDATA%\Claude\claude_desktop_config.json

Installation

git clone https://github.com/johnhalloran321/mcpSafetyScanner
cd mcpSafetyScanner
python -m pip install -e .

Example use

An example MCP config is supplied in the examples of the repo. After updating the relevant directories and access credentials, you can perform a safety audit with the installed software by running:

export OPENAI_API_KEY="YOUR_API_KEY"
python3 mcpsafety/scanner/scan.py --config examples/example_config.json

The report would thus alert developers to screen for ~/.ssh/authorized_keys and *.pem files, while also placing direct guardrails around printing environment variables with sensitive information (e.g., api keys). The report would thus alert users to be cautious of providing paths containing .ssh/authorized_keys or *.pem files, and, alternatively, restrict user write permissions to such files.

Troubleshooting

The software requires python >= 3.11.

If using conda and npx is not installed, run

conda install conda-forge::nodejs

Citation

If you use this code in your research, please cite:

@article{radosevich2025mcp,
  title={MCP Safety Audit: LLMs with the Model Context Protocol Allow Major Security Exploits},
  author={Radosevich, Brandon and Halloran, John},
  journal={arXiv preprint arXiv:2504.03767},
  year={2025}
}
GitHub で README 全文を見る

インストール

This server does not publish a one-line install command.

Open the repository installation guide MCP 初心者?mcpskill.org のガイドから始めましょう →