SelfPaidPal — Autonomous DeFi Payments

Zero-net-cost payments on Base Mainnet powered by automated Aave V3 & Morpho yield farming.

OtherJavaScriptv2.1.3

🌾 SelfPaidPal MCP Server

smithery badge Glama MCP Server npm version MCP Base License: MIT

Model Context Protocol (MCP) server for SelfPaidPal — Autonomous, zero-net-cost payments on Base Mainnet (Chain ID 8453) powered by automated yield farming on Aave V3 and Morpho.

This server provides AI agents (Claude, Cursor, Windsurf, OpenClaw) with tools to analyze yield rates, calculate capital recovery timelines, and construct ready-to-sign EVM transactions and atomic EIP-5792 batch calls.


⚡ Features

  • Zero External Dependencies: Built with native Node.js HTTP/HTTPS modules. Works out-of-the-box on Node 16, 18, 20, and 22+.
  • Non-Custodial: Generates unsigned EVM transaction calldata. Never handles or asks for private keys.
  • 100% Capital Recovery: Computes the exact collateral required to reimburse 100% of the payment and fees over time via DeFi yield.
  • Multi-Protocol Optimization: Automatically selects the most profitable lending protocol between Aave V3 and Morpho on Base.

🛠️ Exposed MCP Tools

ToolDescriptionKey Parameters
get_ratesLive supply APYs for Aave V3 and Morpho on Base Mainnet.refresh (boolean, optional)
get_quoteCalculates required collateral, developer fee, yield deposit, and recovery days.amount (number, required), protocol (auto/aave/morpho)
build_paymentBuilds 4 EVM transactions & EIP-5792 batch calls ready for signing.amount, recipient, sender, protocol

🚀 Installation & Usage

1. Claude Desktop

Add this to your claude_desktop_config.json:

  • macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
  • Windows: %APPDATA%\Claude\claude_desktop_config.json
{
  "mcpServers": {
    "selfpaid": {
      "command": "npx",
      "args": ["-y", "selfpaid-mcp"]
    }
  }
}

Or run from a local clone:

{
  "mcpServers": {
    "selfpaid": {
      "command": "node",
      "args": ["/path/to/selfpaid-mcp/bin/mcp-server.js"]
    }
  }
}

2. Cursor / Windsurf

Add a new MCP server in settings:

  • Name: selfpaid
  • Type: command
  • Command: npx -y selfpaid-mcp

3. Smithery.ai

Install via Smithery CLI:

npx -y @smithery/cli install @al-toninelli/selfpaid-payments --client claude

🌐 Hosted Infrastructure

This client connects to the official SelfPaid Base Mainnet engine:

  • API Endpoint: https://selfpaid.cryptofolio.it
  • Network: Base Mainnet (Chain ID 8453)
  • Tokens Supported: Native USDC (0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913)

⚠️ Risk Disclosure

DeFi deposits carry smart contract, market, and liquidity risks. Transactions on Base Mainnet are irreversible. Principal recovery estimates are dynamic and fluctuate based on market lending yields.

📄 License

MIT License — Copyright (c) 2026 Alessandro Toninelli.

Installation

Source-derived launch command. Check the maintainer’s required arguments and credentials before running:

bash
npx -y selfpaid-mcp

Set up in your AI client

Merge this template into ~/Library/Application Support/Claude/claude_desktop_config.json. Keep existing servers. Add any arguments, credentials, and permissions required by the maintainer; this template has not been install-tested.

json
{
  "mcpServers": {
    "io-github-altoninelli-selfpaid": {
      "command": "npx",
      "args": [
        "-y",
        "selfpaid-mcp"
      ]
    }
  }
}

Restart Claude Desktop completely for changes to take effect. Confirm the server appears connected in the client’s tool list, then try a read-only example from its documentation.

Claude Desktop setup reference

Package

selfpaid-mcpnpm

Compatible MCP Clients

SelfPaidPal — Autonomous DeFi Payments works with any MCP-compatible client. Copy the config snippet from the Configuration section above and add it to the file shown for your client, then restart the application.

  • Claude Desktop~/Library/Application Support/Claude/claude_desktop_config.jsonRestart Claude Desktop completely for changes to take effect.
  • Cursor~/.cursor/mcp.jsonRestart Cursor for changes to take effect.
  • VS Code.vscode/mcp.jsonReload VS Code window for changes to take effect.
  • Windsurf~/.codeium/windsurf/mcp_config.jsonRestart Windsurf for changes to take effect.
  • Claude Code.mcp.jsonSave at the project root, then start Claude Code in that project and review the MCP server approval prompt. Keep real credentials out of shared files.

Learn More