Skip to content

gizdusum/hermes-blockchain-oracle

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

1 Commit
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

    โ•ฆ โ•ฆโ•”โ•โ•—โ•ฆโ•โ•—โ•”โ•ฆโ•—โ•”โ•โ•—โ•”โ•โ•—
    โ• โ•โ•ฃโ•‘โ•ฃ โ• โ•ฆโ•โ•‘โ•‘โ•‘โ•‘โ•ฃ โ•šโ•โ•—
    โ•ฉ โ•ฉโ•šโ•โ•โ•ฉโ•šโ•โ•ฉ โ•ฉโ•šโ•โ•โ•šโ•โ•
    โ•”โ•— โ•ฆ  โ•”โ•โ•—โ•”โ•โ•—โ•ฆโ•”โ•โ•”โ•โ•—โ•ฆ โ•ฆโ•”โ•โ•—โ•ฆโ•”โ•—โ•”
    โ• โ•ฉโ•—โ•‘  โ•‘ โ•‘โ•‘  โ• โ•ฉโ•—โ•‘  โ• โ•โ•ฃโ• โ•โ•ฃโ•‘โ•‘โ•‘โ•‘
    โ•šโ•โ•โ•ฉโ•โ•โ•šโ•โ•โ•šโ•โ•โ•ฉ โ•ฉโ•šโ•โ•โ•ฉ โ•ฉโ•ฉ โ•ฉโ•ฉโ•โ•šโ•
    โ•”โ•โ•—โ•ฆโ•โ•—โ•”โ•โ•—โ•”โ•โ•—โ•ฆ  โ•”โ•โ•—
    โ•‘ โ•‘โ• โ•ฆโ•โ• โ•โ•ฃโ•‘  โ•‘  โ•‘โ•ฃ
    โ•šโ•โ•โ•ฉโ•šโ•โ•ฉ โ•ฉโ•šโ•โ•โ•ฉโ•โ•โ•šโ•โ•

๐Ÿ”ฎ Hermes Blockchain Oracle

Giving Hermes Agent superpowers on the Solana blockchain

MCP Compatible Solana Python License: MIT Nous Research


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.


๐ŸŒŸ 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:

  1. 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.

  2. 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.

  3. 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.

  4. Execution โ€” The oracle queries the Solana RPC, processes the raw data, and returns a structured response.

  5. 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:

  1. Fork the repository
  2. Create a feature branch (git checkout -b feat/amazing-new-tool)
  3. Write tests for your changes
  4. Ensure all tests pass (pytest tests/ -v)
  5. Lint your code (ruff check . && ruff format .)
  6. Commit with clear messages (git commit -m "feat: add defi protocol analytics tool")
  7. 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.

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

About

๐Ÿ”ฎ Hermes Blockchain Oracle - A Solana blockchain intelligence MCP server for Hermes Agent. Query wallets, track whales, analyze tokens, explore NFTs, and monitor network health through natural language.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages