---
title: "Connect a client to Flowie MCP"
description: "Ready-to-paste MCP configuration for Flowie in Claude Code, Claude.ai and Claude Desktop, ChatGPT, Cursor, VS Code, Amazon Quick, Salesforce Agentforce, Oracle AI Agent Studio, the Python and TypeScript SDKs, and plain HTTP, on production and staging."
canonical: "https://docs.get-flowie.com/mcp/connect"
source: "https://docs.get-flowie.com/mcp/connect.html"
---

# Connect a client to Flowie MCP

MCP

# Connect a client

Every configuration below uses the production **App server** unless it says otherwise. For the Exchange API server, replace `/agent-hub/mcp` with `/exchange/mcp`. For staging, replace `back.p2p-flowie.com` with `back.flowie.ink`. Not sure which server? See [Which server do I want?](<index.html#which-server>)

For
    Assistant users and agent developers

Time
    ≈ 2 min per client

You need
    A Flowie login; for machines, an API key or an OAuth client

Updated
    1 Dec 2026

## Claude Code
[code] 
    claude mcp add --transport http flowie-app https://back.p2p-flowie.com/agent-hub/mcp
    claude mcp add --transport http flowie-api https://back.p2p-flowie.com/exchange/mcp
[/code]

Run `/mcp`, pick the server and choose **Authenticate** : a browser opens on the Flowie sign-in page. To share the setup with a project, commit a `.mcp.json`:
[code] 
    {
      "mcpServers": {
        "flowie-app": { "type": "http", "url": "https://back.p2p-flowie.com/agent-hub/mcp" },
        "flowie-api": { "type": "http", "url": "https://back.p2p-flowie.com/exchange/mcp" }
      }
    }
[/code]

With an API key instead of a sign-in (Exchange API server only):
[code] 
    claude mcp add --transport http flowie-api https://back.p2p-flowie.com/exchange/mcp \
      --header "Authorization: Bearer $FLOWIE_API_KEY"
[/code]

A small context window? Add the App server in [Code Mode](<tools.html#code-mode>), three tools instead of the whole app:
[code] 
    claude mcp add --transport http flowie-app "https://back.p2p-flowie.com/agent-hub/mcp?codemode=search_and_execute"
[/code]

## Claude.ai and Claude Desktop

**Settings → Connectors → Add custom connector** , paste the URL, then **Connect** and sign in. You need no client ID and no secret.
[code] 
    https://back.p2p-flowie.com/agent-hub/mcp
[/code]

On a Team or Enterprise plan, an owner adds the connector once for the organization; each person then connects with their own Flowie login.

## ChatGPT

Turn on developer mode, then add a custom connector with the server URL and **OAuth** authentication. ChatGPT registers itself with Flowie, so leave client ID and secret empty. ChatGPT always receives the full tool list; Code Mode doesn't apply.

## Cursor

`~/.cursor/mcp.json` (every project) or `.cursor/mcp.json` (one project), then click **Connect** next to the server:
[code] 
    {
      "mcpServers": {
        "flowie-app": { "url": "https://back.p2p-flowie.com/agent-hub/mcp" }
      }
    }
[/code]

## VS Code

`.vscode/mcp.json`. VS Code uses `"servers"` and `"type": "http"`:
[code] 
    {
      "servers": {
        "flowie-app": { "type": "http", "url": "https://back.p2p-flowie.com/agent-hub/mcp" }
      }
    }
[/code]

## Amazon Quick

Amazon Quick (Enterprise subscription) turns each tool into an action. An admin adds Flowie once and shares it with the team:

  1. In the Amazon Quick console, open **Connectors** → **Create for your team** → **Model Context Protocol (MCP)**.
  2. **Name** : `Flowie`. **MCP server endpoint** : `https://back.p2p-flowie.com/agent-hub/mcp`. **Connection type** and **Auth server connection type** : **Public network**.
  3. Choose **User authentication (OAuth)**. Flowie supports dynamic client registration, so leave client ID and secret empty.
  4. **Create and continue** , sign in on the Flowie page, review the actions, then share the connector.



Each person signs in with their own Flowie account, so actions run with their permissions. Amazon Quick keeps the first 100 tools of a server; both servers list their essential tools first. After Flowie adds tools, choose **Sync** on the connector.

## Salesforce Agentforce and Oracle AI Agent Studio

These platforms connect as a machine, with OAuth 2.0 client credentials: no person signs in. Use the Exchange API server with a machine client of your organization.

  1. An admin of your Flowie organization creates the client with `POST /v1/oauth/clients` (see [Machine clients](<auth.html#machine>)), naming the role it gets. Keep the `clientId` and `clientSecret`: the secret is shown once.
  2. Register the server: **URL** `https://back.p2p-flowie.com/exchange/mcp`, transport **Streamable HTTP** , authentication **OAuth 2.0 client credentials** , **token URL** `https://back.p2p-flowie.com/exchange/v1/oauth/token`, the client ID and secret, scope empty.
  3. **Agentforce:** Setup → Agentforce Registry → add a third-party MCP server, then add its tools to an agent. **Oracle AI Agent Studio:** Tools → add a tool of type MCP → Client Credentials.



Create one client per Flowie organization: over MCP, a token acts on one organization (see [Organizations](<auth.html#organizations>)). On staging, use `back.flowie.ink` in both URLs and a client created on staging.

## Python SDK

The official `mcp` package speaks Streamable HTTP directly:
[code] 
    # pip install mcp
    import asyncio, os
    from mcp import ClientSession
    from mcp.client.streamable_http import streamablehttp_client
    
    URL = "https://back.flowie.ink/exchange/mcp"   # staging
    KEY = os.environ["FLOWIE_API_KEY"]             # a flw_test_… key
    
    async def main():
        async with streamablehttp_client(URL, headers={"Authorization": f"Bearer {KEY}"}) as (read, write, _):
            async with ClientSession(read, write) as session:
                await session.initialize()
                tools = await session.list_tools()
                print(len(tools.tools), "tools")
                result = await session.call_tool(
                    "list_documents", arguments={"direction": "incoming", "limit": 5}
                )
                print(result.content[0].text)
    
    asyncio.run(main())
[/code]

## TypeScript SDK
[code] 
    // npm install @modelcontextprotocol/sdk
    import { Client } from "@modelcontextprotocol/sdk/client/index.js";
    import { StreamableHTTPClientTransport } from "@modelcontextprotocol/sdk/client/streamableHttp.js";
    
    const transport = new StreamableHTTPClientTransport(
      new URL("https://back.flowie.ink/exchange/mcp"),
      { requestInit: { headers: { Authorization: `Bearer ${process.env.FLOWIE_API_KEY}` } } }
    );
    const client = new Client({ name: "my-agent", version: "1.0.0" });
    await client.connect(transport);
    
    const { tools } = await client.listTools();
    console.log(tools.length, "tools");
    const result = await client.callTool({
      name: "list_documents",
      arguments: { direction: "incoming", limit: 5 },
    });
    console.log(result.content[0].text);
[/code]

## Plain HTTP

MCP is JSON-RPC over HTTP `POST`. Send both `Accept` types on every request; the server is stateless, so you need no session header between calls.
[code] 
    curl -s https://back.flowie.ink/exchange/mcp \
      -H "Authorization: Bearer $FLOWIE_API_KEY" \
      -H "Content-Type: application/json" \
      -H "Accept: application/json, text/event-stream" \
      -d '{"jsonrpc":"2.0","id":1,"method":"tools/call",
           "params":{"name":"list_documents","arguments":{"direction":"incoming","limit":5}}}'
[/code]

Use `"method":"tools/list"` (no `params`) to list the tools. Strict clients send `initialize` first. The answer may come back as a Server-Sent Events frame (`event: message`, then `data: {…}`).

## Staging

Same commands on the staging host, signed in with a staging account or with an `flw_test_…` key ([get one](<../sandbox/keys.html>)):
[code] 
    claude mcp add --transport http flowie-app-staging https://back.flowie.ink/agent-hub/mcp
    claude mcp add --transport http flowie-api-staging https://back.flowie.ink/exchange/mcp
[/code]

Keep both environments registered under different names, then say which one to use: _"Use flowie-api-staging to dry-run this."_
