Mcp Audit Server

io.github.joepangalloPublished by GitHub account joepangallov3.0.1Updated Oct 24, 2026

Thin MCP and CLI proxy for AI agent and MCP security auditing via a hosted backend

The publisher's own server: audit.domains - Domain Valuation

VerifiedSTDIODesktop onlyDeveloper ToolsSecurity & Monitoring

Overview

AI-generated overview

A thin local MCP proxy that sends AI agent and MCP security audits to a hosted or self-hosted backend, covering configs, prompts, packages and data flows.

What you can do
Audit MCP configurations and running servers for privilege, auth, transport and launch risks, and probe live servers when admin mode is enabled. Test system prompts against an injection payload catalog and harden them with guardrails. Trace PII and secret exposure through an agent's tool pipeline and audit agent trust, provenance and policy drift. Scan npm MCP packages for dependency vulnerabilities and dangerous patterns. Remediate config issues, generate an enforceable JSON security policy, and combine results into a composite report.
When to use it
Use it when you want to check the security posture of MCP servers and agent deployments before or after installing them, test prompts for injection resistance, or produce a security policy and report for review.
Requirements
Runs locally over stdio with Node.js 20 or newer, installed from the npm package or run via npx. Needs access to an audit API: set AGENT_SECURITY_API_KEY for the managed hosted backend, or AGENT_SECURITY_BASE_URL (or AGENT_SECURITY_HOST and AGENT_SECURITY_PORT) for your own deployment. Active server probing also needs AGENT_SECURITY_ADMIN_MODE set to 1.
Before you install
The audit engine is a private backend, not bundled with the package; managed or licensed private access must be arranged with the provider. The API key is a secret sent to the backend, and the hosted default endpoint is used automatically when only the key is set. Some tools change data: fix_mcp_config rewrites configuration, and harden_system_prompt and generate_policy produce modified prompts and policies. Active probing launches and inspects running MCP servers. Audit inputs such as configs,

Installation

In SourceWeft

  1. Open Mcp Audit Server in the dashboard and add it to a workspace.
  2. Enable the server for the chats that should use its tools.

Desktop only via STDIO. STDIO servers start a local process, so they need the SourceWeft desktop host.

Other MCP clients

Follow the launch instructions in the repository.

README

mcp-audit-server

Thin MCP server and CLI proxy for AI agent and MCP security auditing. It connects to a private audit API to analyze MCP configurations, test prompt injection resistance, trace data flows, scan packages, and generate security policies.

This package is a thin proxy. All scan logic lives in a private backend operated by you or your provider.

Managed hosted flow:

  • set AGENT_SECURITY_API_KEY
  • the package will automatically target https://audit.leddconsulting.com

Self-hosted or private-network flow:

  • set AGENT_SECURITY_BASE_URL to your HTTPS API origin
  • or set AGENT_SECURITY_HOST and AGENT_SECURITY_PORT for a loopback/private deployment

Hosted backend access is not bundled with this package. If you want managed access or a licensed private deployment, contact Ledd Consulting.

Registry and Directories

  • npm package: ledd-mcp-audit-server
  • Official MCP Registry name: io.github.joepangallo/mcp-audit-server
  • Downstream directories such as Glama and PulseMCP should ingest from the official MCP Registry, so you usually do not need separate manual submissions for each site.
  • Glama authorship claim is optional. It only gives you ownership of the Glama page and access to manual sync and re-scan controls.

Install

bash
npm install ledd-mcp-audit-server

Install package: ledd-mcp-audit-server CLI command after install: mcp-audit-server

This is the public package that should be published to npm and listed in public MCP directories. The audit engine itself stays private.

The old package name mcp-server-agent-security is retired. See MIGRATION.md for upgrade steps and the deprecation plan.

Usage as MCP Server

Add to your MCP client configuration (Claude Desktop, Cursor, etc.):

json
{  "mcpServers": {    "mcp-audit-server": {      "command": "npx",      "args": ["-y", "ledd-mcp-audit-server", "--mcp"],      "env": {        "AGENT_SECURITY_API_KEY": "your-issued-api-key"      }    }  }}

For a self-hosted backend, add AGENT_SECURITY_BASE_URL to that same env block.

The server exposes 10 tools over stdio:

ToolDescription
audit_mcp_configStatic analysis of MCP config JSON for privilege, auth, transport, and launch risks
audit_mcp_serverActive probing of a running MCP server over stdio (requires AGENT_SECURITY_ADMIN_MODE=1)
audit_agent_trustTrust audit for tool permissions, execution provenance, secret exposure controls, policy drift, and deployment trust score
audit_prompt_injectionTests a system prompt against a 30+ payload injection catalog
audit_agent_dataflowTraces PII and secret exposure through an agent's tool pipeline
scan_mcp_packageScans an npm MCP package for dependency vulnerabilities and dangerous patterns
generate_reportCombines multiple audit results into a composite report with executive summary
fix_mcp_configAuto-remediates config issues: removes unsafe flags, upgrades transport, redacts secrets
harden_system_promptAppends injection-resistant guardrails to a system prompt
generate_policyGenerates an enforceable JSON security policy from an MCP config

