Hermes Blockchain Oracle
An MCP server that connects Hermes Agent to the Solana blockchain, enabling natural language queries for wallets, tokens, NFTs, transactions, whale movements, and network health.
README
╦ ╦╔═╗╦═╗╔╦╗╔═╗╔═╗
╠═╣║╣ ╠╦╝║║║║╣ ╚═╗
╩ ╩╚═╝╩╚═╩ ╩╚═╝╚═╝
╔╗ ╦ ╔═╗╔═╗╦╔═╔═╗╦ ╦╔═╗╦╔╗╔
╠╩╗║ ║ ║║ ╠╩╗║ ╠═╣╠═╣║║║║
╚═╝╩═╝╚═╝╚═╝╩ ╩╚═╝╩ ╩╩ ╩╩╝╚╝
╔═╗╦═╗╔═╗╔═╗╦ ╔═╗
║ ║╠╦╝╠═╣║ ║ ║╣
╚═╝╩╚═╩ ╩╚═╝╩═╝╚═╝
<div align="center">
🔮 Hermes Blockchain Oracle
Giving Hermes Agent superpowers on the Solana blockchain
A Model Context Protocol (MCP) server that connects Hermes Agent to the Solana blockchain — enabling natural language queries for wallets, tokens, NFTs, transactions, whale movements, and network health.
</div>
🌟 What Is This?
Hermes Blockchain Oracle is an MCP server plugin for Hermes Agent by Nous Research. It acts as a bridge between conversational AI and the Solana blockchain, letting you ask questions in plain English and get rich, real-time on-chain data back.
No more copy-pasting wallet addresses into block explorers. No more decoding raw transaction logs. Just ask Hermes.
"What's the SOL balance of
7xKXtg...?" → Hermes knows."Are there any whale movements right now?" → Hermes is watching.
"Show me the NFTs in this wallet." → Hermes delivers.
⚡ Features
| Tool | Description |
|---|---|
🏦 solana_wallet_info |
Query any wallet's SOL balance, token holdings, and portfolio value |
🔍 solana_transaction |
Look up full transaction details by signature — instructions, fees, status |
🪙 solana_token_info |
Get token metadata, total/circulating supply, decimals, and holder count |
📜 solana_recent_activity |
Fetch recent transactions for any wallet with human-readable summaries |
🎨 solana_nft_portfolio |
List all NFTs in a wallet — collections, floor prices, and metadata |
🐋 whale_detector |
Detect large transfers on Solana in real-time — configurable thresholds |
📊 solana_network_stats |
Get current Solana network health, TPS, slot height, and epoch info |
🚀 Quick Start
1. Install
pip install hermes-blockchain-oracle
Or install from source:
git clone https://github.com/NousResearch/hermes-blockchain-oracle.git
cd hermes-blockchain-oracle
pip install -e .
2. Configure (Optional)
Set your preferred Solana RPC endpoint for best performance:
export SOLANA_RPC_URL="https://api.mainnet-beta.solana.com"
💡 Tip: For production use, consider a dedicated RPC provider like Helius, QuickNode, or Triton for higher rate limits and reliability.
3. Launch with Hermes Agent
hermes-agent --mcp blockchain=hermes-blockchain-oracle
That's it. Hermes Agent now has full Solana blockchain awareness. 🧠⛓️
💬 Usage Examples
Once the oracle is connected, just talk to Hermes naturally:
🏦 Wallet Lookup
You: "Check the SOL balance of GsBd49...2kMp"
Hermes: That wallet holds 1,247.83 SOL (~$285,000 USD) along with
12 token holdings including 50,000 BONK and 2.4 JTO...
🔍 Transaction Investigation
You: "What happened in transaction 4sGjMW...x9Qv?"
Hermes: This transaction was a token swap on Jupiter Aggregator.
2.5 SOL was swapped for 125,000 BONK. Fee: 0.000005 SOL.
Status: Confirmed (finalized). Block: 248,391,042.
🐋 Whale Detection
You: "Are there any whale movements happening right now?"
Hermes: 🐋 Alert! Detected 3 large transfers in the last 10 minutes:
• 50,000 SOL moved from Binance hot wallet → unknown wallet
• 2.1M USDC transferred between two whale wallets
• 180,000 JTO unstaked and moved to a fresh address
🎨 NFT Portfolio
You: "Show me what NFTs are in wallet Fxn7...kL9m"
Hermes: That wallet contains 23 NFTs across 5 collections:
• Mad Lads (3) — Floor: 85 SOL
• Tensorians (7) — Floor: 12 SOL
• Claynosaurz (2) — Floor: 28 SOL
...
📊 Network Health
You: "How's the Solana network doing right now?"
Hermes: Solana is operating normally.
• TPS: 3,847 (avg last 5 min)
• Current Slot: 248,392,105
• Epoch: 578 (63% complete)
• Active Validators: 1,847
• Network Version: 1.17.28
🪙 Token Research
You: "Tell me about the JTO token"
Hermes: Jito (JTO)
• Mint: jtojtomepa8beP8AuQc6eXt5FriJwfFMwQx2v2f9mCL
• Supply: 1,000,000,000 (11.6% circulating)
• Holders: 148,293
• Decimals: 9
• Description: Governance token for the Jito Network...
🏗️ Architecture
┌─────────────────────────────────────────────────────────┐
│ USER │
│ "Check this wallet..." │
└──────────────────────┬──────────────────────────────────┘
│
▼
┌─────────────────────────────────────────────────────────┐
│ HERMES AGENT │
│ (Nous Research LLM Runtime) │
│ │
│ ┌─────────────────────────────────────────────────┐ │
│ │ Model Context Protocol (MCP) │ │
│ │ Tool Discovery · Schema Negotiation │ │
│ │ Request Routing · Response Formatting │ │
│ └──────────────────────┬──────────────────────────┘ │
└──────────────────────────┼──────────────────────────────┘
│
▼
┌─────────────────────────────────────────────────────────┐
│ HERMES BLOCKCHAIN ORACLE │
│ (This MCP Server) │
│ │
│ ┌───────────┐ ┌───────────┐ ┌───────────────────┐ │
│ │ Wallet │ │ Token │ │ Transaction │ │
│ │ Tools │ │ Tools │ │ Tools │ │
│ └─────┬─────┘ └─────┬─────┘ └────────┬──────────┘ │
│ ┌─────┴─────┐ ┌─────┴─────┐ ┌────────┴──────────┐ │
│ │ NFT │ │ Whale │ │ Network │ │
│ │ Tools │ │ Detector │ │ Stats │ │
│ └─────┬─────┘ └─────┬─────┘ └────────┬──────────┘ │
│ └──────────────┼────────────────┘ │
└────────────────────────┼────────────────────────────────┘
│
▼
┌─────────────────────────────────────────────────────────┐
│ SOLANA BLOCKCHAIN │
│ RPC Nodes · Mainnet-Beta · On-Chain Programs │
└─────────────────────────────────────────────────────────┘
How MCP Integration Works
The Model Context Protocol (MCP) is a standardized interface that allows LLM agents to discover and invoke external tools. Here's the flow:
-
Registration — When Hermes Agent starts with
--mcp blockchain=hermes-blockchain-oracle, the oracle registers its 7 tools with the agent, including full JSON schemas describing each tool's parameters and return types. -
Discovery — Hermes Agent understands what tools are available and what they can do. When a user asks a blockchain-related question, the LLM autonomously decides which tool(s) to call.
-
Invocation — The agent constructs a structured tool call (e.g.,
solana_wallet_info(address="GsBd49...")) and sends it to the oracle server via the MCP transport layer. -
Execution — The oracle queries the Solana RPC, processes the raw data, and returns a structured response.
-
Synthesis — Hermes Agent incorporates the on-chain data into a natural language response for the user.
This architecture means the oracle is stateless, composable, and independently deployable — upgrade the oracle without touching the agent, or swap in a different blockchain oracle entirely.
🔧 Configuration
| Environment Variable | Default | Description |
|---|---|---|
SOLANA_RPC_URL |
https://api.mainnet-beta.solana.com |
Solana RPC endpoint |
ORACLE_PORT |
8420 |
Port for the MCP server |
WHALE_THRESHOLD_SOL |
1000 |
Minimum SOL transfer to trigger whale alerts |
WHALE_THRESHOLD_USD |
100000 |
Minimum USD value to trigger whale alerts |
CACHE_TTL_SECONDS |
30 |
Cache duration for repeated queries |
LOG_LEVEL |
INFO |
Logging verbosity (DEBUG, INFO, WARN, ERROR) |
🧪 Development
# Clone the repo
git clone https://github.com/NousResearch/hermes-blockchain-oracle.git
cd hermes-blockchain-oracle
# Create a virtual environment
python -m venv venv
source venv/bin/activate
# Install dev dependencies
pip install -e ".[dev]"
# Run tests
pytest tests/ -v
# Run the server standalone (for debugging)
python -m hermes_blockchain_oracle --debug
# Lint & format
ruff check .
ruff format .
🤝 Contributing
We welcome contributions from the community! Here's how to get involved:
- Fork the repository
- Create a feature branch (
git checkout -b feat/amazing-new-tool) - Write tests for your changes
- Ensure all tests pass (
pytest tests/ -v) - Lint your code (
ruff check . && ruff format .) - Commit with clear messages (
git commit -m "feat: add defi protocol analytics tool") - Push your branch and open a Pull Request
Ideas for Contributions
- 🆕 New tools (DeFi protocol stats, staking info, program analytics)
- 🌐 Support for additional Solana programs (Marinade, Raydium, Orca, etc.)
- ⚡ Performance optimizations and caching improvements
- 📖 Documentation and usage examples
- 🧪 Test coverage expansion
- 🐛 Bug fixes and error handling improvements
Please read our Code of Conduct before contributing.
📄 License
This project is licensed under the MIT License — see the LICENSE file for details.
MIT License
Copyright (c) 2025 Nous Research
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
<div align="center">
Built with 🧠 by Nous Research
Hermes sees all. On-chain and off.
⭐ Star this repo if you find it useful — it helps us know what the community wants!
Report Bug · Request Feature · Join Discord
</div>
推荐服务器
Baidu Map
百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
Playwright MCP Server
一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。
Magic Component Platform (MCP)
一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。
Audiense Insights MCP Server
通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。
VeyraX
一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。
graphlit-mcp-server
模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。
Kagi MCP Server
一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。
e2b-mcp-server
使用 MCP 通过 e2b 运行代码。
Neon MCP Server
用于与 Neon 管理 API 和数据库交互的 MCP 服务器
Exa MCP Server
模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。