base-escrow-mcp
# 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
Scored across 8 tools
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.
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.
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.
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.