Cyber Lens AI MCP Server
Cyber Lens AI MCP Server
Sicherheitsprüfung für KI-Assistenten und agentische Coding-Workflows.
Ein Model Context Protocol (MCP)-Server, der KI-Assistenten die Möglichkeit gibt, Websites, öffentliche Repositories und Open CLAW-Skills auf Sicherheitslücken zu prüfen. Er ist speziell für die Ära des agentischen Codierens konzipiert und unterstützt nativ das Scannen von Skill-Paketen, bevor du sie installierst.
Was er tut
Wenn der Server mit einem KI-Assistenten (Claude Desktop, VS Code usw.) verbunden ist, fügt dieser MCP-Server Sicherheits-Scan-Tools hinzu, die der Assistent während deines Gesprächs verwenden kann:
Einen CLAW-Skill vor der Installation scannen – der Server lädt das Skill-Paket herunter, entpackt es und analysiert den tatsächlichen Quellcode auf gefährliche Muster, hartcodierte Geheimnisse und Berechtigungsprobleme
Eine Website scannen – im lokalen Schnellmodus ohne Konto oder bei Verbindung mit dem vollständigen Cloud-Scan
Ein öffentliches Repository scannen – auf offengelegte Geheimnisse, Abhängigkeitsschwachstellen, verdächtige Codemuster und Probleme mit dem Vertrauensstatus
Dein verbleibendes Cloud-Scan-Kontingent prüfen, bevor du einen Stapel von Scans startest
Hilfe zur Behebung von Schwachstellen erhalten – mit Schritt-für-Schritt-Anleitungen und Codebeispielen
Beispielgespräch
You: "I want to install this skill: https://clawhub.ai/skills/ontology"
Claude: I'll scan it for security issues first.
[PASS] CLAW Skill Security Scan: ontology v1.0.4
Security Score: 95/100
Files Analyzed: 5
Skill appears safe to install. Minor issues noted below.
1. [MEDIUM] File write operation
File: scripts/ontology.py:399
Fix: Ensure file writes are limited to expected directories.
The skill looks safe. It writes to the filesystem for its knowledge
graph storage, which is expected behaviour for this type of skill.Related MCP server: securityscan
Erste Schritte
1. Installation
Nach der ersten npm-Veröffentlichung ist der empfohlene Installationsweg:
npx -y @shadoprizm/cyberlens-mcp-serverDavor – oder für lokale Entwicklung und manuelle Builds:
git clone https://github.com/shadoprizm/cyberlens-mcp-server.git
cd cyberlens-mcp-server
npm install
npm run build2. Zu deinem KI-Assistenten hinzufügen
Claude Desktop – füge den Server zu ~/Library/Application Support/Claude/claude_desktop_config.json (macOS) oder %APPDATA%\Claude\claude_desktop_config.json (Windows) hinzu:
{
"mcpServers": {
"cyberlens": {
"command": "npx",
"args": ["-y", "@shadoprizm/cyberlens-mcp-server"]
}
}
}Falls du das Projekt aus einem Quellcode-Checkout statt über npm ausführst:
{
"mcpServers": {
"cyberlens": {
"command": "node",
"args": ["/absolute/path/to/cyberlens-mcp-server/dist/index.js"]
}
}
}Claude Code – füge ihn zu deinen MCP-Einstellungen oder deiner Projektkonfiguration hinzu.
VS Code (Copilot/Continue) – konfiguriere ihn über die MCP-Server-Einstellungen deiner Erweiterung.
3. Dein Konto verbinden
Website-Tools funktionieren ohne Konto sofort im lokalen Schnellmodus. Dieser lokale Modus umfasst ungefähr 15 Kernprüfungen und liefert die Ergebnisse sofort.
Durch das Verbinden eines Kontos werden Website-Scans auf den vollständigen CyberLens-Cloud-Pfad mit über 70 Prüfungen, Scan-Verlauf und KI-Analyse erweitert. Repository- und Nur-Konto-Tools verbinden sich bei Bedarf weiterhin über den Browser-Flow.
Wenn ein Repository- oder Nur-Konto-Tool ein Konto benötigt, geht der MCP-Server folgendermaßen vor:
öffnet automatisch den CyberLens-Browser-Flow
leitet den Benutzer zu
cyberlensai.comweiter, um sich zu registrieren oder anzumeldenempfängt den sicheren Callback lokal
speichert den API-Schlüssel in
~/.cyberlens/mcp/config.jsonsetzt den ursprünglichen Tool-Aufruf automatisch fort
Du kannst denselben Flow auch manuell auslösen:
You: "Connect my CyberLens account"Dies öffnet deinen Browser auf cyberlensai.com, wo du dich kostenlos registrieren oder anmelden kannst. Dein API-Schlüssel wird lokal unter ~/.cyberlens/mcp/config.json gespeichert und für alle zukünftigen Scans verwendet.
Kostenlose Konten enthalten 5 Scans pro Monat. Es ist keine Kreditkarte erforderlich.
Du kannst in der MCP-Konfiguration auch die Umgebungsvariable
CYBERLENS_API_KEYsetzen, anstatt den Browser-Flow zu verwenden.
Wenn ein Cloud-Website-Scan sein Monatskontingent erreicht, öffnet der MCP-Server automatisch die CyberLens-Preisseite und verwendet als Fallback den lokalen Schnellscan, statt einen harten Fehler zu erzeugen. Repository-Scans erfordern weiterhin ein Cloud-Kontingent.
Verfügbare Tools
Konto
Tool | Beschreibung | API-Schlüssel erforderlich |
| Öffnet den Browser zur Registrierung/Anmeldung und speichert deinen API-Schlüssel lokal | Nein |
| Zeigt deinen aktuellen Plan und das verbleibende Website-/Repository-Scan-Kontingent; verbindet sich bei Bedarf bei der ersten Nutzung automatisch | Ja |
Scannen von CLAW-Skills
Tool | Beschreibung | API-Schlüssel erforderlich |
| Lädt ein Skill-Paket von CLAW Hub oder ein direktes Skill-Paket herunter und analysiert es auf Sicherheitsprobleme | Nein |
| Validiert ein Skill-Manifest anhand von Sicherheits-Best-Practices | Nein |
Website- und Repository-Scannen
Tool | Beschreibung | API-Schlüssel erforderlich |
| Lokaler Schnellscan für Websites ohne Konto; vollständiger Cloud-Scan bei Verbindung; lokaler Fallback, wenn das Website-Cloud-Kontingent erschöpft ist | Nein für lokal, Ja für den vollständigen Cloud-Scan |
| Sicherheits-Scan öffentlicher Repositories für GitHub, GitLab, Bitbucket und unterstützte ZIP-Ziele; verbindet sich bei Bedarf bei der ersten Nutzung automatisch | Ja |
| Ruft detaillierte Ergebnisse eines abgeschlossenen Cloud-Scans ab; verbindet sich bei Bedarf bei der ersten Nutzung automatisch | Ja |
| Lokaler Schnell-Score für Websites ohne Konto; vollständiger Cloud-Score bei Verbindung | Nein für lokal, Ja für den vollständigen Cloud-Score |
Erkenntnisse & Hilfestellung
Tool | Beschreibung | API-Schlüssel erforderlich |
| Integrierte lokale Playbooks zur Behebung häufiger CWEs und Schwachstellenklassen | Nein |
| Ehrlicher Bericht über die lokalen Prüfungen und Live-Cloud-Endpunkte des MCP-Servers | Nein |
So funktioniert das Skill-Scannen
Wenn du eine CLAW-Skill-URL angibst, geht der MCP-Server wie folgt vor:
Löst die URL auf – akzeptiert Claw-Hub-Seiten (
https://clawhub.ai/skills/skill-name), direkte Download-Links (https://*.convex.site/api/v1/download?slug=name) oder jede URL, die auf ein Skill-ZIP verweistLädt das Skill-Paket in ein temporäres Verzeichnis herunter
Entpackt und analysiert jede Datei im Paket:
Prüft
_meta.jsonundSKILL.mdauf VollständigkeitDurchsucht den gesamten Quellcode (Python, JavaScript, TypeScript, Shell-Skripte, Konfigurationsdateien) nach gefährlichen Mustern
Erkennt hartcodierte Geheimnisse,
eval()-Verwendung, Ausführung von Shell-Befehlen, unsichere HTTP-Anfragen, Dateilöschvorgänge, Pickle-Deserialisierung und mehrErkennt nicht festgepinnte Abhängigkeiten
Katalogisiert alle externen URLs, mit denen der Skill kommuniziert
Gibt einen Sicherheits-Score (0-100) mit detaillierten Ergebnissen, Dateipfaden und Empfehlungen zur Behebung zurück
Räumt alle temporären Dateien auf
Dieser gesamte Prozess läuft lokal ab – es ist kein API-Schlüssel erforderlich und dein Code wird niemals an einen externen Server gesendet.
Website-Scan-Modi
scan_website und get_security_score haben jetzt zwei ehrliche Modi:
Lokaler Schnellscan – funktioniert ohne Konto, liefert sofort Ergebnisse und umfasst ungefähr 15 Kernprüfungen für Websites, z. B. HTTPS, Sicherheits-Header, Offenlegung von Serverinformationen, unsichere Formulare und Indikatoren für Inline-Skripte
Vollständiger Cloud-Scan – erfordert ein verbundenes CyberLens-Konto, führt über 70 Prüfungen durch, speichert den Cloud-Scan-Verlauf und enthält eine umfangreichere Analyse
Wenn ein Benutzer ohne Konto einen full- oder database-Website-Scan anfordert, liefert der MCP-Server weiterhin den lokalen Schnellscan und weist darauf hin, dass der angeforderte Nur-Cloud-Modus nicht verfügbar war.
Wenn einem verbundenen Benutzer das Website-Cloud-Kontingent ausgeht, wechselt CyberLens automatisch zum lokalen Schnellscan und öffnet die Preisseite mit einem Upgrade-Link.
Akzeptierte URL-Formate
https://clawhub.ai/skills/ontology --> Resolves automatically
https://clawhub.ai/author/skill-name --> Resolves automatically
https://*.convex.site/api/v1/download?slug=x --> Direct downloadArchitektur
src/
index.ts MCP server, tool handlers, output formatting
auth.ts Browser-based connect flow, config file management
client.ts REST API client for live scan and quota endpoints
remediation-guides.ts Local CWE and vulnerability remediation guidance
schemas.ts Zod input validation schemas
skill-scanner.ts Local CLAW skill analyser (download, extract, scan)
skill-validation.ts Local CLAW manifest validation
transparency.ts Local transparency report for scan coverageWichtige Designentscheidungen:
Kein Supabase-SDK – reine REST-Aufrufe mit
fetchundX-API-Key-HeaderEhrliche Cloud-Oberfläche – der MCP-Server stellt nur cloudgestützte Tools bereit, die von der öffentlichen Live-API unterstützt werden (
/scan,/scan/{id},/quota)Stdio-Transport – läuft als Unterprozess des KI-Assistenten und kommuniziert über stdin/stdout
Nützlich ohne API-Schlüssel – Skill-Scannen, Website-Schnellscans, Manifestvalidierung, Hilfe zur Behebung und Transparenzberichte funktionieren lokal; durch Verbinden eines Kontos werden Website-Scans auf den vollständigen Cloud-Pfad erweitert und Repository-Scans freigeschaltet
Browserbasierte Authentifizierung – derselbe sichere Verbindungsablauf wie beim CyberLens-OpenClaw-Skill (CSRF-geschützt, kurzlebige Austauschcodes, nur HTTPS)
Entwicklung
# Build
npm run build
# Watch mode
npm run dev
# Run directly (for testing)
echo '{"jsonrpc":"2.0","id":1,"method":"initialize","params":{"protocolVersion":"2024-11-05","capabilities":{},"clientInfo":{"name":"test","version":"1.0.0"}}}' | node dist/index.jsUmgebungsvariablen
Variable | Erforderlich | Standard | Beschreibung |
| Nein | -- | API-Schlüssel (Alternative zum Browser-Verbindungsablauf) |
| Nein |
| Überschreibt den API-Endpunkt |
Veröffentlichung
Dieses Repository ist für die Veröffentlichung über npm + MCP Registry vorbereitet als:
npm-Paket:
@shadoprizm/cyberlens-mcp-serverMCP-Servername:
io.github.shadoprizm/cyberlens-mcp-server
Typischer Release-Ablauf:
# 1. Bump the version
npm version patch
# 2. Publish the package to npm
npm publish
# 3. Authenticate with the MCP Registry
mcp-publisher login github
# 4. Publish server.json to the MCP Registry
mcp-publisher publishDie Registry-Metadaten befinden sich in der Datei server.json im Wurzelverzeichnis, und die npm-Besitzprüfung verwendet das Feld mcpName in package.json.
Verwandte Projekte
CyberLens OpenClaw Skill – die OpenClaw-Skill-Version mit denselben Scan-Funktionen
CyberLens – die vollständige Plattform mit browserbasiertem Scannen, Dashboards und Berichterstellung
OpenClaw – das offene Skill-Ökosystem für KI-Agenten
Lizenz
Available Tools
10 toolsconnect_accountA
Connect your CyberLens account to this MCP server.
Opens your browser to cyberlensai.com where you can sign up for free or log in. After authorizing, your API key is securely saved locally.
Free accounts get 5 scans/month. No credit card required.
If you already have an API key, you can also set the CYBERLENS_API_KEY environment variable instead. Cloud tools can also launch this flow automatically the first time repository or account-only tools need an account.
| Name | Required | Description | Default |
|---|---|---|---|
No parameters | |||
get_account_quotaA
Get your CyberLens account quota and remaining cloud scans.
Returns:
Current plan name
Total scans used, limit, and remaining
Website scan usage
Repository or skill scan usage
Use this to confirm your account is connected and check how many cloud scans remain. If no account is connected yet, the MCP server will launch the CyberLens browser flow automatically before checking quota.
| Name | Required | Description | Default |
|---|---|---|---|
No parameters | |||
get_remediation_guideA
Get detailed remediation guidance for a specific vulnerability or CWE.
Returns:
Explanation of the vulnerability
Step-by-step fix instructions
Code examples (before/after)
Testing procedures
Prevention strategies
Uses a built-in local guide library, so it still works even when no cloud guidance endpoint is available.
| Name | Required | Description | Default |
|---|---|---|---|
| cwe_id | Yes | CWE ID (e.g., 'CWE-79', 'CWE-89') or vulnerability name | |
| context | No | Additional context about your stack (e.g., 'react', 'express', 'django', 'claw-skill') |
get_scan_resultsA
Retrieve detailed findings from a completed security scan.
Returns:
Overall security score (0-100)
List of vulnerabilities with severity levels
CWE classifications
Specific recommendations for each finding
CVE references where applicable
Remediation guidance links
Use this after initiating a full cloud scan with scan_website or scan_repository. Local quick website scans return findings immediately and do not produce a scan ID. If no account is connected yet, the MCP server will connect first and then retrieve the cloud scan result.
| Name | Required | Description | Default |
|---|---|---|---|
| scan_id | Yes | The scan ID returned from scan initiation | |
| severity_filter | No | Filter results by severity level | all |
get_scan_transparencyA
Get an honest transparency report for this MCP server.
Returns:
Current MCP server version
Local check inventory and category counts
Which live cloud API endpoints this server actually uses
Recent changes to the MCP scan surface
Use this to understand exactly what this server checks locally and which cloud features are live.
| Name | Required | Description | Default |
|---|---|---|---|
| include_changelog | No | Include recent changes to the scanner |
get_security_scoreA
Get a quick security rating for a website.
Returns:
Overall security score (0-100)
Grade (A-F)
Key metrics summary
Quick wins for improvement
Without an account, this uses the local quick website scanner. With an account, this uses the full CyberLens cloud path. If cloud website quota is exhausted, CyberLens falls back to the local quick score automatically.
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | The website URL to check |
scan_claw_skillA
Scan an Open CLAW skill or plugin from CLAUDE Hub before installation.
Runs locally in the MCP server and understands CLAW skill packaging, manifest permissions, and AI agent security models.
Performs comprehensive security analysis on:
CLAUDE Hub skill/plugin download links
Skill manifest files
Embedded code and dependencies
Checks for:
Hardcoded secrets and API keys in skill code
Vulnerable npm/pip dependencies
Insecure file operations
Suspicious network requests
Unsafe eval() or code injection patterns
Privilege escalation risks
Data exfiltration patterns
Permission scope appropriateness
Use this BEFORE installing any CLAW skill to ensure it's safe for your environment.
Examples:
CLAUDE Hub URL: https://clawhub.ai/username/skill-name
Plugin download: https://*.convex.site/api/v1/download?slug=skill-name
| Name | Required | Description | Default |
|---|---|---|---|
| skill_url | Yes | CLAUDE Hub skill URL or direct skill download link |
scan_repositoryA
Scan a public repository for secrets, dependency risks, and suspicious code patterns.
Uses the live CyberLens cloud repository scanner for:
Public GitHub, GitLab, and Bitbucket repositories
Supported CLAUDE Hub or direct ZIP download URLs
Checks for:
Exposed secrets and credentials
Vulnerable dependencies
Suspicious or risky code behavior
Trust posture and repository hygiene signals
Artifact and package reputation issues
Returns a scan ID that can be used with get_scan_results to retrieve findings. If no account is connected yet, the MCP server will open the CyberLens browser flow automatically and then continue the scan.
| Name | Required | Description | Default |
|---|---|---|---|
| depth | No | Surface is faster. Deep runs a broader repository analysis. | surface |
| branch | No | Optional branch name to scan. Defaults to the repository's default branch. | |
| repository_url | Yes | The repository URL to scan (for example https://github.com/owner/repo) |
scan_websiteA
Scan a website for security vulnerabilities with a local quick mode and a full cloud mode.
Without a connected account, the MCP server runs a local quick scan immediately. That local mode covers roughly 15 core checks such as HTTPS, security headers, basic form issues, inline scripts, and server disclosure.
With a connected account, CyberLens starts the full cloud scan with 70+ checks. That path returns a scan ID you can use with get_scan_results.
If cloud website quota is exhausted, CyberLens falls back to the local quick scan automatically and opens the upgrade page.
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | The website URL to scan (e.g., https://example.com) | |
| scan_type | No | Cloud scan profile. Local mode always uses a quick scan and warns if full or database was requested. | full |
| database_connection | No | Optional database connection for database security scanning |
validate_claw_skillA
Validate a CLAW skill manifest and configuration for security best practices.
Checks:
Skill manifest.json structure and required fields
Permission scopes (are they minimal?)
External API dependencies
File system access patterns
Environment variable usage
Plugin isolation safety
Use this before publishing a skill to CLAUDE Hub or for CI/CD validation.
| Name | Required | Description | Default |
|---|---|---|---|
| skill_code | No | Optional: main skill code for deeper analysis | |
| manifest_json | Yes | The skill's manifest.json content as a string |
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
10 tool updates
v1.0.0- First observed
connect_account - First observed
get_account_quota - First observed
get_remediation_guide - First observed
get_scan_results - First observed
get_scan_transparency - First observed
get_security_score - First observed
scan_claw_skill - First observed
scan_repository - First observed
scan_website - First observed
validate_claw_skill
TDQS
Scored across 10 tools
Most tools have distinct purposes, but scan_claw_skill and validate_claw_skill both target CLAW skill security and enumerate overlapping checks, making them easy to confuse. scan_website and get_security_score also overlap somewhat since both perform website scanning and return a security rating, though the descriptions do clarify the difference between full findings and a quick score.
All tool names follow a consistent snake_case verb_noun pattern: scan_<target> for scanning tools, get_<thing> for retrieval tools, plus connect_account and validate_claw_skill. There are no mixed naming conventions or vague verbs.
Ten tools is well-scoped for a security scanning server covering website, repository, and skill scanning along with account management, quota, results, remediation, and transparency. Each tool has a recognizable role and the set does not feel bloated.
The core scanning lifecycle is covered: account connection, quota checks, initiating scans for websites/repos/skills, retrieving results, getting remediation guidance, and inspecting server transparency. Minor gaps exist, such as no scan history or explicit scan-status polling, but the main workflows are complete enough for agents.
Maintenance
Related MCP Connectors
Scan GitHub-hosted AI skills for vulnerabilities: prompt injection, malware, OWASP LLM Top 10.
Scan websites and code for security, performance and SEO issues from your AI assistant.
Security scanner for AI-written code: SAST, secrets, dependencies, IaC, containers and DAST.
Authorized security scans, evidence, fix prompts and retests for AI-built web apps.
Related MCP Servers
- AlicenseAqualityDmaintenanceEnables AI assistants to scan project dependencies and Infrastructure as Code files for security vulnerabilities and misconfigurations. It also provides automated fixing capabilities to remediate identified security issues.183MIT
- FlicenseNot gradedqualityDmaintenanceScans OpenClaw/ClawHub skills for security vulnerabilities before installation. Detects prompt injection, data exfiltration, credential theft and RCE risks. Autonomous AI-to-AI flow with zero human intervention required.-
- AlicenseAqualityBmaintenanceVet ClawHub skills before installing them; detects prompt-injection, exfiltration, and other security issues, outputting a risk score with per-finding evidence.735 PyPIMIT

AgentAuditofficial
AlicenseAqualityDmaintenanceEnables AI agents to scan MCP servers and AI packages for vulnerabilities, prompt injection, and supply chain attacks.727 npmAGPL 3.0