<< Home | Tech
81% of MCP servers rated low risk
| Area | Tech |
| AI used | Semgrep and LLM-based labeling |
| Source | r/mcp |
| Posted | 2025-12-03 |
The move
Use automated static code analysis to scan MCP server codebases for dangerous patterns like unsafe shell commands or code injection.Steps
- Select a static analysis tool like Semgrep.
- Define a set of dangerous patterns to flag, such as eval() or dynamic shell commands.
- Run the analysis tool against your MCP server codebase.
- Review flagged patterns and refactor code to use safer alternatives.
- Publish your server with clear documentation to improve trust.
Prompt for your AI
Analyze the following MCP server code for security vulnerabilities. Specifically, flag any instances of [eval()], [dynamic shell command execution], or [unsafe file system access]. Provide a risk rating of 'low', 'medium', or 'high' based on these findings: [Paste your MCP server code here]
What happened
The author built a crawler to index and analyze the MCP ecosystem. They applied automated safety analysis to the corpus to identify dangerous code patterns. This allowed them to filter the ecosystem and categorize servers by risk level.Watch out
Static analysis may produce false positives on complex code. Always manually verify flagged code before assuming it is safe.Give it to your agent
Read https://howtheyuse.ai/p/81-of-mcp-servers-rated-low-risk.md and help me do this.