Skip to main content

What is MCP?

The Model Context Protocol (MCP) is an open standard that enables AI applications to connect with external data sources and tools through a unified interface. It provides a standardized way for LLMs to access real-time data, execute actions, and interact with APIs — without custom integrations for each client.

Chainbase MCP Server

The Chainbase MCP Server allows any MCP-compatible AI client (such as Claude Desktop, Cursor, Windsurf, and others) to directly access Chainbase’s Web3 data — enabling queries like token balances, NFT ownership, transaction history, and on-chain analytics through natural language.

Capabilities

  • Token Data — Query token prices, holders, metadata, and transfers
  • Wallet Analytics — Check balances, transaction history, and portfolio analysis
  • NFT Exploration — Browse collections, ownership, rarity, and transfer history
  • Block/Tx Detail — Get block details, and transaction information
Base Endpoint:
https://api.chainbase.com/v1/mcp
Authentication:
X-API-KEY: <your_api_key>

Transport

Chainbase MCP uses standard HTTP transport.
  • Method: POST
  • Content-Type: application/json
  • Auth Header: X-API-KEY
Example raw request:
curl https://api.chainbase.com/v1/mcp \
  -H "Content-Type: application/json" \
  -H "X-API-KEY: YOUR_API_KEY" \
  -d '{ "jsonrpc":"2.0", "id":1, "method":"tools/list" }'

Manual Setup

claude mcp add --transport http chainbase https://api.chainbase.com/v1/mcp --header "X-API-KEY: your-actual-api-key"
Don’t have an API key? Go to console.chainbase.com to create an account and a new API key. For demo purposes, you can use the key “demo” to test out the API.

Explorer Tools

ToolDescription
GetLastBlockNumberget the latest block number
GetBlockget block details by number
GetTxget transaction details by hash or block number and index
GetAccountBalanceget account native balance or contract token balance
GetAccountNFTsget account nfts
GetAccountTokensget account token balances
GetAccountTxsget account transactions
GetTokenHoldersget token holders addresses
GetTokenMetaget token metadata
GetTokenPriceget token price
GetTokenTopHoldersget token top holders addresses, returns original balance and usd value
GetTokenTransfersget token transfers
GetNFTMetaget nft metadata
GetNFTOwnerget nft owner by contract and token id
GetNFTOwnerHistoryget nft owner histories by contract and token id
GetNFTOwnerslist nft owners by contract address
GetNFTTransfersget nft transfers

Stay Updated