Featured

Deploy OpenClaw in 60 seconds — 20% off logoDeploy OpenClaw in 60 seconds — 20% off

Launch OpenClaw on Hostinger in about 60 seconds and keep your agent live 24/7. Our referral link gives you 20% off, no coupon code needed.

Launch on Hostinger
Run your Hermes agent on Hostinger, fully managed logoRun your Hermes agent on Hostinger, fully managed

Launch Hermes on Hostinger in one click, fully managed, no VPS knowledge needed. Use code ZACAARON10 for 10% off.

Launch on Hostinger
Crawl and scrape any site into clean data, 10% off logoCrawl and scrape any site into clean data, 10% off

Firecrawl crawls and scrapes any site into clean markdown for your agent. Get 1,000 free credits, and new users get 10% off their first purchase.

Try Firecrawl free
Your own AI agent, running 24/7 with QwikClaw logoYour own AI agent, running 24/7 with QwikClaw

QwikClaw sets up and runs an always-on OpenClaw agent for you. One click, no config files, no server setup.

Deploy now
One API to scrape, enrich, and extract the internet. logoOne API to scrape, enrich, and extract the internet.

Context.dev gives your agents a single API to scrape, enrich, and extract live web data — no proxies, no parsers, no maintenance.

Start building free
SetupClaw: done-for-you OpenClaw for founders & exec teams logoSetupClaw: done-for-you OpenClaw for founders & exec teams

White-glove OpenClaw for founders and exec teams (4–50+ employees): we install, harden, integrate your tools, and maintain it — secured from day one.

Get it set up for you
SEO data APIs for your agent, $1 free credit logoSEO data APIs for your agent, $1 free credit

DataForSEO gives your agent live access to SERP results, keyword data, backlinks, and on-page SEO data through one API. New accounts get a $1 credit, good for up to 20,000 keyword or backlink lookups.

Try DataForSEO free
Reach 47,000+ AI builders

A flat monthly placement in front of developers actively installing AI tools. No lock-in, cancel anytime.

Advertise here

Works with

Claude CodeClaude DesktopCursorVS CodeClineCodex CLIOpenClaw+ any MCP client

Install to Claude Code

This server doesn't publish a one-line install command. Follow the setup in the source repository.

Summary

Brings BlockDAG blockchain data to AI assistants, enabling natural language queries for balances, transactions, tokens, and network stats.

README.md

BlockDAG MCP Server

