Universal payment layer for MCP tools and agents
## PayMCP - Provider-Agnostic Payments The **PayMCP Server** provides a unified payment abstraction layer in Google Antigravity, enabling developers to work with multiple payment providers through a single AI-assisted interface. ### Why PayMCP? - **Provider Agnostic**: Single API for Stripe, PayPal, Braintree, and more - **Easy Migration**: Switch providers without code changes - **Unified Data Models**: Consistent payment and customer structures - **Fallback Support**: Automatic fallback to backup providers - **Normalized Webhooks**: Unified event handling across providers ### Key Features #### 1. Universal Payment Operations ```javascript // Create payment (works with any provider) const payment = await paymcp.createPayment({ provider: "stripe", // or "paypal", "braintree", etc. amount: 9999, currency: "USD", paymentMethod: paymentMethodToken, customer: { email: "customer@example.com" }, metadata: { orderId: "order_123" } }); // Capture payment await paymcp.capturePayment({ paymentId: payment.id, amount: 9999 }); // Refund payment await paymcp.refundPayment({ paymentId: payment.id, amount: 4999, reason: "Customer request" }); ``` #### 2. Multi-Provider Management ```javascript // Create customer across providers const customer = await paymcp.createCustomer({ providers: ["stripe", "paypal"], email: "customer@example.com", name: "John Doe" }); // Sync payment methods await paymcp.syncPaymentMethods({ customerId: customer.id, fromProvider: "stripe", toProvider: "braintree" }); // Get unified transaction history const transactions = await paymcp.getTransactions({ providers: "all", startDate: "2024-12-01", endDate: "2024-12-31" }); ``` ### Configuration ```json { "mcpServers": { "paymcp": { "command": "npx", "args": ["-y", "@anthropic/mcp-paymcp"], "env": { "STRIPE_SECRET_KEY": "...", "PAYPAL_CLIENT_ID": "...", "PAYPAL_SECRET": "...", "BRAINTREE_MERCHANT_ID": "..." } } } } ``` ### Use Cases **Multi-Provider Strategy**: Use multiple payment providers for redundancy. **Provider Migration**: Migrate between providers seamlessly. **Unified Reporting**: Aggregate payment data across providers. The PayMCP Server unifies payment processing across all providers.
{
"mcpServers": {
"paymcp": {
"mcpServers": {
"paymcp": {
"env": {
"STRIPE_SECRET_KEY": "YOUR_STRIPE_SECRET"
},
"args": [
"-y",
"paymcp"
],
"command": "npx"
}
}
}
}
}