# Agent Canary

> Decoy tools and an execution gateway for AI agent security testing.

- **URL**: https://followmcp.com/en/servers/shanchuanzhi-agent-canary
- **Category**: Dev Tools
- **Origin**: Community
- **Stars**: 103
- **FMRS Score**: 53/100 (Grade D)
- **Source**: https://github.com/DorianChn/shanchuanzhi-agent-canary
- **Transports**: stdio (local process)
- **Runtimes**: Node.js 20+
- **Auth**: No credential needed

## Overview
Agent Canary is an open-source MCP and SDK security toolkit with 12 inert decoy tools, canary tokens, a guarded execution gateway, local self-tests, and an optional risk-policy console. Decoy calls create fabricated trace tokens, attempt local audit logging, and may send configured alerts; they do not perform the represented actions. The gateway protects only callbacks registered and routed through it; it does not automatically intercept a client's native tools.

## Best for
- Developers and security testers who need to test agent behavior locally.
- Teams assessing callbacks routed through the gateway and their risk policies.

## Not for
- Users who need to intercept every client-native tool, process, or unregistered callback.
- Users expecting decoy tools to perform real file, network, or other business operations.
- Users requiring OS-level confinement or independently reproduced validation.

## Required permissions
- Running the server starts a local process; decoy calls attempt local audit logging.
- Calls may send alerts if alerts are configured; the required configuration permissions are not specified in the source.
- GitHub Packages installation requires a GitHub personal access token (classic) with read:packages; using the GHCR image is another listed option.

## Risks
- Protection covers only callbacks registered and routed through the server; client-native tools and tools outside a plugin boundary are not covered.
- The source says a non-cooperative callback may still cause a late side effect, and the results do not establish global protection, zero false positives, or complete TOCTOU elimination.
- Independent reproduction E4 is marked blocked; clean Windows virtual machine validation is also marked blocked.

## Client config (JSON)
```json
{"mcpServers":{"agent-canary":{"command":"agent-canary","args":["serve","--stdio"]}}}
```
