trackmcp
Back to directory
N-45div

chainguard

View on GitHub

ChainGuard is an AI-powered MCP server that enables Claude Desktop to perform real-time blockchain crime detection and forensic analysis across Bitcoin, Ethereum, Hedera, and Solana networks through natural language conversations.

6 stars JavaScriptAI & Machine Learning Updated Sep 7, 2025

Documentation

ChainGuard - Multi-Chain Blockchain Crime Detection MCP Server

ChainGuard is an AI-powered MCP server that enables Claude Desktop to perform real-time blockchain crime detection and forensic analysis across Bitcoin, Ethereum, Hedera, and Solana networks through natural language conversations.

๐Ÿ“‹ Detailed Project Description

ChainGuard revolutionizes blockchain security by bringing sophisticated crime detection capabilities directly into AI assistants through the Model Context Protocol (MCP). This innovative solution addresses the growing need for accessible blockchain forensics in the DeFi ecosystem.

Core Innovation:

  • MCP Integration: First-of-its-kind blockchain crime detection MCP server
  • Multi-Chain Support: Unified analysis across 4 major blockchain networks
  • Natural Language Interface: Complex blockchain analysis through simple conversations
  • Real-Time Detection: Live monitoring and analysis of suspicious activities

Technical Architecture:

  • Built on Cloudflare Workers for global scalability and low latency
  • Implements MCP Streamable HTTP transport protocol
  • Integrates with multiple blockchain APIs (Etherscan, Helius, BlockCypher, Hedera Mirror Node)
  • Advanced pattern recognition algorithms for crime detection
  • Comprehensive risk scoring and reputation systems

Use Cases:

  • DeFi protocol security auditing
  • Cryptocurrency exchange compliance
  • Law enforcement blockchain investigations
  • Individual wallet security assessment
  • Cross-chain money laundering detection

๐Ÿš€ Live Server: https://chainguard-mcp-server.ndivij2004.workers.dev/mcp

Hackathon Focus: MCPs + DeFi Automation

This project directly addresses the hackathon's core theme by:

  • MCP Integration: Full Model Context Protocol implementation for seamless AI assistant integration
  • DeFi Security: Advanced crime detection algorithms for DeFi protocols and transactions
  • Cross-Chain Analysis: Multi-blockchain support for comprehensive security coverage
  • Real-Time Detection: Live analysis of suspicious activities and patterns

๐Ÿ”ง Quick Setup for Claude Desktop

1. Configure Claude Desktop

Add this configuration to your Claude Desktop settings (`claude_desktop_config.json`):

json
{
  "mcpServers": {
    "chainguard": {
      "command": "npx",
      "args": [
        "mcp-remote",
        "https://chainguard-mcp-server.ndivij2004.workers.dev/mcp"
      ]
    }
  }
}

2. Restart Claude Desktop

After adding the configuration, restart Claude Desktop. The ChainGuard tools will appear under the ๐Ÿ”จ Tools section.

3. Start Analyzing

Try these example prompts:

  • "Analyze Bitcoin address 1A1zP1eP5QGefi2DMPTfTL5SLmv7DivfNa for suspicious activity"
  • "Check Ethereum address 0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045 for crime patterns"
  • "Generate a comprehensive crime report for multiple addresses"

๐Ÿ› ๏ธ Available Tools (9 Total)

ToolDescriptionBlockchain
`analyze_bitcoin_address`Bitcoin crime detection and transaction analysisBitcoin
`analyze_ethereum_address`Ethereum address analysis and smart contract risksEthereum
`analyze_hedera_account`Hedera account behavior and consensus analysisHedera
`analyze_solana_wallet`Solana wallet analysis and token risk detectionSolana
`detect_rug_pull_ethereum`Ethereum smart contract rug pull detectionEthereum
`detect_pump_dump_solana`Solana token pump & dump scheme detectionSolana
`analyze_cross_chain_activity`Multi-chain suspicious activity correlationAll Chains
`generate_crime_report`Comprehensive forensic reportsAll Chains
`check_address_reputation`Address reputation against crime databasesAll Chains

