Skip to main content
Glama
README.md
# base-escrow-mcp

MCP server for AI agents to create and manage P2P escrow deals on Base (ETH or ERC-20).

## Install

```bash
npx -y base-escrow-mcp
```

Or add to your MCP config:

```json
{
  "mcpServers": {
    "base-escrow": {
      "command": "npx",
      "args": ["-y", "base-escrow-mcp"],
      "env": {
        "DEPLOYER_PRIVATE_KEY": "your-private-key",
        "RPC_URL": "https://mainnet.base.org"
      }
    }
  }
}
```

## Tools (8)

| Tool | Description | Auth |
|------|-------------|------|
| `create_escrow` | Create a new escrow deal (ETH or ERC-20) | Key |
| `release_escrow` | Release funds to seller (buyer only) | Key |
| `refund_escrow` | Refund funds to buyer | Key |
| `dispute_escrow` | Flag a dispute on a deal | Key |
| `get_deal` | Get deal details by ID | None |
| `get_buyer_deals` | Get all deals for a buyer address | None |
| `get_seller_deals` | Get all deals for a seller address | None |
| `get_escrow_info` | Get contract info (fee, total deals, treasury) | None |

## How It Works

1. **Buyer creates** an escrow deal, depositing ETH or tokens into the contract
2. **Seller delivers** the goods/services off-chain
3. **Buyer releases** funds to seller, or **refunds** if seller fails to deliver
4. Either party can **dispute** — treasury resolves disputed deals

## Environment Variables

- `DEPLOYER_PRIVATE_KEY` — Required for write operations (create, release, refund, dispute)
- `RPC_URL` — Base RPC endpoint (default: `https://mainnet.base.org`)

## Chain

- **Network:** Base mainnet (chainId 8453)
- **Explorer:** https://basescan.org

## License

MIT

TDQS

A4.2/5.0

Scored across 8 tools

Disambiguation5/5

Each tool has a distinct purpose: get_deal retrieves by ID, get_buyer_deals and get_seller_deals filter by role, get_escrow_info provides contract metadata, and create/release/refund/dispute handle lifecycle actions. No two tools overlap ambiguously.

Naming Consistency5/5

All query tools follow a get_* pattern, and all action tools use the *_escrow suffix. The verb-noun structure is consistent throughout, making the API predictable and easy to navigate.

Tool Count5/5

With 8 tools, the server is well-scoped for an escrow management domain. Each tool covers a core operation or query without redundancy or bloat.

Completeness5/5

The tool set covers the full escrow lifecycle: creation, release, refund, and dispute, along with sufficient query capabilities (by ID, buyer, seller, and contract info). No obvious gaps exist for common use cases.

Maintenance

ActivityInactive
ResponsivenessNo issues