Risk Audit MCP

Risk Audit MCP

Enables security scanning of code projects to identify common vulnerabilities like XSS, injections, SSRF, and path traversal issues. Provides local, offline scanning with severity-grouped results and actionable fix suggestions for improving code security.

Category
访问服务器

README

Risk Audit MCP — Security Scanner

Risk Audit MCP Logo

Risk Audit is a Model Context Protocol (MCP) server and CLI that scans your project for common security issues (XSS, injections, SSRF, path traversal, etc.). It runs locally, works offline, and gives clear, grouped results with suggested fixes.

What is it?

  • A tool that looks for risky patterns in your code and explains how to improve them.
  • Works both as a CLI you can run in any repo and as an MCP server that IDE/AI tools can call.

Who is it for?

  • Beginners who want simple, actionable guidance to improve security.
  • Developers who want a fast local scan they can wire into their workflow or MCP-enabled tools.

Why use it?

  • Quick feedback on common pitfalls (XSS, injections, SSRF, path traversal).
  • Clear severity groups and practical fix suggestions.
  • Zero network calls; your code never leaves your machine.

Requirements

  • Node.js >= 18

Scripts

  • npm run dev — run the TypeScript entrypoint via tsx (no build).
  • npm run build — compile TypeScript to dist/ via tsc.
  • npm start — run the compiled output (node dist/index.js).
  • npm test — build then run tests with Vitest.
  • npm run mcp — start the MCP server (stdio).
  • npm run scan — quick scan (unicode bars + emoji headers).

Quick Start (Beginner‑friendly)

Install into any project:

  • npm install --save-dev risk-audit-mcp

Run a quick scan (default style):

  • npx risk-audit-mcp (same as npx risk-audit-mcp --quick)

Use as an MCP server with Claude Desktop or Codex CLI:

  • One‑line command (what the client runs): risk-audit-mcp --mcp-stdio

Run MCP Server

  • Start the MCP server with a simple command:
    • npm run mcp
    • Or use the binary directly if installed/linked: risk-audit --mcp-stdio
    • Or via npx without global install: npx risk-audit --mcp-stdio

Client Setup Snippets

Claude Desktop

One‑line command the app will run:

risk-audit-mcp --mcp-stdio

Where to put it (macOS): edit ~/Library/Application Support/Claude/claude_desktop_config.json and add: Edit ~/Library/Application Support/Claude/claude_desktop_config.json and add:

{ "mcpServers": { "risk-audit": { "command": "risk-audit-mcp", "args": ["--mcp-stdio"], "env": {} } } }

Notes:

  • Ensure risk-audit is on your PATH. If not, use:
    • "command": "node", "args": ["/absolute/path/to/dist/index.js", "--mcp-stdio"]

Codex CLI

One‑line command the CLI will run:

risk-audit-mcp --mcp-stdio

How to register it in your Codex CLI config: Register the MCP server so Codex can launch it over stdio. Example configuration entry:

{ "mcpServers": { "risk-audit": { "command": "risk-audit-mcp", "args": ["--mcp-stdio"] } } }

Notes:

  • You can also point to Node directly if needed:
    • "command": "node", "args": ["/absolute/path/to/dist/index.js", "--mcp-stdio"]
  • The server stays active until the client closes stdin.

Understanding The Output

  • Three groups by priority (with emoji in headers only):
    • ⚠️ Critical (fix immediately)
    • 🔍 Medium Priority
    • ⓘ Low Priority
  • Each group has a progress bar and a numbered list of findings.
  • File paths and line ranges are colored green so they stand out.
  • Rule IDs are hidden by default in ASCII (show with --show-ids). JSON always includes ruleId.

Output Format

  • ASCII progress bars: |==========......| 10/16 (62%)
  • Unicode bars: [██████████░░░░░░] 10/16 (62%)

Configuration (.vibecheckrc)

Place a .vibecheckrc (YAML) or .vibecheckrc.json at the project root.

Example YAML:

severityMin: medium include: ["src/", "api/"] exclude: ["dist/", "node_modules/"] rules: disable: ["YAML001"] enable: []

  • severityMin: filter out findings below this severity
  • include/exclude: path substrings to include or exclude when scanning projects
  • rules.enable/disable: whitelist/blacklist rule IDs

CLI respects config in project root for --scan <dir>. MCP scan_project also loads config from the given root.

Security & Privacy

  • All scanning runs locally; no code is uploaded anywhere.
  • YAML rules are loaded from your repo’s rules/ folder, if present. Be careful when adding third‑party rules to avoid regexes that cause slow scans (we cap matches per rule/file).
  • We never execute your code; we only read files.

Troubleshooting

  • “command not found: risk-audit-mcp”
    • Use npx risk-audit-mcp or ensure npm’s global bin is on your PATH:
      • macOS/Linux: echo $(npm bin -g) then export PATH="$(npm bin -g):$PATH"
      • Or install locally: npm i -D risk-audit-mcp and run npx risk-audit-mcp
  • MCP server shows only one line and “does nothing”
    • That’s expected: risk-audit-mcp --mcp-stdio waits for the client to connect via stdio.
    • Verify by adding it to Claude/Codex as shown above, or run a CLI scan instead.
  • Claude Desktop doesn’t show the server
    • Double‑check the config path on macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
    • Make sure the entry uses this exact command: risk-audit-mcp --mcp-stdio
    • Restart Claude after editing the config.
  • Codex CLI can’t start the server
    • Ensure your config registers: command: "risk-audit-mcp", args: ["--mcp-stdio"]
    • Test in a terminal: risk-audit-mcp --mcp-stdio (should wait quietly)
  • Unicode bars look weird
    • Use ASCII bars: add --style ascii
  • Don’t like emoji
    • Use ASCII icons: add --icons ascii
  • Want rule IDs visible in the ASCII report
    • Add --show-ids (JSON always includes ruleId).
  • Scans feel slow on large repos
    • Limit scope: create .vibecheckrc with include/exclude, or run with --scan src.
    • Increase severity threshold: set severityMin: medium in .vibecheckrc.

推荐服务器

Baidu Map

Baidu Map

百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。

官方
精选
JavaScript
Playwright MCP Server

Playwright MCP Server

一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。

官方
精选
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。

官方
精选
本地
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。

官方
精选
本地
TypeScript
VeyraX

VeyraX

一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。

官方
精选
本地
graphlit-mcp-server

graphlit-mcp-server

模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。

官方
精选
TypeScript
Kagi MCP Server

Kagi MCP Server

一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。

官方
精选
Python
e2b-mcp-server

e2b-mcp-server

使用 MCP 通过 e2b 运行代码。

官方
精选
Neon MCP Server

Neon MCP Server

用于与 Neon 管理 API 和数据库交互的 MCP 服务器

官方
精选
Exa MCP Server

Exa MCP Server

模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。

官方
精选