Chatfuel logoChatfuel Beta Panel

Chatfuel API MCP for developers

The Chatfuel API in your coding agent

Give Claude Code, Codex, VS Code, Cursor or Gemini CLI the whole Chatfuel GraphQL API. The agent searches the schema and runs any query or mutation your account allows.

Connecting Claude, ChatGPT or another assistant for everyday work in Chatfuel? Use the Chatfuel MCP server instead.

Connect your AI assistant

Add the server link to your assistant, then sign in with your Chatfuel account.

Chatfuel MCP server link https://mcp.chatfuel.com/panel/api

Claude Code

Terminal

  1. Run the command to add the server.
  2. Run /mcp in Claude Code and sign in to Chatfuel.
claude mcp add --transport http chatfuel-api https://mcp.chatfuel.com/panel/api

VS Code

Command line

  1. Run the command to add the server.
  2. Trust the server and sign in to Chatfuel when VS Code asks.
code --add-mcp '{"name":"chatfuel-api","type":"http","url":"https://mcp.chatfuel.com/panel/api"}'

Codex

CLI and ChatGPT desktop app

  1. Run the commands to add the server and sign in to Chatfuel.

The desktop app shares this setup. Or add the server there in Settings → MCP servers → Add server, then click Authenticate.

codex mcp add chatfuel-api --url https://mcp.chatfuel.com/panel/api codex mcp login chatfuel-api

Antigravity

Antigravity CLI and IDE

  1. Add the server to ~/.gemini/config/mcp_config.json.
  2. In Agent settings → Customizations, click Authenticate and sign in to Chatfuel.

Using Gemini CLI? Run the second command, then /mcp auth chatfuel-api.

{ "mcpServers": { "chatfuel-api": { "serverUrl": "https://mcp.chatfuel.com/panel/api" } } }
gemini mcp add --scope user --transport http chatfuel-api https://mcp.chatfuel.com/panel/api

Cursor

Editor

  1. Click Add to Cursor and confirm, or add the server to ~/.cursor/mcp.json.
  2. Sign in to Chatfuel when Cursor asks, or click Connect next to the server in Cursor’s MCP settings.

Add to Cursor

{ "mcpServers": { "chatfuel-api": { "url": "https://mcp.chatfuel.com/panel/api" } } }

Authentication

The server acts on your behalf with the same permissions as your Chatfuel account.

Sign in with Chatfuel

Your assistant opens the Chatfuel sign-in page. Log in with your Chatfuel account and approve access on the consent screen. The assistant then works with the same permissions you have. To let it only view your data, turn on Read-only there.

API MCP and the Chatfuel MCP server are separate connections, so sign in to each one you add.

To revoke access, open Connected apps in the Chatfuel panel.

CLI token Beta

Use a CLI token when your assistant can’t sign in through the browser, or for scripts and CI. The assistant sends it in the Authorization: Bearer header on every request.

  1. Create a token

    Open CLI token in the Chatfuel panel, click Create token and copy it. It is shown only once.

  2. Add the server to your assistant

    Claude Code

    claude mcp add --transport http chatfuel-api https://mcp.chatfuel.com/panel/api --header "Authorization: Bearer <token>"

    VS Code

    code --add-mcp '{"name":"chatfuel-api","type":"http","url":"https://mcp.chatfuel.com/panel/api","headers":{"Authorization":"Bearer <token>"}}'

    Codex CLI

    export CHATFUEL_TOKEN=<token> codex mcp add chatfuel-api --url https://mcp.chatfuel.com/panel/api --bearer-token-env-var CHATFUEL_TOKEN

    Codex reads the token from CHATFUEL_TOKEN every time it starts, so add the export to your shell profile.

    Antigravity

    Add this to ~/.gemini/config/mcp_config.json.

    { "mcpServers": { "chatfuel-api": { "serverUrl": "https://mcp.chatfuel.com/panel/api", "headers": { "Authorization": "Bearer <token>" } } } }

    Gemini CLI

    gemini mcp add --scope user --transport http --header "Authorization: Bearer <token>" chatfuel-api https://mcp.chatfuel.com/panel/api

    Cursor

    Add this to ~/.cursor/mcp.json.

    { "mcpServers": { "chatfuel-api": { "url": "https://mcp.chatfuel.com/panel/api", "headers": { "Authorization": "Bearer <token>" } } } }

    Another assistant? Add a remote MCP server with the Streamable HTTP transport, the link https://mcp.chatfuel.com/panel/api and the header Authorization: Bearer <token>.