open-index/open-npm huggingface dataset:
npm package: @provenclave/mcp
Description: MCP (Model Context Protocol) server that exposes OCC commit and verify as Claude-native tools. Lets any Claude agent create tamper-evident proofs without writing code.
Author: Mike Argento
Latest version: 0.1.0

# @provenclave/mcp — OCC MCP Server

Model Context Protocol (MCP) server that exposes OCC commit and verify as **Claude-native tools**. Any Claude agent can create and verify tamper-evident cryptographic proofs without writing a single line of code.

## Tools

| Tool | What it does |
|------|-------------|
| `commit_text` | Commit any string (model output, JSON, text) → returns OCCProof |
| `commit_file` | Commit a local file by path → returns OCCProof |
| `verify_proof` | Verify an OCCProof against its original bytes/file |
| `health` | Check if the OCC notary is reachable |

## Install in Claude Desktop

Add to `~/.claude/claude_desktop_config.json`:

```json
{
  "mcpServers": {
    "occ": {
      "command": "npx",
      "args": ["-y", "@provenclave/mcp"]
    }
  }
}
```

Restart Claude Desktop. You'll see the OCC tools appear in the tool picker.

## Install in Claude Code

```bash
claude mcp add occ -- npx -y @provenclave/mcp
```

## Environment Variables

| Variable | Default | Description |
|----------|---------|-------------|
| `OCC_NOTARY_URL` | `https://nitro.occproof.com` | OCC notary endpoint |

## Example Agent Usage

Once installed, a Claude agent can say:

> "Commit my report to OCC and save the proof"

Claude will call `commit_file` or `commit_text` automatically and return the proof JSON.

Or in a system prompt:

> After generating any final output, always call `commit_text` with the result and include the returned `digestB64` in your response so the user can verify provenance.

## Self-hosting

Point `OCC_NOTARY_URL` at your own OCC service:

```bash
OCC_NOTARY_URL=http://localhost:8787 npx @provenclave/mcp
```

## Related

- [`provenclave`](https://www.npmjs.com/package/provenclave) — core library for offline verification
- [OpenAPI spec](https://github.com/mikeargento/provenclave/blob/main/openapi.json) — machine-readable API description
- [Live Proof Studio](https://provenclave.com/studio) — browser-based commit + verify UI
- [GitHub](https://github.com/mikeargento/provenclave)