# Sheaf

> Sheaf is an open-source MCP server for agent tooling. Tamper-evident receipts for AI agent tool calls, verifiable offline by auditors. It runs locally on your machine and is started by your AI client.

- **Kind:** MCP server
- **Pricing:** Open source
- **Platforms:** CLI, API, Self-hosted
- **Website:** https://sheafhq.io
- **Repository:** https://github.com/sheafhq/sheaf/tree/HEAD/packages/mcp-tools
- **MCP Registry name:** io.sheafhq/mcp-tools
- **Categories:** [agent tooling](https://ai-powered.com/categories/agent-tooling)
- **Listing updated:** 2026-11-27

## About

Sheaf's MCP server gives AI clients read access to Sheaf's evidence chains. It can fetch the current head of a chain, retrieve a Merkle inclusion proof with its on-chain anchor reference for a given event, and verify a dispute or receipt bundle from end to end, covering signatures, Merkle inclusion and the Base anchor transaction.

The server is a separate, opt-in tool surface. Recording the calls themselves is handled by a companion proxy package, so an agent's tool use is captured outside the agent process before anyone queries it here. Verification of dispute bundles is done against pinned keys only.

The three read tools are free to use. Two tools that buy artifacts or anchor a Merkle root are paid per call in USDC on Base via the x402 protocol and need a funded wallet key set in the environment.

## Features

- **Chain head lookup:** Returns the latest sequence number and hash for a Sheaf chain.
- **Merkle inclusion proofs:** Fetches a proof for a specific event together with its on-chain anchor reference.
- **End-to-end bundle verification:** Checks signatures, Merkle inclusion and the Base anchor for .sheaf or receipt bundles.
- **Pay-per-call artifacts:** Buys self-contained bundles or anchors a local Merkle root using x402 payments in USDC.
- **Configurable endpoints:** Lets you point the recorder and Base RPC at custom hosts through environment variables.

## Good for

- Checking a receipt for a disputed AI agent action without trusting the operator's logs
- Pulling a Merkle proof for one tool call to include in an audit file
- Confirming that an agent's recorded chain head matches what is anchored on Base
- Adding verifiable receipt checks to an MCP-compatible assistant such as Claude Desktop

## Install

### Claude Code: Add with the CLI (Terminal)

```sh
claude mcp add mcp-tools --env SHEAF_PAYER_PRIVATE_KEY='<SHEAF_PAYER_PRIVATE_KEY>' -- npx -y @sheafhq/mcp-tools
```

Add --scope user to use it in every project, or --scope project to share it in .mcp.json.

### Claude Code: Or share it with your project (.mcp.json)

```json
{
  "mcpServers": {
    "mcp-tools": {
      "command": "npx",
      "args": [
        "-y",
        "@sheafhq/mcp-tools"
      ],
      "env": {
        "SHEAF_PAYER_PRIVATE_KEY": "<SHEAF_PAYER_PRIVATE_KEY>"
      }
    }
  }
}
```

### Claude Desktop (claude_desktop_config.json)

```json
{
  "mcpServers": {
    "mcp-tools": {
      "command": "npx",
      "args": [
        "-y",
        "@sheafhq/mcp-tools"
      ],
      "env": {
        "SHEAF_PAYER_PRIVATE_KEY": "<SHEAF_PAYER_PRIVATE_KEY>"
      }
    }
  }
}
```

Settings → Developer → Edit Config, then quit and reopen Claude Desktop.

### Cursor (~/.cursor/mcp.json)

```json
{
  "mcpServers": {
    "mcp-tools": {
      "command": "npx",
      "args": [
        "-y",
        "@sheafhq/mcp-tools"
      ],
      "env": {
        "SHEAF_PAYER_PRIVATE_KEY": "<SHEAF_PAYER_PRIVATE_KEY>"
      }
    }
  }
}
```

Use .cursor/mcp.json in a project to share it with the project.

### VS Code (~/.copilot/mcp-config.json)

```json
{
  "mcpServers": {
    "mcp-tools": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "@sheafhq/mcp-tools"
      ],
      "env": {
        "SHEAF_PAYER_PRIVATE_KEY": "<SHEAF_PAYER_PRIVATE_KEY>"
      }
    }
  }
}
```

Or put the same entry in .mcp.json at your workspace root to share it.

### Codex: Add with the CLI (Terminal)

```sh
codex mcp add mcp-tools --env SHEAF_PAYER_PRIVATE_KEY='<SHEAF_PAYER_PRIVATE_KEY>' -- npx -y @sheafhq/mcp-tools
```

### Codex: Or add to config.toml (~/.codex/config.toml)

```toml
[mcp_servers.mcp-tools]
command = "npx"
args = ["-y", "@sheafhq/mcp-tools"]
env = { SHEAF_PAYER_PRIVATE_KEY = "<SHEAF_PAYER_PRIVATE_KEY>" }
```

### Gemini CLI and Antigravity: Gemini CLI (~/.gemini/settings.json)

```json
{
  "mcpServers": {
    "mcp-tools": {
      "command": "npx",
      "args": [
        "-y",
        "@sheafhq/mcp-tools"
      ],
      "env": {
        "SHEAF_PAYER_PRIVATE_KEY": "<SHEAF_PAYER_PRIVATE_KEY>"
      }
    }
  }
}
```

Or run: gemini mcp add -s user -e SHEAF_PAYER_PRIVATE_KEY='<SHEAF_PAYER_PRIVATE_KEY>' mcp-tools npx -- -y @sheafhq/mcp-tools

### Gemini CLI and Antigravity: Antigravity (~/.gemini/config/mcp_config.json)

```json
{
  "mcpServers": {
    "mcp-tools": {
      "command": "npx",
      "args": [
        "-y",
        "@sheafhq/mcp-tools"
      ],
      "env": {
        "SHEAF_PAYER_PRIVATE_KEY": "<SHEAF_PAYER_PRIVATE_KEY>"
      }
    }
  }
}
```

Use .agents/mcp_config.json to add it to one workspace only.

### Devin Desktop (~/.config/devin/mcp_config.json)

```json
{
  "mcpServers": {
    "mcp-tools": {
      "command": "npx",
      "args": [
        "-y",
        "@sheafhq/mcp-tools"
      ],
      "env": {
        "SHEAF_PAYER_PRIVATE_KEY": "<SHEAF_PAYER_PRIVATE_KEY>"
      }
    }
  }
}
```

On Windows the file is %APPDATA%\\devin\\mcp_config.json. Use .devin/mcp_config.json to share it with a project.

### Cline (cline_mcp_settings.json)

```json
{
  "mcpServers": {
    "mcp-tools": {
      "command": "npx",
      "args": [
        "-y",
        "@sheafhq/mcp-tools"
      ],
      "env": {
        "SHEAF_PAYER_PRIVATE_KEY": "<SHEAF_PAYER_PRIVATE_KEY>"
      }
    }
  }
}
```

Open it from the MCP Servers icon → Configure → Configure MCP Servers.

### Zed (Zed settings.json)

```json
{
  "context_servers": {
    "mcp-tools": {
      "command": "npx",
      "args": [
        "-y",
        "@sheafhq/mcp-tools"
      ],
      "env": {
        "SHEAF_PAYER_PRIVATE_KEY": "<SHEAF_PAYER_PRIVATE_KEY>"
      }
    }
  }
}
```

Open it with zed: open settings file. Merge context_servers into the settings you already have.

### JetBrains AI Assistant and Junie: AI Assistant (Settings → Tools → AI Assistant → Model Context Protocol (MCP) → Add)

```json
{
  "mcpServers": {
    "mcp-tools": {
      "command": "npx",
      "args": [
        "-y",
        "@sheafhq/mcp-tools"
      ],
      "env": {
        "SHEAF_PAYER_PRIVATE_KEY": "<SHEAF_PAYER_PRIVATE_KEY>"
      }
    }
  }
}
```

The AI Assistant docs only show command and args. If the env block is ignored, use Junie for this server.

### JetBrains AI Assistant and Junie: Junie (~/.junie/mcp/mcp.json)

```json
{
  "mcpServers": {
    "mcp-tools": {
      "command": "npx",
      "args": [
        "-y",
        "@sheafhq/mcp-tools"
      ],
      "env": {
        "SHEAF_PAYER_PRIVATE_KEY": "<SHEAF_PAYER_PRIVATE_KEY>"
      }
    }
  }
}
```

Use .junie/mcp/mcp.json to share it with a project.

### Kiro (~/.kiro/settings/mcp.json)

```json
{
  "mcpServers": {
    "mcp-tools": {
      "command": "npx",
      "args": [
        "-y",
        "@sheafhq/mcp-tools"
      ],
      "env": {
        "SHEAF_PAYER_PRIVATE_KEY": "<SHEAF_PAYER_PRIVATE_KEY>"
      }
    }
  }
}
```

Use .kiro/settings/mcp.json to add it to one workspace only.

### Other clients (your client's MCP settings (most use this shape))

```json
{
  "mcpServers": {
    "mcp-tools": {
      "command": "npx",
      "args": [
        "-y",
        "@sheafhq/mcp-tools"
      ],
      "env": {
        "SHEAF_PAYER_PRIVATE_KEY": "<SHEAF_PAYER_PRIVATE_KEY>"
      }
    }
  }
}
```

## Tools

From the tool list in its README, going by the names, 1 of 5 tools reads data; 4 names don't say. From the server's own tool labels and tool names; not verified by us.

- `sheaf_chain_head`: Fetch the current head of a Sheaf chain (seq + hash).
- `sheaf_get_proof_for` (name suggests: reads): Fetch a Merkle inclusion proof + on-chain anchor reference for a specific event.
- `sheaf_verify_bundle`: Verify a .sheaf dispute bundle or a receipt bundle end-to-end (signatures, Merkle inclusion, Base anchor).
- `sheaf_buy_bundle`: Pay $0.001 USDC on Base via x402 and buy the self-contained /bundle artifact.
- `sheaf_anchor_local`: Pay $0.01 USDC on Base and anchor a signed local Merkle root via /v1/anchor/local.

## FAQ

### Do I need a wallet to use the server?

No. The three read tools need no key. Only the two paid tools require SHEAF_PAYER_PRIVATE_KEY pointing at a funded Base wallet.

### How is the server installed?

It is published on npm as @sheafhq/mcp-tools and can be installed globally with npm install -g. It is also listed in the official MCP Registry as io.sheafhq/mcp-tools.

### Does Sheaf record agent tool calls?

No. Event capture is done by the companion package @sheafhq/mcp-recorder. This package only exposes read and paid verification tools.

### What license is Sheaf under?

The package is released under the MIT license.

### Is Sheaf free?

Yes. Sheaf is open source, so you can use and self-host it for free.

### How do I add Sheaf to Claude Code?

Run this command in your terminal: claude mcp add mcp-tools --env SHEAF_PAYER_PRIVATE_KEY='<SHEAF_PAYER_PRIVATE_KEY>' -- npx -y @sheafhq/mcp-tools

### What are the best alternatives to Sheaf?

The closest alternatives to Sheaf are Agent Services MCP, Fairseal MCP Server, Stillos Notary MCP, Axiom Agentic Tools and Agent Web Reader.

## Where this comes from

- Description: written from the project's README, the project's website and its MCP Registry entry.
- Install steps: from the official MCP Registry entry.

## Alternatives

- [Agent Services MCP](https://ai-powered.com/mcp/agent-services-mcp): Agent Services MCP is an open-source MCP server for agent tooling.
- [Fairseal MCP Server](https://ai-powered.com/mcp/fairseal-mcp-server): Fairseal MCP Server is an open-source MCP server for agent tooling.
- [Stillos Notary MCP](https://ai-powered.com/mcp/stillos-notary-mcp): Stillos Notary MCP is a freemium MCP server for agent tooling.
- [Axiom Agentic Tools](https://ai-powered.com/mcp/axiom-agentic-tools): Axiom Agentic Tools is a paid MCP server for agent tooling.
- [Agent Web Reader](https://ai-powered.com/mcp/agent-web-reader): Agent Web Reader is a paid MCP server for agent tooling.
- [S+S Agentic](https://ai-powered.com/mcp/s-s-agentic): S+S Agentic is a free MCP server for agent tooling.
- [Yieldagentx402](https://ai-powered.com/mcp/yieldagentx402): Yieldagentx402 is an MCP server for crypto and web3.
- [Swarm At](https://ai-powered.com/mcp/swarm-at): Swarm At is a freemium MCP server for agent reputation.

---
Source: https://ai-powered.com/mcp/sheaf
