---
title: "MCP servers"
description: "Connect Claude, ChatGPT, Cursor, VS Code or your own agent to Flowie over the Model Context Protocol. Two servers: the Flowie app (as the signed-in user) and the Exchange API (every API operation as a tool, for integrations and volume). Endpoints, which one to pick, and how it works."
canonical: "https://docs.get-flowie.com/mcp/"
source: "https://docs.get-flowie.com/mcp/index.html"
---

# MCP servers

MCP

# MCP servers

Flowie publishes two [Model Context Protocol](<https://modelcontextprotocol.io>) servers, on production and on staging. Add one to Claude, ChatGPT, Cursor, VS Code, Claude Code or your own agent, and the assistant can send, receive, find and track e-invoices, or work in the Flowie app, as tool calls.

For
    Anyone using Flowie through an AI assistant, and developers building agents

Time
    ≈ 2 min to connect

You need
    A Flowie login, or an API key for the Exchange API server

Updated
    1 Dec 2026

## Connect in two minutes

Add this URL to your assistant and sign in with your normal Flowie login (SSO and Google included). You need no API key and nothing from Flowie first.
[code] 
    https://back.p2p-flowie.com/agent-hub/mcp
[/code]

In Claude Code, one command:
[code] 
    claude mcp add --transport http flowie-app https://back.p2p-flowie.com/agent-hub/mcp
[/code]

Then run `/mcp`, pick **flowie-app** and choose **Authenticate**. Every other client is on [Connect a client](<connect.html>).

## Which server do I want?

| **App server** — most people want this one| **Exchange API server** — for integrations  
---|---|---  
What it is| The Flowie app as tools: what Flowie's in-app AI agent can do| The Exchange API: one tool per documented operation  
What you do with it| Purchase requests, approvals, tasks, budgets, flows, forms, partners, payments, documents and invoices, organizations| Send, receive, validate and track e-invoices; companies, partners, Peppol and French directory; portability; compliance  
Acts as| You, the signed-in user, with exactly your Flowie permissions| The signed-in user, or the organization an API key or machine client belongs to  
How you connect| Sign-in (OAuth) only| Sign-in, an `flw_*` API key, or OAuth client credentials  
Pace| A person's: 60 requests a minute per user, one object per call| Volume: 120 to 2,400 requests a minute by plan; `batch_send` sends many documents in one call  
  
  * **A person using Flowie through an LLM** (Claude, ChatGPT, Cursor, Claude Code…) wants the **App server**.
  * **A system talking to Flowie** (an ERP, a script, a back end, an automated pipeline, no person in the loop) uses the **Exchange API server** , usually with an API key.



You can add both to the same client. They don't share credentials: an API key works only on the Exchange API server, and the App server accepts only a sign-in. Each server's instructions name the other, so an agent connected to the wrong one is told where to go.

**Creating a document** is one call on either server. On the Exchange API server, `send_document` creates the document, computes its totals and sends it over the network. On the App server, `create_transaction_document` creates it in the Flowie app, totals computed, without sending it anywhere.

## Endpoints

Server| Production| Staging / sandbox  
---|---|---  
**App**| `https://back.p2p-flowie.com/agent-hub/mcp`| `https://back.flowie.ink/agent-hub/mcp`  
**Exchange API**| `https://back.p2p-flowie.com/exchange/mcp`| `https://back.flowie.ink/exchange/mcp`  
  
`back.p2p-flowie.com` is production. `back.flowie.ink` is staging and sandbox: synthetic data and test networks, with a staging account or an `flw_test_…` key. `…/exchange/mcp/full` still answers: it is an alias of the Exchange API server, kept so existing configurations keep working. Use `/exchange/mcp` for new setups.

The transport is **Streamable HTTP** , stateless: every request carries its own token and can land on any server instance, so there is no session to keep alive. The legacy SSE transport is not served.

## How it works

The Exchange API server is a thin layer over the [REST API](<../reference/index.html>). Each tool call becomes one REST request to the same handler, with your `Authorization` header, so authentication, organization scoping, rate limits, errors and the sandbox behave exactly as they do over REST.

  * **Tool name** = the operation's id (`send_document`, `list_documents`, `update_lifecycle`…). **Title** = its summary in the reference.
  * **Arguments** = the operation's path parameters, query parameters and body fields, flattened into one object. `POST /v1/documents/{document_id}/lifecycle` becomes `update_lifecycle({document_id, status, …})`.
  * **Hints** : a `GET` is marked read-only, a `DELETE` destructive, so your client can run reads freely and ask before changes.
  * **Order** : sending and finding invoices come first in `tools/list`. Some clients keep only the head of a long list (Amazon Quick keeps 100 tools).



The App server is Flowie's in-app agent toolset. It acts as you, in the organizations you belong to, and its [Code Mode](<tools.html#code-mode>) trims the tool list to three tools for clients with a small context window.

Every tool of both servers, generated from their own definitions, is on [Tools](<tools.html>): the [App server catalogue](<tools.html#app-catalogue>) and the [Exchange API catalogue](<tools.html#catalogue>).

## Discovery

Registries and agent hosts can find and brand the Exchange API server without reading these pages:

  * **Server card** : `https://back.p2p-flowie.com/exchange/.well-known/mcp/server-card.json` (also served as `server.json`): name, description, version, URL, transport, icon and the tool list.
  * **Sign-in metadata** : an unauthenticated call answers `401` with a `WWW-Authenticate` header that points the client to the OAuth metadata. See [Authentication](<auth.html#sign-in>).
  * **Copy-ready setup** : this section as one Markdown page you can paste into an assistant, [`https://docs.get-flowie.com/mcp.md`](<../mcp.md>).



## In this section

Set up

### [Connect a client](<connect.html>)

Claude Code, Claude.ai and Desktop, ChatGPT, Cursor, VS Code, Amazon Quick, Agentforce, Oracle, Python, TypeScript, plain HTTP.

Security

### [Authentication](<auth.html>)

Sign-in, API keys, machine clients, organizations and permissions.

Reference

### [Tools](<tools.html>)

Every tool of both servers, App and Exchange API, and Code Mode.

Examples

### [Recipes](<recipes.html>)

Prompts and the tool calls behind them: send, find, approve, pay, onboard.

Operate

### [Errors, limits & sandbox](<errors.html>)

What a failed call looks like, rate limits, testing, troubleshooting.
