BLACKFUEL
Guides

Connect via MCP

Connect Claude, ChatGPT, Cursor, or any MCP client to Blackfuel so your AI agent can run your account — OAuth sign-in, no API key.

Manage your Blackfuel account from your AI agent: diagnose a failed request, check what you spent this week, revoke a leaked API key, invite a teammate — asked for in plain language instead of clicked through the Console. Blackfuel hosts an MCP server that any compatible agent connects to with an OAuth sign-in.

Set up your client

Blackfuel hosts and manages the server, so there is nothing to install, run, or update. Every client needs just one value:

https://mcp.blackfuel.ai/mcp

Authentication is an OAuth sign-in with your Blackfuel account: no API key or token to paste. When you connect, your client opens a browser window; you sign in exactly as you do for the Console and approve access. Everything is scoped to your organization and your Console role.

Cursor

Add to Cursor — opens Cursor and adds Blackfuel automatically.

Or add it by hand to .cursor/mcp.json:

{
  "mcpServers": {
    "blackfuel": {
      "url": "https://mcp.blackfuel.ai/mcp"
    }
  }
}

Complete the sign-in when prompted, then enable the server from MCP: List Servers.

Claude Code

claude mcp add --transport http blackfuel https://mcp.blackfuel.ai/mcp

Run /mcp, pick blackfuel, and complete the browser sign-in from there. /mcp also shows the connection status.

Codex

codex mcp add blackfuel --url https://mcp.blackfuel.ai/mcp

Or add it to ~/.codex/config.toml:

[mcp_servers.blackfuel]
url = "https://mcp.blackfuel.ai/mcp"

Complete the browser sign-in when prompted.

VS Code

Add to VS Code — opens VS Code and adds Blackfuel automatically.

Or run one command:

code --add-mcp '{"name":"blackfuel","type":"http","url":"https://mcp.blackfuel.ai/mcp"}'

Or add it to .vscode/mcp.json:

{
  "servers": {
    "blackfuel": {
      "type": "http",
      "url": "https://mcp.blackfuel.ai/mcp"
    }
  }
}

Start the server from the MCP view and complete the browser sign-in.

Claude (web and desktop)

  1. Open Settings → Connectors (on Team and Enterprise, an owner adds it under Organization settings → Connectors first).
  2. Click Add custom connector.
  3. Name it Blackfuel and enter the URL https://mcp.blackfuel.ai/mcp.
  4. Click Add, then Connect — a browser window opens for you to sign in to Blackfuel and approve access.
  5. In any chat, open the + / Connectors menu and enable Blackfuel for the conversation.

ChatGPT

  1. Open Settings → Security and login and turn on Developer mode.
  2. Open Plugins, click +, give the connector a name and description, and enter the URL https://mcp.blackfuel.ai/mcp.
  3. Create the connection, sign in to Blackfuel and approve access, then enable the connector in your chat.

Other clients

Any MCP client that supports remote HTTP servers works. Point it at https://mcp.blackfuel.ai/mcp and complete the OAuth sign-in.

mcp-remote

Some clients only accept a command rather than a URL. Bridge them with the mcp-remote proxy:

{
  "mcpServers": {
    "blackfuel": {
      "command": "npx",
      "args": ["-y", "mcp-remote", "https://mcp.blackfuel.ai/mcp"]
    }
  }
}

What you can do

The MCP server mirrors the Console, so your agent can:

  • Diagnose requests — browse recent API request logs (filter by time window, status code, model, or API key) and inspect any single request by its ID. Mirrors the Console's Logs view.
  • See usage and cost — tokens, requests, and spend, grouped by model or by API key, and narrowed to a project, an API key or a model. A project covers the keys created inside it, revoked ones included, so one project id answers for a whole workload. A slug freed by revocation and re-minted into another project leaves both keys sharing one analytics id, which answers to the newer of the two the reader can see.
  • Manage API keys — list, create, inspect, and revoke them.
  • Manage your team — view members, invite people, change roles, and handle pending or expired invitations.
  • Manage wallet and billing — check your balance, top up, set up payment methods, and review transactions.

Example prompts

Self-diagnose a failed request (start here)

Why did my last request to Blackfuel fail?

Your agent lists your recent request logs, finds the failing call, and inspects it to explain what went wrong — for example a 429 rate limit, a 400 bad request, or a context length error.

If you already have the request's ID, hand it over directly. That ID is the x-request-id header returned on every API response (including errors), or the id field in the response body:

Inspect this Blackfuel request and tell me why it returned a 400: <paste your x-request-id>

Show me all my failed (5xx) requests in the last hour and what they had in common.

Everyday account management

What did my organization spend on Blackfuel this week, broken down by model?

Which of my API keys made the most requests yesterday?

Revoke the API key called "staging-worker" — it leaked into a CI log.

Invite [email protected] to my org as a member.

What's my wallet balance?

Access and security

  • Sign-in, not secrets. Access is granted through an interactive OAuth sign-in with your Blackfuel SSO. There is no API key or long-lived token to store in a config file.
  • Your data only. The server only ever sees your own organization's data — the same data you see in the Console. You never see other organizations.
  • Your role still applies. Permissions follow your Console role (admin or member). Your agent cannot do anything you couldn't do yourself.
  • You stay in control. MCP clients can take actions on your behalf: revoking API keys, inviting members, topping up your wallet. Connect only from clients you trust, review the permissions you approve during sign-in, and keep your client's "confirm before running a tool" setting on so you can approve actions that change your account.

Also in the Console

Everything here is also available in the web Console at console.blackfuel.ai. Use whichever fits the task: the Console for browsing and dashboards, the MCP server for handing the work to an agent.

On this page