Skip to main content

Get your connection details

Requires you to act: Open Settings → API & MCP in Flow and copy the MCP URL. For API-key setup, create a personal API key from the same workspace. The URL has this shape:
Use the complete URL copied from Flow. Keep the key out of prompts, source control, and shared configuration files. For the terminal examples, set the copied URL and enter the key without echoing it. Run these commands in Bash:
In zsh, replace the read line with read -r -s 'FLOW_API_KEY?Flow API key: '.

Claude Code

Add Flow to your user-level configuration:
This command stores the expanded URL and headers locally for your user. Update the stored key when you rotate it. Start Claude Code and open /mcp to check the connection. See the Claude Code MCP documentation for client configuration options.

Codex

Add this block to your user-level ~/.codex/config.toml, replacing the URL with the one copied from Flow. If a flow block already exists, update it:
Launch codex from the terminal where you exported FLOW_API_KEY. The process must have access to that variable each time it starts. After rotating the key, load the replacement value and restart Codex. See the Codex MCP documentation for configuration options.

Flow sign-in

Supported clients such as Claude and ChatGPT can connect through OAuth instead of a manually configured API key.
  1. Add a remote MCP server or custom connector in your client.
  2. Paste the MCP URL copied from Flow and select OAuth when prompted.
  3. Leave optional client ID and client secret fields blank.
  4. Requires you to act: Sign in on the Flow page that opens, then approve the connection for your workspace.
Approval creates a key named MCP connection (<client>). To disconnect, revoke that key in Settings → API & MCP → Your API Keys. If your client does not offer a custom MCP connection, check its account and administrator settings. Clients that support custom HTTP headers can use API-key authentication.

Other MCP clients

Choose Streamable HTTP and use the copied MCP URL. Configure these headers, substituting your key:
For clients that only accept a bearer token, Flow MCP also accepts Authorization: Bearer brd_your_api_key. Configure one authentication method. This bearer-key option applies to MCP; direct REST requests use the API authentication headers. Your MCP client handles protocol initialization and message exchange. The workspace is included in the MCP URL, so you do not add a separate customer header.

Verify access

Ask your client:
The response should list projects accessible to the connected Flow user. Continue with Use Flow tools.

Troubleshoot a connection