tip.md x402 + CDP MCP Server

tip.md x402 + CDP MCP Server

Enables AI agents to facilitate crypto tipping with x402 payment collection and CDP disbursement.

9
Stars
4
Forks
9
Watchers
1
Issues
tip.md x402 + CDP MCP Server transforms any AI agent into a payment-enabled tipping agent by integrating x402 payment collection with automatic CDP disbursement. It provides a suite of 7 MCP-compatible tools for managing crypto tipping, wallet operations, and payment flows across multiple blockchains. The server supports direct-to-wallet transactions with transparent fees and composability for various AI workflows. Designed to work seamlessly with AI agents and MCP clients, it simplifies the process of sending and managing tips in cryptocurrency.

Key Features

Enables crypto tipping through AI agents
Supports x402 payment collection protocol
Automatic CDP-based payment disbursement
Multi-chain support: Ethereum, Base, Solana, Bitcoin Lightning
Direct-to-wallet, non-custodial transactions
Seven MCP-compatible tool endpoints
Dedicated wallet creation and management
Export and withdrawal functionality for wallets
Payment request generation and balance checks
Platform fee automation and split payout

Use Cases

Allowing users to tip AI agents or developers with crypto
Automating payment collection and distribution for content creators
Embedding crypto tipping features into chatbots and virtual assistants
Creating composable, payment-enabled AI workflows
Facilitating transparent, direct-to-wallet transactions for digital services
Managing crypto wallet balances and exports for users
Automated multi-party payout (recipient and platform) on successful tips
Providing health checks and manual ticking flows for system reliability
Seamless integration of payment functionality into IDEs like Cursor
Querying and verifying supported crypto wallets for tipping recipients

README

tip.md x402 + CDP MCP Server

๐Ÿ† Hackathon Entry: Transform any AI agent into a payment-enabled tipping agent using x402 payment collection with CDP automatic disbursement.

๐ŸŒŸ About tip.md

tip.md is a platform that allows developers to receive cryptocurrency tips directly to their wallets via a simple button embeddable in GitHub READMEs, websites, or any markdown content. It supports:

  • Multiple Blockchains: Ethereum, Base,Solana, and Bitcoin Lightning Network
  • Direct-to-Wallet Payments: Tips go straight to your wallet, no custody
  • Simple Integration: One button, works everywhere markdown is supported
  • 4% Platform Fee: Transparent pricing, we only make money if you do
  • Client-Side Security: All transactions processed securely in the browser

This MCP server extends tip.md's functionality by enabling any AI agent to facilitate crypto tipping through the innovative x402 + CDP integration.

๐Ÿš€ Quick Demo (No Setup Required)

For Judges & Evaluators: Experience the x402 + CDP tipping flow instantly:

bash
git clone https://github.com/xR0am/tip-md-x402-mcp-server.git
cd tip-md-x402-mcp-server
npm install
NODE_ENV=demo npm start

โš ๏ธ Important: The server running alone shows logs, but to see the demo payment functionality, you need to connect it to an MCP client (see Testing with MCP Clients below).

๐ŸŽฏ What This Does

Core Innovation: ANY AI agent + this MCP = instant payment-enabled agent

  • x402 Payment Collection: Users pay from dedicated wallets using the x402 payment protocol (Money IN)
  • CDP Automatic Disbursement: Backend automatically splits payments (96% recipient, 4% platform) via Coinbase Wallet API (Money OUT)
  • MCP Tool Integration: Works with Claude, ChatGPT, Cursor, or any MCP-compatible agent
  • True Composability: Transform existing AI workflows into payment-enabled experiences

๐Ÿ”„ The Complete Flow

  1. User: "Check balance" โ†’ Agent: "47.50 USDC available for tipping"
  2. User asks AI agent: "Tip @username 5 USDC"
  3. x402 Payment Collection: Agent generates payment request, user pays from dedicated wallet
  4. CDP Automatic Disbursement: Backend splits payment and sends to recipient + platform
  5. AI Confirms: "โœ… Sent 5 USDC to @username"

Architecture: True x402 โ†’ CDP Flow

User Payment Flow

User โ†’ Dedicated Tipping Wallet โ†’ x402 Payment Collection โ†’ CDP Agent Wallet โ†’ CDP Disburses to Recipient (96%) + Platform (4%)

๐Ÿ“‹ Available MCP Tools

This MCP server exposes 7 tools that any AI agent can use:

๐Ÿ’ฐ x402 + CDP Payment Tools (Hackathon Innovation)

  • mcp_tip_md_tip_on_base: Send USDC tips on Base using x402 payment protocol with CDP automatic disbursement
  • mcp_tip_md_tip_on_solana: Send USDC tips on Solana using x402 payment protocol
  • mcp_tip_md_check_tipping_balance: Check/create your dedicated tipping wallet balance and info

