mcp-attest
Authorization conformance harness for MCP servers: test a live server against your own policy, as every identity, and produce evidence an auditor can verify.
Install / Use
claude mcp add Balanov -- npx -y github:Balanov/mcp-attestIf the server publishes to npm under a different name, use that package instead — check the repo README.
MCP Server
Model Context Protocol server
Quality Score
Category
SecuritySupported Platforms
Our assessment of mcp-attest
mcp-attest scores 84/100 on our quality scale, 822nd of 1,096 Security skills we index.
Its MCP Server is 18 KB long, well organised into 17 sections with 12 code examples: a thorough specification that gives an agent plenty to work with.
It has 10 GitHub stars, so there is little community track record yet; judge it on its content.
Maintenance, license and trust
- The repository was last updated 10 days ago, so mcp-attest is actively maintained.
- It is released under the MIT license, a permissive license that allows use, modification and commercial use with attribution.
- Its trust signals score 97/100, with no cautions. These come from repository metadata, not a code audit — read the skill file before letting an agent act on it.
Safety scan
No issues foundOur scan of the whole file found no instruction hijacking, hidden characters, credential access, data exfiltration or destructive commands. An AI review of the same text found nothing harmful.
AI review by kimi-k2.7-code on 2026-11-19. Automated pattern scan on 2026-11-19. It catches known dangerous patterns, not every risk — read a skill before letting an agent act on it.
mcp-attest compared with similar skills
All 4 of these similar skills score higher than mcp-attest; compare them before choosing.
| Skill | Score | Stars | Updated | Format |
|---|---|---|---|---|
| mcp-attest (this skill)by Balanov | 84 | 10 | 10d ago | MCP Server |
| Agent-Reachby Panniantong | 100 | 114.5k | today | CLAUDE.md |
| hyperframesby heygen-com | 100 | 89.4k | today | CLAUDE.md |
| rufloby ruvnet | 100 | 82.4k | today | CLAUDE.md |
| headroomby headroomlabs-ai | 100 | 80.7k | today | CLAUDE.md |
Frequently asked questions
- How do I install mcp-attest?
- Run
claude mcp add Balanov -- npx -y github:Balanov/mcp-attest. The install tabs above show the steps for each supported agent. - Which AI agents does mcp-attest work with?
- It is written for Claude Code and Claude Desktop, as a MCP Server file. Other agents that read the same format can often use it too.
- Is mcp-attest safe to use?
- Our scan of the whole file found no instruction hijacking, hidden characters, credential access, data exfiltration or destructive commands. An AI review of the same text found nothing harmful. It is MIT-licensed and scores 97/100 on trust signals. Skills are instructions an agent will follow, so read the file before installing it and do not approve commands you do not understand.
- Is mcp-attest still maintained?
- The repository was last updated 10 days ago, so mcp-attest is actively maintained.
Skill content
View source on GitHubmcp-attest tests a live MCP server against the access control you wrote. It connects as each identity in your policy, sends real calls, and reports every place where the server's decision differs from the decision your policy requires.
It is not a gateway. It cannot block anything. It proves what your server does.
Why mcp-attest?
- It tests the decision, not the definition. A scanner tells you what a tool description looks like.
mcp-attesttells you whetheralicemay callrefund_order— by calling it, asalice, and looking at what came back. - It covers the OAuth half of the standard too. Wrong audience, wrong issuer, wrong scope, tampered signature, expired token,
alg: none, a redirect URI that is not registered, a missing PKCE challenge, a dropped state, a token that must not reach the upstream. Twelve checks that the OWASP guide lists and no tool in the ecosystem performs. - The matrix is generated, not typed. Write who may call what. The harness derives every identity × tool pair, derives the arguments from the schema, and compares. Adding a tool to your server does not mean rewriting the test suite.
- Deterministic. No model, no API key, no network beyond the server under test. The same policy and the same server give the same report every time, which is what makes it usable as a gate.
- Evidence, not opinion. Every call is recorded with the request, the response, the identity, the timestamp and the policy decision. The records are hash-chained and optionally HMAC-signed, so an auditor can verify the bundle offline without trusting the machine that produced it.
- Exit codes, not vibes.
0clean,1blocking finding,2bad input. It is a CI gate without a wrapper script. - Zero dependencies. Python 3.10+ and the standard library. It speaks JSON-RPC itself instead of pulling an SDK into your pipeline.
Where this sits
The MCP testing space is crowded, and pretending otherwise would be dishonest. mcp-assert lints, tests and fuzzes servers over real transports with YAML assertions; mcp-fence scans configuration, inspects and fuzzes with a Docker sandbox; mcp-fuzz grades protocol robustness; MCP-Scan scans tool metadata for poisoning; promptfoo red-teams agents and MCP servers with a model in the loop; mcpsnoop and mcp-conformance judge recorded sessions.
What none of them does is the thing the OWASP MCP Security Testing Guide puts first in its minimum automated test set: the authorization matrix — every tool, role, scope, tenant and object, including identifiers that belong to someone else — and token validation. The guide names the tool it expects as a category: "Policy-as-code test harness — asserts allow/deny decisions against the documented policy, with stable reason codes."
That is this product. Full comparison, sources and the claims we cannot make.
<div align="center"> <img src="https://raw.githubusercontent.com/Balanov/mcp-attest/main/docs/readme/architecture.png" alt="mcp-attest flow: the policy is the expected side, the live server is the observed side, the comparison produces findings, an exit code and a signed evidence bundle" width="100%"> <p><sub>The policy is the expected side. The server is the observed side. The gap between them is the finding. <a href="SPEC.md">Full specification</a>.</sub> </div>Website · Specification · Positioning · Research notes · MIT license
Install
pipx install mcp-attest # isolated CLI
uvx mcp-attest test --help # one-shot
pip install mcp-attest # into a virtualenv
From source:
git clone https://github.com/Balanov/mcp-attest.git
cd mcp-attest
python -m pip install -e ".[dev]"
python -m unittest discover -s tests -v
Run it
attest init --command "python my_server.py" # scaffold a policy from the live tools
attest test --command "python my_server.py" --policy policy.json
Against the bundled vulnerable server:
!! [CRITICAL] AT-POISON-001 tool 'refund_order' hides an instruction in its description
The description contains text that matches 'hides the call': 'do not tell the user'.
A tool definition is read by the model, so this is an instruction channel that the
user never sees.
fix: Remove the instruction from the description. The tool's description should state
what it does, not what the model must do.
!! [CRITICAL] AT-AUTHZ-001 'alice' was allowed to call 'refund_order'
The policy denies 'refund_order' for this identity (tool is on the deny list), but the
server executed the call. This is broken access control, not a policy tuning problem.
fix: Enforce the decision inside the server's tool dispatcher, before the handler runs.
!! [CRITICAL] AT-AUTHZ-002 case AUTHZ-CROSS-01: 'alice' reached an object it must not reach
The case expects 'get_order' to be refused for 'alice' (order B-77 belongs to bob,
not to alice), but the server executed the call.
fix: Check ownership of the object at the point of use, not only the role of the caller.
summary: critical=4, high=2, medium=4, low=3
tested: 2 identities, 6 tools, 12 calls
Exit code 1 means a blocking finding exists. --json prints machine-readable findings, --sarif writes SARIF 2.1.0 for code scanning, --strict treats medium findings as blocking.
| Command | Purpose |
|---|---|
| attest test | Test a live server against a policy, as every identity in it |
| attest init | Write a starter policy, optionally from the live tool list |
| attest suite | Export, validate and run a portable conformance suite |
| attest verify | Verify an evidence bundle offline |
| attest check | Audit a recorded trace against a policy |
| attest receipts | Build and verify a hash-chained receipt trail |
| attest shadow | List the servers an agent can reach outside the gateway |
| attest posture | Measure public MCP servers without calling a tool on them |
| attest rules | List the enforced rules |
Check an export you already have
If your agent already emits OpenTelemetry spans, attest check reads the export directly. You do not need a second instrumentation path to prove what your agent was allowed to do:
attest check --policy policy.json --otlp otel-export.json
The reader takes a single OTLP JSON payload or newline-delimited payloads, and skips everything that is not an MCP span with a warning. It understands four span names:
| Span | Attributes | Meaning |
|---|---|---|
| mcp.tool.call | mcp.actor, mcp.tool.name, mcp.tool.arguments, mcp.policy.decision, mcp.policy.reason | one tool invocation and the decision it received |
| mcp.tools.list | mcp.actor, mcp.tools | the tool list an actor received |
| mcp.client.servers | mcp.actor, mcp.servers | the servers a client is configured with |
| mcp.gateway.route | mcp.server, mcp.tools | the tools a gateway routes for a server |
The rules
Live rules run against a server you point it at. Each maps to a test in the OWASP MCP Security Testing Guide.
| ID | Rule | OWASP | The failure it catches | |---|---|---|---| | AT-AUTHZ-001 | policy enforced per identity | MCPSTG-AUTHZ-01 | The server allows what your policy denies | | AT-AUTHZ-002 | cross-user objects refused | MCPSTG-AUTHZ-03 | A valid identifier belonging to another principal | | AT-TOKEN-001 | tokens validated | MCPSTG-AUTHN-04 | A malformed, tampered or expired token gets through | | AT-POISON-001 | no hidden instructions | MCPSTG-TOOL-01 | Instructions smuggled into tool metadata | | AT-DRIFT-001 | no manifest drift | MCPSTG-SUPP-01 | A tool added or changed after approval (rug pull) | | AT-SECRET-001 | no secrets in output | MCPSTG-SECR-01 | A credential in the tool output | | AT-FAILCLOSED-001 | fail closed on invalid input | MCPSTG-CONF-01 | A call executed with missing required arguments | | AT-INJECT-001 | no injected instructions in output | MCPSTG-TOOL-01 | Instructions aimed at the model inside a tool result | | AT-SINK-001 | guarded execution sinks | MCPSTG-TOOL-02 | Model input reaching a shell, a file or a URL | | AT-SCHEMA-001 | strict tool schemas | MCPSTG-TOOL-04 | Untyped, unbounded or free-form arguments | | AT-APPROVAL-001 | declared risk and approval | MCPSTG-AUTHZ-02 | A state-changing tool that declares no risk | | AT-ERROR-001 | clean error messages | MCPSTG-CONF-03 | Stack traces and internal paths in errors |
Trace rules run against a recorded session and are unchanged since 0.1: C1 default-deny, C2 list/call parity, C3 narrowing only, C4 credential separation, C5 fail closed, C6 enforcement parity, C7 shadow MCP, C8 receipt chain, C9 description integrity.
The OAuth checks
The second half of the OWASP minimum set. They run when the policy carries an oauth block, and they need a server that speaks Streamable HTTP.
| ID | Rule | OWASP | The failure it catches | |---|---|---|---| | AT-OAUTH-001 | a token is required | MCPSTG-AUTHN-01 | A request with no bearer token is accepted | | AT-OAUTH-002 | the signature is verified | MCPSTG-AUTHN-02 | A tampered signature is accepted | | AT-OAUTH
Truncated for display — read the full file on GitHub.
Related Skills
Agent-Reach
114.5kGive your AI agent eyes to see the entire internet. Read & search Twitter, Reddit, YouTube, GitHub, Bilibili, XiaoHongShu — one CLI, zero API fees.
hyperframes
89.4kOpen-source AI video editor: edit your own footage, or create and remake any video with Claude Code, Codex or the free Studio app. Write HTML, render MP4. By HeyGen.
ruflo
82.4k🌊 The original agent harness. Deploy intelligent multi-player swarms, coordinate autonomous workflows, and build conversational AI systems. Features adaptive memory, self-learning intelligence, federation, vector RAG integration, and native Claude Code / Codex / Hermes and many more Integrated
headroom
80.7kCompress tool outputs, logs, files, and RAG chunks before they reach the LLM. 20% fewer tokens for coding agents, 60-95% fewer tokens for JSON, same answers. Library, proxy, MCP server.
Languages
Trust signals
From repository metadata: license, adoption, age and documentation. Not a code audit — see the Safety scan above for what the skill file itself contains.
