Skip to main content
Glama
vdalal

agentx-mcp

agentx-mcp

Wrap any MCP server so every tool call is screened and recorded before it runs, and set the posture to enforce when you want the dangerous ones stopped.

agentx-mcp sits in front of any MCP server's stdio and screens every tools/call before it runs. Out of the box it watches: a dangerous call (a destructive database write, an SSRF, a secret read) is recorded and let through, so wrapping a server that works cannot break it, and agentx-mcp --audit shows what would have been stopped. Set the posture to enforce and the same call is blocked and handed back to your agent as coaching it can act on, so the agent revises and the run finishes instead of executing the damage. No API key, no gateway, nothing leaves your machine.

Use it

No install needed with uvx:

// mcp.json / claude_desktop_config.json / .cursor/mcp.json
{
  "command": "uvx",
  "args": ["agentx-mcp", "npx", "-y", "your-mcp-server", "..."]
}

Or install it persistently:

pipx install agentx-mcp        # or: pip install agentx-mcp
agentx-mcp npx -y your-mcp-server ...

Then keep using your MCP client normally. Every tool call is screened and recorded.

Watching is silent on purpose: your agent's results are untouched and nothing appears in your chat. See what it caught:

uvx agentx-mcp --audit

That lists what your agent did, what AgentX would have stopped, and what is new since you last looked. It also shows the whole menu: every tool the server offers, how many your agent called, and the ones it never called, since nobody chooses what a third-party server exposes. Add --calls for one line per call. uvx agentx-mcp --review then approves or rejects what it found, one key each.

To block rather than watch, add one more line to that server's entry:

"env": { "AGENTX_POSTURE": "enforce" }

A blocked call comes back as coaching your agent recovers from.

To keep the records per project rather than per user, and to have the proxy match the rules you adopted in that project's .agentx/rules.json, name the project in the same env block. The proxy prints where its stores are and how it decided at every start:

"env": { "AGENTX_PROJECT_DIR": "${CLAUDE_PROJECT_DIR}" }   // Claude Code; Cursor and VS Code: "${workspaceFolder}"

That is the keyless floor. For the judge that catches what keywords miss, automatic retries, and human escalation on the largest calls, see Recover at https://agentx-core.com/?utm_source=agentx-mcp&utm_medium=repo.

Related MCP server: SINT Protocol

What it is

A thin launcher for the proxy that ships in agentx-security-sdk. Installing agentx-mcp gives you the agentx-mcp command with no --from needed. MIT licensed.

Docs: https://agentx-core.com/docs?utm_source=agentx-mcp&utm_medium=repo

Related MCP Connectors

Related MCP Servers

  • A
    license
    Not graded
    quality
    A
    maintenance
    Open-source MCP proxy that enforces security policies, content scanning, and audit logging between AI agents and tool servers
    25
    AGPL 3.0
  • A
    license
    A
    quality
    A
    maintenance
    Security-enforcing MCP proxy that sits between an AI agent and any number of downstream MCP servers, intercepting every tool call through a capability-token policy gateway that can allow, deny, or escalate to human approval before the call reaches any real tool. It also exposes built-in operator tools for approval workflows, audit trail queries, token management, voice/HUD output, and hierarchical
    21
    14
    Apache 2.0
  • A
    license
    Not graded
    quality
    B
    maintenance
    Security scanner and runtime proxy for MCP servers. Catches tool poisoning, prompt injection, and rug-pull attacks (silent tool description changes) before they reach your AI agent. Includes a static scanner and a runtime stdio proxy.
    59 npm
    MIT
  • F
    license
    Not graded
    quality
    C
    maintenance
    Enables safe use of any MCP server by proxying and live-scanning all tool requests and responses, blocking or redacting poison descriptions, indirect prompt injection, malicious arguments, and unauthorized destinations.
    -