Runtime governance for MCP tool calls — Arc Gate for the MCP protocol layer
Project description
arc-gate-mcp
Runtime governance for MCP tool calls.
Arc Gate MCP sits between your agent and any MCP server. It intercepts all tool call results and enforces instruction-authority boundaries before the agent processes them.
When a tool result contains injected instructions — a poisoned document, a malicious webpage, a hostile database row — Arc Gate blocks them before they reach the agent.
Install
pip install arc-gate-mcp
Usage
Full proxy (wraps any MCP server)
from arc_gate_mcp import ArcGateMCPProxy
proxy = ArcGateMCPProxy(
upstream_url="http://localhost:8000/sse",
policy_mode="rag_assistant",
)
proxy.run()
Per-tool guard
from arc_gate_mcp import ArcGateToolGuard
guard = ArcGateToolGuard(policy_mode="rag_assistant")
@mcp.tool()
async def read_document(path: str) -> str:
content = read_file(path)
return guard.check(content, tool_name="read_document")
CLI
arc-gate-mcp --upstream http://localhost:8000/sse --policy rag_assistant
Policy modes
| Mode | Behavior |
|---|---|
balanced |
Block on detected injection |
browser_agent |
Strip injections, allow safe content |
finance_agent |
Strictest — block everything suspicious |
rag_assistant |
Strip injections, preserve safe data |
License
AGPL-3.0. Commercial license available — contact 9hannahnine@gmail.com.
Related
- arc-gate — Runtime governance proxy for LLM agents
- arc-sentry — Whitebox detector for self-hosted models
- arc-gate-mcp — Runtime governance for MCP tool calls
- arc-gate-benchmark — Reproducible benchmark harness
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file arc_gate_mcp-0.1.1.tar.gz.
File metadata
- Download URL: arc_gate_mcp-0.1.1.tar.gz
- Upload date:
- Size: 7.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
553804e8021ff3816a0001eabaa801c2316f92552c3ae6576e4a33e564b01f2f
|
|
| MD5 |
44ba62ae47b9954e698e3bc1a97fba6a
|
|
| BLAKE2b-256 |
9b8a8e0d9e667db6a077c33e1fd244eff8cc8e87d59cc2a06d947c55325e8083
|
File details
Details for the file arc_gate_mcp-0.1.1-py3-none-any.whl.
File metadata
- Download URL: arc_gate_mcp-0.1.1-py3-none-any.whl
- Upload date:
- Size: 7.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
590c6583a04d6faff7b1c3d487cee73d9d90e375dc4df5b573d304f20fca6235
|
|
| MD5 |
a99954c3ddde917f66acaa0b12433eb2
|
|
| BLAKE2b-256 |
13e55f828fc7d1774d59aad61ed5e4df178c638e025782b2613a5db2cdb153c9
|