![License: MIT](https://opensource.org/licenses/MIT) ![TypeScript](https://www.typescriptlang.org/) ![Node.js](https://nodejs.org/)

A Model Context Protocol (MCP) server that brings BlockDAG blockchain data to your AI assistant. Query balances, transactions, tokens, and network stats directly from Claude Desktop or Cursor.

Why This Exists

Working with blockchain data in AI workflows shouldn't require complex RPC calls or Web3 libraries. This MCP server bridges that gap - just ask your AI assistant in natural language, and get the data you need.

Quick Start

git clone https://github.com/daveylupes/blockdag-mcp-server.git
cd blockdag-mcp-server
npm install
cp env.example .env
# Edit .env with your BlockDAG RPC details
npm run dev

Features

  • 10 comprehensive tools for blockchain data access
  • Read-only operations - secure by default, no private keys needed
  • ERC20 token support - query token balances and metadata
  • Transaction analytics - history tracking with pagination
  • Network monitoring - real-time stats on gas, TPS, and activity
  • Type-safe - TypeScript with strict validation
  • Production-ready - comprehensive error handling and logging

Tools

| Tool | Description | |------|-------------| | net_info | Get chain ID and latest block number | | get_balance | Get BDAG balance for an address | | tx_receipt | Get transaction receipt by hash | | get_block | Fetch block by tag (latest, hex, or decimal) | | get_logs | Query event logs with filters | | read_contract | Call read-only contract functions | | get_token_balance | Get ERC20 token balance and metadata | | get_token_info | Get token details (name, symbol, supply) | | get_transaction_history | Get transaction history with pagination | | get_network_stats | Get network statistics and metrics |

Installation

Prerequisites

  • Node.js 20 or higher
  • npm or yarn
  • BlockDAG RPC endpoint access

Setup

  1. Clone the repository
   git clone https://github.com/daveylupes/blockdag-mcp-server.git
   cd blockdag-mcp-server
  1. Install dependencies
   npm install
  1. Configure environment
   cp env.example .env

Edit .env: ``bash BLOCKDAG_RPC_URL=https://your-blockdag-rpc BLOCKDAG_CHAIN_ID=12345 ``

  1. Build the project
   npm run build

Usage

With Cursor

Create or edit ~/.cursor/mcp.json:

{
  "mcpServers": {
    "blockdag": {
      "command": "node",
      "args": ["/absolute/path/to/blockdag-mcp-server/dist/index.js"],
      "env": {
        "BLOCKDAG_RPC_URL": "https://your-blockdag-rpc",
        "BLOCKDAG_CHAIN_ID": "12345"
      }
    }
  }
}

Restart Cursor, then ask questions like:

  • "What's the balance of address 0x..."
  • "Show me network statistics"
  • "Get token info for contract 0x..."

With Claude Desktop

Edit your Claude Desktop configuration:

{
  "mcpServers": {
    "blockdag": {
      "command": "node",
      "args": ["/absolute/path/to/blockdag-mcp-server/dist/index.js"],
      "env": {
        "BLOCKDAG_RPC_URL": "https://your-blockdag-rpc",
        "BLOCKDAG_CHAIN_ID": "12345"
      }
    }
  }
}

Testing with MCP Inspector

npm install -g @modelcontextprotocol/inspector
mcp-inspector

Select "Local stdio process" and point to node dist/index.js

Development

# Run in development mode
npm run dev

# Build for production
npm run build

# Type checking
npm run type-check

# Run tests
npm test

Project Structure

blockdag-mcp-server/
├── src/
│   ├── index.ts          # Main server and tool implementations
│   ├── chain.ts          # BlockDAG chain configuration
│   └── types.ts          # Shared types and utilities
├── docs/
│   ├── features/         # Feature documentation
│   └── guides/           # User guides
├── tests/                # Test files
├── dist/                 # Compiled output
└── README.md

Documentation

Feature Docs

Examples

Get Network Info

"What's the current BlockDAG network status?"

Check Balance

"What's the BDAG balance of 0x742d35Cc6634C0532925a3b8D4C9db96C4b4d8b6?"

Token Balance

"Check token balance for wallet 0x... and token contract 0x..."

Network Statistics

"Show me current gas prices and network performance"

Transaction History

"Get the last 10 transactions for address 0x..."

Security

  • Read-only by default - No private keys or signing operations
  • Input validation - All inputs validated with Zod schemas
  • Error sanitization - Errors don't expose sensitive information
  • Type-safe - TypeScript strict mode prevents common bugs

Contributing

We welcome contributions! Whether you're fixing bugs, adding features, or improving documentation - all contributions are valued.

See CONTRIBUTING.md for guidelines.

Ways to Contribute

  • 🐛 Report bugs or issues
  • 💡 Suggest new features
  • 📝 Improve documentation
  • 🔧 Submit pull requests
  • ⭐ Star the repo if you find it useful

Community

  • GitHub Issues - Report bugs or request features
  • Pull Requests - Contribute code improvements
  • Discussions - Share ideas and get help

Roadmap

  • [ ] WebSocket support for real-time updates
  • [ ] Caching layer for improved performance
  • [ ] Multi-network configuration support
  • [ ] Advanced filtering and aggregation
  • [ ] Batch query support
  • [ ] NFT (ERC721/ERC1155) support

Performance Notes

For production use with high volume:

  • Consider using a block explorer API for transaction history
  • Implement caching for frequently queried data
  • Use smaller block ranges for network stats
  • See performance guide

License

MIT License - see LICENSE for details.

Acknowledgments

Built for the BlockDAG community. Thanks to everyone who has contributed, tested, and provided feedback.

---

Made with ❤️ for blockchain developers

See related servers & alternatives →

Related MCP servers

Browse all →

Related guides

Hand-picked reading to help you choose and use Finance & Payments servers.