Usage as CLI

The CLI forwards commands to the private audit API.

bash
# Hosted quick startexport AGENT_SECURITY_API_KEY=your-issued-api-key
# Audit an MCP configuration filemcp-audit-server scan-config ./claude_desktop_config.json
# Probe a live MCP server (requires AGENT_SECURITY_ADMIN_MODE=1)mcp-audit-server scan-server npx -y @modelcontextprotocol/server-filesystem /tmp
# Audit trust posture and policy drift for an agent/MCP deploymentmcp-audit-server scan-trust ./claude_desktop_config.json ./claimed-policy.json
# Scan an npm package for vulnerabilitiesmcp-audit-server scan-package @modelcontextprotocol/server-shell
# Test a system prompt for injection vulnerabilitiesmcp-audit-server scan-injection ./system-prompt.txt
# Trace data flows through an MCP configmcp-audit-server scan-dataflow ./claude_desktop_config.json
# Auto-fix security issues in an MCP configmcp-audit-server fix-config ./claude_desktop_config.json
# Harden a system prompt against injectionmcp-audit-server harden-prompt ./system-prompt.txt
# Generate a security policy from an MCP configmcp-audit-server generate-policy ./claude_desktop_config.json
# Retrieve a previous audit reportmcp-audit-server report <audit-id>
# Output raw JSON instead of formatted tablesmcp-audit-server scan-config ./config.json --json
# Start in MCP stdio server modemcp-audit-server --mcp

For a self-hosted backend, also set AGENT_SECURITY_BASE_URL=https://your-audit-host.

Environment Variables

VariableDefaultDescription
AGENT_SECURITY_BASE_URL(none)Full audit API origin, e.g. https://audit.example.com
AGENT_SECURITY_HOST127.0.0.1Self-hosted/private-network audit API host
AGENT_SECURITY_PORT3091Self-hosted/private-network audit API port
AGENT_SECURITY_API_KEY(none)API key for authenticated access. If set with no endpoint overrides, the package uses https://audit.leddconsulting.com
AGENT_SECURITY_REQUEST_TIMEOUT_MS15000Request timeout for CLI and MCP proxy calls
AGENT_SECURITY_ADMIN_MODE(none)Set to 1 to enable active server probing

What It Detects

  • Tool spoofing -- duplicate tool names, namespace collision (CWE-290)
  • Rug pull -- unpinned packages, version drift (CWE-829)
  • Prompt injection -- direct override, instruction hijacking, role-play escape, delimiter injection, encoding bypass, multilingual injection
  • Privilege escalation -- overprivileged tools, shell execution without allowlists, unrestricted filesystem access
  • Data exfiltration -- PII leakage through tool pipelines, outbound network paths
  • Insecure transport -- missing TLS, plaintext credentials in config
  • Missing auth -- unauthenticated MCP servers, missing API key requirements
  • Shell injection -- arbitrary command execution via tool configurations
  • Path traversal -- unrestricted filesystem scope in tool arguments
  • SQL injection -- raw SQL patterns in tool definitions
  • Rate limiting -- missing request throttling on exposed tools
  • Package vulnerabilities -- known CVEs in npm MCP package dependencies
  • Credential exposure -- inline secrets, missing rotation policies
  • Agent trust drift -- claimed-safe policies that do not match configured tools, network posture, or observed action logs
  • Weak provenance -- missing action/evidence capture for risky agent operations

Requirements

  • Node.js >= 20
  • Access to a private audit API. The managed hosted default is https://audit.leddconsulting.com when AGENT_SECURITY_API_KEY is set. Use AGENT_SECURITY_BASE_URL for other hosted HTTPS deployments, or AGENT_SECURITY_HOST and AGENT_SECURITY_PORT for local/private-network deployments.

Provenance

Versions 2.0.0 through 2.1.0 were published before the release workflow existed and do not carry provenance attestations. Version 3.0.1 and later are released through the provenance-enabled trusted-publishing workflow.

The release workflow in .github/workflows/publish.yml publishes v* tags with npm provenance (npm publish --provenance) via npm trusted publishing (OIDC — no long-lived token). Verify a release with npm audit signatures and the provenance badge on npmjs.com.

License

MIT


Built by Ledd Consulting

Source: README.md at commit 21c5871

Tools

0
SourceWeft has not started this package in its sandbox yet, so its tools are not known.

Version history

1
  1. v3.0.1LatestSep 16, 2026

Score

50% of the applicable checks met

How complete this listing is, computed from the registry entry, the endpoint and public sources. Not a rating of the server and not a statement that it is safe or working today: reachability is a dated check, and no installs or reviews go into the score.

  • Reached in the last 30 days25 pts

    Keep the endpoint answering the MCP handshake; SourceWeft probes it every 30 days.

  • Auth declared10 pts

    Declare the credential headers in the registry entry, or keep the endpoint answering the probe so its auth can be classified.

  • Tools listed15 pts

    Answer tools/list without a credential, or ship a package that starts in a sandbox without one.

  • DescriptionRequired15 pts
  • Logo10 pts
  • Documentation15 pts
  • License10 pts

Other Audit integrations