Ramparts: mcp (model context protocol) scanner
A fast, lightweight security scanner for Model Context Protocol (MCP) servers with built-in vulnerability detection.
Overview
Ramparts is a scanner designed for the Model Context Protocol (MCP) ecosystem. As AI agents and LLMs increasingly rely on external tools and resources through MCP servers, ensuring the security of these connections has become critical.
The Model Context Protocol (MCP) is an open standard that enables AI assistants to securely connect to external data sources and tools. It allows AI agents to access databases, file systems, and APIs through toolcalling to retrieve real-time information and interact with external or internal services.
Ramparts is under active development. Read our launch blog.
The Security Challenge
MCP servers expose powerful capabilitiesβfile systems, databases, APIs, and system commandsβthat can become attack vectors like tool poisoning, command injection, and data exfiltration without proper security analysis. - π Security Features & Attack Vectors
What Ramparts Does
Ramparts provides security scanning of MCP servers by:
- Discovering Capabilities: Scans all MCP endpoints to identify available tools, resources, and prompts
- Static Analysis: Performs yara-based checks for common vulnerabilities
- Cross-Origin Analysis: Detects when tools span multiple domains, which could enable context hijacking or injection attacks
- LLM-Powered Analysis: Uses AI models to detect sophisticated security issues
- Risk Assessment: Categorizes findings by severity and provides actionable recommendations
π‘ Jump directly to detailed Rampart features? π Detailed Features
Who Ramparts is For
- Developers: Scan MCP servers for vulnerabilities in your development environment (Cursor, Windsurf, Claude Code) or production deployments.
- MCP users: Scan third-party servers before connecting, validate local servers before production.
- MCP developers: Ensure your tools, resources, and prompts don't expose vulnerabilities to AI agents.
Use Cases
- Security Audits: Comprehensive assessment of MCP server security posture
- Development: Testing MCP servers during development and testing phases
- CI/CD Integration: Automated security scanning in deployment pipelines
- Compliance: Meeting security requirements for AI agent deployments
π‘ Caution: Ramparts analyzes MCP server metadata and static configurations. For comprehensive security, combine with runtime MCP guardrails and adopt a layered security approach. The MCP threat landscape is rapidly evolving, and rampart is not perfect and inaccuracies are inevitable.
Quick Start
Installation
Scan an MCP server
# Generate detailed markdown report (scan_YYYYMMDD_HHMMSS.md)
Scan your IDE's MCP configurations
# Automatically discovers and scans MCP servers from Cursor, Windsurf, VS Code, Claude Desktop, Claude Code
# With detailed report generation
π‘ Did you know you can start Ramparts as a server? Run
ramparts serverto get a REST API for continuous monitoring and CI/CD integration. See π Ramparts Server Mode
Example Output
Single server scan:
RAMPARTS
MCP Security Scanner
Version: 0.6.7
Current Time: 2025-08-04 07:32:19 UTC
Git Commit: 9d0c37c
π GitHub Copilot MCP Server
β
All tools passed security checks
βββ push_files passed
βββ create_or_update_file warning
π Analysis: Standard GitHub file creation/update functionality
βββ HIGH: Tool allowing directory traversal attacks: Potential Path Traversal Vulnerability
β Details: The tool accepts a 'path' parameter without proper validation, allowing potential path traversal attacks.
YARA Scan Results
================================================================================
β οΈ PRE-SCAN - WARNING
Context: Pre-scan completed: 5 rules executed on 83 items
Items scanned: 83
Security matches: 2
Rules executed: secrets_leakage:*, command_injection:*, path_traversal:*, sql_injection:*, cross_origin_escalation:*
Security issues detected: secrets_leakage:EnvironmentVariableLeakage
π Detailed Results:
β οΈ get_secret_scanning_alert (tool)
Rule: EnvironmentVariableLeakage (MEDIUM)
Context: Sensitive environment variable pattern detected in tool
β οΈ list_secret_scanning_alerts (tool)
Rule: EnvironmentVariableLeakage (MEDIUM)
Context: Sensitive environment variable pattern detected in tool
Summary:
β’ Tools scanned: 83
β’ Security matches: 2 medium-severity findings
================================================================================
IDE configuration scan:
π Found 3 IDE config files:
β vscode IDE: /Users/user/.vscode/mcp.json
β claude IDE: /Users/user/Library/Application Support/Claude/claude_desktop_config.json
β cursor IDE: /Users/user/.cursor/mcp.json
π vscode IDE config: /Users/user/.vscode/mcp.json (2 servers)
ββ github-copilot [HTTP]: https://api.githubcopilot.com/mcp/
ββ local-tools [STDIO]: stdio:python[local-mcp-server]
π MCP Servers Security Scan Summary
ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
π Scan Summary:
β’ Servers: 2 total (2 β
successful, 0 β failed)
β’ Resources: 81 tools, 0 resources, 2 prompts
β’ Security: β
All servers passed security checks
π Detailed report generated: scan_20250804_073225.md
Contributing
We welcome contributions to Ramparts mcp scan. If you have suggestions, bug reports, or feature requests, please open an issue on our GitHub repository.
Documentation
- π Troubleshooting Guide - Solutions to common issues
- βοΈ Configuration Reference - Complete configuration file documentation
- π CLI Reference - All commands, options, and usage examples