New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

bitbadges-builder-mcp

Package Overview
Dependencies
Maintainers
1
Versions
21
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

bitbadges-builder-mcp

MCP server for building BitBadges collections with embedded documentation and API tools

latest
Source
npmnpm
Version
5.0.7
Version published
Weekly downloads
261
-59.97%
Maintainers
1
Weekly downloads
 
Created
Source

BitBadges Builder MCP Server

MCP (Model Context Protocol) server for building, auditing, and querying BitBadges collections via AI. Works with Claude Desktop, Claude Code, Cursor, and any MCP-compatible client.

This MCP server does not sign or broadcast transactions. It builds transaction JSON that your application signs and broadcasts using your own wallet/signer.

Quick Start

1. Install

npm install -g bitbadges-builder-mcp

Or use npx (no install needed):

npx bitbadges-builder-mcp

2. Configure Your MCP Client

Claude Desktop (~/.config/claude/config.json):

{
  "mcpServers": {
    "bitbadges-builder": {
      "command": "npx",
      "args": ["bitbadges-builder-mcp"],
      "env": {
        "BITBADGES_API_KEY": "your-api-key-here"
      }
    }
  }
}

Claude Code (.mcp.json in project root):

{
  "mcpServers": {
    "bitbadges-builder": {
      "command": "npx",
      "args": ["bitbadges-builder-mcp"],
      "env": {
        "BITBADGES_API_KEY": "your-api-key-here"
      }
    }
  }
}

Cursor (Settings > MCP Servers > Add):

{
  "command": "npx",
  "args": ["bitbadges-builder-mcp"],
  "env": {
    "BITBADGES_API_KEY": "your-api-key-here"
  }
}

3. Get an API Key

Get your free API key at: https://bitbadges.io/developer

The API key enables query tools (see below). Builder, validation, and knowledge tools work without an API key.

4. Start Building

"Create a 1000-supply NFT collection with 5 BADGE mint price"

"Build a USDC stablecoin vault with 100/day withdraw limit"

"Explain collection 123 to me"

"Audit this collection for security risks"

Environment Variables

VariableRequiredDescription
BITBADGES_API_KEYFor query toolsAPI key from https://bitbadges.io/developer

No wallet, mnemonic, or private key is needed. This server builds transaction JSON only — your app handles signing and broadcasting.

How It Works

You describe what you want
    ↓
MCP builds transaction JSON (MsgUniversalUpdateCollection, MsgTransferTokens, etc.)
    ↓
audit_collection catches security issues
    ↓
validate_transaction checks JSON format
    ↓
You sign with your wallet (MetaMask, Keplr, SDK, etc.) and broadcast

Available Tools

Validation & Analysis (no API key needed)

ToolDescription
validate_transactionValidate transaction JSON against critical rules
audit_collectionAudit for security risks, design flaws, supply inflation vectors
explain_collectionGenerate human-readable markdown explanation of a collection

Builders (no API key needed)

ToolDescription
build_tokenUniversal token builder — any collection type from design axes
build_smart_tokenIBC-backed smart token (stablecoin, wrapped asset)
build_fungible_tokenERC-20 style fungible token
build_nft_collectionNFT collection with minting config
build_address_listOn-chain address list (manager add/remove)
build_claimBuild claim JSON for the API (code-gated, password-gated, whitelist-gated, open)

Components (no API key needed)

ToolDescription
generate_backing_addressCompute deterministic IBC backing address from denom
generate_approvalBuild approval structures by type
generate_permissionsBuild permission presets
generate_alias_pathBuild alias path for liquidity pools

Utilities (no API key needed)

ToolDescription
convert_addressConvert between ETH (0x) and BitBadges (bb1) formats
validate_addressCheck if address is valid and detect chain type
lookup_token_infoGet token symbol, denom, decimals, backing address
get_current_timestampGet current time with optional offsets

Knowledge (no API key needed)

ToolDescription
get_skill_instructionsGet detailed instructions for a specific skill
search_knowledge_baseSearch docs, learnings, recipes, error patterns
diagnose_errorDiagnose transaction errors and suggest fixes
fetch_docsFetch live documentation from docs.bitbadges.io

