โฆ โฆโโโโฆโโโโฆโโโโโโโ
โ โโฃโโฃ โ โฆโโโโโโฃ โโโ
โฉ โฉโโโโฉโโโฉ โฉโโโโโโ
โโ โฆ โโโโโโโฆโโโโโโฆ โฆโโโโฆโโโ
โ โฉโโ โ โโ โ โฉโโ โ โโฃโ โโฃโโโโ
โโโโฉโโโโโโโโโฉ โฉโโโโฉ โฉโฉ โฉโฉโโโ
โโโโฆโโโโโโโโโฆ โโโ
โ โโ โฆโโ โโฃโ โ โโฃ
โโโโฉโโโฉ โฉโโโโฉโโโโโ
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.
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.
| 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 |
pip install hermes-blockchain-oracleOr install from source:
git clone https://github.com/NousResearch/hermes-blockchain-oracle.git
cd hermes-blockchain-oracle
pip install -e .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.
hermes-agent --mcp blockchain=hermes-blockchain-oracleThat's it. Hermes Agent now has full Solana blockchain awareness. ๐ง โ๏ธ
Once the oracle is connected, just talk to Hermes naturally:
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...
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.
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
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
...
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
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...
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ 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 โ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
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.
| 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) |
# 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 .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
- ๐ 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.
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.
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!