Sponsored by Deepsite.site

Wallet Inspector MCP

Created By
kukapay7 months ago
An MCP server that empowers AI agents to inspect any wallet’s balance and onchain activity across major EVM chains and Solana chain.
Content

Wallet Inspector MCP

An MCP server that empowers AI agents to inspect any wallet’s balance and onchain activity across major EVM chains and Solana chain.

GitHub License Python Version Status

Features

  • Multi-Chain Support: Queries Solana, Ethereum, Polygon, Binance Smart Chain (BSC), Base, Arbitrum and more.
  • Flexible Output: Balances in ASCII tables, activities and transactions in structured text.

Installation

Prerequisites

  • Python: Version 3.10 or higher.
  • Dune SIM API Key: Obtain from Dune Analytics.
  • Dependency Manager: uv (recommended) or pip.

Setup

  1. Clone the Repository:

    git clone https://github.com/kukapay/wallet-inspector-mcp.git
    cd wallet-inspector-mcp
    
  2. Install Dependencies:

    Using uv (recommended):

    uv async
    

    Or using pip:

    pip install mcp[cli] python-dotenv tabulate
    
  3. Installing to Claude Desktop:

    Install the server as a Claude Desktop application:

    uv run mcp install cli.py --name "Wallet Inspector"
    

    Configuration file as a reference:

    {
       "mcpServers": {
           "Wallet Inspector": {
               "command": "uv",
               "args": [ "--directory", "/path/to/wallet-inspector-mcp", "run", "main.py" ],
               "env": { "DUNE_SIM_API_KEY": "your_dune_sim_api_key_here"},               
           }
       }
    }
    

    Replace /path/to/wallet-inspector-mcp with your actual installation path, and your_dune_sim_api_key_here with your Dune SIM API key.

Usage

Interacting with the Server

Use an MCP-compatible client (e.g., Claude Desktop CLI) to query the server. Example natural language queries:

  • Balance Queries:

    • "Check the balance of wallet 0xd8da6bf26964af9d7eed9e03e53415d37aa96045."
    • "What is the balance for wallet DYw8jCTfwHNRJhhmFcbXvVDTqWMEVFBX6ZKUmG5CNSKK?"
    • "Get balances for 0x1234567890abcdef1234567890abcdef12345678 on EVM chains."
  • Activity Queries (EVM only):

    • "Show activity for wallet 0xd8da6bf26964af9d7eed9e03e53415d37aa96045."
    • "Get transaction history for 0x1234567890abcdef1234567890abcdef12345678 on EVM chains."
  • Transaction Queries:

    • "List transactions for wallet 0xd8da6bf26964af9d7eed9e03e53415d37aa96045 with limit 50."
    • "Show transaction history for wallet DYw8jCTfwHNRJhhmFcbXvVDTqWMEVFBX6ZKUmG5CNSKK."
    • "Get the latest 10 transactions for 0x1234567890abcdef1234567890abcdef12345678."

Example Outputs

  • Balance Output:

    Wallet 0xd8da6bf26964af9d7eed9e03e53415d37aa96045 balances:
    
    +----------+-----------------+-------------+
    | Chain    | Token Amount    | USD Value   |
    +==========+=================+=============+
    | ethereum | 605.371497 ETH  | $1842034.66 |
    +----------+-----------------+-------------+
    | polygon  | 100.500000 MATIC| $50.25      |
    +----------+-----------------+-------------+
    | bsc      | 10.000000 BNB   | $600.00     |
    +----------+-----------------+-------------+
    
    Wallet DYw8jCTfwHNRJhhmFcbXvVDTqWMEVFBX6ZKUmG5CNSKK balances:
    
    +----------+---------------+-------------+
    | Chain    | Token Amount  | USD Value   |
    +==========+===============+=============+
    | solana   | 1.000000 SOL  | $20.50      |
    +----------+---------------+-------------+
    
  • Activity Output (EVM only):

    Wallet 0xd8da6bf26964af9d7eed9e03e53415d37aa96045 activity:
    
    Chain ID: 8453
    Block Time: 2025-02-20T13:52:29+00:00
    Tx Hash: 0x184544c8d67a0cbed0a3f04abe5f958b96635e8c743c070f70e24b1c06cd1aa6
    Type: Receive
    Asset Type: ERC20
    Value: 123.069653 ENT
    USD Value: $0.14
    
  • Transaction Output:

    Wallet 0xd8da6bf26964af9d7eed9e03e53415d37aa96045 transactions:
    
    Chain: ethereum
    Block Time: 2023-11-07T05:31:56Z
    Tx Hash: 0x1234567890abcdef1234567890abcdef1234567890abcdef1234567890abcdef
    From: 0xd8da6bf26964af9d7eed9e03e53415d37aa96045
    To: 0x1234567890abcdef1234567890abcdef12345678
    Value: 0.000320 ETH
    
    Wallet DYw8jCTfwHNRJhhmFcbXvVDTqWMEVFBX6ZKUmG5CNSKK transactions:
    
    Chain: solana
    Block Time: 2023-03-28T09:20:00Z
    Tx Hash: 5SzSbWKM9yZC7cCGMhUhvnYdWQytrk9NBaWwug1gQBKKwNEBvBKqPSfVeYYnZwUuUyvcCHgYhDkTRrB6YBfwzfv8
    From: DYw8jCTfwHNRJhhmFcbXvVDTqWMEVFBX6ZKUmG5CNSKK
    To: 9xQeWvG816bUx9EPjHmaT23yvVM2ZWbrrpZb9PusVFin
    Value: 0.010000 SOL
    

