1. Conduid
  2. Security
  3. Security Scanner
MCP server · Security

Security Scanner

Security scanner for Model Context Protocol (MCP) servers. Static + dynamic checks for path traversal, auth gaps, prompt injection surfaces. Produces SARIF output for GitHub code scanning.

39Low

Scored 7 days ago · breakdown

About Security Scanner

Security Scanner is an MCP server in the Security category: security scanner for Model Context Protocol (MCP) servers. Static + dynamic checks for path traversal, auth gaps, prompt injection surfaces. Produces SARIF output for GitHub code scanning.

The repository has 21 stars and 0 forks.

Install

Claude Code
claude mcp add security-scanner -- npx -y @proofxhq/mcp-security-scanner
npx
npx -y @proofxhq/mcp-security-scanner

This server has no ConduID identity, so agent calls to it are not receipted. Pin the version you install and review the source before granting it credentials.

Tools (5)

auditDependenciesCheck package.json for risky or unpinned dependencies

Parameters not published.

checkPermissionsDetect world-writable or overly permissive files

Parameters not published.

memoryStatusReport scanner process memory usage

Parameters not published.

scanFileScan a single JS/TS file for dangerous code patterns

Parameters not published.

securityScanFull recursive scan of a directory for all vulnerability types

Parameters not published.

Ask AI

✦

Ask AI about Security Scanner

Powered by Claude · Grounded in docs

I know everything about Security Scanner. Ask me about installation, configuration, usage, or troubleshooting.

Security checks

  • ✓README presentThe repository ships documentation.

5 checks have not been run yet.

README

MCP Security Scanner

MCP server for scanning JavaScript/TypeScript projects for security vulnerabilities. Detects dangerous code patterns, insecure file permissions, risky dependencies, hardcoded credentials, and more.

Tools

Tool Description
securityScan Full recursive scan of a directory for all vulnerability types
scanFile Scan a single JS/TS file for dangerous code patterns
auditDependencies Check package.json for risky or unpinned dependencies
checkPermissions Detect world-writable or overly permissive files
memoryStatus Report scanner process memory usage

Detected Vulnerability Types

  • Hardcoded credentials, API keys, and tokens (CRITICAL)
  • eval(), new Function(), document.write usage (CRITICAL/HIGH)
  • Command injection via child_process (CRITICAL/HIGH)
  • XSS risks via innerHTML (HIGH)
  • Insecure HTTP connections (MEDIUM)
  • Dynamic require() (MEDIUM)
  • Unpinned/wildcard dependencies (MEDIUM)
  • Known risky npm packages (HIGH)
  • World-writable file permissions (HIGH)
  • Debug logging in production (LOW)

Quick Start

Install

npm install
npm run build

Run locally (stdio)

node dist/index.js

Run over network (Streamable HTTP)

MCP_TRANSPORT=http MCP_SERVER_HOST=0.0.0.0 MCP_SERVER_PORT=8100 node dist/index.js

Transport Notes

  • stdio: default for local MCP clients.
  • http: modern Streamable HTTP transport. Recommended for network access.

Environment Variables

Variable Default Description
MCP_TRANSPORT stdio Transport mode: stdio or http
MCP_SERVER_HOST 0.0.0.0 HTTP bind address
MCP_SERVER_PORT 8100 HTTP port
MCP_ALLOWED_ORIGINS (none) Comma-separated allowed Origins; returns 403 for others

Docker

# stdio mode (default)
docker build -t mcp-security-scanner .
docker run -it mcp-security-scanner

# HTTP mode
docker run -e MCP_TRANSPORT=http -p 8100:8100 mcp-security-scanner

Usage Examples

Full project scan

{
  "tool": "securityScan",
  "arguments": {
    "targetPath": "/path/to/project",
    "maxDepth": 5
  }
}

Scan single file

{
  "tool": "scanFile",
  "arguments": {
    "filePath": "/path/to/project/src/auth.js"
  }
}

Audit dependencies

{
  "tool": "auditDependencies",
  "arguments": {
    "projectPath": "/path/to/project"
  }
}

Appendix: MCP in Practice (Code Execution, Tool Scale, and Safety)

Last updated: 2026-03-23

Why This Appendix Exists

Model Context Protocol (MCP) is still one of the most useful interoperability layers for tools and agents. The tradeoff is that large MCP servers can expose many tools, and naive tool-calling can flood context windows with schemas, tool chatter, and irrelevant call traces.

In practice, "more tools" is not always "better outcomes." Tool surface area must be paired with execution patterns that keep token use bounded and behavior predictable.

The Shift to Code Execution / Code Mode

Recent workflows increasingly move complex orchestration out of chat context and into code execution loops. This reduces repetitive schema tokens and makes tool usage auditable and testable.

Core reading:

Recommended Setup for Power Users

For users who want reproducible and lower-noise MCP usage, start with a codemode-oriented setup:

Client Fit Guide (Short Version)

  • Claude Code / Codex / Cursor: strong for direct MCP workflows, but still benefit from narrow tool surfaces.
  • Code execution wrappers (TypeScript/Python CLIs): better when tool count is high or task chains are multi-step.
  • Hosted chat clients with weaker MCP controls: often safer via pre-wrapped CLIs or gateway tools.

Prompt Injection: Risks, Impact, and Mitigations

Prompt injection remains an open security problem for tool-using agents. It is manageable, but not "solved."

Primary risks:

  • Malicious instructions hidden in tool output or remote content.
  • Secret exfiltration and unauthorized external calls.
  • Unsafe state changes (destructive file/system/API actions).

Mitigation baseline:

  • Least privilege for credentials and tool scopes.
  • Allowlist destinations and enforce egress controls.
  • Strict input validation and schema enforcement.
  • Human confirmation for destructive/high-risk actions.
  • Sandboxed execution with resource/time limits.
  • Structured logging, audit trails, and replayable runs.
  • Output filtering/redaction before model re-ingestion.

Treat every tool output as untrusted input unless explicitly verified.

MCP Compliance State

This server targets MCP protocol version 2025-11-25 and SDK @modelcontextprotocol/sdk@^1.27.1.

Feature Status
stdio transport Supported (default)
Streamable HTTP transport Supported (MCP_TRANSPORT=http)
Tool annotations All tools annotated with title, readOnlyHint, destructiveHint, idempotentHint, openWorldHint
Origin validation (HTTP) 403 on invalid Origin when MCP_ALLOWED_ORIGINS is set
JSON Schema 2020-12 Zod-generated schemas
Structured tool errors isError flag with descriptive messages for model self-correction

README copy captured when this server was indexed; it may lag the repository. The original is authoritative.

Questions

About Security Scanner

How do I install Security Scanner?

Run claude mcp add security-scanner -- npx -y @proofxhq/mcp-security-scanner, then add the server to your MCP client's configuration.

Is Security Scanner safe to use with an AI agent?

Its trust score is 39 out of 100 (low). It passes 1 of the 1 static security checks run so far. It has no ConduID identity yet, so agent calls to it are not receipted.

Is Security Scanner still maintained?

Conduid hasn't recorded a commit date for this repository yet. Check the repository directly for recent activity.