MCP Builder Tools Reference
The BitBadges Builder MCP server provides 50+ tools for AI assistants to build, audit, and validate BitBadges transactions. It works with Claude Desktop, Claude Code, Cursor, and any MCP-compatible client.
Installation
# Install globally
npm install -g bitbadges-builder-mcp
# Or run directly (no install)
npx bitbadges-builder-mcpClaude Desktop
Add to your claude_desktop_config.json:
{
"mcpServers": {
"bitbadges-builder": {
"command": "npx",
"args": ["-y", "bitbadges-builder-mcp"],
"env": {
"BITBADGES_API_KEY": "your-api-key",
"BITBADGES_MNEMONIC": "your mnemonic phrase"
}
}
}
}Claude Code
Cursor
Add to .cursor/mcp.json:
Environment Variables
BITBADGES_MNEMONIC
For signing
Mnemonic for server-side signing (testnet recommended)
BITBADGES_PRIVATE_KEY
For signing
Alternative: hex private key
Tools by Category
Session-Based Per-Field Builders (Recommended)
The recommended way to build collections. Each tool sets one field on a session-scoped transaction, allowing incremental construction with full control. All tools can be called in parallel within the same round.
set_standards
Set the collection's protocol standards (e.g., "Subscription", "Smart Token")
set_valid_token_ids
Set which token IDs exist in the collection
set_default_balances
Set default balance configuration and user-level auto-approve flags
set_permissions
Set collection permissions (use presets like "locked-approvals" or custom)
set_invariants
Set collection-level invariants (e.g., noCustomOwnershipTimes, maxSupplyPerId)
set_manager
Set the collection manager address
set_collection_metadata
Set collection-level metadata (name, description, image)
set_token_metadata
Set per-token metadata URIs
set_custom_data
Set custom data on the collection
add_approval
Add a collection approval with approvalCriteria
remove_approval
Remove a collection approval by approvalId
set_approval_metadata
Set metadata for a specific approval
add_alias_path
Add an alias path (for ICS20-backed smart tokens)
remove_alias_path
Remove an alias path
add_cosmos_wrapper_path
Add a Cosmos wrapper path
remove_cosmos_wrapper_path
Remove a Cosmos wrapper path
set_is_archived
Set whether the collection is archived
set_mint_escrow_coins
Fund the mint escrow address at creation (for quest rewards, payment overrides)
add_transfer
Append a MsgTransferTokens to the transaction (for auto-minting at creation)
remove_transfer
Remove a transfer message from the transaction
get_transaction
Return the current session transaction as JSON
One-Shot Builders
Build entire collections in a single call. Useful for simple cases or when you want a quick starting point.
build_token
Universal token builder β single entry point for all collection types
build_claim
Build claim JSON for the API (code-gated, password-gated, whitelist-gated, open)
build_address_list
Build an on-chain address list collection
build_transfer
Build a MsgTransferTokens by auto-querying the collection and constructing the correct transaction
build_dynamic_store
Build transaction JSON for dynamic store operations (create, update, delete, set values)
Audit & Analysis
audit_collection
Security audit: centralization, supply inflation, approval flaws, common bugs (9 categories)
verify_standards
Verify a collection transaction complies with BitBadges protocol standards. Returns violations with severity levels
explain_collection
Human-readable collection report with Q&A mode (user/developer/auditor audiences)
analyze_collection
Structured analysis of transferability, approvals, permissions, and how to obtain/transfer tokens
Simulation & Validation
simulate_transaction
Dry-run a transaction without broadcasting. Returns parsedEvents (coin, badge, and IBC transfers) and netChanges (per-address balance diffs)
validate_transaction
Validate a transaction is well-formed before broadcasting
Queries
query_collection
Fetch collection details from the BitBadges API
query_balance
Check token balance for an address
query_dynamic_store
Query on-chain dynamic store data (get store details, check address values, list values)
verify_ownership
Verify if an address meets ownership requirements
search
Search collections, accounts, and tokens
search_plugins
Search for off-chain claim plugins or fetch specific plugins by ID
lookup_token_info
Look up token metadata and info
Component Generators
Helper tools that generate specific pieces of a collection (approvals, permissions, addresses) without managing session state.
generate_approval
Generate approval structures by pattern (public-mint, manager-mint, smart-token-backing, subscription, etc.)
generate_permissions
Generate permission presets (fully-immutable, manager-controlled, locked-approvals)
generate_backing_address
Compute the deterministic IBC backing address for a given denom
generate_alias_path
Generate alias path config for token display on DEX
generate_wrapper_address
Compute the deterministic wrapper address for a custom denom
generate_unique_id
Generate collision-free IDs for approvals (prefix + random hash)
Utilities
validate_address
Validate a BitBadges address
convert_address
Convert between address formats (ETH, Cosmos, etc.)
get_current_timestamp
Get the current timestamp (for time-based configs)
diagnose_error
Diagnose BitBadges transaction errors and get suggested fixes
search_knowledge_base
Search across all BitBadges knowledge β docs, learnings, recipes, error patterns, critical rules
Instructions & Docs
get_skill_instructions
Get detailed build instructions for specific skills (smart-token, fungible-token, subscription, etc.)
fetch_docs
Fetch documentation pages
Workflows
Session-Based Build (Recommended)
The per-field tools build up a collection incrementally in a session. This is the recommended approach β it gives full control and supports parallel tool calls.
Step-by-step:
Build β Call per-field tools in parallel to define the collection: standards, token IDs, invariants, approvals, permissions, metadata, balances.
Auto-Mint (optional) β If the user wants tokens minted to specific addresses at creation, call
add_transferto append aMsgTransferTokensalongside the collection creation.Verify β Call
validate_transaction,audit_collection, andsimulate_transactionin parallel. Fix any errors with targetedremove_approval+ re-add.Export β Call
get_transactionto get the final transaction JSON for signing.
One-Shot Build
For simple collections, use build_token to generate everything in one call, then verify:
Query & Verification (No Signing)
Note: The MCP server does not handle signing or broadcasting. Transaction signing must be done externally using the BitBadges SDK, a wallet, or the BitBadges frontend.
Auto-Mint at Creation
The add_transfer tool lets you mint tokens to specific addresses at the same time as collection creation. This produces a transaction with two messages: MsgUniversalUpdateCollection + MsgTransferTokens.
When to use: "Mint 100 tokens to myself", "distribute tokens to team members", "auto-mint at creation".
How it works:
Build the collection normally with a mint approval (e.g.,
add_approvalwithfromListId: "Mint",initiatedByListId: <creator address>)Call
add_transferwith the recipient addresses, balances, andprioritizedApprovalsreferencing the mint approvalVerify and export as normal β the transaction will contain both messages
Maximum 4 transfer messages per transaction.
Skills (Guided Workflows)
The MCP server includes skill instructions accessible via get_skill_instructions. These guide AI agents through building specific collection types:
smart-token
Smart Token
ICS20-backed smart token with 1:1 backing and required backing/unbacking approvals
fungible-token
Fungible Token
Simple fungible token with fixed or unlimited supply and configurable mint/transfer approvals
nft-collection
NFT Collection
Non-fungible token collection with unique token IDs, metadata URIs, and badge-based ownership
subscription
Subscription
Time-based subscription token with recurring payment approvals and auto-deletion on expiry
liquidity-pools
Liquidity Pools
Liquidity pool standard with the "Liquidity Pools" protocol standard tag
minting
Minting
Mint approval patterns including public mint, whitelist mint, creator-only mint, payment-gated mint
immutability
Transferability & Update Rules
Lock collection permissions to make properties permanently immutable or permitted
custom-2fa
Custom 2FA
Two-factor authentication for transfers using a secondary approval address
address-list
Address List
On-chain managed address list where membership = owning x1 of token ID 1
bb-402
BB-402 Token-Gated Access
Token-gated access protocol where ownership of specific badges grants API/resource access
ai-criteria-gate
AI Criteria Gate
AI-evaluated criteria gate using attestation NFTs and dynamic store for automated access decisions
verified
Verified Gate
Gate access based on BitBadges verified credential badges (collection ID 1)
payment-protocol
Payment Protocol
Invoices, escrows, bounties, and payment receipts using coinTransfer-based approvals
tradable
Tradable NFTs
Tradable token standard enabling peer-to-peer transfers
credit-token
Credit Token
Increment-only, non-transferable credit token purchased with any ICS20 denom
quest
Quest
Reward claims with escrow, claim plugins, and configurable payout
auto-mint
Auto-Mint
Mint tokens to specific addresses at collection creation using multi-message transactions
burnable
Burnable
Token destruction via forceDelete pattern
multi-sig-voting
Multi-Sig Voting
Governance voting with configurable thresholds and delegation
Common features like ownership requirements, codes, and passwords are built into the approval system directly and can be composed with any skill.
Related Tools
BitBadges SDK
npm i bitbadgesjs-sdk
TypeScript SDK for direct blockchain interaction
MCP Resources
The MCP server also exposes embedded documentation as resources:
bitbadges://tokens/registry
Token Registry
IBC denoms, symbols, decimals, and pre-generated backing addresses
bitbadges://rules/critical
Critical Rules
Critical rules that must be followed when building transactions
bitbadges://skills/all
Skill Instructions
Instructions for all builder skills
bitbadges://docs/concepts
Core Concepts
Core BitBadges concepts: transferability, approvals, permissions, balances, and address lists
bitbadges://docs/examples
Full Examples
Complete transaction JSON examples for NFT collections, fungible tokens, and Smart Tokens
bitbadges://recipes/all
Code Recipes & Decision Matrices
Code snippets and decision matrices for common operations
bitbadges://learnings/all
Learnings & Gotchas
Known gotchas, tips, and discoveries from building with BitBadges
bitbadges://errors/patterns
Error Patterns
Common error messages mapped to diagnoses and fixes
bitbadges://docs/frontend
Reference Frontend Patterns
Patterns from the BitBadges reference frontend (Next.js + Ant Design)
bitbadges://workflows/all
Workflow Chains
Step-by-step tool chains for common multi-step operations
bitbadges://schema/token-builder
Token Builder Schema
Annotated schema for build_token: design axes, field reference, approval patterns, and validation checklist
Access these via your MCP client's resource reading capabilities.
Last updated