# MCP server: reference for developers

> Two endpoints (API key or OAuth), every tool with its cost, the confirmation flow and config examples.

Source: https://flow-marketing.org/en/help/mcp-server-reference · Question: Which MCP tools are there, what do they cost and how do I connect my client?

The Flow Marketing MCP server has two endpoints with the same tools: one for your own software with an API key and one for AI apps with OAuth sign-in. Every tool calls the REST API internally – scopes, limits, billing and logging are the same.

If a tool costs money in live mode or changes your account, a price card comes first. Only the human can confirm it, never the AI.

## Two endpoints {#eingaenge}

OAuth in detail: discovery via /.well-known/oauth-protected-resource and /.well-known/oauth-authorization-server, clients via Dynamic Client Registration or a Client ID Metadata Document. Access tokens last 1 hour, refresh 30 days with rotation. Only the account owner may approve; up to 20 connections per account.

If an AI app connects without an API account, it pays with your account’s credits. The price card then shows credits and their value in euros; if credits are missing, you get insufficient_credits with a purchase link.

|  | For your own software | For AI apps |
| --- | --- | --- |
| Address | `https://flow-marketing.org/api/turbo/mcp` | `https://flow-marketing.org/mcp` |
| Sign-in | `Authorization: Bearer fm_test_…` or `fm_live_…` | OAuth 2.1 with PKCE (S256), approval in the browser |
| Transport | Streamable HTTP, `POST` only with JSON responses; `GET` → 405 | Streamable HTTP |
| Scopes | the key’s scopes | the scopes granted at approval |
| Mode | by key (test or live) | chosen at approval |
| Limits | 120 messages per minute and IP, batches up to 20, body 64 KB – plus the API limits | API limits plus a monthly cap per connection |

## Calling it directly (JSON-RPC) {#json-rpc}

For tests and your own agents, call the developer endpoint directly. Methods: initialize, ping, tools/list, tools/call, resources/list, resources/templates/list, resources/read, prompts/list, prompts/get. No session is needed.

**initialize**

```bash
curl -s https://flow-marketing.org/api/turbo/mcp \
  -H "Authorization: Bearer $FLOW_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"jsonrpc":"2.0","id":1,"method":"initialize","params":{"protocolVersion":"2025-06-18","capabilities":{},"clientInfo":{"name":"my-script","version":"1.0"}}}'
```

**tools/list**

```bash
curl -s https://flow-marketing.org/api/turbo/mcp \
  -H "Authorization: Bearer $FLOW_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"jsonrpc":"2.0","id":2,"method":"tools/list"}'
```

**tools/call**

```bash
curl -s https://flow-marketing.org/api/turbo/mcp \
  -H "Authorization: Bearer $FLOW_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"jsonrpc":"2.0","id":3,"method":"tools/call","params":{"name":"estimate_price","arguments":{"template":"release-notes","brief":"Version 4.2 brings dark mode."}}}'
```

## Tools: videos {#werkzeuge-filme}

| Tool | Purpose | Cost (live) |
| --- | --- | --- |
| `list_templates`, `get_template` | templates and field schema | free |
| `list_brand_kits`, `get_brand_kit` | saved brand kits | free |
| `estimate_price` | price and length before creating | free |
| `create_video_from_text`, `create_video_from_website` | draft with preview from text or a website | free; with `render: true` a price card for `render_video` follows |
| `upload_document`, `create_video_from_document` | video from PDF, PowerPoint or Word | free (draft) |
| `list_videos`, `get_video`, `get_quality_report` | status, preview, quality check | free |
| `update_video` | change fields; on a finished video the correction round | draft free; correction with a price card depending on the price list |
| `render_video` | start the export | costs – price card (free rebuild without a card) |
| `get_render` | render status and downloads | free |
| `cancel_render` | cancel a render | nothing charged before it starts, stays charged after |
| `create_language_version`, `create_variants` | language version, up to 3 variants | free (drafts) |
| `get_share_link` | link to watch without sign-in | free |
| `create_review_link` | link with comments and approval | free, needs confirmation |
| `upload_file`, `complete_upload` | upload an image, logo or document | free |

## Tools: voice, avatar, AI media {#werkzeuge-stimme}

| Tool | Purpose | Cost (live) |
| --- | --- | --- |
| `list_voices`, `get_voice`, `list_voice_models` | voices, previews, models with price per 1,000 characters | free |
| `estimate_speech` | price of a voice-over | free |
| `create_speech` | turn text into speech (MP3, WAV, OGG with word timings) | costs – price card |
| `list_speech`, `get_speech`, `get_speech_subtitles` | voice-overs, download, SRT and WebVTT | free |
| `get_pronunciations`, `set_pronunciations` | pronunciation dictionary | free |
| `start_voice_clone`, `start_own_avatar` | link to the consent page for an own voice or own avatar | free |
| `list_avatars`, `estimate_avatar_video`, `get_avatar_video`, `list_avatar_videos` | avatars and avatar videos (only when switched on) | free |
| `create_avatar_video` | talking avatar video (only when switched on) | costs – price card |
| `create_image`, `create_clip`, `create_print_photo`, `get_media` | AI image, AI clip, print photo (only when switched on) | creating costs – price card; fetching is free |

## Tools: call assistant, account and billing {#werkzeuge-konto}

