Skip to main content

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, and your calls never leave your machine (an anonymous daily usage count is sent; AGENTX_TELEMETRY=off stops it).

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", "..."]
}

Claude Code writes that entry for you instead:

claude mcp add your-server -- uvx agentx-mcp npx -y your-mcp-server ...

Either way the shape is the same: our proxy first, your server after it. The env settings below apply to Claude Code too: add the server with claude mcp add -s project and it writes a .mcp.json you can edit the same way.

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.

The proxy also fingerprints each tool the server advertises, and warns when an approved tool's description or schema changes later (a bait-and-switch). Add "AGENTX_MCP_TOOL_PINNING": "block" to the same env block and calls to a changed tool are blocked on every run until you have checked the change and run uvx agentx-mcp --approve-changes. Block mode also holds a tool whose description, the first time it is listed, looks like it hides instructions for your agent. uvx agentx-mcp --audit lists what your servers changed and which tools are held, apart from the calls your agent made.

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.

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

Metadata

Release files for agentx-mcp 0.2.5

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for agentx-mcp 0.2.5
File Size Uploaded Provenance Actions
agentx_mcp-0.2.5.tar.gz 6.2 kB Without provenance Details for agentx_mcp-0.2.5.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for agentx-mcp 0.2.5
File Interpreter ABI Platform Actions
agentx_mcp-0.2.5-py3-none-any.whl Python 3 none any Details for agentx_mcp-0.2.5-py3-none-any.whl

Total release size: 11.7 kB

Release files / agentx_mcp-0.2.5.tar.gz

Download URL agentx_mcp-0.2.5.tar.gz
Size 6.2 kB
Tags Source
SHA-256 checksum
How to use checksums
eb45e9cb990c0f2c18e008b2307ac0c80e190ca3dc838bf895771ab6e4c839ae
BLAKE2b-256 checksum
How to use checksums
6d3e5eaf9b8dc0e8d05d70167d6619c7b7ce18c47327f7aa0109f1a2bf1a57d3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.1

Release files / agentx_mcp-0.2.5-py3-none-any.whl

Download URL agentx_mcp-0.2.5-py3-none-any.whl
Size 5.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
b265ef6c5f206229f88ec31ddd81dd8f4146f940f2f54addae0d18245d101c19
BLAKE2b-256 checksum
How to use checksums
ec3214690aeb6eb60f93138315bce6e10b6db36e0154759ab1984fe594196baa
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.1

Security for agentx-mcp 0.2.5

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page