Payment processing and business tools.
## Square MCP Server: Unified Commerce The **Square MCP Server** integrates Square's commerce platform into Google Antigravity, enabling developers to manage payments, inventory, and customers through AI-assisted unified commerce workflows. ### Why Square MCP? - **Unified Platform**: Payments, POS, inventory in one platform - **Omnichannel**: Online and in-person commerce - **Hardware Integration**: POS terminals and card readers - **Financial Services**: Banking and lending for sellers - **Developer Friendly**: Comprehensive APIs and SDKs ### Key Features #### 1. Payment Processing ```javascript // Create payment const payment = await square.createPayment({ sourceId: "card_nonce", idempotencyKey: "unique_key", amountMoney: { amount: 9999, currency: "USD" }, locationId: "location_123", orderId: "order_456" }); // Capture payment await square.completePayment({ paymentId: payment.id }); // Refund payment await square.refundPayment({ paymentId: payment.id, amountMoney: { amount: 4999, currency: "USD" }, reason: "Customer request" }); ``` #### 2. Catalog and Inventory ```javascript // Create catalog item const item = await square.upsertCatalogItem({ idempotencyKey: "unique_key", object: { type: "ITEM", itemData: { name: "Square Product", description: "Sold with Square", variations: [ { type: "ITEM_VARIATION", itemVariationData: { name: "Regular", priceMoney: { amount: 9999, currency: "USD" } } } ] } } }); // Update inventory await square.batchChangeInventory({ idempotencyKey: "unique_key", changes: [ { type: "ADJUSTMENT", adjustment: { catalogObjectId: item.id, locationId: "location_123", quantity: "100" } } ] }); ``` ### Configuration ```json { "mcpServers": { "square": { "command": "npx", "args": ["-y", "@anthropic/mcp-square"], "env": { "SQUARE_ACCESS_TOKEN": "your-access-token", "SQUARE_ENVIRONMENT": "production" } } } } ``` ### Use Cases **Omnichannel Commerce**: Unify online and in-store operations. **Payment Processing**: Accept payments across channels. **Inventory Management**: Track inventory across locations. The Square MCP Server brings unified commerce to your development workflow.
{
"mcpServers": {
"square": {}
}
}