Recall Block Explorer MCP Service
March 15, 2025 ยท View on GitHub
FIXME: Currently, this doesn't work. It requires the json file to be local to the client, and our block explorer api is too large to fit in most context windows.
This Model Context Protocol (MCP) service enables MCP-aware AI assistants to query and access the Recall block explorer, creating a powerful knowledge extension for your AI assistant.
Features
TODO
Prerequisites
- Node.js (v14 or later)
- npm or yarn
- Cursor IDE and/or any other MCP-aware IDE
- Claude Desktop and/or any other MCP-aware assistant
Basic Setup
- Configure Claude Desktop:
Add this to your
claude_desktop_config.json:{ "mcpServers": { "recall-block-explorer": { "command": "npx", "args": ["openapi-mcp-server", "https://raw.githubusercontent.com/recall/explorer-mcp/refs/heads/main/openapi.json"] } } } - Restart Claude Desktop and start interacting with your API!
Configure Cursor
- Open Cursor IDE
- Navigate to Settings โ MCP
- Click "Add new MCP server"
- Configure as follows:
- Name: Recall Block Explorer
- Type: command
- Command:
npx https://raw.githubusercontent.com/recall/explorer-mcp/refs/heads/main/openapi.json
- Click "Create" and ensure the server shows as "Enabled"
Usage
Once installed, you can interact with the Recall Block Explorer in two ways:
1. Natural Language Queries
Simply ask the AI assistant questions about the network:
"What is the latest block status on the Recall testnet?"
"Get me the latest stats on the Recall testnet"
"What is the current balance for the account 0x....?"
The AI will use your MCP to query the block explorer and provide relevant information.
2. Direct Tool Usage
You can also use the MCP tools directly:
// Get the latest stats
API-get_stats();
// Get a specific document by ID
API-get_transaction_summary({
txn: "0x..."
});
License
MIT
Acknowledgements
- OpenAPI MCP Server which handles everything
- Model Context Protocol for enabling custom tool integration