๐Ÿ“ฆ Install Steps

Prerequisites

Installation

bash
# 1. Clone the repository
git clone https://github.com/ndivij2004/MessariMCP.git
cd MessariMCP

# 2. Install dependencies
npm install

# 3. Copy environment variables template
cp .env.example .env

# 4. Build the project
npm run build

# 5. (Optional) Run locally for testing
npx wrangler dev

๐Ÿ” Environment Variables

The following environment variables are supported:

VariableDescriptionRequiredDefault
`ETHERSCAN_API_KEY`Etherscan API key for enhanced Ethereum dataNo`YourApiKeyToken`
`HELIUS_API_KEY`Helius API key for enhanced Solana dataNo`demo`
`BLOCKCYPHER_API_KEY`BlockCypher API key for Bitcoin dataNoNot used

Setting Environment Variables

For Local Development:

bash
# Edit .env file
ETHERSCAN_API_KEY=your_etherscan_api_key_here
HELIUS_API_KEY=your_helius_api_key_here

For Production (Cloudflare Workers):

bash
# Set secrets for production deployment
npx wrangler secret put ETHERSCAN_API_KEY
npx wrangler secret put HELIUS_API_KEY

# Verify secrets are set
npx wrangler secret list

Deploy to Cloudflare Workers

bash
# Deploy to production
npx wrangler deploy

# Check deployment status
npx wrangler tail

๐Ÿ” Key Features

Multi-Chain Crime Detection

  • Bitcoin Analysis: Transaction pattern analysis, mixer detection, and suspicious address identification
  • Ethereum Security: Smart contract rug pull detection, MEV analysis, and gas anomaly detection
  • Hedera Forensics: Account behavior analysis and consensus timestamp verification
  • Solana Monitoring: Pump & dump detection, wallet clustering, and program analysis

Advanced Detection Algorithms

  • Pattern Recognition: ML-powered detection of suspicious transaction patterns
  • Risk Scoring: Comprehensive risk assessment with weighted factors
  • Cross-Chain Correlation: Multi-blockchain activity pattern analysis
  • Real-Time Monitoring: Live detection of emerging threats and schemes

๐Ÿ’ก Usage Examples

Basic Address Analysis

code
User: "Analyze Bitcoin address 1A1zP1eP5QGefi2DMPTfTL5SLmv7DivfNa for suspicious activity"

ChainGuard Response:
- Transaction count: 1,000+
- Risk score: 15/100 (Low risk)
- Notable patterns: Genesis block address, high historical significance
- Recommendations: No suspicious activity detected

Multi-Chain Investigation

code
User: "Generate a comprehensive crime report for these addresses: 
- Bitcoin: 1BvBMSEYstWetqTFn5Au4m4GFg7xJaNVN2
- Ethereum: 0x742d35Cc6634C0532925a3b8D4C9db4C7b5d8B3E"

ChainGuard Response:
- Cross-chain risk score: 75/100 (High risk)
- Suspicious patterns detected across both chains
- Timing correlations found in transaction patterns
- Recommended for further investigation

DeFi Security Audit

code
User: "Check Ethereum contract 0x1f9840a85d5aF5bf1D1762F925BDADdC4201F984 for rug pull risks"

ChainGuard Response:
- Contract verification: โœ… Verified source code
- Ownership analysis: Decentralized governance
- Liquidity risks: Low
- Overall assessment: Safe for interaction

โš ๏ธ Known Issues

