> ## Documentation Index
> Fetch the complete documentation index at: https://docs.flexwash.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Claude Code

> Pull live FlexWash data into Claude Code for analysis, spreadsheets, and custom reports.

[Claude Code](https://claude.com/claude-code) is Anthropic's AI assistant for
the terminal. With the [FlexWash MCP server](/marketing-and-ai/ai-assistants/mcp-server),
Claude Code can run your FlexWash reports and work with the results: combine
reports, export them to CSV or Excel, or build a custom analysis across all
your sites.

If you prefer a chat app, use [Claude on desktop or the web](/marketing-and-ai/ai-assistants/claude-desktop-and-web)
instead. It uses the same FlexWash data and needs no command line.

## Requirements

* **A FlexWash admin account.** Only admin users can connect. Claude Code sees
  the same car washes and data you can see in FlexWash.
* **Claude Code** installed and signed in. See
  [Anthropic's setup guide](https://code.claude.com/docs/en/setup).

> [!NOTE]
>
> The connector is read-only. Claude Code can run FlexWash reports, but it
> cannot change memberships, customers, prices, or any other data.

## Connect FlexWash

**1. Add the FlexWash server**

Run this command in your terminal:

```bash theme={null}
claude mcp add --transport http --scope user flexwash https://api.flexwash.com/mcp \
  --client-id tpc_iLMY7idKBooEgqjHxd9nEj --callback-port 53782
```

`--scope user` makes FlexWash available in every folder you open with
Claude Code. Leave it out to add FlexWash to the current folder only.

**2. Sign in with FlexWash**

Start Claude Code with `claude`, then type `/mcp`. Select **flexwash** and
choose **Authenticate**.

Your browser opens the FlexWash sign-in page. Sign in with your FlexWash
email and password, then allow Claude Code to access your FlexWash account.

**3. Confirm the connection**

Return to the terminal. `/mcp` shows **flexwash** as connected.

> [!WARNING]
>
> Sign-in uses port `53782` on your computer for a few seconds. If another
> program is using that port, sign-in fails. Close the other program and try
> again.

## Ask a Question

Ask Claude Code about your car wash, for example:

* "Export last month's new memberships by site to a CSV."
* "Compare churn across all sites for the last six months and chart it."
* "Find the 10 customers with the most washes this quarter."

## Usage Limits

Each request can run several FlexWash reports. To protect performance, each
user can run up to **30 reports per minute** and **1,000 reports per day**. If
you reach a limit, Claude Code tells you how long to wait.

## Disconnect

To sign out, type `/mcp`, select **flexwash**, and choose **Clear
authentication**. To remove the server completely, run:

```bash theme={null}
claude mcp remove flexwash --scope user
```

## Troubleshooting

| Problem | Solution |
| - | - |
| `/mcp` shows flexwash as failed after sign-in | Your FlexWash user must be an admin. Ask your FlexWash administrator to check your access. |
| The browser shows a callback error | Check that you added the server with `--callback-port 53782`, then run the add command again. |
| Sign-in never returns to the terminal | Another program is using port `53782`. Close it and authenticate again. |
| Claude Code says a limit was reached | Wait the number of seconds shown, then try again. |


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.