BlockDAG MCP Server
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@BlockDAG MCP ServerWhat's the BDAG balance of 0x742d35Cc6634C0532925a3b8D4C9db96C4b4d8b6?"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
BlockDAG MCP Server
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.
Related MCP server: THORChain MCP Server
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 devFeatures
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 |
| Get chain ID and latest block number |
| Get BDAG balance for an address |
| Get transaction receipt by hash |
| Fetch block by tag (latest, hex, or decimal) |
| Query event logs with filters |
| Call read-only contract functions |
| Get ERC20 token balance and metadata |
| Get token details (name, symbol, supply) |
| Get transaction history with pagination |
| Get network statistics and metrics |
Installation
Prerequisites
Node.js 20 or higher
npm or yarn
BlockDAG RPC endpoint access
Setup
Clone the repository
git clone https://github.com/daveylupes/blockdag-mcp-server.git cd blockdag-mcp-serverInstall dependencies
npm installConfigure environment
cp env.example .envEdit
.env:BLOCKDAG_RPC_URL=https://your-blockdag-rpc BLOCKDAG_CHAIN_ID=12345Build 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-inspectorSelect "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 testProject 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.mdDocumentation
Testing Guide - How to test the server
Troubleshooting - Common issues and solutions
Contributing - How to contribute
Changelog - Version history
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
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
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/Rowell-Holdings/blockdag-mcp-server'
If you have feedback or need assistance with the MCP directory API, please join our Discord server