Skip to main content

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 endpointhttps://api.flowandgrow.tech/mcp
TransportStreamable HTTP (POST, GET for the event stream, DELETE to end a session)
SessionStateful: initialize returns an mcp-session-id header; send it on every later request
Machine-readable descriptionOpenAPI 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 401 with WWW-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​

ScopeAllows
pos:readSee products, inventory, sales and orders
reports:readSee sales, labor and cost reports
psa:readSee implementation projects
pos:writeCreate orders, void transactions and log implementation hours
pos:intentsRun 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. Without confirm: true it 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​

SituationResponse
No or invalid credential401 with WWW-Authenticate
Unknown or expired mcp-session-id404: send initialize again
Missing scope for a toolTool result with isError and an insufficient_scope challenge
Refused by role, branch or businessTool result with isError and a short reason
Too many requests429; /mcp is rate limited per client address (on the order of 100 requests per minute)
Unsupported MCP-Protocol-Version400 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 in initialize, the server answers with the version it will use, and every later request sends it in the MCP-Protocol-Version header. A version the server no longer supports is refused with 400 and 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/list in 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:
    • a dated entry under Changes on this page, naming what changes and the removal date;
    • the affected tool's description starts with Deprecated, removed on YYYY-MM-DD;
    • during the notice period, /mcp responses carry the Deprecation (RFC 9745) and Sunset (RFC 8594) headers.
  • 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.