> For the complete documentation index, see [llms.txt](https://docs.flowlity.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.flowlity.com/ai-and-automations/co-planner/mcp.md).

# Co-planner in your AI tools (MCP)

Use the Co-planner from your own AI assistant (Claude, ChatGPT or Microsoft Copilot Studio) by connecting it to Flowlity through MCP.

The Co-planner is built into the Flowlity app: see [Co-planner](/ai-and-automations/co-planner.md). If you prefer to work from your own AI assistant, you can connect it to Flowlity through MCP (Model Context Protocol), an open standard that lets an assistant use external tools. Your assistant then reads your Flowlity data the way the Co-planner does, next to your other tools, such as your CRM or spreadsheets.

{% hint style="info" %}
Supported assistants: **Claude** (web, desktop and Claude Code), **ChatGPT**, and **Microsoft Copilot Studio**, which also publishes to Microsoft 365 and Teams.
{% endhint %}

{% embed url="<https://app.arcade.software/share/McpxHRqhSSnSKnhrxSyV>" %}
See the Flowlity MCP server in action
{% endembed %}

## What your assistant can do

**Read your data**, for the sites and products your account can see:

* stock levels, stock coverage and stock history
* demand, forecasts, forecast accuracy and My Forecast history
* orders, order alerts, stockouts without firm orders, and a weekly supply review
* product details, planning, and product, supplier and tag constraints
* KPIs, trends, alerts and capacity
* promotions and their results, customers, end-of-life items, comments and saved views

**Make a few changes**, and only these:

* create promotions and forecast events
* create saved views, and change or delete the views you created
* publish a result as a web page and give you its link (without changing your Flowlity data)

It cannot validate or change orders, edit forecast values by hand, or change settings.

**Follow Flowlity's procedures** for recurring jobs, such as a weekly replenishment review. See [Skills](/ai-and-automations/co-planner/mcp/skills.md).

## Before you start

* A Flowlity account. Your assistant sees exactly what this account sees in the app.
* Access to Claude, ChatGPT or Microsoft Copilot Studio, on a plan that allows custom connectors.
* The Flowlity server URL: `https://co-planner.app.flowlity.com/mcp`

## How to connect Claude

{% stepper %}
{% step %}

### Add a custom connector

On [claude.ai](https://claude.ai), open **Settings** > **Connectors** and click **Add custom connector**.
{% endstep %}

{% step %}

### Fill in the connector

Enter `Flowlity` as the name and `https://co-planner.app.flowlity.com/mcp` as the server URL. Leave the advanced settings empty unless your Customer Success Manager gave you a client ID. Click **Add**.
{% endstep %}

{% step %}

### Sign in

Click **Connect** and sign in with the same email as your Flowlity account.
{% endstep %}

{% step %}

### Check the connection

Start a new conversation and ask "List all my Flowlity sites". If your sites appear, the connection works.
{% endstep %}
{% endstepper %}

## How to connect ChatGPT

{% stepper %}
{% step %}

### Turn on developer mode

On [chatgpt.com](https://chatgpt.com), open **Settings**, go to the advanced settings and turn on **Developer mode**.
{% endstep %}

{% step %}

### Create the app

In **Apps**, create a new app and enter `https://co-planner.app.flowlity.com/mcp` as the server URL. Sign-in is detected automatically: no client ID is needed.
{% endstep %}

{% step %}

### Sign in and check

Authorize with your Flowlity account, then ask "List all my Flowlity sites".
{% endstep %}
{% endstepper %}

## How to connect Microsoft Copilot Studio and Teams

Copilot Studio adds Flowlity as a tool of a custom agent, which you can then publish to Microsoft 365 and Teams.

{% stepper %}
{% step %}

### Create an agent

Skip this if you already have one. Give it a name, for example `coplanner`, and click **Create**.

<figure><img src="https://1706504082-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fqoq879Ev7JtRbqynigdG%2Fuploads%2Fgit-blob-da4d4839ccd49529084a31707e80d7cde0c20bef%2Fmcp-copilot-01-create-agent.png?alt=media" alt="Copilot Studio dialog to name and create a new agent"><figcaption></figcaption></figure>
{% endstep %}

{% step %}

### Add a tool

Open the agent's **Tools** tab and click **Add a tool**.

<figure><img src="https://1706504082-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fqoq879Ev7JtRbqynigdG%2Fuploads%2Fgit-blob-01f1f476f93b0401ad3259a80eb26a366780b030%2Fmcp-copilot-02-add-tool.png?alt=media" alt="Copilot Studio Tools tab with the Add a tool button"><figcaption></figcaption></figure>
{% endstep %}

{% step %}

### Choose MCP

In the **Add tool** dialog, choose **Add new MCP**.

<figure><img src="https://1706504082-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fqoq879Ev7JtRbqynigdG%2Fuploads%2Fgit-blob-ae18494c5fe9f6efd67821d5ee2022f87cd07489%2Fmcp-copilot-03-add-mcp.png?alt=media" alt="Add tool dialog with the Add new MCP option highlighted"><figcaption></figcaption></figure>
{% endstep %}

{% step %}

### Describe the Flowlity server

Fill in the **Model Context Protocol server** form:

* **Server name**: for example `flowlity mcp`.
* **Server description**: for example `Flowlity Co-planner, for data analysis on Flowlity's data.`
* **Server URL**: `https://co-planner.app.flowlity.com/mcp`
* **Authentication**: **OAuth 2.0**, type **Dynamic discovery**.

<figure><img src="https://1706504082-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fqoq879Ev7JtRbqynigdG%2Fuploads%2Fgit-blob-e38394c2b068c6db4ce1b3043e4cd3225cb81796%2Fmcp-copilot-04-add-server.png?alt=media" alt="Add a Model Context Protocol server form with name, description, URL and OAuth 2.0"><figcaption></figcaption></figure>
{% endstep %}

{% step %}

### Create the connection

Under **Connection**, click **Create new connection**. On the sign-up page, create your account with the same email as your Flowlity account, verify your email, then come back and sign in.

<figure><img src="https://1706504082-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fqoq879Ev7JtRbqynigdG%2Fuploads%2Fgit-blob-61a366dd626830510daea05e17d6564dd127259d%2Fmcp-copilot-05-create-connection.png?alt=media" alt="Add tool screen prompting to create a new connection for the Flowlity MCP server"><figcaption></figcaption></figure>
{% endstep %}

{% step %}

### Publish to Microsoft 365 and Teams

Open the **Channels** tab, select **Microsoft 365 and Microsoft Teams**, turn on **Make available in Microsoft 365 Copilot**, then publish.

<figure><img src="https://1706504082-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fqoq879Ev7JtRbqynigdG%2Fuploads%2Fgit-blob-fe02278bfe8ed47844e17ad8ab40c0106db26faa%2Fmcp-copilot-06-enable-teams-1.png?alt=media" alt="Copilot Studio agent navigation with the Channels tab highlighted"><figcaption></figcaption></figure>

<figure><img src="https://1706504082-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fqoq879Ev7JtRbqynigdG%2Fuploads%2Fgit-blob-3aa221f652c69d433a62d4567066861414b8290c%2Fmcp-copilot-07-enable-teams-2.png?alt=media" alt="Microsoft channels list showing Microsoft 365 and Microsoft Teams"><figcaption></figcaption></figure>

<figure><img src="https://1706504082-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fqoq879Ev7JtRbqynigdG%2Fuploads%2Fgit-blob-9a8aaed9e3d4b89455189f81c3547c4456e5151f%2Fmcp-copilot-08-enable-teams-3.png?alt=media" alt="Microsoft 365 and Teams channel panel with Make available in Microsoft 365 Copilot enabled"><figcaption></figcaption></figure>
{% endstep %}

{% step %}

### Check the connection

Start a conversation with your agent and ask "List all my Flowlity sites".
{% endstep %}
{% endstepper %}

## How to connect Claude Code

{% stepper %}
{% step %}

### Add the server

In a terminal, run:

```bash
claude mcp add --transport http flowlity https://co-planner.app.flowlity.com/mcp
```

Add `--scope user` to use it in all your projects.
{% endstep %}

{% step %}

### Sign in

In Claude Code, type `/mcp`, choose `flowlity` and follow the sign-in in your browser, with the same email as your Flowlity account.
{% endstep %}
{% endstepper %}

To share the server with a project instead, add it to the project's `.mcp.json` file:

```json
{
  "mcpServers": {
    "flowlity": {
      "type": "http",
      "url": "https://co-planner.app.flowlity.com/mcp"
    }
  }
}
```

## How to check that the connection works

{% stepper %}
{% step %}

### Ask for your sites

In a new conversation, ask "List all my Flowlity sites".
{% endstep %}

{% step %}

### If no site appears

Check that you signed in with the same email as your Flowlity account, then disconnect and reconnect the connector. If it still fails, contact your Customer Success Manager.
{% endstep %}

{% step %}

### Try a first question

For example: "Give me a summary of my KPIs for site Paris", "Which products have stock coverage below 7 days?", or "Show me the 5 products with the worst forecast accuracy".
{% endstep %}
{% endstepper %}

## Security and privacy

* **Same account, same permissions**: the connection uses your Flowlity account. You only see the sites and data you already have access to.
* **OAuth 2.0**: you sign in with your Flowlity account through the OAuth 2.0 standard. Your password is never shared with the assistant, and no API key is needed.
* **Private database access**: database connections run through private networks.
* **Real data**: when the assistant calls a Flowlity tool, the tool runs a real query on your data. Only the assistant's wording and interpretation can vary.

### Where does your data go?

It depends on which Co-planner you use.

* **Co-planner in the Flowlity app**: the conversation, the tool calls and the model all run on Flowlity's side. The model is hosted on Microsoft Azure within Flowlity's cloud, under Flowlity's enterprise agreements. Your data is excluded from model training and no third-party AI account is involved. This is the recommended option for sensitive data.
* **Your own AI assistant**: the Flowlity server only returns the data your account is allowed to see, and only when the assistant asks for it. Your AI provider then processes those results under your own agreement with them, like a document you paste into the assistant. Flowlity does not control how your provider stores or uses that data, so use a business or enterprise plan that excludes your data from training, or an assistant deployed in your own cloud (for example Copilot Studio in your Microsoft tenant).

In both cases the server never exposes more than your account can already see in the app.

## FAQ

<details>

<summary>Does the assistant see all my company data?</summary>

No. It sees the sites and products assigned to your Flowlity account, like you do in the app.

</details>

<details>

<summary>Can the assistant make up figures?</summary>

The figures come from real queries on your data. The assistant's summary or interpretation can still be imprecise, so check important decisions in the app.

</details>

<details>

<summary>Is there a cost?</summary>

You need a Flowlity account. AI usage costs (subscriptions, tokens) depend on the AI provider you choose.

</details>

<details>

<summary>Can I use Flowlity with other tools in the same conversation?</summary>

Yes. In one conversation, your assistant can use Flowlity next to your CRM, your ERP, spreadsheets or any other connected tool.

</details>
