---
title: Cline MCP Setup Guide | Flyweel Docs
description: Connect Flyweel MCP to the Cline VS Code extension
url: "https://www.flyweel.co/docs/mcp/cline"
type: static
generatedAt: "2026-09-21T23:29:35.852Z"
---

![Documentation hero background](https://astro-flyweel-docs.vercel.app/vision-hero.webp)
# Cline

To connect Flyweel MCP to **Cline** (the VS Code autonomous agent extension), add a `streamableHttp` server entry to `cline_mcp_settings.json` pointing at `https://api.flyweel.co/functions/v1/mcp-server/mcp` with an `X-API-Key` header. The fastest path is the Cline UI (MCP Servers tab, then Edit settings); editing the JSON by hand also works.

---

## Step 1: Get your API token[Link to this section](#step-1-get-your-api-token)

 1. Go to [app.flyweel.co](https://app.flyweel.co)
 1. Click **Settings** → **API & MCP**
 1. Under **Advanced: use an API key instead**, click **Generate API key** (or **Create Token** to name your own)
 1. Copy the `fwl_…` token once — it won’t be shown again

---

## Step 2: Open Cline’s MCP settings[Link to this section](#step-2-open-clines-mcp-settings)

In VS Code with Cline installed:

 1. Open the Cline sidebar
 1. Click the **MCP Servers** tab
 1. Click **Edit settings** (opens `cline_mcp_settings.json` in an editor)

---

## Step 3: Add Flyweel[Link to this section](#step-3-add-flyweel)

Paste this inside `mcpServers`:


**

```
{  "mcpServers": {    "flyweel-mcp-server": {      "type": "streamableHttp",      "url": "https://api.flyweel.co/functions/v1/mcp-server/mcp",      "headers": {        "X-API-Key": "fwl_YOUR_TOKEN_HERE"      },      "disabled": false,      "autoApprove": ["query_metrics", "list_ad_accounts", "get_setup_status"]    }  }}
```

Replace `fwl_YOUR_TOKEN_HERE` with your token.

### Settings file path (for reference)[Link to this section](#settings-file-path-for-reference)

`~/Library/Application Support/Code/User/globalStorage/saoudrizwan.claude-dev/settings/cline_mcp_settings.json`

`~/.config/Code/User/globalStorage/saoudrizwan.claude-dev/settings/cline_mcp_settings.json`

`%APPDATA%\Code\User\globalStorage\saoudrizwan.claude-dev\settings\cline_mcp_settings.json`

The UI flow (MCP Servers tab, Edit settings, paste JSON, save) is easier than hunting for the file path.

---

## Step 4: Reload Cline[Link to this section](#step-4-reload-cline)

Cline hot-reloads the settings file; if the server does not appear, run **Developer: Reload Window** in the VS Code command palette.

---

## Step 5: Test it[Link to this section](#step-5-test-it)

In Cline, ask:


**

```
What Google Ads accounts do I have connected to Flyweel?
```

---

## Troubleshooting[Link to this section](#troubleshooting)

### ”Server failed to connect”[Link to this section](#server-failed-to-connect)

URL is wrong, or the API key is missing.

**Fix:** Verify the URL is exactly `https://api.flyweel.co/functions/v1/mcp-server/mcp` and that the `X-API-Key` header starts with `fwl_`.

### Tools are not visible[Link to this section](#tools-are-not-visible)

Cline caches the tool list.

**Fix:** Toggle `disabled: true` then back to `false`, or reload the VS Code window.

### ”Authentication error” (code -32001)[Link to this section](#authentication-error-code--32001)

Token is invalid or revoked.

**Fix:** Generate a new token at [app.flyweel.co](https://app.flyweel.co), then Settings → API & MCP.

---

## Next Steps[Link to this section](#next-steps)

 - [What can you ask?](/docs/mcp/setup#what-can-you-ask)
 - [Other MCP Clients](/docs/mcp/other)

### Ready to get started?

Start optimizing your ad spend today with Flyweel.
  [Start Free](https://signup.flyweel.co/?variant=control)