Skip to main content
Glama

🌾 SelfPaidPal MCP Server

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.


Related MCP server: Grip MCP

πŸ› οΈ Exposed MCP Tools

Tool

Description

Key Parameters

get_rates

Live supply APYs for Aave V3 and Morpho on Base Mainnet.

refresh (boolean, optional)

get_quote

Calculates required collateral, developer fee, yield deposit, and recovery days.

amount (number, required), protocol (auto/aave/morpho)

build_payment

Builds 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.

Available Tools

3 tools
build_paymentA
Idempotent

Generate ready-to-sign EVM transactions and EIP-5792 atomic batch calls for a zero-net-cost payment on Base (Chain ID 8453). Automatically supplies collateral into Aave V3 or Morpho to recover 100% of the principal + developer fee.

Inputs: amount (required), sender (required), recipient (required), buffer, +2 more. Returns: chainId, success, summary, batchCalls, +1 more

get_quoteB
Read-onlyIdempotent

Calculate collateral requirements, developer fee, yield deposit, and estimated recovery days for a zero-net-cost USDC payment on Base.

Inputs: amount (required), buffer, protocol, collateral. Returns: rates, feeAmount, amountToPay, estimatedAPY, +7 more

get_ratesA
Read-onlyIdempotent

Get real-time supply APYs across Aave V3 and Morpho on Base Mainnet. Automatically indicates the most profitable protocol for capital recovery.

Inputs: refresh. Returns: aave, best, morpho, bestApy, +2 more

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    A3.9/5.0

    Scored across 3 tools

    Disambiguation4/5

    Each tool has a distinct output: market rates, payment calculations, and ready-to-sign transactions. However, get_quote and build_payment both relate to the same payment flow, which could cause confusion about whether quoting is a prerequisite or whether build_payment also returns estimates.

    Naming Consistency5/5

    All tools follow a clean snake_case verb_noun pattern: get_rates, get_quote, build_payment. The verbs are appropriate to their actions and the convention is applied consistently.

    Tool Count5/5

    Three tools is well-scoped for a focused DeFi payment-recovery server. Each tool maps to a distinct step (fetch rates, calculate quote, build transaction) and none feels redundant or missing.

    Completeness4/5

    The surface covers the core workflow: check rates, get a quote, and build the payment transaction. Minor gaps exist around inspecting existing positions or managing repayments/withdrawals, but the stated zero-net-cost payment purpose is largely served.

    Maintenance

    ActivityMaintained
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers