GitHub Security Analyzer — MCP
Allows agents to connect with GitHub to list repositories, read files, view issues, summarize recent commits, and perform security scans of repositories to detect exposed secrets.
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@GitHub Security Analyzer — MCPScan my repo my-awesome-app for leaked secrets and give me a report."
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
GitHub Security Analyzer — MCP
An AI-powered GitHub security scanner. Log in with your GitHub account, give it a repo name, and the AI scans every file for exposed secrets like API keys, passwords, and tokens — then gives you a full report with what to fix.
How It Works
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 itRelated MCP server: github-security-mcp
Project Structure
├── 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)Setup
1. Create a .env file:
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_key2. Install dependencies:
pip install -r requirements.txt3. Login with GitHub:
python login.pyOpen http://127.0.0.1:5000 → click "Login with Github" → authorize → done.
This saves your token to .github_token. You only need to do this once.
Running
Option A — AI Agent (terminal)
python agent.pyEnter a repo name when prompted. The AI scans it and prints a full security report.
Option B — MCP Server (for Claude Desktop or any MCP client)
mcp dev server.pyWhat It Scans For
Secret Type | Example Pattern |
AWS Access Key |
|
GitHub Token |
|
Google API Key |
|
Stripe Keys |
|
Database URLs |
|
Generic Passwords |
|
Private Keys |
|
Bearer Tokens |
|
Slack / Twilio / SendGrid tokens | various patterns |
Available MCP Tools
Tool | What it does |
| Lists all your GitHub repos |
| Gets details about a specific repo |
| Reads source code from a file |
| Lists open GitHub issues |
| Gets recent commit messages |
| Quick scan of file names for sensitive words |
| Full content scan of all files for secrets |
Important
Never commit
.github_tokenor.env— both are in.gitignoreIf you accidentally push your token, revoke it immediately at
https://github.com/settings/tokens
This server cannot be installed
Maintenance
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
- AlicenseAqualityNot gradedmaintenanceEnterprise-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.50
- AlicenseAqualityDmaintenanceAn 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.3952112MIT
- AlicenseNot gradedqualityCmaintenanceMCP server for ai-scanner that enables AI agents to scan codebases for LLM usage, AI frameworks, and exposed secrets.641MIT
- AlicenseNot gradedqualityCmaintenanceAn MCP server for AI security analysis, enabling vulnerability scanning, sensitive information leak detection, and GitHub code leak monitoring via 48 tools.MIT
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.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
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