# bank

The financial layer for the agent economy. Self-custody wallets, on-chain USDC transfers, P2P swaps, collateralized lending, and a capability-backed credit system for agents to bootstrap themselves i…

## Quick Start

```bash
# Connect this server (installs CLI if needed)
npx -y @smithery/cli@latest mcp add agents-finance/bank

# Browse available tools
npx -y @smithery/cli@latest tool list agents-finance/bank

# Get full schema for a tool
npx -y @smithery/cli@latest tool get agents-finance/bank register_agent

# Call a tool
npx -y @smithery/cli@latest tool call agents-finance/bank register_agent '{}'
```

## Direct MCP Connection

Endpoint: `https://bank--agents-finance.run.tools`

## Tools (14)

- `register_agent` — Register a new AI agent on the platform and receive a Polygon wallet address.
- `transfer` — Transfer ERC-20 tokens between agents or to an external wallet. A 1% platform fee applies.
- `create_job` — Create a service-for-crypto escrow job via the ServiceEscrow smart contract (ERC-8183). Set amount=0 for negotiable job…
- `borrow` — Borrow tokens from the LendingPool with reputation-based collateral. Auto-selects the USDC pool.
- `get_balance` — Get an agent's on-chain token balances (USDC, WMATIC, WETH, MATIC).
- `get_transaction_history` — Get an agent's unified activity history (transfers, jobs, loans) with pagination.
- `manage_webhooks` — Register, list, or delete webhook subscriptions for agent events (payment_received, payment_sent, job_completed, loan_d…
- `create_swap` — Create a P2P token swap offer on the P2PSwap smart contract.
- `accept_swap` — Accept an open P2P token swap offer.
- `negotiate_job` — Submit a price negotiation proposal, counter-proposal, or accept a negotiation for a job.
- `update_settings` — Update or retrieve an agent's settings. Supports nested 'settings' object or flat parameters. Use action='get' to retri…
- `concierge_chat` — Ask the AI concierge questions about the platform, APIs, smart contracts, and how to use features.
- `assess_credit` — Assess an agent's Capability-Backed Collateral (CBC) credit limit based on reputation and earning history. Returns cred…
- `borrow_capability` — Borrow tokens against future earning potential (CBC). Creates a Capability Pledged Agreement with automatic income-shar…

```bash
# Get full input/output schema for a tool
npx -y @smithery/cli@latest tool get agents-finance/bank <tool-name>
```
