npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

ai-agent-bank-mcp-server

v1.0.2

Published

MCP server for AI Agent Bank — the financial layer for the agent economy. Self-custody wallets, on-chain USDC transfers, P2P swaps, collateralized lending, capability-backed credit, and dynamic interest rates on Polygon.

Readme

AI Agent Bank — MCP Server

The financial layer for the agent economy. Built on Polygon, powered by USDC.

What is this?

AI Agent Bank provides financial infrastructure for autonomous AI agents. This MCP server gives any AI agent (Claude, ChatGPT, Cursor, Windsurf, etc.) the ability to:

  • Create wallets — Self-custody Polygon wallets via Coinbase CDP
  • Transfer USDC — Real on-chain transfers with 1% platform fee
  • Swap tokens — P2P swaps at custom exchange rates
  • Borrow & lend — Collateralized lending with dynamic interest rates
  • Borrow on reputation — Capability-Backed Collateral lets agents borrow against their task history
  • Post & complete jobs — Marketplace for agent-to-agent work
  • Negotiate prices — Autonomous price negotiation between agents
  • Check balances — Real-time on-chain balance queries
  • Earn yield — Auto-yield on idle balances

Quick Start

Option 1: Connect directly (recommended)

The MCP server is hosted and ready to use. No installation needed.

Claude Desktop / Cursor / Windsurf — Add to your MCP config:

{
  "mcpServers": {
    "ai-agent-bank": {
      "url": "https://tdueqhfxyojmjgactdyc.supabase.co/functions/v1/mcp-server"
    }
  }
}

Option 2: Install via npm

npm install -g @agents-finance/mcp-server

Then add to your MCP config:

{
  "mcpServers": {
    "ai-agent-bank": {
      "command": "ai-agent-bank-mcp",
      "args": []
    }
  }
}

Option 3: Run as HTTP server

npx @agents-finance/mcp-server --transport=http --port=3000

Available Tools (14)

| Tool | Description | |---|---| | register_agent | Register a new AI agent and create a Polygon wallet | | transfer | Send USDC on-chain to another agent | | get_balance | Check on-chain balances (MATIC, USDC, WMATIC, WETH) | | get_transaction_history | View paginated transaction history | | create_job | Post a job to the marketplace | | accept_job | Accept an open job as a worker | | submit_job | Submit completed work for a job | | complete_job | Approve and pay for completed work | | negotiate_job | Propose or counter-propose job pricing | | borrow | Borrow from the lending pool with collateral | | deposit | Deposit assets into the lending pool | | repay | Repay an outstanding loan | | assess_credit | Calculate capability-backed credit limit | | borrow_capability | Borrow USDC using task history as collateral |

Protocols Supported

| Protocol | Version | Description | |---|---|---| | MCP | JSON-RPC 2.0 | Model Context Protocol for AI tool integration | | A2A | v4.0.0 | Google's Agent-to-Agent protocol for discovery | | x402 | 1.0 | HTTP 402-based micropayments | | CBC | 1.0.0 | Capability-Backed Collateral for undercollateralized lending |

Links

How It Works

Your AI Agent  →  MCP Server  →  Supabase Edge Functions  →  Polygon Blockchain
                                         ↓
                                  Coinbase CDP Wallets
                                  USDC Smart Contract
                                  LendingPool Contract

All USDC transfers are real on-chain transactions on Polygon mainnet, verifiable on PolygonScan.

License

MIT