B

Base MCP

Installable
base
GitHubnpm

About

A Model Context Protocol server that provides onchain tools for AI applications, allowing them to interact with the Base Network and Coinbase API.

Features

  • Wallet Management: Retrieve wallet addresses and list balances
  • Fund Transfers: Transfer funds between wallets
  • Smart Contracts: Deploy and interact with smart contracts
  • DeFi Integration: Interact with Morpho vaults for onchain lending
  • Onramp: Fund wallets via Coinbase Onramp
  • ERC20 Tokens: Manage and transfer ERC20 tokens
  • NFTs: List and transfer NFTs (ERC721 and ERC1155)
  • OpenRouter Integration: Buy OpenRouter credits with USDC
  • Farcaster: Resolve Farcaster usernames to Ethereum addresses
  • Reputation: Check address reputation

The server is powered by Base Developer Tools and AgentKit.

Available Tools

Wallet Operations

  • get-address: Retrieves your wallet address
  • list-balances: Lists all balances in your wallet
  • transfer-funds: Transfers funds to another address
  • check-address-reputation: Checks the reputation of an Ethereum address

Smart Contracts

  • deploy-contract: Deploys a smart contract to the blockchain
  • call_contract: Calls a contract function on the blockchain

DeFi

  • get_morpho_vaults: Gets available vaults for a given asset on Morpho

Tokens

  • erc20_balance: Gets the balance of an ERC20 token
  • erc20_transfer: Transfers ERC20 tokens to another address

NFTs

  • list_nfts: Lists NFTs owned by a specific address
  • transfer_nft: Transfers an NFT to another address (supports ERC721 and ERC1155)

Onramp

  • get_onramp_assets: Gets assets available for onramping in a given country/subdivision
  • onramp: Gets a URL for onramping funds via Coinbase

Other

  • buy_openrouter_credits: Buys OpenRouter credits with USDC

Security Considerations

  • Configuration contains sensitive information (API keys and seed phrases). Ensure proper security.
  • Consider using environment variables or a secure credential manager.
  • Be cautious when transferring funds or deploying contracts - operations are irreversible.
  • Verify all transaction details before confirming.

Extensibility

Base MCP is designed to be extensible. You can add your own third-party protocols, tools, and data sources by following the patterns in the src/tools directory. See the CONTRIBUTING.md for detailed guidelines.