Get the current price of a cryptocurrency in a specified currency
Get the token balance for a specific wallet address
Retrieve transaction history for a wallet address
Resolve a Farcaster username to an Ethereum address
Get metadata for a specific token on the Base network
Get the current gas price on the Base network
Base Blockchain Tools provides a comprehensive suite of onchain tools that allow AI assistants to interact with the Base network and Coinbase API. This MCP server enables LLMs to perform blockchain operations, query cryptocurrency data, resolve Farcaster usernames to Ethereum addresses, and execute various other blockchain-related tasks directly through natural language requests.
Base Blockchain Tools is a Model Context Protocol (MCP) server that enables AI assistants to interact with the Base network and Coinbase API, providing powerful blockchain capabilities through natural language.
To install and use the Base Blockchain Tools MCP server, follow these steps:
npm install base-mcp
.env
file with the necessary API keys:COINBASE_API_KEY=your_coinbase_api_key
COINBASE_API_SECRET=your_coinbase_api_secret
ALCHEMY_API_KEY=your_alchemy_api_key
NEYNAR_API_KEY=your_neynar_api_key
npx base-mcp
"mcpServers": {
"base-mcp": {
"command": "npx",
"args": ["base-mcp"]
}
}
The Base MCP server requires several API keys to function properly:
You can obtain these API keys by:
Once configured, your AI assistant can use the Base MCP tools to perform various blockchain operations through natural language requests. For example:
The MCP server handles the technical details of interacting with the blockchain, allowing for seamless integration of crypto functionality into your AI assistant conversations.
Developers can extend Base MCP with new tools by:
src/tools/
For detailed development guidelines, refer to the CONTRIBUTING.md file in the repository.