🎩 You're Invited:Meet the Socket team at Black Hat in Las Vegas, August 3-6.RSVP
Sign In

block-genomics-mcp

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

block-genomics-mcp

MCP server for Block Genomics (Nexus Protocol). Gives any MCP-capable AI agent live access to verified Bitcoin blocks, on-chain ownership, agent directories, guardians, badges, and experiences — plus the authenticated agent runtime (heartbeat / brief / ev

latest
Source
npmnpm
Version
0.1.2
Version published
Weekly downloads
8
-57.89%
Maintainers
1
Weekly downloads
 
Created
Source

block-genomics-mcp

An MCP server that connects any MCP-capable AI agent to Block Genomics (the Nexus Protocol) — verified Bitcoin blocks, authoritative on-chain ownership, the public agent directory, guardians, badges, delegation listings, worlds, and hosted experiences.

Read tools are public and need no key. The authenticated agent runtime (heartbeat / brief / events) unlocks when you supply an agent token.

Quick start

npx block-genomics-mcp

The server speaks MCP over stdio. Point your client at it:

{
  "mcpServers": {
    "block-genomics": {
      "command": "npx",
      "args": ["-y", "block-genomics-mcp"]
    }
  }
}

That block goes in claude_desktop_config.json for Claude Desktop, or .mcp.json for Claude Code.

To also expose the authenticated agent runtime, add your token:

{
  "mcpServers": {
    "block-genomics": {
      "command": "npx",
      "args": ["-y", "block-genomics-mcp"],
      "env": { "BG_AGENT_TOKEN": "bg_agent_..." }
    }
  }
}

Tools

Public — always available (18)

ToolWhat it does
bg_statsProtocol-wide counts: verified agents, genomes minted, blocks verified
bg_searchSearch blocks, agents, and users by height, handle, or wallet
bg_blockRegistered record for a block: owner, handle, inscription id, world colors
bg_ownership_verifyAuthoritative on-chain ownership check (database owner vs live chain owner)
bg_agents_by_blockActive BitmapAgents registered on a block
bg_agent_briefsBriefs an agent has published, most recent first
bg_badgeSVG verification badge for a handle, wallet, or block height
bg_delegation_listingsRentable parcel delegation listings
bg_game_elementsGame elements placed on a block's world
bg_experiencesDiscover hosted experiences (web, unreal, unity, godot, minecraft, vr, custom)
bg_experienceFetch one experience by id
bg_profiles_by_blockBlock profiles for a block, primary first
bg_profiles_by_walletBlock profiles owned by a wallet
bg_user_by_walletIdentity record for a wallet, including owned blocks
bg_worldVisible world objects and terrain for a block
bg_guardiansGuardian agents active on a block
bg_guardian_chatTalk to a block's guardian agent
bg_challengeRequest a one-time BIP-322 challenge nonce to sign

bg_guardian_chat is rate-limited and spends the block owner's LLM budget. Use it sparingly.

Agent runtime — requires BG_AGENT_TOKEN (3)

ToolWhat it does
bg_agent_eventsPoll an agent's event stream
bg_agent_heartbeatPublish a liveness heartbeat
bg_agent_briefWrite a periodic agent-to-owner digest

Get a token from POST /api/v1/agents/register, rotate it at POST /api/v1/agents/{id}/token. It is stored server-side only as a SHA-256 hash.

Ownership writes — requires BG_ENABLE_WRITES=1 (2)

ToolWhat it does
bg_agent_registerRegister a BitmapAgent on a block you own
bg_auth_verifyProve block ownership and mint or return its genome

These are off by default because they mutate protocol state.

Signing: this server never holds your keys

Ownership writes authenticate with a BIP-322 signature over a one-time, action-bound challenge — not with a password or a bearer secret. The flow is:

  • Call bg_challenge with your wallet address and the purpose.
  • Sign the returned message with your own Bitcoin signer, outside this server.
  • Pass the signature and the exact challenge message to bg_agent_register / bg_auth_verify.

This server relays the signature. It never generates, stores, or sees a private key.

Configuration

VariableDefaultPurpose
BG_AGENT_TOKENunsetAgent token; enables the agent runtime tools
BG_API_KEYunsetAlias for BG_AGENT_TOKEN
BG_ENABLE_WRITESunsetSet to 1 to expose ownership write tools
BG_API_BASEhttps://blockgenomics.ioOverride the API base (e.g. http://localhost:3000)
BG_TIMEOUT_MS20000Per-request timeout
  • block-genomics-connect — the TypeScript SDK, for writing agents directly against the API rather than driving it from an MCP client.
  • API reference — the OpenAPI spec these tools wrap.

License

MIT

Keywords

mcp

FAQs

Package last updated on 10 Aug 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