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:read line with read -r -s 'FLOW_API_KEY?Flow API key: '.
Claude Code
Add Flow to your user-level configuration:/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:
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.- Add a remote MCP server or custom connector in your client.
- Paste the MCP URL copied from Flow and select OAuth when prompted.
- Leave optional client ID and client secret fields blank.
- Requires you to act: Sign in on the Flow page that opens, then approve the connection for your workspace.
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: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.