Skip to content
newUse it as an MCP server

Stop risky AI agent actions. Before they run.

MCP Guard checks every tool call against what the user actually asked for, and answers allow, ask or block.

  • About 15 ms per check
  • GPUs in Switzerland
  • Payloads not stored
  • 1,000 free requests

Illustrative session; the numbers are examples. Real checks run in the demo below.

Example checks and headline numbers, not live traffic.

Example checks and headline numbers, not live traffic.

The MCP Guard API

One model, two ways in. Send the action and what the user asked for; act on the verdict.

REST API

A pre-tool-call hook for any agent framework.

MCP server

Every tool call from every server, checked in one place.

Check a tool call yourself

Pick an example or write your own. Each check runs on the real model, free and without a key.

The same body as POST /v1/guard. Edits here and in the fields stay in sync.

Tool call

Run any SQL statement, including ones that change or delete data.

The same prompt box as the dashboard playground. Up to 600 characters a field here; nothing you send is stored.

The verdict shows here

Press ↑ to check the call: allow, ask or block, with the reasons and nine scores.

Built for every call path

Nine calibrated scores

Not one yes/no: route on the score that matters to you

Batch checks

Up to 64 calls in one request, counted once

Agent frameworks

Call it from the pre-tool-call hook

Code-mode sandboxes

Every call the generated code makes

Swiss hosting

GPUs in Switzerland, payloads not stored

Whatever your agent calls, check it before it runs

How well it works

On the held-out test half of R-Judge, it scores an AUROC of 0.855 against 0.824 for an open guard model of the same size. The gap is not yet statistically significant: read it as on par or better, not as a ranking.

R-Judge benchmark304 agent safety trajectories, public

How we measured

0.855

AUROC on the R-Judge test half

~400/s

checks per second per GPU

~23 ms

p95 model time per check

Nine answers you can act on

Every check returns all nine, from one forward pass of a 184M-parameter model.

safe
Probability the call is safe to run now.
violation
none, policy_violation, scope_violation, injection, goal_drift or corrigibility.
severity
none < low < medium < high.
destructive
Deletes, overwrites or irreversibly changes data.
exfiltration
Sends private data, secrets or another tenant’s data where it should not go.
injected
Driven by instructions from a tool result or document, not the user (prompt injection).
approval_policy
auto_approve, require_human or reject.
blast_radius
read-only < local or reversible write < production-mutating or external side effect.
args_grounded
The arguments are supported by what the user asked (no invented ids, amounts or recipients).

The default verdict: block when P(unsafe) is at least 0.8 or the policy head says reject; ask when P(unsafe) is at least 0.3, the policy head says require_human, or args_grounded is below 0.5; otherwise allow. You can apply your own thresholds instead.

What it is not

A guard that overpromises is worse than none. Plan for these.

One layer, not the whole defence

Keep deterministic rules for known-bad patterns, least-privilege credentials and human approval for irreversible actions.

It can be wrong

Scores are probabilities. Some unsafe calls will score as safe and some safe calls will be flagged. Tune thresholds on your traffic.

It sees what you send

It judges the action against the intent and context in the request. If the intent is missing or misleading, so is the answer.

Adds a network hop

About 15 ms of model time plus the round trip. Batch where you can; decide what happens if the guard is unreachable.

One POST before every tool call

Create a key, send the call and the intent, act on the verdict. Or add the MCP server and let the client call guard_check.

guard.shbash
curl https://api.mcp-guard.ai/v1/guard \
  -H "Authorization: Bearer $MCP_GUARD_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "action": {"tool": "db.drop_table", "args": {"table": "users"}},
    "intent": "List the tables in the staging database",
    "context": "Database agent. Environment: production."
  }'

$0.20 per 1,000 checks

Pay as you go with packs, or a monthly plan from $19 with up to 15% more checks.

1k50M

1 check = one tool call judged on all nine questions = 1 credit, at $0.20 per 1,000 checks. A batch of N checks costs N credits. Failed calls are free, and every workspace starts with 1,000 free requests.

Cheapest option · Starter

$19.05/ month

$19 plan + 250 extra checks at the list rate

  • Starter$19.05
  • Pay as you go$20
  • Pro$99
  • Scale$399

For reference (illustrative): an LLM judge on every call runs roughly $2–$5 per 1,000 calls, about $200–$500 at this volume.

See packs and plans

Questions, answered

All questions
What is MCP Guard?
A hosted API that checks an AI agent’s tool call before it runs. You send the action (for example db.drop_table(users) or {tool, args}) and what the user asked for; it returns a verdict (allow, ask or block), the reasons, and calibrated scores for nine questions, from one forward pass of a small model.
Does it only work with MCP?
No. The REST endpoint (POST https://api.mcp-guard.ai/v1/guard) works with any agent framework as a pre-tool-call hook. MCP clients and gateways can also call it as an MCP server at https://api.mcp-guard.ai/mcp, with the tools guard_check, guard_batch and usage.
How accurate is it?
On the held-out test half of R-Judge, a public benchmark of agent safety trajectories (304 trajectories), it scores an AUROC of 0.855, against 0.824 for saroku-guard, an open 184M guard model. The difference is not yet statistically significant, so read it as on par with or better than that baseline, not as a ranking. Measure it on your own traffic before you rely on it.
How fast is it?
About 15 ms per full nine-question check on an RTX 4090 (p95 about 23 ms) at batch size 1, and about 400 checks per second per GPU. On a CPU with 8 threads it is about 120 ms. Calls over the internet add the network round trip, typically around 100 ms from Europe.
Does it replace my allow-lists and rules?
No. It is one layer. Keep deterministic rules for patterns you already know are bad (blocked commands, allow-listed domains, permission scopes). The guard is for the long tail your rules do not describe: actions that are off-intent, injected by a document, or riskier than the request justifies.
What does it cost?
$0.20 per 1,000 checks. One check is one tool call judged on all nine questions. Every workspace gets 1,000 free requests (a batch counts once). After that you buy packs or pick a monthly plan from $19. Failed calls are free.
Do you store my tool calls?
No. Request payloads (the action, intent, context) are processed in memory and not stored. We keep request metadata (ids, endpoint, status, number of checks, credits, latency) for 30 days for billing and debugging.

Built for agent builders

Guard your first tool call in five minutes

Create a key, paste the curl, and put the check in front of the calls you would least like to see go wrong.

Start free