Skip to content
Documentation hero background

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 tokenLink to this section

  1. Go to app.flyweel.co
  2. Click SettingsAPI & MCP
  3. Under Advanced: use an API key instead, click Generate API key (or Create Token to name your own)
  4. Copy the fwl_… token once — it won’t be shown again

Step 2: Open Cline’s MCP settingsLink to this section

In VS Code with Cline installed:

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

Step 3: Add FlyweelLink to this section

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

~/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 ClineLink to this section

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 itLink to this section

In Cline, ask:

What Google Ads accounts do I have connected to Flyweel?

TroubleshootingLink to this section

”Server failed to connect”Link to this section

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 visibleLink to this section

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

Token is invalid or revoked.

Fix: Generate a new token at app.flyweel.co, then Settings → API & MCP.


Next StepsLink to this section

Ready to get started?

Start optimizing your ad spend today with Flyweel.