Bankless Onchain MCP Server Setup Guide

Installation
  1. Install the Bankless Onchain MCP package:
    npm install @bankless/onchain-mcp
     

Environment Setup

  1. Set your Bankless API token:
    • Obtain your Bankless API token from Bankless API Documentation.
    • Set the environment variable:
      export BANKLESS_API_TOKEN=your_api_token_here
       

Running the Server

  1. Run the MCP server:
    npx @bankless/onchain-mcp
     

Development

  1. Building from Source:

    • Clone the repository:
      git clone https://github.com/Bankless/onchain-mcp.git
       cd onchain-mcp
       
    • Install dependencies:
      npm install
       
    • Build the project:
      npm run build
       
  2. Debug Mode:

    npm run debug
     

Integration with AI Models

  1. Configure MCP Server in your application:
    {
      "mcpServers": {
      "bankless": {
      "command": "npx",
      "args": [
      "@bankless/onchain-mcp"
      ],
      "env": {
      "BANKLESS_API_TOKEN": "your_api_token_here"
      }
      }
      }
     }
     

License

MIT

Share this post: