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 프로토콜(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 예시/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 가이드부터 시작하세요 →