wallet-analytics-mcp

wallet-analytics-mcp

Fetches and parses on-chain swap transactions from blockchain wallets for LLM-based analysis, supporting Solana with DEX detection and token classification.

Category
访问服务器

README

Blockchain wallet analytics MCP

PyPI Python License: MIT Coverage Last Commit

MCP server for retriving on-chain wallet swap transactions. Fetches and parses swap data from blockchain wallets for LLM based analysis.

Features

  • DEX detection — Identifies Raydium, Jupiter, Meteora, Orca, Pump.fun from transaction instructions
  • Token classification — Auto-labels stablecoins, base currencies, and meme tokens
  • Transaction categories — Classifies swaps, transfers, staking, NFT mints
  • Multi-hop support — Aggregates complex swap paths into single entries
  • Currency-agnostic filtersmin_amount_sent/received work on any token, not just SOL
  • RPC auto-detection — Single SOLANA_RPC_URL config; detects provider from URL

Supported Chains

Chain Status Env Var
Solana ✅ Implemented SOLANA_RPC_URL
Ethereum 🔜 Planned ETH_RPC_URL
Base 🔜 Planned BASE_RPC_URL
BSC 🔜 Planned BSC_RPC_URL

The parser is chain-agnostic in design — swap detection logic applies to any EVM or Solana wallet. New chains are added by extending the transaction parsing module.

Use Cases

Use Case Description Recommended Filters
Copy Trading Track a profitable wallet's swaps in real-time and mirror their trades token_type_filter="meme" to focus on high-risk, high-reward plays
Wallet Profiling Analyze trading patterns — preferred DEX, position sizes, token preferences No filters; use full data for strategy and risk assessment
Alpha Discovery Scan wallets connected to new token launches exclude_categories=["transfer", "staking"] to isolate pure swap activity
DeFi Analytics Aggregate swap volume across a portfolio of wallets min_amount_sent to filter out dust trades
Stablecoin Flow Tracking Monitor large stablecoin movements for capital inflows/outflows token_type_filter="stablecoin", min_amount_sent=10000

Installation

pip install wallet-analytics-mcp

Or via uv:

uv pip install wallet-analytics-mcp

Quick Start

Run without installing using uvx:

uvx wallet-analytics-mcp

Configuring an MCP Client

Add to your client's MCP configuration. Example for Claude Desktop (~/.claude/claude_desktop_config.json):

{
  "mcpServers": {
    "wallet-analytics": {
      "command": "uvx",
      "args": ["wallet-analytics-mcp"],
      "env": {
        "SOLANA_RPC_URL": "https://your-rpc-endpoint"
      }
    }
  }
}

The env block passes variables directly to the server subprocess — no need to export them globally. Other MCP-compatible clients (Cursor, Windsurf, Cline, etc.) use the same JSON config format.

Configuration

All settings via environment variables:

Variable Default Description
SOLANA_RPC_URL Solana public RPC Any Solana RPC endpoint (Alchemy, Helius, QuickNode)
SOLANA_RPC_TIMEOUT 30 RPC timeout in seconds
SOLANA_TX_LIMIT 30000 Max transactions per wallet

Point SOLANA_RPC_URL at any provider — Alchemy, Helius, QuickNode, etc. Falls back to Solana public if not set.

Available Tools

get_raw_transactions

Fetch all detected swap transactions for a wallet address. By default returns every swap regardless of token pair. Optional filters let the LLM narrow results.

Parameters:

Parameter Type Required Description
wallet_address string Yes Solana wallet public key (base58)
start_date string No ISO 8601 date (default: 30 days ago)
end_date string No ISO 8601 date (default: now)
filter_stablecoin_pairs bool No Drop swaps where both tokens are base currencies (default: false)
token_type_filter string No "meme" — keep swaps with at least one non-stablecoin token; "stablecoin" — keep only stablecoin/base swaps
min_amount_sent number No Minimum token quantity sent to include the swap
min_amount_received number No Minimum token quantity received to include the swap
exclude_categories list No Categories to exclude: "transfer", "staking", "nft", "other"

Returns: List of swaps with token pairs, quantities, timestamps, signatures, DEX platform, and transaction category. Response includes filters_applied showing which filters were active.

Design

The parser returns all detected swaps — no hard-coded drops. Filtering happens at the tool level so the LLM decides what's relevant. Each swap includes:

  • Platform — Detected DEX program (Raydium, Jupiter, Meteora, Orca, Pump.fun) from transaction instructions
  • Category — Transaction type (swap, transfer, staking, nft, other) based on program IDs called
  • Token Symbols — Human-readable symbols for known tokens (e.g., BONK, WIF, POPCAT)

This catches USDC→meme swaps, meme-to-meme trades, and any other token pair.

Logging

Logs written to log/mcp_server.log in the package directory.

Attribution

This project was generated by Qwen3.6-27B (Q3_K_M quant) running locally via llama.cpp. Key inference settings:

  • Context: 65,536 tokens
  • Temperature: 0.6, Top-K: 20, Top-P: 0.95
  • Presence penalty: 1.5
  • Flash attention enabled, Q8_0 KV cache

License

MIT

推荐服务器

Baidu Map

Baidu Map

百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。

官方
精选
JavaScript
Playwright MCP Server

Playwright MCP Server

一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。

官方
精选
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。

官方
精选
本地
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。

官方
精选
本地
TypeScript
VeyraX

VeyraX

一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。

官方
精选
本地
graphlit-mcp-server

graphlit-mcp-server

模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。

官方
精选
TypeScript
Kagi MCP Server

Kagi MCP Server

一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。

官方
精选
Python
e2b-mcp-server

e2b-mcp-server

使用 MCP 通过 e2b 运行代码。

官方
精选
Neon MCP Server

Neon MCP Server

用于与 Neon 管理 API 和数据库交互的 MCP 服务器

官方
精选
Exa MCP Server

Exa MCP Server

模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。

官方
精选