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
Add this skill
npx mdskills install tipdotmd/tip-md-x402-mcp-serverComprehensive MCP server enabling AI agents to handle crypto tipping via x402 and CDP with excellent documentation
1# [tip.md](https://tip.md) x402 + CDP MCP Server23> **๐ Hackathon Entry**: Transform any AI agent into a payment-enabled tipping agent using x402 payment collection with CDP automatic disbursement.45## ๐ About tip.md67**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:89- **Multiple Blockchains**: Ethereum, Base,Solana, and Bitcoin Lightning Network10- **Direct-to-Wallet Payments**: Tips go straight to your wallet, no custody11- **Simple Integration**: One button, works everywhere markdown is supported12- **4% Platform Fee**: Transparent pricing, we only make money if you do13- **Client-Side Security**: All transactions processed securely in the browser1415This MCP server extends tip.md's functionality by enabling **any AI agent** to facilitate crypto tipping through the innovative x402 + CDP integration.1617## ๐ Quick Demo (No Setup Required)1819**For Judges & Evaluators**: Experience the x402 + CDP tipping flow instantly:2021```bash22git clone https://github.com/xR0am/tip-md-x402-mcp-server.git23cd tip-md-x402-mcp-server24npm install25NODE_ENV=demo npm start26```2728**โ ๏ธ 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](#testing-with-mcp-clients) below).2930## ๐ฏ What This Does3132**Core Innovation**: ANY AI agent + this MCP = instant payment-enabled agent3334- **x402 Payment Collection**: Users pay from dedicated wallets using the x402 payment protocol (Money IN)35- **CDP Automatic Disbursement**: Backend automatically splits payments (96% recipient, 4% platform) via Coinbase Wallet API (Money OUT)36- **MCP Tool Integration**: Works with Claude, ChatGPT, Cursor, or any MCP-compatible agent37- **True Composability**: Transform existing AI workflows into payment-enabled experiences3839### ๐ The Complete Flow40411. **User: "Check balance"** โ Agent: *"47.50 USDC available for tipping"*422. **User asks AI agent**: "Tip @username 5 USDC"433. **x402 Payment Collection**: Agent generates payment request, user pays from dedicated wallet444. **CDP Automatic Disbursement**: Backend splits payment and sends to recipient + platform455. **AI Confirms**: "โ Sent 5 USDC to @username"4647## Architecture: True x402 โ CDP Flow4849### User Payment Flow50```51User โ Dedicated Tipping Wallet โ x402 Payment Collection โ CDP Agent Wallet โ CDP Disburses to Recipient (96%) + Platform (4%)52```5354## ๐ Available MCP Tools5556This MCP server exposes **7 tools** that any AI agent can use:5758### **๐ฐ x402 + CDP Payment Tools (Hackathon Innovation)**59- **`mcp_tip_md_tip_on_base`**: Send USDC tips on Base using x402 payment protocol with CDP automatic disbursement60- **`mcp_tip_md_tip_on_solana`**: Send USDC tips on Solana using x402 payment protocol61- **`mcp_tip_md_check_tipping_balance`**: Check/create your dedicated tipping wallet balance and info6263### **๐ง Wallet Management Tools**64- **`mcp_tip_md_export_tipping_wallet`**: Export your tipping wallet private key (security sensitive)65- **`mcp_tip_md_withdraw_tipping_funds`**: Withdraw USDC from your tipping wallet to any address6667### **๐ User & Network Tools**68- **`mcp_tip_md_get_user_wallet_types`**: Check recipient's supported cryptocurrencies and wallet types69- **`mcp_tip_md_crypto_tipping`**: Manual crypto tipping information for agents with wallet to instruct (Ethereum, Base, Solana - no x402/CDP flow)7071### **๐ฅ System Tools**72- **`mcp_tip_md_ping`**: Health check endpoint7374## ๐งช Testing with MCP Clients7576To see the **actual demo payment functionality**, you need to connect the MCP server to a compatible client:7778### Cursor IDE Setup79801. **Edit your MCP configuration** (`~/.cursor/mcp.json`):81```json82{83 "mcpServers": {84 "tip-md-demo": {85 "command": "node",86 "args": ["dist/mcp-server/src/index.js"],87 "cwd": "/path/to/tip-md-x402-mcp-server",88 "env": {89 "NODE_ENV": "demo"90 }91 }92 }93}94```95962. **Restart Cursor** and look for the ๐จ tools icon97983. **Test the demo**:99 - Type: "Tip user johndoe 5 USDC using base blockchain"100 - Watch the x402 + CDP simulation in action!101102### Claude Desktop Setup1031041. **Install Supergateway** (bridges our HTTP transport to stdio):105```bash106npm install -g supergateway107```1081092. **Configure Claude Desktop** (`~/Library/Application Support/Claude/claude_desktop_config.json`):110```json111{112 "mcpServers": {113 "tip-md-demo": {114 "command": "npx",115 "args": [116 "-y",117 "supergateway",118 "--httpStream",119 "http://localhost:3000/mcp",120 "--outputTransport",121 "stdio"122 ]123 }124 }125}126```1271283. **Start the MCP server** in demo mode:129```bash130NODE_ENV=demo npm start131```1321334. **Restart Claude Desktop** and test with: "Show me available tip.md tools"134135### Other MCP Clients136137For clients supporting HTTP-stream transport:138- **Endpoint**: `http://localhost:3000/mcp` (when running locally)139- **Transport**: HTTP-stream140- **Environment**: Set `NODE_ENV=demo` for simulation mode141142## ๐ ๏ธ Production Integration (Requires Setup)143144For full integration with the tip.md platform:145146### Environment Variables147148Create a `.env` file:149150```bash151# Database Connection (Required for production)152MONGODB_URI=mongodb+srv://username:password@cluster.mongodb.net/database153154# Coinbase Developer Platform (Required for CDP disbursement)155CDP_API_KEY_ID=your_cdp_api_key_id156CDP_API_KEY_SECRET=your_cdp_api_key_secret157158# x402 Configuration (Required for payment collection)159X402_WALLET_PRIVATE_KEY=your_x402_wallet_private_key160161# Optional Configuration162PORT=3000163NODE_ENV=production164LOG_LEVEL=info165```166167### Production Deployment168169```bash170npm install171npm run build172npm start173```174175## ๐๏ธ Technical Architecture176177### x402 Payment Collection178- **Dedicated Wallets**: Each user gets a unique payment wallet179- **Protocol Compliance**: Full x402 specification implementation180181### CDP Automatic Disbursement182- **Smart Splitting**: 96% to recipient, 4% to platform183- **Instant Settlement**: Automated via Coinbase Developer Platform184185### MCP Integration186- **Universal Compatibility**: Works with any MCP-compatible AI agent187- **Structured Responses**: Rich JSON responses for seamless integration188- **Error Handling**: Graceful fallbacks and detailed error messages189190## ๐๏ธ Hackathon Submission Details191192**Challenge**: Coinbase x402 + CDP Integration193**Innovation**: Universal AI agent payment enablement194**Demo Mode**: `NODE_ENV=demo npm start`195**Repository**: https://github.com/xR0am/tip-md-x402-mcp-server196197### Key Differentiators1981991. **Universal Agent Integration**: Any MCP client becomes payment-enabled2002. **Complete Payment Flow**: x402 collection + CDP disbursement in one solution2013. **Zero-Setup Demo**: Judges can evaluate immediately2024. **Production-Ready**: Already integrated with tip.md platform203204## ๐ Learn More205206- **tip.md Platform**: https://tip.md207- **MCP Protocol**: https://modelcontextprotocol.io208- **x402 Specification**: https://docs.coinbase.com/x402209- **Coinbase CDP**: https://docs.cdp.coinbase.com210211## ๐ค Support212213For questions about this hackathon entry:214- **Issues**: Open a GitHub issue215- **Email**: support@tip.md216- **Demo Problems**: Ensure you're testing through an MCP client, not just the server logs217218---219220**Built for the Coinbase x402 + CDP Hackathon** ๐221
Full transparency โ inspect the skill content before installing.