Skip to main content
Glama
jmass-ggg

GitHub Security Analyzer — MCP

by jmass-ggg

GitHub Security Analyzer — MCP

AI 기반 GitHub 보안 스캐너입니다. GitHub 계정으로 로그인하고 저장소 이름을 입력하면, AI가 모든 파일을 검사하여 API 키, 비밀번호, 토큰과 같은 노출된 비밀 정보를 찾아내고, 무엇을 수정해야 하는지에 대한 전체 보고서를 제공합니다.


작동 방식

1. Login with GitHub (OAuth)
        ↓
   .github_token saved locally
        ↓
2. Run the agent
        ↓
   You type a repo name
        ↓
3. AI calls deep_security_scan tool
        ↓
   Fetches every file from the repo via GitHub API
        ↓
   Scans each file with 16 secret patterns (regex)
        ↓
4. AI reads the results and writes a report
        ↓
   Tells you what was found, which file, which line, and how to fix it

Related MCP server: github-security-mcp

프로젝트 구조

├── login.py          # GitHub OAuth login — saves token to .github_token
├── github_client.py  # Wrapper around GitHub API calls
├── server.py         # MCP tools (list repos, scan files, read code, etc.)
├── agent.py          # AI agent loop — uses OpenRouter to run the scanner
├── requirements.txt  # Python dependencies
└── .env              # Your credentials (never commit this)

설정

1. .env 파일 생성:

GITHUB_CLIENT_ID=your_github_app_client_id
GITHUB_CLIENT_SECRET=your_github_app_client_secret
FLASK_SECRET_KEY=any_random_string
OPENROUTER_API_KEY=your_openrouter_key

2. 의존성 설치:

pip install -r requirements.txt

3. GitHub로 로그인:

python login.py

http://127.0.0.1:5000을 열고 → "Login with Github" 클릭 → 승인 → 완료. 이렇게 하면 토큰이 .github_token에 저장됩니다. 이 작업은 한 번만 하면 됩니다.


실행

옵션 A — AI 에이전트 (터미널)

python agent.py

프롬프트가 표시되면 저장소 이름을 입력하세요. AI가 스캔하고 전체 보안 보고서를 출력합니다.

옵션 B — MCP 서버 (Claude Desktop 또는 모든 MCP 클라이언트용)

mcp dev server.py

검사 항목

비밀 정보 유형

예시 패턴

AWS 액세스 키

AKIA...

GitHub 토큰

ghp_...

Google API 키

AIza...

Stripe 키

sk_live_...

데이터베이스 URL

postgres://user:pass@host

일반 비밀번호

password = "..."

개인 키

-----BEGIN RSA PRIVATE KEY-----

Bearer 토큰

Authorization: Bearer ...

Slack / Twilio / SendGrid 토큰

다양한 패턴


사용 가능한 MCP 도구

도구

기능

list_repositories

모든 GitHub 저장소 나열

repository_details

특정 저장소에 대한 세부 정보 가져오기

read_file

파일에서 소스 코드 읽기

issues

열린 GitHub 이슈 나열

code_change_summary

최근 커밋 메시지 가져오기

security_scan

민감한 단어가 있는 파일 이름 빠른 검사

deep_security_scan

모든 파일의 전체 내용에서 비밀 정보 검사


중요

  • .github_token 또는 .env를 커밋하지 마세요 — 둘 다 .gitignore에 있습니다.

  • 실수로 토큰을 푸시한 경우, 즉시 https://github.com/settings/tokens에서 토큰을 폐기하세요.

F
license - not found
Not graded
quality - not tested
C
maintenance

Maintenance

Maintainers
Response time
Release cycle
Releases (12mo)
Commit activity

Resources

Unclaimed servers have limited discoverability.

Looking for Admin?

If you are the server author, to access and configure the admin panel.

Related MCP Servers

  • A
    license
    A
    quality
    Not graded
    maintenance
    Enterprise-grade MCP (Model Context Protocol) server for detecting secrets and sensitive information in GitHub repositories. Scans for 35+ types of secrets including API keys, passwords, tokens, and credentials with production-ready reliability features.
    5
    0
  • A
    license
    A
    quality
    D
    maintenance
    An MCP server that enables AI agents to perform comprehensive GitHub security audits across org settings, repositories, Actions workflows, secrets, supply chain, and access control using 39 tools and 45 checks.
    39
    521
    12
    MIT
  • A
    license
    Not graded
    quality
    C
    maintenance
    An MCP server for AI security analysis, enabling vulnerability scanning, sensitive information leak detection, and GitHub code leak monitoring via 48 tools.
    MIT

View all related MCP servers

Related MCP Connectors

  • Scans MCP servers for tool poisoning, prompt injection and supply chain risks.

  • Scan any public GitHub MCP-server repo for security issues. 37 MCP-specific L1 rules, 8 languages.

  • Security scanner for MCP servers. Detect vulnerabilities, prompt injection, and tool poisoning.

View all MCP Connectors

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/jmass-ggg/Github-Security-analyze-MCP'

If you have feedback or need assistance with the MCP directory API, please join our Discord server