← All integrations

Square MCP server

123 operations0 webhooks

Square's commerce API. Take and refund payments, create orders, payment links and invoices, manage customers, cards, disputes, catalog and inventory, and read locations and merchant settings, in the Square sandbox or in production.

Try Square with your agent

Connect Square, then paste this into Claude, ChatGPT or Cursor. For ideas from other apps, see the use cases.

Using Corsair, show me what you can do in Square on my account, then run one read-only example and show me the result.

Runs once, when you ask

Square tools and triggers

Tools are what your agent can do in Square through Corsair's MCP server. Triggers are the Square events a routine can start from.

Custom Attributes

  • Customer.Bulk UpsertWrite

    Creates or updates custom attributes for customer profiles as a bulk operation.

    customAttributes.customer.bulkUpsert

  • Customer.DeleteDestructive

    Deletes a custom attribute associated with a customer profile. Cannot be undone.

    customAttributes.customer.delete

  • Customer.GetRead-only

    Retrieves a custom attribute associated with a customer profile.

    customAttributes.customer.get

  • Customer.ListRead-only

    Lists the custom attributes associated with a customer profile.

    customAttributes.customer.list

  • Customer.UpsertWrite

    Creates or updates a custom attribute for a customer profile. Pass the same idempotency_key to retry safely.

    customAttributes.customer.upsert

  • Location.Bulk DeleteDestructive

    Deletes custom attributes for locations as a bulk operation. To delete a custom attribute owned by another application, the `visibility` setting must be `VISIBILITY_READ_WRITE_VALUES`. Cannot be undone. Beta in Square's API; it may change.

    customAttributes.location.bulkDelete

  • Location.Bulk UpsertWrite

    Creates or updates custom attributes for locations as a bulk operation. Use this endpoint to set the value of one or more custom attributes for one or more locations. Beta in Square's API; it may change.

    customAttributes.location.bulkUpsert

  • Location.DeleteDestructive

    Deletes a custom attribute associated with a location. To delete a custom attribute owned by another application, the `visibility` setting must be `VISIBILITY_READ_WRITE_VALUES`. Cannot be undone. Beta in Square's API; it may change.

    customAttributes.location.delete

  • Location.GetRead-only

    Retrieves a custom attribute associated with a location. You can use the `with_definition` query parameter to also retrieve the custom attribute definition in the same call. Beta in Square's API; it may change.

    customAttributes.location.get

  • Location.ListRead-only

    Lists the custom attributes associated with a location. You can use the `with_definitions` query parameter to also retrieve custom attribute definitions in the same call. Beta in Square's API; it may change.

    customAttributes.location.list

  • Location.UpsertWrite

    Creates or updates a custom attribute for a location. Use this endpoint to set the value of a custom attribute for a specified location. Pass the same idempotency_key to retry safely. Beta in Square's API; it may change.

    customAttributes.location.upsert

  • Merchant.Bulk DeleteDestructive

    Deletes custom attributes for a merchant as a bulk operation. To delete a custom attribute owned by another application, the `visibility` setting must be `VISIBILITY_READ_WRITE_VALUES`. Cannot be undone. Beta in Square's API; it may change.

    customAttributes.merchant.bulkDelete

Connect Square to Claude, ChatGPT or Cursor

  1. 1

    Connect Square in Corsair

    Add your Square API key or sign in with OAuth once in Corsair. Corsair stores the credential encrypted and makes the Square API calls for your agent, so it never goes into a prompt or a config file. Connect Square

    If your link lets the agent add apps, you can skip this: it gives you a sign-in link the first time it needs Square. On a ChatGPT personal plan, connect Square here first.

  2. 2

    Add Corsair's MCP server to your agent

    Every client uses the same address:

    https://mcp.corsair.dev/mcp
    Open Customize → Connectors → Add custom connector, paste the address, then select Connect.

    Codex, Gemini CLI, VS Code, Zed and other clients with OAuth sign-in work the same way. Clients without it, such as GitHub Copilot's coding agent, use a link's own address and an API key. Setup for every client

  3. 3

    Sign in and choose what needs your approval

    Your client opens Corsair to sign in. Pick a link: the apps your agent can use and a mode that decides what it may do without asking. In the default Cautious mode, Square's read and write operations run right away and its 32 destructive operations wait for your approval. Strict mode asks before every write and refuses destructive operations, and Read mode allows reads only.

FAQ

Install corsair and @corsair-dev/square, add the Square plugin, and connect with an API key or OAuth. Then call methods like corsair.square.api.bookings.getBusinessProfile() from your app. Corsair stores tokens, and keeps each tenant isolated.

Yes. Square supports an API key or OAuth. Use credentials or OAuth scopes that match what you automate. Create them in the Square developer console, then paste into Corsair or connect through managed auth in Hub.

Yes. One Corsair client can hit Square, GitHub, Notion, Stripe, and the rest. Trigger Square from a webhook, push updates to Slack, or chain actions across plugins. Same tenant context across integrations, plain TypeScript.

Teams use Corsair for square's commerce API. Take and refund payments, create orders, payment links and invoices, manage customers, cards, disputes, catalog and inventory, and read locations and merchant settings, in the Square sandbox or in production. Common builds include sync jobs, admin tooling, and agents that call Square APIs from your backend.

The SDK is open source. Self-host and you pay Corsair nothing for the integration layer. Hub bills for hosted auth and execution, not per Square API call. Hub has a generous free tier. For hobby projects you can probably run the whole thing on free. Paid plans start to matter with more tenants or heavier traffic.

We maintain @corsair-dev/square in the open repo. When Square ships API changes, upgrade the package. Your call sites stay typed. You should not need to rewrite the integration layer each time.

No. Corsair does not read your Square data or hold individual access credentials. Credentials stay in your database. API calls run on your instance. We do not store Square data on your behalf.

Yes. Add https://mcp.corsair.dev/mcp as a custom connector or MCP server in Claude, ChatGPT, Cursor, VS Code, Claude Code, Codex or any client that supports remote MCP servers with OAuth sign-in, then sign in to Corsair. On ChatGPT personal plans, custom servers currently get read tools only.

Yes. Put Square on a link in Strict mode and every write waits for your approval, while destructive actions are refused. The default Cautious mode asks only before the 32 destructive Square operations. You can change a link's mode at hub.corsair.dev/me.