Guardbee.ai
@guardbee/mcp-agent-graph-auditor

Agent Graph Auditor

MCP server that builds a reachability graph across multi-agent orchestration configs (LangGraph, CrewAI, AutoGen/ag2) to find transitive excessive agency — an agent with no dangerous tool of its own that can still reach one through delegation or group membership

v0.3.1MIT · Open sourceNode.js · stdio
Install
$ npx -y @guardbee/mcp-agent-graph-auditor
Claude Desktop / Cursor config
{
  "mcpServers": {
    "agent-graph-auditor": {
      "command": "npx",
      "args": [
        "-y",
        "@guardbee/mcp-agent-graph-auditor"
      ]
    }
  }
}
@guardbee/mcp-agent-graph-auditor

@guardbee/mcp-agent-graph-auditor does not stop at one agent’s tool list — it builds a reachability graph across multi-agent orchestration. An agent with no dangerous tool of its own that can still reach a shell tool via delegation or group membership is reported as critical.

What does it do?

It extracts agent/tool edges from LangGraph (structural add_node/add_edge), CrewAI (allow_delegation), and AutoGen/ag2 (GroupChat, register_function); classifies tools with a capability catalog; and BFS-finds both direct and transitive excessive agency.

Who is it for?

  • Multi-agent teams on LangGraph, CrewAI, or AutoGen
  • DevSecOps auditing agent orchestration on every PR
  • Developers who want this check inside Claude or Cursor

What it is not

  • A single MCP server’s tool definitions (use Server Auditor)
  • Cross-file Python reference resolution (single-file scope)
  • JS/TS LangGraph APIs (v1 is Python-only)

Features

FeatureDescription
3 frameworksLangGraph structural; CrewAI/AutoGen heuristic
Direct vs transitiveDelegation-crossing paths always critical
7 capability rulescode/process/fs-write/network/credentials
SARIF 2.1.0CI/CD
guardbee.ymlfail-on, max-files, exclude

MCP tools

ToolDescription
scan_textScan a Python snippet
scan_fileScan a single .py file
scan_directoryScan an agents source directory
list_patternsList the capability catalog

Install with npm

Global install (handy for Claude Desktop / Cursor):

bash
<code class="language-bash">npm install -g @guardbee/mcp-agent-graph-auditor</code>

or via npx (recommended with -y in config):

bash
<code class="language-bash">npx -y @guardbee/mcp-agent-graph-auditor</code>

npm: @guardbee/mcp-agent-graph-auditor

CLI
<code class="language-bash">npx @guardbee/mcp-agent-graph-auditor scan ./agents --fail-on=high --format=sarif > results.sarif</code>

Opt out of telemetry with GUARDBEE_TELEMETRY=0.

Claude Desktop configuration

Config file paths:

  • macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
  • Windows: %APPDATA%\Claude\claude_desktop_config.json
  • Linux: ~/.config/Claude/claude_desktop_config.json

Merge this block, then restart Claude Desktop:

claude_desktop_config.json
<code class="language-json">{
  "mcpServers": {
    "guardbee-agent-graph-auditor": {
      "command": "npx",
      "args": [
        "-y",
        "@guardbee/mcp-agent-graph-auditor"
      ]
    }
  }
}</code>

Cursor and other MCP clients

In Cursor, add the same command / args / env under Settings → MCP. stdio MCP servers use the same contract as Claude Desktop.

Example prompts in Claude

  1. “Is there transitive excessive agency in this agents folder?”
  2. “Can the CrewAI researcher reach a shell tool?”
  3. “Which capability rules do you support?”

Frequently asked questions

Vs AI Code Scanner?+

AI Code Scanner looks at one agent/tool list; Agent Graph Auditor graphs delegation hops.

CrewAI false positives?+

Heuristic — allow_delegation + shared Crew membership is a conservative assumption; review findings.

API key?+

No — local Python source scanning.

More in this category

See your security posture in minutes

Add your domain, run a read-only scan and get a prioritised list of fixes. No installation required.

Agent Graph Auditor MCP server (@guardbee/mcp-agent-graph-auditor) · GuardBee