Skip to content
BuildBase

Use BuildBase in Claude Code

Add BuildBase's MCP server to Claude Code with one command, sign in with /mcp, and manage your organization from the terminal while you build.

This page is part of BuildBase in your AI tools: it connects Claude Code to BuildBase's own MCP server so you can manage your BuildBase organization from the terminal. Claude Code signs in as you and never sees your organization's secrets.

Note

Want your own app to be agent-ready? See Let your users connect Claude Code to your app, in Agent-ready apps.

What you need

  • Claude Code.
  • A BuildBase console account, whichever way you sign in to the console.
  • An organization whose AI agents setting is not Off (choose what agents may do). Agents can read by default.

Add the server

claude mcp add --transport http buildbase-console https://api.console.buildbase.app/mcp

Add --scope project to write it to .mcp.json in the repository and share it with everyone on the project:

{
  "mcpServers": {
    "buildbase-console": {
      "type": "http",
      "url": "https://api.console.buildbase.app/mcp"
    }
  }
}

Keep "type": "http": an entry with a url and no type is read as a local (stdio) server and fails.

Sign in

  1. Run /mcp inside Claude Code and choose buildbase-console, or run claude mcp login buildbase-console.
  2. Your browser opens BuildBase's sign-in page. Sign in with your console account and your usual second step.
  3. Read the consent screen: it names the client and the scopes it asks for, console:read and console:write to start. Approve it.

claude mcp list shows Needs authentication for a server still waiting for sign-in. When a task needs more, such as an export or a delete, Claude Code is told which scope is missing (what an agent asks for).

What you see when you connect

Once you have signed in, BuildBase shows the consent screen in your browser. It names the tool, lists the scopes it asks for and the server the access is for, and changes nothing until you choose Allow access. Here it is for a tool that registered itself:

BuildBase's consent screen for a tool that registered itself, here Example Agent: a warning that the app gave itself its name and nobody has checked it, what it may do as you, console:read and offline_access, the access to use at https://api.console.buildbase.app/mcp, and Allow access and Deny ringed

Use it while you build

Ask, for example:

  • "Which environment variables does a Next.js app need for Acme? Write them to .env.example, secrets left blank."
  • "Write a blueprint for our roles, email templates and forms, and show me the plan."
  • "Search the BuildBase docs for magic-link sign-in and add it to this app."

More, with what each one asks you to approve: example prompts.

Without a person: an API key

In CI or a scheduled job there is nobody to sign in. Send one of your organization's API keys as a header instead:

claude mcp add --transport http buildbase-console https://api.console.buildbase.app/mcp \
  --header "Authorization: Bearer $BUILDBASE_API_KEY"

The key works in its own organization only, the AI agents setting still applies, and changes are recorded as the key's (connect with an API key).

What differs in Claude Code

  • It runs on your computer, so the sign-in opens your local browser.
  • Tool permissions. Claude Code asks before a tool runs unless you allowed it. Allow the read tools if you like; keep console_destructive_change, create_org and blueprint_apply on asking.
  • Approvals of a change. Where Claude Code can ask you a question itself, the change BuildBase wants to make is shown to you and nothing happens unless you approve it. Otherwise it states the change and confirms it with a one-time code (what stays with you).
  • Large answers. Claude Code warns above 10,000 tokens of tool output and caps it at 25,000 by default (MAX_MCP_OUTPUT_TOKENS). Ask for a narrower read, such as one page of a list, when it cuts one off.

If something goes wrong

What you seeWhyWhat to do
claude mcp list shows Needs authenticationYou have not signed in yet, or the session endedRun /mcp and choose the server, or claude mcp login buildbase-console
The server fails to start from .mcp.jsonThe entry has no "type": "http"Add "type": "http" beside the url
It times out while connectingA slow networkStart Claude Code with MCP_TIMEOUT=10000 claude
Claude Code says the organization does not let agents inIts AI agents setting is Off, or your agent is blocked thereAn owner or admin changes it under Security, AI agents
Every change is refusedThe organization is Read only, or you did not grant console:writeAn owner or admin sets Read and change; approve console:write when asked

To disconnect, run /mcp, choose buildbase-console and Clear authentication first (claude mcp remove deletes the local token without revoking it), then claude mcp remove buildbase-console, and disconnect the agent in BuildBase, which ends its session at once.

Frequently asked questions

How do I share the server with my team?
Add it with --scope project. Claude Code writes it to .mcp.json in the repository, and each person who opens the project signs in as themselves.
Can Claude Code use BuildBase in CI with nobody to sign in?
Yes, with one of your organization's API keys sent as an Authorization header. The organization's AI agents setting still applies, and changes are recorded as the API key's.
How do I sign out?
Run /mcp, choose buildbase-console, then Clear authentication, and disconnect the agent under Security in the BuildBase console to end its session there too.