π Next-gen AI assistant for Ethereum blockchain: natural language, RAG, MCP and a beautiful chat UI.
AI Blockchain Assistant is a comprehensive system for interacting with Ethereum using natural language. It features:
- π€ AI-powered CLI and Desktop Chat UI (Tauri + React)
- π RAG Knowledge Base (Retrieval-Augmented Generation)
- π Blockchain operations (ETH transfers, token swaps, contract queries)
- π External API integrations (DefiLlama, Brave Search, 0x)
ai-blockchain-assistant/
βββ crates/ # All Rust and frontend code
β βββ chatapp/ # Tauri + React chat UI
β βββ mcp-server/ # Main MCP server (Rust)
β βββ rig-client/ # CLI client (Rust)
β βββ shared/ # Shared Rust code
βββ data/ # Blockchain docs, ABIs, embeddings for RAG
β βββ docs/ # Markdown, Solidity, Uniswap docs
β βββ embeddings/ # Vector embeddings
βββ scripts/ # Shell scripts for setup and running
β βββ populate_rag.sh # Populate RAG with docs
β βββ run_app.sh # Run the Tauri app
β βββ run_repl.sh # Run the CLI REPL
βββ ...
User (CLI/Chat UI)
β
RIG Client (Rust CLI) / Tauri Chat UI (React)
β
MCP Server (Rust, LLM, RAG)
β
Forked Ethereum (Anvil, Foundry)
β
RAG Knowledge Base (Markdown, Solidity, Uniswap)
- Natural language blockchain commands (ETH, ERC20, Uniswap, etc)
- RAG-powered answers for blockchain concepts
- Token swaps, contract queries, and more
- CLI and beautiful desktop chat UI
- External API integrations
- Test accounts and local mainnet fork
- Rust & Cargo
- Node.js & npm (for chat UI)
- Foundry (auto-installed by scripts)
- Anthropic API key
Clone and enter the repo:
git clone https://github.com/superdev947/ai-blockchain-assistant.git
cd ai-blockchain-assistantSet your Anthropic API key:
export ANTHROPIC_API_KEY="your_api_key_here"chmod +x scripts/run_repl.sh
./scripts/run_repl.shcargo install tauri-cli
cd crates/chatapp
npm installthen
chmod +x scripts/run_app.sh
./scripts/run_app.shchmod +x scripts/populate_rag.sh
./scripts/populate_rag.sh
Modern, animated chat interface for your blockchain assistant
> send 1 ETH from Alice to Bob
> How much USDC does Alice have?
> Is Uniswap V2 Router (0x7a250d5630B4cF539739dF2C5dAcb4c659F2488D) deployed?
> Swap 10 ETH for USDC on Alice's account
> Explain how Uniswap V2 works
> What are the key functions in the ERC-20 standard?
Type your question or command in the chat window and get instant, AI-powered answers and blockchain actions.
The RAG (Retrieval-Augmented Generation) system enhances the AI assistant with knowledge about:
- Ethereum basics and concepts
- Token standards (ERC-20, ERC-721)
- Uniswap V2 and V3 protocols
- Smart contract interfaces
The system uses Anvil's default test accounts:
- Alice:
0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92266 - Bob:
0x70997970C51812dc3A010C7d01b50e0d17dc79C8
Each account comes with 10,000 ETH for testing.
scripts/populate_rag.shβ Populate the RAG system with blockchain docsscripts/run_app.shβ Run the Tauri chat UIscripts/run_repl.shβ Run the CLI REPL
Contributions, bug reports, and feature requests are welcome! Please open an issue or submit a pull request.