| Tool | Purpose | Cost / confirmation |
| --- | --- | --- |
| `list_live_agents`, `get_live_agent`, `list_live_connections`, `list_live_calls` | call assistants, connections, calls | free |
| `create_live_agent` | create an assistant | free |
| `update_live_agent` | change, switch on or off | confirmation; once on, every call minute costs |
| `test_live_agent` | test call in the browser | free |
| `assign_phone_number`, `remove_phone_number` | assign or remove a number | confirmation |
| `get_account`, `list_team` | account, credits, team | free |
| `update_company` | company name and VAT ID | confirmation |
| `create_brand_kit_from_website`, `update_brand_kit` | create or change a brand kit | confirmation |
| `list_api_keys` | see keys (never the secret value) | free |
| `create_api_key`, `rename_api_key`, `revoke_api_key`, `set_spending_limit` | manage keys and the monthly limit | only via a one-time link on the website |
| `invite_member`, `set_member_role`, `remove_member` | manage the team | only via a one-time link on the website |
| `get_balance`, `list_invoices` | balance, limits, invoices | free |
| `buy_credits`, `manage_subscription_link`, `privacy_request_link` | links to purchase, plan, data export and deletion on the website | free – paying or cancelling happens only on the website |
| `ask_flow_help`, `contact_support` | help answers, hand-over to a human | free |

> **Note:** tools/list only shows what you can use right now: tools for features that are not switched on are missing. confirm_action is a button tool for the app interface and invisible to the model.

## Confirmation before costs and changes {#bestaetigung}

- A confirmation is valid for 15 minutes, once, and only for exactly these arguments, this state of the video and this price.
- The question in the client only works for small amounts: up to €2 per step and €10 per day per connection. Deleting, keys, team, limits and anything above that you confirm with the button or the one-time link.
- The button in the price card only exists in apps that promise never to pass the hidden button data to the model. Otherwise the question and the one-time link remain.
- Test mode has no price card; nothing is charged.

1. The tool is called without confirmation_id. In live mode it answers with a price card: code confirmation_required, net and gross price, balance, what is left of the monthly cap, confirmation_id and confirm_url.
2. The AI shows the price to the human. For private customers the final price including VAT applies, with a note on the right of withdrawal.
3. The human confirms in one of three ways: the question in the client, the button in the price card, or the one-time link confirm_url on our website (signed in). A “yes” typed in the chat does not count.
4. Then the AI calls the same tool again with the same arguments and the confirmation_id. The confirmed price acts as the ceiling.

| Answer | Meaning | Next step |
| --- | --- | --- |
| `confirmation_required` | price card, nothing started yet | show the price, the human confirms |
| `awaiting_user_confirmation` (409) | not confirmed yet | point the human to the button or `confirm_url`, then call again with the same `confirmation_id` |
| `declined_by_user` (409) | declined | do nothing |
| `confirmation_invalid` (409) | expired, used, arguments or price changed | call again without `confirmation_id` → new card |

**Price card (shortened, example values)**

```json
{
  "object": "price_confirmation",
  "code": "confirmation_required",
  "tool": "render_video",
  "what": "…",
  "cost": { "cents": 372, "gross_cents": 443, "currency": "eur", "text": "…", "tax_note": "…" },
  "balance_cents": 4210,
  "connection_cap_left_cents": 1628,
  "detail": "Nothing was started or charged yet.",
  "next_step": "Show the user … The user confirms it themselves (button, question or confirm_url) – you cannot. …",
  "confirmation_id": "…",
  "confirm_url": "https://flow-marketing.org/bestaetigen?b=…",
  "expires_in_s": 900
}
```

## Monthly cap per connection {#deckel}

Every AI-app connection that pays with API balance has its own monthly cap: preset to €20.00 plus VAT (€23.80 including VAT). You change it when approving or in your account under “API”. If a step would exceed the cap, the price card says so and nothing starts. The account’s monthly limit and your balance apply on top.

## Results and errors {#ergebnisse}

- Results come as text and as structuredContent. The text starts with a note that it is data, not instructions.
- Errors carry the REST API code and usually a next_step field with the concrete next step.
- Finished videos can bring an embedded player (MCP Apps), plus the preview as a resource_link.

## Setting up AI apps {#einrichtung}

All apps use the same address https://flow-marketing.org/mcp. Step-by-step guides for Claude, ChatGPT, Cursor, VS Code and more are in separate help articles (links below). Any other client with Streamable HTTP and OAuth 2.1 works the same way; for apps we do not list, we have not checked the setup ourselves.

Short version with copy buttons for every app: flow-marketing.org/en/connect-ai.

**Claude Code**

```bash
claude mcp add --transport http --scope user flow-marketing https://flow-marketing.org/mcp
# then inside Claude Code: /mcp → sign in
```

**Cursor: ~/.cursor/mcp.json**

```json
{ "mcpServers": { "flow-marketing": { "url": "https://flow-marketing.org/mcp" } } }
```

**VS Code (GitHub Copilot): .vscode/mcp.json**

```json
{ "servers": { "flow-marketing": { "type": "http", "url": "https://flow-marketing.org/mcp" } } }
```

**Gemini CLI**

```bash
gemini mcp add --transport http --scope user flow-marketing https://flow-marketing.org/mcp
```

**Codex CLI**

```bash
codex mcp add flow-marketing --url https://flow-marketing.org/mcp
codex mcp login flow-marketing
```

**mcp-remote (bridge, Node 18+)**

```json
{ "mcpServers": { "flow-marketing": { "command": "npx", "args": ["-y", "mcp-remote", "https://flow-marketing.org/mcp", "--transport", "http-only"] } } }
```

## See also

- [MCP for developers](https://flow-marketing.org/en/developers/mcp)
- [MCP: costs and confirmation](https://flow-marketing.org/en/help/mcp-costs-and-confirmation)
- [Connect in Claude](https://flow-marketing.org/en/help/mcp-claude)
- [Connect in ChatGPT](https://flow-marketing.org/en/help/mcp-chatgpt)
- [In Cursor and VS Code](https://flow-marketing.org/en/help/mcp-cursor-vs-code)
- [Other apps](https://flow-marketing.org/en/help/mcp-other-apps)
