secscan-mcp
MCP server for Cursor that scans codebases for security issues including hardcoded secrets, SAST, vulnerable dependencies, and IaC misconfigurations.
README
secscan-mcp
MCP server for Cursor that scans codebases for security issues: hardcoded secrets, SAST, vulnerable dependencies, and IaC misconfigurations.
The built-in custom scanner works with no extra tools. Install optional CLIs (below) for broader coverage.
Install
Requires Python 3.11+.
git clone <repository-url>
cd mcp_test
python3 -m venv .venv
source .venv/bin/activate # Windows: .venv\Scripts\activate
pip install .
Confirm the command exists:
which secscan-mcp
Use in Cursor
Option 1 — Any project (recommended)
Add to ~/.cursor/mcp.json (create the file if needed):
{
"mcpServers": {
"secscan": {
"command": "/absolute/path/to/secscan-mcp"
}
}
}
Use the path from which secscan-mcp after install.
Then:
- Cmd+Shift+P → Developer: Reload Window
- Cursor Settings → Tools & MCP —
secscanshould show as connected (green) - Open the project you want to scan
- In Agent chat, ask the agent to use the tools (see examples)
Works for any folder you open in Cursor, not only this repository.
Option 2 — This repo only
If you develop or test secscan-mcp itself, use the included .cursor/mcp.json and run make install-dev so ${workspaceFolder}/.venv/bin/secscan-mcp exists.
MCP tools
| Tool | Purpose |
|---|---|
list_available_scanners |
Which engines are installed on this machine |
scan_secrets |
Hardcoded credentials and secrets |
scan_code |
SAST (semgrep, bandit) |
scan_dependencies |
Vulnerable packages (osv-scanner) |
scan_iac |
IaC misconfigurations (checkov) |
scan_all |
All available scanners, one report |
explain_finding |
Remediation hints for a rule_id |
Most tools accept path (directory to scan) and optional severity_threshold (critical, high, medium, low, info).
Example prompts
- “Call
list_available_scannersand tell me what’s installed.” - “Run
scan_secretson this project.” - “Run
scan_allwith severity_threshold high and summarize the findings.” - “Explain the rule
internal-api-key.”
Optional scanners
| Tool | Category | Install (example) |
|---|---|---|
| gitleaks | secrets | brew install gitleaks |
| semgrep | SAST | pip install semgrep |
| bandit | SAST (Python) | pip install bandit |
| osv-scanner | dependencies | brew install osv-scanner |
| checkov | IaC | pip install checkov |
After installing, run list_available_scanners again to confirm.
Troubleshooting
| Problem | What to try |
|---|---|
secscan missing in MCP list |
Reload window; confirm mcp.json path and JSON syntax |
| Red / failed to start | Re-run pip install .; check which secscan-mcp matches config command |
| Agent doesn’t call tools | Use Agent mode; name the tool explicitly in your message |
Only custom runs |
Expected until optional CLIs are installed |
Development
See docs/CONTRIBUTING.md and PLAN.md.
Recommended Servers
playwright-mcp
A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.
Magic Component Platform (MCP)
An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.
Audiense Insights MCP Server
Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.
VeyraX MCP
Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.
graphlit-mcp-server
The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.
Kagi MCP Server
An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.
E2B
Using MCP to run code via e2b.
Neon Database
MCP server for interacting with Neon Management API and databases
Exa Search
A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.
Qdrant Server
This repository is an example of how to create a MCP server for Qdrant, a vector search engine.