The problem with AI and blockchain data is simple: Claude knows a lot about Stacks, but it can't actually query the chain in real time.
So I built a fix.
Stacks MCP Server — an open source Model Context Protocol server that gives Claude real-time access to the Stacks blockchain.
What it can do:
✅ Check any STX wallet balance
✅ Get transaction history
✅ Read smart contract functions
✅ Fetch Clarity source code directly from the chain
✅ Get latest block info
✅ Switch between Testnet and Mainnet via environment variable — no code changes
Built with the official MCP SDK. Works with Claude Desktop out of the box.
Why I built it: I'm building StacksBit — trust infrastructure for African commerce on Stacks. I needed Claude to be able to monitor my escrow contracts in real time. So I built the tool and open sourced it.
Installation takes 3 steps:
Clone the repo
npm install
Add to Claude Desktop config
🐙 github.com/rogersterkaa/stacks-mcp-server
If you're building on Stacks or just curious about MCP, give it a star and let me know what tools you'd want added next.
Happy to answer questions in the comments. 🙏
Top comments (0)