Skip to content

Set up your AI harness for BitBadges: the MCP server command and the config for Claude Code, Claude Desktop, Cursor, Windsurf, Codex CLI, VS Code, and Zed.

Start with the CLI. Add the plugin or MCP configuration below when your client needs it; neither is required for a terminal agent.

TaskNeeded
Zero-install remote MCP (web/desktop/CLI clients)Hosted Streamable HTTP server at https://mcp.bitbadges.io/mcp
Discover standards and build unsigned proposals locallySDK CLI (bitbadges-cli)
Use native Cosmos commandsCombined bb CLI and chain binary
Call tools through a local stdio MCP clientInstalled bitbadges-builder binary
Query remote data or simulateAPI access for the selected network
Ask a human to signBrowser wallet and a running CLI process (or #tx= review link)

Hosted Remote MCP (Zero Install)

BitBadges hosts a remote Streamable HTTP MCP server at https://mcp.bitbadges.io/mcp (also reachable at https://mcp.bitbadges.io). Use it directly in any client that supports remote MCP servers without installing Node or a local binary.

  • Endpoint: https://mcp.bitbadges.io/mcp (optional query ?profile=core|codemode|readonly|session|queries|full)
  • Discovery: https://mcp.bitbadges.io/.well-known/oauth-protected-resource and /.well-known/oauth-authorization-server
  • Authentication: Pass your API key via the x-api-key header (from bitbadges.io/developer) or a SIWBB Authorization: Bearer <token> header for authenticated reads/writes.
  • Security model: Remote mode has no access to local files, mnemonics, or local keys — all transactions are built unsigned and handed off via request_browser_review (bitbadges.io review-and-sign links).

Claude Code (remote HTTP):

bash
claude mcp add --transport http bitbadges https://mcp.bitbadges.io/mcp

Cursor / VS Code (remote HTTP):

json
{
  "mcpServers": {
    "bitbadges": {
      "type": "http",
      "url": "https://mcp.bitbadges.io/mcp",
      "headers": {
        "x-api-key": "YOUR_BITBADGES_API_KEY"
      }
    }
  }
}

Local Install (CLI + Stdio MCP)

Pick one install path. Only the combined installer gives you the chain binary. An npm/bun global install of bitbadges provides bitbadges-cli / bitbadges / bitbadges-builder, and since 0.45.9 also bb as an alias of bitbadges-cli. That bb runs SDK verbs only (bb build, bb api, bb dev …); native chain commands such as bb query and bb keys need the combined installer. On 0.45.8 or older, run each bb … example as bitbadges-cli ….

Combined (CLI + chain binary + bb symlink):

bash
curl -fsSL https://install.bitbadges.io | sh
bb version          # chain binary version, for example v35
bb cli --version    # SDK CLI version (same as bitbadges-cli --version)
bb doctor
bb dev skills

SDK / MCP only (no chain binary; bb is an alias of bitbadges-cli on 0.45.9+):

bash
npm install -g bitbadges    # or: bun install -g bitbadges
bitbadges-cli --version
bitbadges-cli doctor
bitbadges-cli dev skills
bitbadges-builder           # MCP stdio server used below

Offline discovery and construction do not need an API key or wallet. All hosted indexer API routes (api.bitbadges.io/api/v0/*), remote queries, simulate, preview/review links, and most standard_* MCP actions require an API key (bitbadges-cli settings set apiKey … or BITBADGES_API_KEY). For keyless read-only chain state queries, query the chain LCD directly at https://lcd.bitbadges.io (Chain API reference). Configure API access locally when needed; see CLI setup. Do not paste keys into an agent conversation or commit them in project MCP configuration.

The MCP server command uses the binary from that same installation:

bash
bitbadges-builder

The configurations below do not install or update packages when the client starts. The server uses the CLI's configured API access or environment overrides; see MCP configuration. If a desktop client cannot find the command, use the absolute path to the installed binary and restart the client. Browser signing does not require giving the server a private key or mnemonic.

Claude Code

Plugin (auto-wires the server, adds 8 skills and two slash commands):

text
/plugin marketplace add BitBadges/bitbadges-plugin
/plugin install bitbadges
/bitbadges:setup

Plain MCP, no plugin:

bash
claude mcp add bitbadges-builder -- bitbadges-builder

Choose the plugin or a manual registration. If you already have both, inspect the registrations before removing the redundant one. Details: Claude Code Plugin.

Claude Desktop

claude_desktop_config.json:

json
{
  "mcpServers": {
    "bitbadges-builder": {
      "command": "bitbadges-builder",
      "args": []
    }
  }
}

Cursor

.cursor/mcp.json in the project (or ~/.cursor/mcp.json for all projects):

json
{
  "mcpServers": {
    "bitbadges-builder": {
      "command": "bitbadges-builder",
      "args": []
    }
  }
}

Windsurf

~/.codeium/windsurf/mcp_config.json:

json
{
  "mcpServers": {
    "bitbadges-builder": {
      "command": "bitbadges-builder",
      "args": []
    }
  }
}

Codex CLI

Add this table to ~/.codex/config.toml (do not replace your existing configuration). Codex uses TOML, not the JSON mcpServers format used by some other clients. Export BITBADGES_API_KEY before launching Codex so env_vars can forward it:

toml
[mcp_servers.bitbadges-builder]
command = "bitbadges-builder"
args = []
env_vars = ["BITBADGES_API_KEY"]

Restart Codex after editing, then use /mcp to inspect the server connection. See the official OpenAI MCP documentation for configuration options.

VS Code and GitHub Copilot

.vscode/mcp.json in the workspace:

json
{
  "servers": {
    "bitbadges-builder": {
      "type": "stdio",
      "command": "bitbadges-builder",
      "args": []
    }
  }
}

Zed

settings.json (zed: open settings):

json
{
  "context_servers": {
    "bitbadges-builder": {
      "source": "custom",
      "command": "bitbadges-builder",
      "args": []
    }
  }
}

Any LLM Without Tools

Claude.ai, ChatGPT, Gemini, or any chat model with no MCP access can still build. Ask it for the transaction JSON and take that JSON to the site to review and sign.

  1. Give the model context: paste the relevant skill page, or the prompt from agent.exportPrompt() on the Programmatic Agent.

  2. Ask for the transaction object and nothing else:

    text
    Return only a JSON object of the form { "messages": [{ "typeUrl": "/tokenization.MsgCreateCollection", "value": { "creator": "bb1p0rrel3365scadq5k9pv0x0zp9j22js6dnw70d", ... } }] } with the rest of value filled in. No prose, no code fence.
  3. Paste it into https://bitbadges.io/mint/local-builder ("Bring your transaction"). Or, if you have the CLI, bb preview tx.json --open gives you a short review link, and a #tx=<base64url JSON> link opens the same page with the transaction in the URL hash.

A complete one-message example the model can return, revoking an outgoing approval:

json
{
  "messages": [
    {
      "typeUrl": "/tokenization.MsgDeleteOutgoingApproval",
      "value": {
        "creator": "bb1p0rrel3365scadq5k9pv0x0zp9j22js6dnw70d",
        "collectionId": "2",
        "approvalId": "agent-daily-budget"
      }
    }
  ]
}

The same transaction as a hash link, which any chat can hand to the user:

text
https://bitbadges.io/mint/local-builder#tx=eyJtZXNzYWdlcyI6W3sidHlwZVVybCI6Ii90b2tlbml6YXRpb24uTXNnRGVsZXRlT3V0Z29pbmdBcHByb3ZhbCIsInZhbHVlIjp7ImNyZWF0b3IiOiJiYjFwMHJyZWwzMzY1c2NhZHE1azlwdjB4MHpwOWoyMmpzNmRudzcwZCIsImNvbGxlY3Rpb25JZCI6IjIiLCJhcHByb3ZhbElkIjoiYWdlbnQtZGFpbHktYnVkZ2V0In19XX0

The site runs review, transferability, and permissions checks before the wallet signature, so an unvalidated model output still gets the same review as a tool-built one.

Verify

bash
# Combined install:
bb doctor
bb dev tools list --names | jq -r '.data.names[]'

# SDK-only install (bitbadges-cli always works; bb too on 0.45.9+):
bitbadges-cli doctor
bitbadges-cli dev tools list --names | jq -r '.data.names[]'

doctor should report the SDK package and MCP bin as pass (or skip API key if you have not configured one yet). If bb: command not found, you are on an SDK-only install older than 0.45.9 — use bitbadges-cli, upgrade the package, or run the combined installer above. If bb runs SDK verbs but native chain commands are unknown, bb is the npm alias; run the combined installer for the chain binary.

In an MCP client, run this prompt and inspect the actual tool-call result, rather than a prose answer alone:

text
Call get_current_timestamp and show its returned timestamp.

For a first task, ask: “Prepare an unsigned invoice for one payer. Use the installed schema, tell me any missing payment terms, and save the proposal for review.” Once the terms are correct, use the main-wallet payment flow to request a signature. A successful discovery call verifies connectivity, not permission to spend.

Edit this page on GitHub

For agents

How agents read these docs