# AgentTaint MCP Gateway

> Put AgentTaint in front of any MCP server so high-risk tool calls are allowed, held for a human, or blocked based on where their arguments came from, not on keyword filters.

AgentTaint MCP Gateway is a paid AI agent skill on Agensi by Marouane, in LLM Ops. It loads into your AI agent through the Agensi MCP server, always in its latest approved version.

- Price: $7.99 (one-time purchase)
- Creator: [Marouane](https://www.agensi.io/creators/creator-1453)
- Category: [LLM Ops](https://www.agensi.io/skills/llm-ops)
- Version: 1.0
- Last updated: 2026-11-25
- Security: scan passed (2026-11-25); every new listing is also reviewed by a person
- Listing: https://www.agensi.io/skills/agenttaint-mcp-gateway
- Tags: security, llm-ops, provenance, tool-approval, audit-log, claude-desktop, cursor, claude-code

## About this skill

AgentTaint is a provenance-aware firewall for MCP tool calls. It sits between your agent and an MCP server and decides ALLOW, CONFIRM or BLOCK for each call from where its sensitive arguments came from: the recipient, URL, path or command.

It is not a prompt-injection classifier and not a keyword filter. If untrusted content, such as a web page, an email or a file the agent just read, influenced the destination of a high-risk action, the call is stopped or held for a human.

What this skill does:

- Installs AgentTaint 1.0.0 with pip (`pip install agenttaint==1.0.0`) into a local Python 3.12 environment and checks the setup with the built-in doctor command.
- Writes a local config, policies and a private environment file, then prints the ready-to-paste config for Claude Desktop, Cursor or Claude Code.
- Helps you list each tool's risk tier in the trust registry, including HIGH for anything that sends data out.
- Explains ALLOW, CONFIRM and BLOCK decisions, including the policy id recorded for each call.
- Walks a person through out-of-band approval. Approving a held call returns a single-use approval token. The agent must retry the identical call with both the confirmation id and that token; the id alone is rejected.
- Shows how to read the audit log and the local dashboard, and how to preview a decision without executing the backend tool.

How it works:

1. Your MCP client launches AgentTaint instead of the real server.
2. AgentTaint starts the real server as a child process and forwards only the calls its Cedar policy allows.
3. Every result the server returns is labelled as untrusted data.
4. On the next high-risk call, the gateway checks declared lineage and independently reconstructs provenance from the session. Semantic similarity alone cannot promote an email, URL, path or shell command to a verified fact.
5. ALLOW forwards the call. CONFIRM holds it for a human. BLOCK returns an error. CONFIRM and BLOCK never invoke the backend.

Where it stops:

- It filters tool calls. It does not filter what the model says in its reply.
- A direct client entry that still points at the unprotected server bypasses the gateway. Remove that entry.
- stdio MCP only. Resources, prompts and HTTP/SSE servers are not proxied.
- Reconstruction estimates influence; it does not prove causation.
- This is a research release. Benchmark numbers on synthetic scenarios are not a guarantee of production protection.

What's included: step-by-step agent instructions, reference guides for install, approvals, the trust registry and the dashboard, plus example MCP client snippets and a filesystem trust-registry template.

Author: Marouane El Aasri.

## Requires

- Python 3.10+
- pip
- Node.js
- @modelcontextprotocol/server-filesystem
- Git
- Fetch MCP
- uv (Python tool runner)

## Known limitations

Filters tool calls only; it does not filter model replies. stdio MCP only; resources, prompts and HTTP/SSE are not proxied. A leftover direct client entry to the real server bypasses the gateway. Reconstruction estimates influence and can miss split, encoded or heavily paraphrased values. Spelled-out addresses are matched only in the "local at domain" form. Research release: synthetic benchmark results are not a production guarantee. Approvals and secrets live on the operator's machine; protect the environment file like a credential.

## How to use this skill

1. Connect your AI agent to Agensi once: add the MCP server https://mcp.agensi.io/mcp/auth and sign in with your Agensi account (OAuth, no API key). Steps for Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and other agents: https://www.agensi.io/docs/mcp-setup
2. Ask your agent: "Use the AgentTaint MCP Gateway skill from Agensi" and describe your task.
3. Buy it on the listing or let your agent ask you first; your agent then loads it from Agensi when it needs it. Every paid skill has a money-back guarantee: https://www.agensi.io/docs/money-back-guarantee

## Frequently asked questions

### Does this replace my MCP server?

No. AgentTaint is a proxy in front of the server you already use. Your client launches AgentTaint; AgentTaint launches the real server and forwards only permitted calls.

### Which agents work?

Claude Desktop, Cursor and Claude Code are the clients the CLI prints snippets for. Any stdio MCP client can run the same `agenttaint proxy --config ...` command.

### Is AgentTaint itself free?

Yes. The software is licensed under Apache License 2.0. This skill is a one-time purchase that teaches an agent how to install and operate it.

### Can the agent approve a held call?

No. There is no approval tool on the MCP channel. A person approves with the CLI or the dashboard, receives a single-use token, and the agent retries the exact call with both the confirmation id and that token.

### Why was my retry still blocked after I approved it?

The confirmation id alone is not enough. The retry must include the approval token, and the tool and arguments must be identical to the held call. A changed argument or a reused token is rejected.

### Does a zero attack-success rate on the benchmark mean I am safe?

No. Those figures come from synthetic scenarios. AgentTaint reduces a class of tool-call risk; it is not a guarantee.

### Where does my data go?

The proxy, policy, audit log and dashboard run on your machine (or the host you deploy). This skill does not send your tool arguments to the creator.

---

Source: [Agensi](https://www.agensi.io), the marketplace of skills for AI agents. Any MCP-compatible agent (Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and more) connects at https://mcp.agensi.io/mcp/auth and signs in with an Agensi account; setup for every agent: https://www.agensi.io/docs/mcp-setup. Append .md to any skill, guide or docs address on agensi.io for its markdown version.