Tools

get_wallet_balance

  • Description: Retrieves the balance of a specified wallet address across supported EVM and Solana blockchains.
  • Parameters:
    • wallet_address (str): The wallet address to query (e.g., '0x123...' for EVM chains or 'DYw8jCT...' for Solana).
  • Returns: An ASCII table with balance details (chain, token amount, USD value) or an error message.
  • Supported Chains: Solana,arbitrum,arbitrum,avalanche_c,base,berachain,bnb,ethereum and more.

get_wallet_activity

  • Description: Queries transaction activity for a specified wallet address on supported EVM blockchains.
  • Parameters:
    • wallet_address (str): The EVM-compatible wallet address to query (e.g., '0x123...').
  • Returns: Formatted text with activity details (chain_id, block_time, tx_hash, type, asset_type, value, value_usd) or an error message.
  • Supported Chains: Arbitrum,arbitrum,avalanche_c,base,berachain,bnb,ethereum and more.

get_wallet_transactions

  • Description: Fetches the transaction history of a specified wallet address on supported EVM and Solana blockchains.
  • Parameters:
    • wallet_address (str): The wallet address to query (e.g., '0x123...' for EVM chains or 'DYw8jCT...' for Solana).
    • limit (int, optional): Maximum number of transactions to return (default: 100).
  • Returns: Formatted text with transaction details (chain, block_time, tx_hash, from, to, value) or an error message.
  • Supported Chains: Solana,arbitrum,arbitrum,avalanche_c,base,berachain,bnb,ethereum and more.

License

This project is licensed under the MIT License. See the LICENSE file for details.

Recommend Servers
TraeBuild with Free GPT-4.1 & Claude 3.7. Fully MCP-Ready.
Visual Studio Code - Open Source ("Code - OSS")Visual Studio Code
Zhipu Web SearchZhipu Web Search MCP Server is a search engine specifically designed for large models. It integrates four search engines, allowing users to flexibly compare and switch between them. Building upon the web crawling and ranking capabilities of traditional search engines, it enhances intent recognition capabilities, returning results more suitable for large model processing (such as webpage titles, URLs, summaries, site names, site icons, etc.). This helps AI applications achieve "dynamic knowledge acquisition" and "precise scenario adaptation" capabilities.
Amap Maps高德地图官方 MCP Server
ChatWiseThe second fastest AI chatbot™
Serper MCP ServerA Serper MCP Server
MiniMax MCPOfficial MiniMax Model Context Protocol (MCP) server that enables interaction with powerful Text to Speech, image generation and video generation APIs.
Howtocook Mcp基于Anduin2017 / HowToCook (程序员在家做饭指南)的mcp server,帮你推荐菜谱、规划膳食,解决“今天吃什么“的世纪难题; Based on Anduin2017/HowToCook (Programmer's Guide to Cooking at Home), MCP Server helps you recommend recipes, plan meals, and solve the century old problem of "what to eat today"
CursorThe AI Code Editor
DeepChatYour AI Partner on Desktop
Jina AI MCP ToolsA Model Context Protocol (MCP) server that integrates with Jina AI Search Foundation APIs.
EdgeOne Pages MCPAn MCP service designed for deploying HTML content to EdgeOne Pages and obtaining an accessible public URL.
BlenderBlenderMCP connects Blender to Claude AI through the Model Context Protocol (MCP), allowing Claude to directly interact with and control Blender. This integration enables prompt assisted 3D modeling, scene creation, and manipulation.
WindsurfThe new purpose-built IDE to harness magic
Tavily Mcp
Baidu Map百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
Context7Context7 MCP Server -- Up-to-date code documentation for LLMs and AI code editors
Playwright McpPlaywright MCP server
MCP AdvisorMCP Advisor & Installation - Use the right MCP server for your needs
TimeA Model Context Protocol server that provides time and timezone conversion capabilities. This server enables LLMs to get current time information and perform timezone conversions using IANA timezone names, with automatic system timezone detection.
AiimagemultistyleA Model Context Protocol (MCP) server for image generation and manipulation using fal.ai's Stable Diffusion model.