1. API Rate Limits:

    2. Historical Data Limitations:

      3. Cross-Chain Timing:

        4. False Positives:

          5. Network Dependencies:

            ๐Ÿ”ง Troubleshooting

            Common Issues

            Claude Desktop not showing tools:

            • Ensure `mcp-remote` is installed: `npm install -g mcp-remote`
            • Verify configuration in `claude_desktop_config.json`
            • Restart Claude Desktop after configuration changes

            API errors:

            • Check if API keys are properly set
            • Verify network connectivity
            • Check API provider status pages

            Build failures:

            • Ensure Node.js 18+ is installed
            • Clear node_modules and reinstall: `rm -rf node_modules && npm install`
            • Check TypeScript compilation: `npm run build`

            ๐Ÿ† Hackathon Achievements

            • โœ… Full MCP Implementation: Complete Model Context Protocol server
            • โœ… Multi-Chain Support: Bitcoin, Ethereum, Hedera, Solana integration
            • โœ… Production Ready: Deployed on Cloudflare Workers with API key management
            • โœ… Natural Language Interface: Seamless Claude Desktop integration
            • โœ… Advanced Analytics: Sophisticated crime detection algorithms
            • โœ… Real-Time Analysis: Live blockchain monitoring capabilities

            ๐Ÿ“„ License

            MIT License - See LICENSE file for details

            ๐Ÿ‘ค Project Information

            • Primary Contact: N DIVIJ (@holaworked - Telegram)
            • Team: Solo
            • Project Title: ChainGuard - Multi-Chain Blockchain Crime Detection MCP Server

            Frequently asked questions

            What is chainguard?

            chainguard is ChainGuard is an AI-powered MCP server that enables Claude Desktop to perform real-time blockchain crime detection and forensic analysis across Bitcoin, Ethereum, Hedera, and Solana networks through natural language conversations.

            How do I install chainguard?

            Open the GitHub repository and follow its README. Most MCP servers are added to your client's MCP config, then called by your agent.

            Is chainguard open source?

            Yes โ€” it is hosted on GitHub at https://github.com/N-45div/MessariMCP and has 6 stars.

            Related MCP tools

            Mintplex-Labsanything-llm

            The all-in-one Desktop & Docker AI application with built-in RAG, AI agents, No-code agent builder, MCP compatibility, and more.

            50,686 JavaScript
            ai-agentscustom-ai-agentsdeepseek+16
            eyaltoledanoclaude-task-master

            An AI-powered task-management system you can drop into Cursor, Lovable, Windsurf, Roo, and others. Built for the Model Context Protocol to enhance AI capabiliti

            23,033 JavaScript
            aicursorcursor-ai+9
            xszyoufay

            Fayๆ˜ฏไธ€ไธชๅธฎๅŠฉๆ•ฐๅญ—ไบบ๏ผˆ2.5dใ€3dใ€็งปๅŠจใ€pcใ€็ฝ‘้กต๏ผ‰ๆˆ–ๅคง่ฏญ่จ€ๆจกๅž‹๏ผˆopenaiๅ…ผๅฎนใ€deepseek๏ผ‰่ฟž้€šไธšๅŠก็ณป็ปŸ็š„mcpๆก†ๆžถใ€‚ JavaScript-based implementation. Trusted by 12000+ developers.

            12,003 JavaScript
            aiandroidapi+4
            sonnylazuardicursor-talk-to-figma-mcp

            CTTF: MCP integration between Cursor and Figma, allowing Cursor Agentic AI to communicate with Figma for reading designs and modifying them programmatically.

            5,539 JavaScript
            agentagenticagentic-ai+11
            mendableaifirecrawl-mcp-server

            ๐Ÿ”ฅ Official Firecrawl MCP Server - Adds powerful web scraping and search to Cursor, Claude and any other LLM clients. JavaScript-based implementation.

            4,847 JavaScript
            batch-processingclaudecontent-extraction+11
            wonderwhy-erdesktopcommandermcp

            This is MCP server for Claude that gives it terminal control, file system search and diff file editing capabilities JavaScript-based implementation.

            4,840 JavaScript
            agentaicode-analysis+5

            Run your own MCP server? See who uses it and what to fix.

            Measure it with TrackMCP