A Model Context Protocol (MCP) server that provides Stacks blockchain functionality for AI assistants like Claude.
generate_account
- Generate a new Stacks account with private keyget_account_balance
- Check STX balance for any Stacks address
get_network_status
- Get current network status and infoget_block_info
- Get block details by height or hashget_transaction_info
- Get transaction details by IDsearch_transactions
- Search transactions by address
check_api_status
- Check API key status and rate limits
Add to your Claude Desktop config file:
macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
Windows: %APPDATA%\Claude\claude_desktop_config.json
{
"mcpServers": {
"stacks-mcp-server": {
"command": "npx",
"args": ["stacks-mcp-server"],
"env": {
"STACKS_NETWORK": "testnet"
}
}
}
}
STACKS_NETWORK
- Default network:mainnet
,testnet
, ormocknet
(default:testnet
)HIRO_API_KEY
- Optional API key for higher rate limits (get one here)DEBUG
- Set to1
for debug logging
{
"mcpServers": {
"stacks-mcp-server": {
"command": "npx",
"args": ["stacks-mcp-server"],
"env": {
"STACKS_NETWORK": "testnet",
"HIRO_API_KEY": "your_api_key_here"
}
}
}
}
Once configured, you can ask Claude:
- "Generate a new Stacks testnet account"
- "Check the balance for address ST1ABC..."
- "Get the latest block info on mainnet"
- "Search for transactions for address ST1XYZ..."
- "What's the current network status?"
- Testnet: Safe for development and testing
- Mainnet: Production Stacks network
- Mocknet: Local development network
MIT