# Run agents with Square

Square AI agents on Rush: connect Square once, then name it on any run. The agent works in its own cloud computer, with a record of every run.

[Connect Square](https://cloud.getrush.ai/console/settings/?section=connections) in the console under Settings → Connections.

Run a Square merchant account: process payments, manage orders, catalog/inventory, customers and invoices, and pull sales data.

## What agents do with Square

- [Get a Daily Sales Summary From Square](https://getrush.ai/run/daily-sales-summary/square/)
- [How Can Salon Software Draft a Birthday Message for Each Client in Next Week's Square Customer List? One Agent per Salon](https://getrush.ai/run/draft-birthday-messages-for-next-weeks-clients/square/)
- [Chargeback Response Drafts for Each Square Dispute](https://getrush.ai/run/draft-each-chargeback-response/square/)
- [Which Regulars Haven't Booked in a While? Barbershop Software That Finds Each Shop's Lapsed Clients in Square Appointments](https://getrush.ai/run/find-regulars-who-stopped-booking/square/)
- [Find Each Groomer's Overdue Square Invoices and Draft the Reminders, From Your App](https://getrush.ai/run/follow-up-on-overdue-invoices/square/)
- [Find Square Items to Reorder](https://getrush.ai/run/inventory-reorder-report/square/)
- [Which Refunds Should a Café Owner Look At This Week? Back-Office Software That Reviews Each Customer's Square Refunds](https://getrush.ai/run/review-weekly-refunds-by-location/square/)
- [Tip Pooling From Square Timecards and Card Tips](https://getrush.ai/run/split-each-weeks-tip-pool/square/)
- [Find Your Best Customers in Square](https://getrush.ai/run/top-customers-report/square/)
- [Restaurant Labor Cost Percentage From Square](https://getrush.ai/run/weekly-labor-cost-percentage-by-location/square/)

## How it works

1. **Connect Square once.** Sign in under Settings → Connections. Rush keeps the sign-in; no script or laptop holds a token.
2. **Hand an agent the work.** From the console, on a schedule, or with one API call that names `square`.
3. **Get the result back.** Files, an answer or a PR, with a record of every step the agent took.

## For developers: how Square connects

Square is a remote MCP server, published by Square, at `https://mcp.squareup.com/mcp`. Connecting it signs in through the MCP OAuth flow on Square's side.

From Square: [Square's MCP documentation](https://developer.squareup.com/docs/mcp) · [source code](https://github.com/square/square-mcp-server).

Connect it once in the console under Settings → Connections, or from your server with `POST /me/connections`. The sign-in finishes in a browser signed in to the console as the same person, and a link not finished within 10 minutes expires.

After that, a run that names `square` in `connections`, or runs a saved agent that names it, gets it; your connections reach no run that does not name them.

```http
POST https://api.phoenix.so/me/connections

{
  "type": "mcp",
  "name": "Square",
  "url": "https://mcp.squareup.com/mcp"
}
```

## Whose Square account the agent uses

Your Square connection is personal: it belongs to the person who signed in. A run started in the console uses that person's Square, and a run started with an API key uses the Square of the member who created the key.

To act for your own app's users, make each user an agent from your template and show them, signed in to your app, the sign-in link `POST /o/{org}/agents/{agent}/connections` returns. They sign in to their own Square, and that agent's runs use their account and nothing else: never yours, never another user's.

## More Finance integrations

- [QuickBooks](https://getrush.ai/integrations/quickbooks/)
- [Stripe](https://getrush.ai/integrations/stripe/)
- [PayPal](https://getrush.ai/integrations/paypal/)
- [Ramp](https://getrush.ai/integrations/ramp/)

## Frequently asked questions

### How do I connect Square to Rush?

Open Settings → Connections in the console and connect Square, or send `POST /me/connections` with `{"type":"mcp","name":"Square","url":"https://mcp.squareup.com/mcp"}` and open the `authorize_url` it returns while signed in to the console. The connection reads `pending` until the sign-in finishes, then `connected`.

### Does every run get my Square account?

No. A run gets your Square connection only when it names it in `connections` (`"connections": ["square"]`), or runs a saved agent that names it. A saved agent names its connections once, and every run of it gets them.

### What can an agent do in Square?

Run a Square merchant account: process payments, manage orders, catalog/inventory, customers and invoices, and pull sales data. 10 published jobs use it; this page lists them.

### Can my app's users connect their own Square?

Yes. Make each user an agent from your template, and they sign in to their own Square through the link `POST /o/{org}/agents/{agent}/connections` returns. That agent's runs use their account alone.

## Keep reading

- [AI agents for finance teams: every job and app for them](https://getrush.ai/solutions/finance/)
- [How connections work: sign in once, then every run that names a connection gets it](https://getrush.ai/docs/concepts/connections/)
- [Start your first run from the developer API quickstart](https://getrush.ai/docs/quickstart/)
- [Pricing: one price per member, hours shared by the team](https://getrush.ai/pricing/)
- [How Rush compares with other cloud agents](https://getrush.ai/compare/)
- [Every app and MCP server Rush connects to](https://getrush.ai/integrations/)
