FlowPOS MCP server and API
FlowPOS exposes a merchant's data to AI agents through a Model Context Protocol (MCP) server. An agent reads sales, orders, products, inventory, reports, FEL documents (Guatemala), purchases and implementation projects, and, when the merchant allows it, makes a small set of changes. There is no separate public REST API.
To connect Claude or ChatGPT as a merchant, see Connect AI apps. This page is for developers and agents.
Endpoint
| MCP endpoint | https://api.flowandgrow.tech/mcp |
| Transport | Streamable HTTP (POST, GET for the event stream, DELETE to end a session) |
| Session | Stateful: initialize returns an mcp-session-id header; send it on every later request |
| Machine-readable description | OpenAPI 3.1, API catalog (RFC 9727), llms.txt |
Send initialize, then tools/list, then tools/call. Each tool's description states the scopes it needs.
Authorization
FlowPOS is an OAuth 2.1 authorization server for its MCP endpoint.
- Discovery: protected-resource metadata (RFC 9728) and authorization-server metadata (RFC 8414).
- Flow: authorization code with PKCE (
S256); public clients (token_endpoint_auth_method: none); refresh tokens rotate. - Clients register with dynamic client registration (RFC 7591) or a client ID metadata document. Redirect URIs are limited to an allowlist (today the Claude and ChatGPT connector callbacks).
- The merchant signs in to FlowPOS and approves on a consent page. Tokens are bound to the MCP resource and can be revoked by the merchant at any time.
- An unauthenticated request gets
401withWWW-Authenticate: Bearer resource_metadata="…", scope="pos:read reports:read psa:read".
Other MCP clients can use an API key (fp_mcp_…) that a FlowPOS user creates in the app. Send it as Authorization: Bearer <key>.
Scopes
| Scope | Allows |
|---|---|
pos:read | See products, inventory, sales and orders |
reports:read | See sales, labor and cost reports |
psa:read | See implementation projects |
pos:write | Create orders, void transactions and log implementation hours |
pos:intents | Run multi-step actions on your behalf |
A grant is read-only (pos:read reports:read psa:read) unless the merchant turns on Allow changes, which adds pos:write and pos:intents. A read-only grant still lists the change tools; calling one returns an insufficient_scope challenge in the tool result, and the agent must ask the merchant to reconnect with changes allowed.
What an agent can do
- Read: products, inventory and low-stock alerts, orders, sales, sales and cost reports, labor and prime cost, FEL documents and taxpayer lookups (Guatemala), purchases, implementation projects, daily and period summaries.
- Change (needs
pos:write):create_order: an empty draft restaurant order (dine-in or take-out) at a branch the user is assigned to.void_transaction: deletes a draft retail sale. Withoutconfirm: trueit returns a preview; a submitted sale is never deleted.log_hours: records hours on an hourly implementation step of the active business.
Every call acts as the signed-in user, in one business at a time: a tool never sees another business's data, and a change needs the same role and branch the FlowPOS app would require. Every change is recorded in an audit log.
A user who belongs to several businesses chooses one with set_active_business.
Errors and limits
| Situation | Response |
|---|---|
| No or invalid credential | 401 with WWW-Authenticate |
Unknown or expired mcp-session-id | 404: send initialize again |
| Missing scope for a tool | Tool result with isError and an insufficient_scope challenge |
| Refused by role, branch or business | Tool result with isError and a short reason |
| Too many requests | 429; /mcp is rate limited per client address (on the order of 100 requests per minute) |
Unsupported MCP-Protocol-Version | 400 naming the supported versions |
Rate-limit headers
Every response the limit counted carries the IETF RateLimit headers, so a client can slow down before it is refused:
RateLimit-Policy: "global";q=100;w=60
RateLimit: "global";r=97;t=42
q is the number of requests allowed per window of w seconds, r how many are left, and t the seconds until the window resets. A 429 sets r=0 and adds Retry-After with the seconds to wait. The older X-RateLimit-Limit, X-RateLimit-Remaining and X-RateLimit-Reset headers are still sent.
Versioning
- MCP protocol. Versions are dates (for example
2025-11-25). The client proposes one ininitialize, the server answers with the version it will use, and every later request sends it in theMCP-Protocol-Versionheader. A version the server no longer supports is refused with400and the list of supported versions; it is never silently reinterpreted. - OAuth. The endpoints follow their RFCs (6749, 7591, 7009, 8414, 9728) and change only as those do.
- Tools. The tool list is part of the protocol, not a fixed contract: read
tools/listin each session and check each tool's scopes there rather than caching them.
Deprecation policy
- Additions ship at any time without notice: new tools, new optional input fields, new fields in a result. A client must ignore what it does not know.
- Breaking changes get at least 90 days' notice. That means removing or renaming a tool or an input field, making a tool require a broader scope, changing the meaning of a field, or dropping an MCP protocol version.
- How notice is given:
- Security exception: a change that fixes a vulnerability may ship immediately; it is announced here as soon as possible afterwards.
Changes
No deprecations are in progress.
There is no anonymous sandbox: every call needs a FlowPOS account. To get one, request a demo.