Home/MCP-Attest
Open protocol

Sign what your MCP server offers. Let anyone check it has not changed.

MCP-Attest is an open, vendor-neutral protocol for making the tool surface of an MCP server tamper-evident. Publishers sign a manifest of exactly what their server exposes and append it to a public transparency log. Any client can verify the running server still matches.

The gap this closes

An MCP server tells the client which tools it has, and the client believes it. Tool names, descriptions and input schemas go straight into a model's context window, which means whoever controls them controls part of the prompt. Nothing in the Model Context Protocol stops a server changing them after it has been installed, reviewed and approved, and nothing makes that change visible when it happens.

A server can ship clean, pass a security review, get approved by a platform team, and then quietly widen a tool description three weeks later. The client re-reads the tool list on every connection. It has no memory of what was there before and no way to tell whether anything moved.

That is a supply chain problem, and supply chain problems have a known shape of answer: sign the artifact, publish the signature somewhere append-only, and let consumers check. MCP-Attest is that answer applied to tool surfaces.

How it works

  1. Capture. Connect to the server and read tools/list, resources/list and prompts/list to exhaustion. Normalise them into a canonical structure with a fixed sort order and a fixed field set.
  2. Canonicalise and hash. RFC 8785 JSON canonicalisation, then SHA-256. Two implementations following the specification produce identical bytes, which is what makes a signature portable.
  3. Sign. Ed25519 over a domain-separated preimage, either with a key published under your domain or, better, with an ephemeral key bound to a CI workload identity so there is no key to manage at all.
  4. Witness. Submit to a transparency log, which appends the statement to an RFC 6962 Merkle tree and returns an inclusion proof. A statement with no log entry is signed but not witnessed, and verifiers say so.
  5. Verify. A client repeats steps one and two against the live server and compares. Signature, inclusion proof and live hash all have to agree, or verification fails with a machine-readable reason.

Publishing takes one block of YAML

In CI there is no key to store, rotate or lose. The workflow identity signs, and the log records which workflow it was.

# .github/workflows/release.yml
jobs:
  seal:
    runs-on: ubuntu-latest
    permissions:
      id-token: write   # this is what signs, in place of a key
    steps:
      - uses: mcp-attest/action@v0.1
        with:
          server: https://mcp.example.com/v1

Or from a terminal, with a key published under your own domain:

npx mcp-attest init --publisher dns:acme.example
npx mcp-attest seal https://mcp.acme.example/v1 --version 2.4.1

Consuming is one command

npx mcp-attest verify https://mcp.acme.example/v1

PASS  OK
  the live tool surface matches what dns:acme.example signed and the log witnessed
  publisher      dns:acme.example
  log            https://log.mcplayer.ai index 10420 of 10421

And when something has moved, the failure names it rather than only reporting that two digests differ:

FAIL  RUGPULL_SUSPECTED
  the tool surface changed after it was signed: added tools/read_env; changed tools/search
  added          tools/read_env
  changed        tools/search

Add --enforce to fail a build on any failing check, and --require-attested to also fail when a server carries no attestation at all. In a client or a gateway, the same logic embeds as a library in TypeScript or Python with no dependencies.

Try the reference verifier on a live server, or read the protocol.

The eight answers

Verification returns exactly one result code, meant to be switched on rather than read.

CodeMeaningDefault severity
OKSignature, log inclusion and live surface all agree.pass
UNSIGNEDNo attestation exists for this server.warn
SIG_INVALIDA statement exists but its signature does not verify.fail
IDENTITY_UNVERIFIEDThe signature verifies but the key is not bound to the claimed publisher.fail
LOG_MISSINGSigned but not witnessed by any log.fail when keyless
RUGPULL_SUSPECTEDThe live tool surface differs from the signed one.fail
REVOKEDThe publisher revoked this server.fail
UNREACHABLEThe server could not be contacted, so nothing was compared.warn

What it proves, and what it does not

This distinction is the most important paragraph on the page, and getting it wrong in either direction is how security tools lose credibility.

It proves that the running server's tool surface is byte for byte what the publisher signed. A silently widened description, an added tool or a loosened input schema cannot pass. It proves the signature is bound to an identity anchored either in a domain the publisher controls or in a CI workload identity that a log witnessed. It proves every statement is publicly discoverable, so a publisher cannot sign one surface for one consumer and a different one for another without both appearing in the same log. And it makes change over time attributable and timestamped.

What attestation is not

It does not prove the server behaves as its descriptions claim. A signed tool called read_file may exfiltrate. Attestation is integrity, not honesty. A malicious publisher can sign malicious servers all day and the log will faithfully record them doing it.

Deciding whether a publisher deserves trust is a different job, done by scanning, grading and monitoring behaviour. The two layers are complementary and each is a check on the other: detection forms opinions about servers, attestation produces proofs about manifests, and a service that independently captures surfaces over time is also an independent witness of whether a log is telling the truth.

Open, and built to stay that way

The specification and every reference implementation are Apache-2.0. There is no registration, no conformance programme and no fee. The protocol names no operator: a log is identified by its public key rather than its hostname, running one needs nobody's permission, and the reference implementation is about a thousand lines.

The libraries ship with a default log endpoint, because a verification library with no default cannot be adopted in five minutes and five minutes is the whole budget. It is a default and not a requirement, every entry point takes an override, and that trade is written down rather than hidden. The intent is to donate the specification to a neutral foundation once there are three independent implementations and two independently operated logs, which are the thresholds at which donation means something.

  • Submission stays free. A log that charged to append entries would be collecting rent on a public record.
  • No feature that only one operator can implement. If a change needs infrastructure the specification does not describe, it does not go in the specification.
  • Breaking changes get four weeks of public comment before they are merged.

The transparency log

MCPLayer operates a public log at log.mcplayer.ai. Free to submit, free to read, append-only, with no account and no curation on who may publish. Once a day the entire entry set is written to a public dump alongside the signed tree head that covers it, so anybody can rebuild the tree and check that the published root follows from the published entries. That audit needs no cooperation from us and no credentials.

-
entries in the log
-
servers sealed
-
publishers
-
entries this week

Presence in the log is not endorsement. Anybody may submit, including somebody signing under a publisher identity that is not theirs. The log records the attempt rather than refusing it, because the record is the evidence: verifiers reject it, and the real publisher sees it in their own feed. A log that decided which entries deserved to exist would be a curator, and nobody can audit a curator.

Watch your own name

The single most useful thing a transparency log gives a publisher is an answer to the question "has anybody signed anything under my identity". Subscribe to your publisher feed in any reader, with no account:

https://log.mcplayer.ai/log/publishers/dns:acme.example/feed.atom

Where to start

  • If you publish an MCP server, add the GitHub Action. Two minutes, no key, and your users get a check they can run.
  • If you consume MCP servers, run mcp-attest verify --enforce in CI against the ones you depend on, so a change underneath you fails a build rather than reaching a model.
  • If you build a client or a gateway, embed the verification library and fail closed on RUGPULL_SUSPECTED.
  • If you want to check the protocol rather than use it, read the specification and open an issue about anything two people could read differently. That is the most valuable contribution at this stage and it needs no code.
Scan anything. Seal what is yours.

Check a server now, or seal the one you publish.

Verification is free at every tier and always will be. Taxing a protocol is how you make sure nobody adopts it.

Verify a server