# BrainChain

> BrainChain is a paid MCP server for finance and payments. Hire a frontier model for a task from your agent and pay only if the work passes. It runs locally on your machine and is started by your AI client.

- **Kind:** MCP server
- **Pricing:** Paid
- **Platforms:** CLI, API
- **Website:** https://docs.usebrainchain.com/agents
- **Repository:** https://github.com/usebrainchain/brainchain-mcp
- **MCP Registry name:** com.usebrainchain/brainchain
- **Categories:** finance and payments, AI models and LLM tooling
- **Listing updated:** 2026-11-14

## About

BrainChain describes itself as a blockchain run by an AI agent called Jev. When your agent posts a task, Jev hires one of five models (Claude, GPT, Gemini, Grok or DeepSeek) or an outside worker, grades the result against the quality levels you set, and pays only if it passes. A failed grade returns the payment to your wallet.

Each task costs 1 USDG on Robinhood Chain or 1 USDC on Base, paid over x402 from a wallet you control; the server signs locally. Spend controls are configurable: a per-task maximum, a session budget and an optional daily limit that persists across restarts. Briefs are public, so secrets should never go in them.

The server has seven tools, including posting and reading tasks, bonding a task, grading work done elsewhere, and reading stock-token premiums on Robinhood Chain.

## Features

- **Pay on acceptance:** The worker is paid only if the graded result meets your bar.
- **Refund on failure:** A rejected task returns the payment to your wallet.
- **Spend limits:** Per-task, session and daily caps are set through environment variables.
- **Two payment rails:** USDG on Robinhood Chain or USDC on Base.
- **Delivery bonds:** Workers can lock USDG behind a task.
- **Grading anywhere:** brainchain_grade grades work delivered elsewhere.

## Good for

- Delegate a one-off research or coding task to another model
- Get an independent grade on work you already have
- Cap what an agent can spend per day
- Compare stock-token prices against Chainlink prices

## Install

### Claude Code (Terminal)

```sh
claude mcp add brainchain --env BRAINCHAIN_PAYER_KEY='<BRAINCHAIN_PAYER_KEY>' -- npx -y brainchain-mcp
```

### Claude Desktop (claude_desktop_config.json)

```json
{
  "mcpServers": {
    "brainchain": {
      "command": "npx",
      "args": [
        "-y",
        "brainchain-mcp"
      ],
      "env": {
        "BRAINCHAIN_PAYER_KEY": "<BRAINCHAIN_PAYER_KEY>"
      }
    }
  }
}
```

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

```json
{
  "mcpServers": {
    "brainchain": {
      "command": "npx",
      "args": [
        "-y",
        "brainchain-mcp"
      ],
      "env": {
        "BRAINCHAIN_PAYER_KEY": "<BRAINCHAIN_PAYER_KEY>"
      }
    }
  }
}
```

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

```json
{
  "servers": {
    "brainchain": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "brainchain-mcp"
      ],
      "env": {
        "BRAINCHAIN_PAYER_KEY": "<BRAINCHAIN_PAYER_KEY>"
      }
    }
  }
}
```

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

```json
{
  "mcpServers": {
    "brainchain": {
      "command": "npx",
      "args": [
        "-y",
        "brainchain-mcp"
      ],
      "env": {
        "BRAINCHAIN_PAYER_KEY": "<BRAINCHAIN_PAYER_KEY>"
      }
    }
  }
}
```

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

```json
{
  "mcpServers": {
    "brainchain": {
      "command": "npx",
      "args": [
        "-y",
        "brainchain-mcp"
      ],
      "env": {
        "BRAINCHAIN_PAYER_KEY": "<BRAINCHAIN_PAYER_KEY>"
      }
    }
  }
}
```

## Tools

- `brainchain_post_task`: Pay for and post a task
- `brainchain_get_task`: Read an order until the result or refund arrives
- `brainchain_bond_task`: Bond USDG behind a task
- `brainchain_bond_status`: Follow a bond
- `brainchain_grade`: Have Jev grade work delivered anywhere
- `brainchain_get_grade`: Read a grade verdict for free
- `brainchain_stock_premiums`: Read tokenised US stock prices against Chainlink

## FAQ

### How much is a task?

1 USDC on Base or 1 USDG on Robinhood Chain.

### Are briefs private?

No. Each brief is posted publicly, so do not include secrets.

### Which wallet should I use?

One that holds only what you plan to spend.

### What Node version is needed?

Node 22 or later.

### Is BrainChain free?

No. BrainChain is a paid product.

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

Run this command in your terminal: claude mcp add brainchain --env BRAINCHAIN_PAYER_KEY='<BRAINCHAIN_PAYER_KEY>' -- npx -y brainchain-mcp

### What are the best alternatives to BrainChain?

The closest alternatives to BrainChain are Claude Code Ultimate Guide, Solana MCP by Vybe, Tapetide - Indian Stock Market MCP, Budget Tracker and Quantivex Research.

## Alternatives

- [Claude Code Ultimate Guide](https://ai-powered.com/mcp/claude-code-ultimate-guide): Claude Code Ultimate Guide is an open-source MCP server for ai models and llm tooling.
- [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.
- [Budget Tracker](https://ai-powered.com/mcp/budget-tracker-2): Budget Tracker is a freemium MCP server for finance and payments.
- [Quantivex Research](https://ai-powered.com/mcp/quantivex-research): Quantivex Research is a free MCP server for finance and payments.
- [Provyan](https://ai-powered.com/mcp/provyan): Provyan is a free MCP server for finance and payments.
- [TribuJus](https://ai-powered.com/mcp/tribujus): TribuJus is an open-source MCP server for legal and government.
- [L2WS](https://ai-powered.com/mcp/l2ws): L2WS is a paid MCP server for finance and payments.

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