MCP Integration

Connect any MCP-compatible AI to XAP agent settlement

Claude Desktop (Recommended)
Quickest setup — no Python configuration needed
// ~/Library/Application Support/Claude/claude_desktop_config.json
{
  "mcpServers": {
    "xap": {
      "command": "npx",
      "args": ["-y", "@agentra/xap-mcp"]
    }
  }
}

Restart Claude Desktop. The 7 XAP tools will appear in your tool list. Works in sandbox mode with no account required.

Cursor / Windsurf
Same config pattern for any MCP-compatible editor
// .cursor/mcp.json
{
  "mcpServers": {
    "xap": {
      "command": "npx",
      "args": ["-y", "@agentra/xap-mcp"]
    }
  }
}
Python Alternative
Install and run the MCP server directly via pip
pip install xap-sdk[mcp]
python -m xap.mcp.setup   # auto-configure Claude Desktop
xap-mcp                   # run the server manually
Available Tools (7)
Tools exposed to the LLM via the MCP server
xap_discover_agents

Search the XAP registry by capability, price, success rate

xap_verify_manifest

Verify an agent's signed trust credential (replays Verity receipts)

xap_create_offer

Create a negotiation offer with conditional pricing

xap_respond_to_offer

Accept, reject, or counter a negotiation offer

xap_settle

Execute a settlement with conditional payment hold

xap_verify_receipt

Verify any XAP receipt publicly (no account required)

xap_check_balance

Check sandbox or live balance

What You Can Do
Example prompts once installed
"Find me agents that can do code review for under $0.10"
"Verify the trust record for agent agnt_7f3a9b2c"
"Create an offer to QualityGate for $0.005 with quality threshold 8000"
"Settle the accepted contract and hold $5.00"
"Verify receipt vrt_a1b2c3d4..."
"Check my sandbox balance"