๐Ÿ”ง Wallet Management Tools

  • mcp_tip_md_export_tipping_wallet: Export your tipping wallet private key (security sensitive)
  • mcp_tip_md_withdraw_tipping_funds: Withdraw USDC from your tipping wallet to any address

๐Ÿ” User & Network Tools

  • mcp_tip_md_get_user_wallet_types: Check recipient's supported cryptocurrencies and wallet types
  • mcp_tip_md_crypto_tipping: Manual crypto tipping information for agents with wallet to instruct (Ethereum, Base, Solana - no x402/CDP flow)

๐Ÿฅ System Tools

  • mcp_tip_md_ping: Health check endpoint

๐Ÿงช Testing with MCP Clients

To see the actual demo payment functionality, you need to connect the MCP server to a compatible client:

Cursor IDE Setup

  1. Edit your MCP configuration (~/.cursor/mcp.json):
json
{
  "mcpServers": {
    "tip-md-demo": {
      "command": "node",
      "args": ["dist/mcp-server/src/index.js"],
      "cwd": "/path/to/tip-md-x402-mcp-server",
      "env": {
        "NODE_ENV": "demo"
      }
    }
  }
}
  1. Restart Cursor and look for the ๐Ÿ”จ tools icon

  2. Test the demo:

    • Type: "Tip user johndoe 5 USDC using base blockchain"
    • Watch the x402 + CDP simulation in action!

Claude Desktop Setup

  1. Install Supergateway (bridges our HTTP transport to stdio):
bash
npm install -g supergateway
  1. Configure Claude Desktop (~/Library/Application Support/Claude/claude_desktop_config.json):
json
{
  "mcpServers": {
    "tip-md-demo": {
      "command": "npx",
      "args": [
        "-y",
        "supergateway",
        "--httpStream",
        "http://localhost:3000/mcp",
        "--outputTransport",
        "stdio"
      ]
    }
  }
}
  1. Start the MCP server in demo mode:
bash
NODE_ENV=demo npm start
  1. Restart Claude Desktop and test with: "Show me available tip.md tools"

Other MCP Clients

For clients supporting HTTP-stream transport:

  • Endpoint: http://localhost:3000/mcp (when running locally)
  • Transport: HTTP-stream
  • Environment: Set NODE_ENV=demo for simulation mode

๐Ÿ› ๏ธ Production Integration (Requires Setup)

For full integration with the tip.md platform:

Environment Variables

Create a .env file:

bash
# Database Connection (Required for production)
MONGODB_URI=mongodb+srv://username:password@cluster.mongodb.net/database

# Coinbase Developer Platform (Required for CDP disbursement)
CDP_API_KEY_ID=your_cdp_api_key_id
CDP_API_KEY_SECRET=your_cdp_api_key_secret

# x402 Configuration (Required for payment collection)
X402_WALLET_PRIVATE_KEY=your_x402_wallet_private_key

# Optional Configuration
PORT=3000
NODE_ENV=production
LOG_LEVEL=info

Production Deployment

bash
npm install
npm run build
npm start

๐Ÿ—๏ธ Technical Architecture

x402 Payment Collection

  • Dedicated Wallets: Each user gets a unique payment wallet
  • Protocol Compliance: Full x402 specification implementation

CDP Automatic Disbursement

  • Smart Splitting: 96% to recipient, 4% to platform
  • Instant Settlement: Automated via Coinbase Developer Platform

MCP Integration

  • Universal Compatibility: Works with any MCP-compatible AI agent
  • Structured Responses: Rich JSON responses for seamless integration
  • Error Handling: Graceful fallbacks and detailed error messages

๐ŸŽ–๏ธ Hackathon Submission Details

Challenge: Coinbase x402 + CDP Integration Innovation: Universal AI agent payment enablement Demo Mode: NODE_ENV=demo npm start Repository: https://github.com/xR0am/tip-md-x402-mcp-server

Key Differentiators

  1. Universal Agent Integration: Any MCP client becomes payment-enabled
  2. Complete Payment Flow: x402 collection + CDP disbursement in one solution
  3. Zero-Setup Demo: Judges can evaluate immediately
  4. Production-Ready: Already integrated with tip.md platform

๐Ÿ“š Learn More

๐Ÿค Support

For questions about this hackathon entry:

  • Issues: Open a GitHub issue
  • Email: support@tip.md
  • Demo Problems: Ensure you're testing through an MCP client, not just the server logs

Built for the Coinbase x402 + CDP Hackathon ๐Ÿ†

Star History

Star History Chart

Repository Owner

tipdotmd
tipdotmd

Organization

Repository Details

