Square Model Context Protocol Server
OfficialSquare Model Context Protocol Server (Beta)
Dieses Projekt folgt dem Model Context Protocol- Standard und ermöglicht KI-Assistenten die Interaktion mit der Connect-API von Square.
Schnellstart
Starten Sie den Square MCP-Server mit npx:
# Basic startup
npx square-mcp-server start
# With environment configuration
ACCESS_TOKEN=YOUR_SQUARE_ACCESS_TOKEN SANDBOX=true npx square-mcp-server start
# local runs
npx /path/to/project/square-mcp-serverErsetzen Sie YOUR_SQUARE_ACCESS_TOKEN durch Ihren tatsächlichen Square-Zugriffstoken. Sie erhalten Ihren Zugriffstoken gemäß der Anleitung unter Square Access Tokens . Sie können vor der Ausführung des Befehls auch Umgebungsvariablen festlegen.
Related MCP server: AI-Assisted CRM MCP Server
Remote-MCP-Server
Square bietet jetzt einen gehosteten Remote-MCP-Server unter:
https://mcp.squareup.com/sseDas Remote-MCP wird empfohlen, da es die OAuth-Authentifizierung verwendet und Ihnen die direkte Anmeldung mit Ihrem Square-Konto ermöglicht, ohne Zugriffstoken manuell erstellen oder verwalten zu müssen.
Konfigurationsoptionen
Umgebungsvariable | Zweck | Beispiel |
| Ihr Square API-Zugriffstoken |
|
| Verwenden Sie die Square-Sandbox-Umgebung |
|
| Verwenden Sie die Square-Produktionsumgebung |
|
| Auf schreibgeschützte Vorgänge beschränken |
|
| Geben Sie die Square-API-Version an |
|
Integration mit KI-Assistenten
Goose-Integration
So konfigurieren Sie den Square MCP-Server mit Goose :
Remote-MCP
Um das Square Remote MCP in Goose zu installieren, klicken Sie auf einem Computer, auf dem Goose installiert ist, auf diese URL:
goose://extension?cmd=npx&arg=mcp-remote&arg=https%3A%2F%2Fmcp.squareup.com%2Fsse&id=square_mcp_production_remote&name=Square%20MCP%20Remote&description=Square%20Production%20MCP%20Remote
Oder kopieren Sie die URL und fügen Sie sie in die Adressleiste Ihres Browsers ein.
# Automatic installation
npx square-mcp-server install
# Get URL for manual installation
npx square-mcp-server get-goose-urlDer install aktualisiert Ihre Goose-Konfiguration automatisch.
Claude Desktop Integration
Informationen zur Claude Desktop-Integration finden Sie im Model Context Protocol Quickstart Guide . Fügen Sie diese Konfiguration zu Ihrer claude_desktop_config.json hinzu:
Remote-MCP
{
"mcpServers": {
"mcp_square_api": {
"command": "npx",
"args": ["mcp-remote", "https://mcp.squareup.com/sse"]
}
}
}Dieser Ansatz ermöglicht Ihnen die direkte Authentifizierung mit den Anmeldeinformationen Ihres Square-Kontos, ohne dass Sie Zugriffstoken verwalten müssen.
Lokales MCP
{
"mcpServers": {
"mcp_square_api": {
"command": "npx",
"args": ["square-mcp-server", "start"],
"env": {
"ACCESS_TOKEN": "YOUR_SQUARE_ACCESS_TOKEN",
"SANDBOX": "true"
}
}
}
}Werkzeugreferenz
Der Square MCP-Server bietet einen optimierten Satz von Tools für die Interaktion mit Square-APIs:
Werkzeug | Beschreibung | Primäre Verwendung |
| Entdecken Sie die für einen Dienst verfügbaren Methoden | Erkundung und Entdeckung |
| Erhalten Sie detaillierte Parameteranforderungen | Anfragevorbereitung |
| Führen Sie API-Aufrufe an Square aus | Durchführen von Operationen |
Servicekatalog
Der Square MCP Server bietet Zugriff auf das komplette API-Ökosystem von Square. Detaillierte Informationen zu den einzelnen Diensten finden Sie in der Square API-Dokumentation :
Service | Beschreibung |
| Apple Pay-Integration |
| Bankkontoverwaltung |
| Benutzerdefinierte Attribute für Buchungen |
| Terminbuchungsverwaltung |
| Zahlungskartenverwaltung |
| Kassenladenverwaltung |
| Katalogverwaltung (Artikel, Kategorien usw.) |
| Kaufabwicklung und Zahlungsabwicklung |
| Benutzerdefinierte Attribute für Kunden |
| Kundengruppierung |
| Kundensegmentierung |
| Kundenmanagement |
| Square-Geräteverwaltung |
| Bearbeitung von Zahlungsstreitigkeiten |
| Ereignisverfolgung |
| Tracking der Geschenkkartenaktivität |
| Geschenkkartenverwaltung |
| Bestandsverfolgung |
| Rechnungsverwaltung |
| Personalmanagement |
| Benutzerdefinierte Attribute für Standorte |
| Standortverwaltung |
| Verwaltung von Treueprogrammen |
| Benutzerdefinierte Attribute für Händler |
| Händlerkontoverwaltung |
| Authentifizierung |
| Benutzerdefinierte Attribute für Bestellungen |
| Auftragsverwaltung |
| Zahlungsabwicklung |
| Auszahlungsmanagement |
| Rückerstattungsmanagement |
| Website-Integration |
| Square Online Code-Integration |
| Abonnementverwaltung |
| Personalmanagement |
| Square Terminal-Verwaltung |
| Lieferantenmanagement |
| Ereignisbenachrichtigungen |
Nutzungsmuster
Für eine optimale Interaktion mit der Square-API über MCP:
Entdecken : Verwenden Sie
get_service_info, um verfügbare Methoden zu erkundenget_service_info(service: "catalog")Verstehen : Verwenden Sie
get_type_info, um Parameteranforderungen zu erfahrenget_type_info(service: "catalog", method: "list")Ausführen : Verwenden Sie
make_api_request, um den Vorgang auszuführenmake_api_request(service: "catalog", method: "list", request: {})
Entwicklung und Debugging
Verwenden des MCP Inspector
Der MCP Inspector bietet eine visuelle Schnittstelle zum Testen:
# Build the project
npm run build
# Start the inspector with the Square MCP Server
npx @modelcontextprotocol/inspector node dist/index.js startEntwicklungs-Workflow
Klonen Sie das Repository
Abhängigkeiten installieren:
npm installEntwicklungsmodus starten:
npm run watchFühren Sie den Server aus:
node dist/index.js startTesten Sie Ihre Änderungen mit dem MCP Inspector
Beitragen
Dieses Repository wird automatisch aus der OpenAPI-Spezifikation von Square generiert. Beiträge sind willkommen, beachten Sie jedoch, dass Änderungen in den Generator, der diesen Code erzeugt, integriert werden müssen. Bitte eröffnen Sie ein Issue, um die vorgeschlagenen Änderungen zu besprechen, bevor Sie einen Pull Request einreichen.
Available Tools
3 toolsget_service_infoA
Get information about a Square API service. Call me before trying to get type info
Inputs: service (required).
get_type_infoA
Get type information for a Square API method. You must call this before calling the make_api_request tool.
Inputs: service (required), method (required).
make_api_requestB
Unified tool for all Square API operations. Be sure to get types before calling. Available services: applepay, bankaccounts, bookingcustomattributes, bookings, cards, cashdrawers, catalog, checkout, customercustomattributes, customergroups, customersegments, customers, devices, disputes, events, giftcardactivities, giftcards, inventory, invoices, labor, locationcustomattributes, locations, loyalty, merchantcustomattributes, merchants, oauth, ordercustomattributes, orders, payments, payouts, refunds, sites, snippets, subscriptions, team, terminal, vendors, webhooksubscriptions.
Inputs: service (required), method (required), request.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 3 tools
Each tool has a distinct and clearly defined role in the workflow (service info, type info, API request), with no overlap in purpose.
All tool names follow a consistent verb_noun pattern (get_service_info, get_type_info, make_api_request), using snake_case throughout.
Three tools is minimal but appropriate for a unified API wrapper, as the tools cover the essential introspection and request workflow.
The tool set covers the full lifecycle: discover services, get type information, and make API requests. No obvious gaps for the intended purpose.
Maintenance
Related MCP Connectors
The Mercado Pago MCP Server implements the Model Context Protocol to provide AI agents and LLMs with access to Mercado Pago's APIs and tools within compatible development environments. It acts as an intermediary that translates Mercado Pago resources into executable functions (tools) that AI applications can invoke to perform actions and automate flows. The server simplifies integration, enables using documentation to implement or improve code, and optimizes operations through natural language interactions without manual implementations.
Spacebring MCP server. Look up members, bookings, invoices, subscriptions, events and more, and take everyday actions such as creating events or replying to support tickets, from MCP-compatible AI assistants that support remote servers with OAuth.
Connect assistants to your workspace knowledge, skills, and work tools.
Connect AI to store orders, products and inventory with scoped access and human approvals.
Related MCP Servers
AlicenseNot gradedqualityDmaintenanceEnables AI assistants to securely interact with Fireblocks services through the Model Context Protocol, supporting transaction management, vault and exchange account queries, network connections, and workspace user management.80 npm10MIT- FlicenseNot gradedqualityDmaintenanceEnables AI agents to perform CRM operations like creating contacts, managing deals, and updating leads through natural language using the Model Context Protocol.4-
- AlicenseAqualityDmaintenanceEnables AI agents to manage crypto payments, stores, products, and orders through the Model Context Protocol.2066 npmMIT
- AlicenseNot gradedqualityDmaintenanceEnables AI assistants to manage CRM prospects, activities, reminders, and mailbox via natural language commands through the Model Context Protocol.3MIT