Purpose
tip-md-x402-mcp-server is an MCP (Model Context Protocol) server designed to turn any AI agent into a tipping agent with payment capabilities. It combines the x402 payment protocol (for receiving payments) and Coinbase CDP (Coinbase Developer Platform, for automatic revenue splitting), enabling AI agents to initiate cryptocurrency tips directly.
This project is an extension of the tip.md platform. tip.md itself is a platform that allows developers to receive cryptocurrency tips through buttons embeddable in GitHub READMEs, websites, or any Markdown content, supporting Ethereum, Base, Solana, and the Bitcoin Lightning Network, with tips going directly to the developer's wallet (non-custodial), the platform charging a 4% fee, and transactions handled securely on the browser side.
Main Capabilities
- x402 payment collection: Users pay from a dedicated wallet via the x402 payment protocol (funds inflow).
- CDP automatic revenue splitting: The backend automatically splits payments via the Coinbase Wallet API (96% to the recipient, 4% to the platform) and distributes them (funds outflow).
- MCP tool integration: Can be used with Claude, ChatGPT, Cursor, or any MCP-compatible agent.
- Composability: Turn existing AI workflows into experiences with payment capabilities.
Provided MCP Tools (7 total)
x402 + CDP payment tools
mcp_tip_md_tip_on_base: Send a USDC tip on Base using the x402 payment protocol, with automatic revenue splitting via CDP.mcp_tip_md_tip_on_solana: Send a USDC tip on Solana using the x402 payment protocol.mcp_tip_md_check_tipping_balance: Check or create your dedicated tipping wallet balance and information.
Wallet management tools
mcp_tip_md_export_tipping_wallet: Export the tipping wallet private key (security-sensitive).mcp_tip_md_withdraw_tipping_funds: Withdraw USDC from the tipping wallet to any address.
User and network tools
mcp_tip_md_get_user_wallet_types: Query the cryptocurrencies and wallet types supported by the recipient.mcp_tip_md_crypto_tipping: Provide manual cryptocurrency tipping information for agents that already have a wallet (Ethereum, Base, Solana, without going through the x402/CDP process).mcp_tip_md_ping: Health check endpoint.
Usage
Quick Demo (no configuration required)
Running the server alone will only display logs. To see the demo payment functionality, you need to connect it to an MCP client.
Cursor IDE setup
Edit the MCP configuration (~/.cursor/mcp.json), restart Cursor, then look for the 🔨 tool icon. Test: enter "Tip user johndoe 5 USDC using base blockchain" and observe the x402 + CDP simulation flow.
Claude Desktop setup
Install Supergateway (to bridge HTTP transport to stdio), configure Claude Desktop (~/Library/Application Support/Claude/claude_desktop_config.json), start the MCP server in demo mode, restart Claude Desktop, then test: "Show me available tip.md tools".
Other MCP clients
For clients that support HTTP-stream transport: endpoint http://localhost:3000/mcp(when running locally), transport method HTTP-stream, set the environment variable NODE_ENV=demo to enter simulation mode.
Production Integration (configuration required)
You need to create a .env file and set environment variables for production deployment.
Use Cases
- Developers who want to give AI agents cryptocurrency tipping capabilities.
- Scenarios where tipping buttons are integrated into GitHub READMEs, websites, or Markdown content.
- Payment flows that require automatic revenue splitting (recipient + platform).
- Quickly validating the x402 + CDP payment flow in hackathon or demo environments.
Limitations
- Demo mode (
NODE_ENV=demo) This is a simulated process, not a real payment. - Production integration requires configuring environment variables and connecting to the tip.md platform.
- Exporting a wallet private key is a security-sensitive operation.
- The platform charges a 4% fee.
- The specific supported wallet types and networks are subject to the tool query results.
Technical Architecture
- x402 payment collection: Each user gets a unique payment wallet, with full implementation of the x402 specification.
- CDP automatic split settlement: Smart splitting (96% to the payee, 4% to the platform), with instant settlement via the Coinbase Developer Platform.
- MCP integration: Compatible with any MCP agent, providing structured JSON responses and error handling.
Related Links
- Repository:https://github.com/tipdotmd/tip-md-x402-mcp-server
- tip.md platform:https://tip.md
- MCP protocol:https://modelcontextprotocol.io
- x402 specification:https://docs.coinbase.com/x402
- Coinbase CDP:https://docs.cdp.coinbase.com
- Support email: support@tip.md