Language TypeScript
Default Branch main
Size 25,868 KB
Contributors 3
MCP Verified Nov 12, 2025

Programming Languages

TypeScript
93.37%
JavaScript
6.63%

Tags

Join Our Newsletter

Stay updated with the latest AI tools, news, and offers by subscribing to our weekly newsletter.

We respect your privacy. Unsubscribe at any time.

Related MCPs

Discover similar Model Context Protocol servers

  • Armor Crypto MCP

    Armor Crypto MCP

    Unified crypto API for integrating AI agents with multi-chain blockchain tools

    Armor Crypto MCP provides a centralized solution for integrating AI agents with the crypto ecosystem, supporting wallet management, swaps, staking, and a variety of trading operations across several blockchains. It streamlines access to Solana in its alpha version and aims to support a wide range of blockchains including Ethereum, Avalanche, and Bitcoin. The platform enables agents to perform complex crypto operations using standardized interfaces and seamless configuration with agentic frameworks such as Claude Desktop, Cline, and n8n. Designed for ease of integration and multi-chain compatibility, it offers advanced features like DCA, stop loss, and cross-chain transactions.

    • โญ 184
    • MCP
    • armorwallet/armor-crypto-mcp
  • Base MCP Server

    Base MCP Server

    An extensible onchain Model Context Protocol (MCP) server for AI application integrations on Base and Coinbase.

    Base MCP Server is an implementation of the Model Context Protocol (MCP) that equips AI applications with onchain tools for interacting with the Base Network and Coinbase API. It offers capabilities such as wallet management, onchain transfers, smart contract interactions, ERC20 and NFT handling, and integration with external services like OpenRouter and Morpho. Its architecture is designed for easy extension, enabling the addition of third-party protocols, tools, and data sources via a modular plugin system.

    • โญ 317
    • MCP
    • base/base-mcp
  • NWC MCP Server

    NWC MCP Server

    Bridge your Bitcoin Lightning wallet with LLMs using Nostr Wallet Connect.

    NWC MCP Server enables users to connect Bitcoin Lightning wallets to language models through Nostr Wallet Connect (NWC) and NIP-47 protocols. It leverages the official Model Context Protocol (MCP) TypeScript SDK and supports various transport modes such as STDIO, HTTP streamable, and SSE. The solution can be integrated with platforms like N8N, Claude Desktop, Goose, and Cline, and allows authentication and context management using NWC connection secrets. Although now deprecated in favor of Alby MCP, it provides tooling for leveraging Lightning payment workflows within AI agent interactions.

    • โญ 12
    • MCP
    • getAlby/nwc-mcp-server
  • Alby Bitcoin Payments MCP Server

    Alby Bitcoin Payments MCP Server

    Connect Bitcoin Lightning wallets to LLMs using Nostr Wallet Connect within the Model Context Protocol framework.

    Alby Bitcoin Payments MCP Server provides a way to integrate Bitcoin Lightning wallets with large language models (LLMs) via the Model Context Protocol (MCP). This server supports Nostr Wallet Connect (NWC), LNURL, and L402, enabling secure payment and authentication flows. Leveraging the official MCP TypeScript SDK along with Alby SDKs and tools, it allows agents and clients to interact with lightning wallets using various transport protocols like SSE and HTTP Streamable. The server can be integrated with tools such as Claude, Goose, and Cline for seamless wallet operations within AI workflows.

    • โญ 36
    • MCP
    • getAlby/mcp
  • MCP XRPL Server

    MCP XRPL Server

    Unified Model Context Protocol server for seamless AI-driven interaction with the XRP Ledger.

    MCP XRPL Server provides a comprehensive Model Context Protocol implementation for the XRP Ledger, enabling AI agents to access blockchain services seamlessly across MainNet, TestNet, and DevNet. It offers an extensive suite of features including account management, token transfers, NFT operations, DIDs, AMM operations, and oracle interactions, all via a standardized MCP interface. The server supports context-driven interactions, making XRPL functionality readily accessible for AI-powered agents.

    • โญ 5
    • MCP
    • RomThpt/mcp-xrpl
  • Wallet Inspector MCP

    Wallet Inspector MCP

    Empowering AI agents to inspect wallet balances and onchain activity across multiple blockchains.

    Wallet Inspector MCP is an MCP server that enables AI agents to query wallet balances and view onchain activity on major EVM chains as well as the Solana blockchain. It supports flexible output formats, multi-chain querying, and is designed for integration with MCP-compatible clients such as Claude Desktop CLI. The tool facilitates secure, natural language interactions to check balances, activities, and transaction histories for any supported wallet address.

    • โญ 7
    • MCP
    • kukapay/wallet-inspector-mcp
  • Didn't find tool you were looking for?

    Be as detailed as possible for better results