# Rohan Protocol MCP

> Rohan Protocol MCP is a paid MCP server for security. MCP server giving agents a signed identity and hash-anchored settlements on Midnight. It runs locally on your machine and is started by your AI client.

- **Kind:** MCP server
- **Pricing:** Paid
- **Platforms:** CLI, API
- **Website:** https://rohanprotocol.network
- **Repository:** https://github.com/rohan-protocol/sdk/tree/HEAD/packages/mcp
- **MCP Registry name:** io.github.rohan-protocol/mcp
- **Categories:** security, finance and payments
- **Listing updated:** 2026-11-14

## About

Rohan targets agents that need to prove an agreement happened without exposing the details. An agent canonicalizes sensitive data such as budgets, contracts or personal details in local memory using RFC 8785, hashes it, and only the commitment hash is anchored on the Midnight Preprod network through a relayer. A second agent can later check a plaintext document against that anchored hash.

Identity is a W3C did:key built from a local Ed25519 key. The stdio server uses ROHAN_AGENT_PRIVATE_KEY if set, otherwise an existing keystore at ~/.rohan/agent-identity.json, and creates one with restricted permissions if none exists. The README warns that the key is stored as plaintext in that file, so it should be protected and backed up like a secret. Request envelopes bind nine canonical fields and use replay protection.

The site also describes a semantic firewall against prompt injection and a zero-width text sanitizer. It states gas fees are sponsored and billing is a fixed monthly rate through Stripe, though amounts are not published. The configured contract is on the Preprod test network.

## Features

- **Confidential handshake:** Anchors only a hash of confidential parameters on Midnight, not the data.
- **Ledger inspection:** Reads the anchored contract state with a short-lived cache.
- **Settlement history:** Lists recent transactions and receipts, up to 50 per call.
- **Commitment verification:** Checks a plaintext payload against its SHA-256 digest locally.
- **Local did:key identity:** Generates and stores an Ed25519 identity for signing requests.
- **Injection screening:** The site describes a pre-prover firewall for prompt injection and tampering.

## Good for

- Record that two agents agreed on terms without publishing the terms
- Audit a past settlement by re-verifying the original document
- Give an agent a persistent signed identity for its requests
- Inspect the state and history of the Rohan contract

## Install

### Claude Code (Terminal)

```sh
claude mcp add mcp -- npx -y @rohan-protocol/mcp
```

### Claude Desktop (claude_desktop_config.json)

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

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

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

### VS Code (.vscode/mcp.json)

```json
{
  "servers": {
    "mcp": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "@rohan-protocol/mcp"
      ]
    }
  }
}
```

### Windsurf (~/.codeium/windsurf/mcp_config.json)

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

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

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

## Tools

- `rohan_execute_handshake`: Runs a confidential state transition and anchors a commitment hash on Midnight.
- `rohan_get_ledger_state`: Reads the anchored contract state: root, block height and last transaction hash.
- `rohan_get_transaction_history`: Lists recent settlement transactions and receipts, default 10, maximum 50.
- `rohan_verify_commitment`: Verifies a plaintext payload against its canonical SHA-256 digest in local memory.

## FAQ

### Which network does it use?

The default contract address is on Midnight Preprod, a test network.

### Where is the private key kept?

In ROHAN_AGENT_PRIVATE_KEY if set, otherwise in ~/.rohan/agent-identity.json, which is plaintext and limited to the user.

### What goes on-chain?

Only a cryptographic commitment hash of the intent, according to the site.

### Who pays gas?

The site says it sponsors Midnight gas fees and charges a fixed monthly rate through Stripe; amounts are not published.

### Is Rohan Protocol MCP free?

No. Rohan Protocol MCP is a paid product.

### How do I add Rohan Protocol MCP to Claude Code?

Run this command in your terminal: claude mcp add mcp -- npx -y @rohan-protocol/mcp

### What are the best alternatives to Rohan Protocol MCP?

The closest alternatives to Rohan Protocol MCP are REA, Solana MCP by Vybe, Tapetide - Indian Stock Market MCP, Agent Roast and Midplane.

## Alternatives

- [REA](https://ai-powered.com/mcp/rea): REA is an open-source MCP server for developer tools.
- [Solana MCP by Vybe](https://ai-powered.com/mcp/solana-mcp-by-vybe): Solana MCP by Vybe is an MCP server for finance and payments.
- [Tapetide - Indian Stock Market MCP](https://ai-powered.com/mcp/tapetide-indian-stock-market-mcp): Tapetide - Indian Stock Market MCP is a freemium MCP server for finance and payments.
- [Agent Roast](https://ai-powered.com/mcp/agent-roast): Agent Roast is an open-source MCP server for developer tools.
- [Midplane](https://ai-powered.com/mcp/midplane): Midplane is an open-source MCP server for databases.
- [Budget Tracker](https://ai-powered.com/mcp/budget-tracker-2): Budget Tracker is a freemium MCP server for finance and payments.
- [Leash](https://ai-powered.com/mcp/leash): Leash is a free MCP server for security.
- [Tinplate Edge AI Safety, Security & EU Compliance](https://ai-powered.com/mcp/tinplate-edge-ai-safety-security-and-eu-compliance): Tinplate Edge AI Safety, Security & EU Compliance is a freemium MCP server for security.

---
Source: https://ai-powered.com/mcp/rohan-protocol-mcp
