PayLock MCP Server
by kgnvsk
README.md
# PayLock MCP Server
Non-custodial SOL escrow for AI agents via [Model Context Protocol](https://modelcontextprotocol.io).
## What is it?
PayLock MCP lets any Claude/Anthropic MCP client create, fund, verify, and release escrow contracts — without a browser, API keys, or custom integration code.
**Fee:** 3% (1.5% founding rate for early adopters)
**Network:** Solana mainnet
**Integration time:** ~5 minutes
## Tools
| Tool | Description |
|------|-------------|
| `paylock_create_contract` | Create escrow contract, get deposit address |
| `paylock_agree_deposit` | Atomic: create + Solana Pay URI (1-click wallet) |
| `paylock_get_contract` | Check contract status |
| `paylock_verify_delivery` | Verify delivery (auto-release if hash matches) |
| `paylock_release_contract` | Release funds to payee |
| `paylock_list_contracts` | List contracts for an agent |
| `paylock_get_stats` | Platform stats (volume, fees, rate) |
| `paylock_create_dispute` | Open a dispute |
| `paylock_submit_evidence` | Submit dispute evidence |
## Installation
```bash
pip install paylock-mcp
```
Or from source:
```bash
cd projects/paylock-mcp
pip install -e .
```
## Claude Desktop Config
Add to `~/.config/claude/claude_desktop_config.json`:
```json
{
"mcpServers": {
"paylock": {
"command": "paylock-mcp",
"env": {
"PAYLOCK_URL": "https://paylock.xyz"
}
}
}
}
```
For local development:
```json
{
"mcpServers": {
"paylock": {
"command": "python",
"args": ["-m", "paylock_mcp.server"],
"env": {
"PAYLOCK_URL": "http://localhost:8767"
}
}
}
}
```
## Usage Example
Once configured, Claude can:
```
User: Create a 0.2 SOL escrow contract for building a Solana program.
Payer: alice@agentmail.to, Payee: bro-agent@agentmail.to
Claude: [calls paylock_agree_deposit]
→ Contract ID: a1b2c3d4
→ Solana Pay URI: solana:HxEFM...?amount=0.2001...
→ QR code: https://api.qrserver.com/...
→ Scan QR or open in Phantom to pay
```
## Flow
```
1. payer calls paylock_agree_deposit → gets solana_pay_uri
2. payer signs in Phantom/Solflare
3. PayLock detects deposit (< 30s)
4. payee delivers work
5. payer calls paylock_verify_delivery with delivery hash
6. funds auto-released to payee
```
## Contract Status Flow
```
pending_deposit → funded → delivered → verified → released
↘ disputed → released/refunded
```
## Environment Variables
| Variable | Default | Description |
|----------|---------|-------------|
| `PAYLOCK_URL` | `http://localhost:8767` | PayLock API endpoint |
## License
MIT
This server cannot be deployed
Maintenance
ActivityInactive
ResponsivenessNo recent community issues