Query Tools (require API key)

ToolDescription
query_collectionFetch collection details with field filtering
query_balanceCheck token balance for an address
simulate_transactionDry-run transaction for validity and gas estimation
verify_ownershipVerify if address meets AND/OR/NOT ownership requirements
searchSearch collections, accounts, and tokens
search_pluginsSearch claim plugins or fetch by ID
analyze_collectionQuery and produce structured collection analysis
build_transferAuto-query collection and build MsgTransferTokens
build_dynamic_storeBuild dynamic store operations (create, update, set values)
query_dynamic_storeQuery dynamic store values and metadata

Resources

The MCP server exposes these resources that clients can read for context:

Resource URIDescription
bitbadges://rules/criticalCritical rules for building transactions
bitbadges://tokens/registryToken registry (symbol, denom, decimals)
bitbadges://skills/allAll skill instructions
bitbadges://docs/conceptsConceptual documentation
bitbadges://docs/examplesExample transactions and patterns
bitbadges://recipes/allCode recipes and decision matrices
bitbadges://learnings/allKnown gotchas, tips, and discoveries
bitbadges://errors/patternsError patterns and diagnostics
bitbadges://workflows/allStep-by-step workflow chains
bitbadges://schema/token-builderToken builder schema reference
bitbadges://docs/frontendReference frontend patterns

Skills

Skills are detailed instruction sets loaded on-demand via get_skill_instructions(skillId):

Skill IDDescription
smart-tokenIBC-backed smart token with 1:1 backing
fungible-tokenERC-20 style fungible token
nft-collectionNFT collection design and minting
subscriptionTime-dependent subscription token
bb-402Token-gated API access (HTTP 402 pattern)
ai-criteria-gateAI agent as criteria verifier
mintingMinting strategies (public, manager, pricing)
custom-2faCustom 2FA requirements
immutabilityLock permissions and immutability patterns
liquidity-poolsSwappable tokens and trading
payment-protocolPayment and pricing mechanisms
verifiedVerified credential gates
tradableMarketplace trading configuration
address-listOn-chain address list collections

Supported Tokens

SymbolIBC DenomDecimals
BADGEubadge (Cosmos) / abadge (EVM)9 / 18
USDCibc/F082B65...6
ATOMibc/A4DB47...6
OSMOibc/ED07A3...6

Signing & Broadcasting (Your Responsibility)

This MCP server returns unsigned transaction JSON. To submit on-chain:

Browser (EVM wallet like MetaMask):

  • Call EVM precompiles using ethers.js / viem with the transaction data

Browser (Cosmos wallet like Keplr):

  • Use Keplr's signDirect with the transaction's SignDoc

Server-side (SDK):

import { GenericEvmAdapter, GenericCosmosAdapter } from 'bitbadgesjs-sdk';

// EVM path (recommended for server-side)
const adapter = GenericEvmAdapter.fromPrivateKey(key, 'https://evm-rpc.bitbadges.io');

// Cosmos path
const adapter = GenericCosmosAdapter.fromPrivateKey(key, 'bitbadges_50024-1');

// Sign and broadcast
const result = await adapter.signAndBroadcast(messages, fee, memo);

See BitBadges SDK docs for full signing documentation.

ToolInstallDescription
BitBadges MCP (this)npm i -g bitbadges-builder-mcpAI-powered collection builder, auditor, and explainer
BitBadges SDKnpm i bitbadgesjs-sdkTypeScript SDK for API, signing, address conversion
BitBadges APIhttps://bitbadges.io/developerREST API for querying collections, balances, ownership
BitBadges Docshttps://docs.bitbadges.ioFull documentation
BitBadges Explorerhttps://explorer.bitbadges.ioOn-chain explorer

Local Development

git clone https://github.com/bitbadges/bitbadges-builder-mcp.git
cd bitbadges-builder-mcp
npm install
npm run build
npm run dev    # Run with tsx (hot reload)
npm test       # Run tests

License

MIT

Keywords

bitbadges

FAQs

Package last updated on 06 Apr 2026

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts