web3-mcp is a server implementation based on the Model Context Protocol (MCP) that encapsulates the Ankr Advanced API to provide large language models with multi-chain blockchain data access capabilities. It supports networks such as Ethereum, BSC, Polygon, and Avalanche.
Its main capabilities are divided into three categories: the NFT API can retrieve NFT metadata, holders, transfer records, and ownership information; the Query API can access blockchain statistics, blocks, logs, and transaction data; the Token API can retrieve token balances, prices, holders, and transfer history.
The provided tool functions include: get_nfts_by_owner (retrieve NFTs by wallet address), get_nft_metadata (retrieve metadata for a specified NFT), get_nft_holders (retrieve holders of an NFT collection), get_nft_transfers (NFT transfer history), get_blockchain_stats (blockchain statistics), get_blocks (block information), get_logs (blockchain logs), get_transactions_by_hash (look up transactions by hash), get_transactions_by_address (look up transactions by address), get_interactions (wallet and contract interactions), get_account_balance (wallet token balance), get_currencies (available currencies), get_token_price (token price), get_token_holders (token holders), get_token_holders_count (number of holders), get_token_transfers (token transfer history).
Usage: environment variables need to be set, the server can be run through the FastMCP CLI, and it must be configured in an MCP client. The specific environment variable names, installation commands, and configuration details are not yet provided in the material.
Applicable scenarios: development and integration scenarios that require LLMs to query multi-chain NFT, token, and on-chain transaction data. Limitations: it depends on the Ankr Advanced API, and API access credentials need to be configured separately; the specific list of supported chains and call limits are not yet fully provided in the material.