An AI-powered NFT trading analytics platform built for the bitsCrunch x AI Builders Hack 2025.
This project combines AI/LLM capabilities with Web3 market data to create an intelligent NFT analytics and trading assistant, featuring both a powerful MCP backend server and a modern Next.js frontend interface.
Built for the bitsCrunch x AI Builders Hack 2025, this project targets multiple hackathon tracks:
- Chatbots & Copilots: AI-powered chat interface for NFT market queries
- LLM Tools: Real-time NFT analytics using OpenAI integration
- NFT Analytics Dashboards: Visual interface for NFT trading insights
- Collection Analysis: Comprehensive safety scores and risk assessment for NFT collections
- Wash Trading Detection: Advanced algorithms to identify artificial trading volume
- Market Trends: Real-time market sentiment and trending collections
- Wallet Risk Analysis: Evaluate wallet behavior and trading patterns
- Investment Advice: AI-powered recommendations based on risk tolerance and budget
- AI-Powered Chat Interface: Interactive chat for NFT trading queries and analysis
- Voice Recognition: Speech-to-text capabilities for hands-free interaction
- Dark Theme UI: Modern, sleek interface optimized for trading
- Notification System: Market alerts and trading opportunities (Coming Soon)
- Responsive Design: Works seamlessly across desktop and mobile devices
- Monetization System: Premium features and subscription tiers
- Advanced Notifications: Real-time alerts for market movements
- bitsCrunch API Integration: Full integration with bitsCrunch's NFT analytics APIs
- Backend: FastMCP server with TypeScript
- Frontend: Next.js 15.2.4 with App Router
- UI Library: React 19
- AI Integration: OpenAI GPT-4 (integrated in both MCP server and frontend)
- Web3 Data:
- UnleashNFTs API for real-time blockchain data
- bitsCrunch APIs (planned integration)
- Speech Recognition: react-speech-recognition
- Styling: Tailwind CSS with shadcn/ui and Radix UI primitives
- Package Manager: pnpm
- Node.js 18+ and pnpm
- UnleashNFTs API key (get from unleashnfts.com)
- OpenAI API key (for AI chat functionality)
git clone https://github.com/Blockchain-Oracle/nftAnalytics.git
cd crunch
# Install backend dependencies
pnpm install
# Install frontend dependencies
cd nftAnalytics
pnpm install
cd ..Backend (.env):
cp .env.example .env
# Edit .env and add your API keys
UNLEASH_NFTS_API_KEY=your_unleashnfts_api_key_here
OPENAI_API_KEY=your_openai_api_key_hereFrontend (nftAnalytics/.env.local):
cd nftAnalytics
cp .env.example .env.local
# Edit .env.local and add your API keys
NEXT_PUBLIC_UNLEASHNFTS_API_KEY=your_unleashnfts_api_key_here
OPENAI_API_KEY=your_openai_api_key_hereTerminal 1 - Start FastMCP Server:
# From the root directory
pnpm dev
# Server will start on http://localhost:3001/mcpTerminal 2 - Start Frontend:
cd nftAnalytics
pnpm dev
# Frontend will start on http://localhost:3000- Open http://localhost:3000 in your browser
- Try the chat interface with questions like:
- "Analyze Bored Ape Yacht Club collection"
- "Check for wash trading in contract 0xBC4CA0EdA7647A8aB7C2061c2E118A18a936f13D"
- "What are the current NFT market trends?"
- "Analyze wallet risk for 0x742d35Cc6634C0532925a3b8D4C9db96C4b4d8b6"
# Interactive testing
pnpm test
# Inspector UI
pnpm inspectAdd to your Claude Desktop config:
{
"mcpServers": {
"nft-analytics": {
"command": "npx",
"args": ["tsx", "/path/to/crunch/src/index.ts", "--stdio"],
"env": {
"UNLEASH_NFTS_API_KEY": "your_api_key"
}
}
}
}AI-powered chat interface that orchestrates all other tools.
- Parameters:
message(required): User's messagecontext(optional): Previous conversation history
- Returns: AI response with tool results and analysis
Analyze an NFT collection for safety and investment potential.
- Parameters:
collection_address(required): Contract addressblockchain(optional): "ethereum" or "polygon" (default: ethereum)
- Returns: Safety score (0-100), risks, metrics, wash trading data
Detect wash trading activities in an NFT collection.
- Parameters:
collection_address(required): Contract addressblockchain(optional): "ethereum" or "polygon"
- Returns: Wash trading percentage, severity, recommendations
Get current NFT market trends and metrics.
- Parameters:
time_range(optional): "24h", "7d", "30d" (default: 24h)include_trending(optional): Include trending collections
- Returns: Market metrics, sentiment, trending collections
Analyze a wallet address for risk factors.
- Parameters:
wallet_address(required): Wallet address to analyzeblockchain(optional): "ethereum" or "polygon"
- Returns: Risk score, risk factors, profile, recommendations
Get AI-powered investment advice for NFT collections.
- Parameters:
collection_address(required): Contract addressinvestment_amount(optional): Budget in USDrisk_tolerance(optional): "low", "medium", "high"
- Returns: Recommendations, confidence score, specific advice
crunch/
โโโ src/
โ โโโ index.ts # FastMCP server with integrated AI
โ โโโ unleash-client.ts # UnleashNFTs API client
โ โโโ tools/ # Individual tool implementations (legacy)
โโโ nftAnalytics/ # Frontend application
โ โโโ app/ # Next.js app directory
โ โ โโโ api/ # API routes
โ โ โ โโโ chat/ # Chat API endpoint
โ โ โโโ chat/ # Chat interface page
โ โ โโโ about/ # About page
โ โ โโโ contact/ # Contact page
โ โ โโโ notifications/ # Notifications page
โ โโโ components/ # React components
โ โ โโโ sections/ # Page sections
โ โ โโโ ui/ # UI components
โ โ โโโ kokonutui/ # Custom UI components
โ โโโ hooks/ # Custom React hooks
โ โโโ lib/ # Utility functions
โ โโโ public/ # Static assets
โโโ README.md
- Ensure port 3001 is available
- Check UnleashNFTs API key is valid
- Run
pnpm devin the root directory
- Verify OpenAI API key is set
- Check console for specific errors
- Ensure FastMCP server is running
- "FastMCP server not available": Start the backend server first
- "401 Unauthorized": Check your API keys
- "Collection not found": Verify contract address format
- Fork the repository
- Create your feature branch (
git checkout -b feature/amazing-feature) - Commit your changes (
git commit -m 'Add amazing feature') - Push to the branch (
git push origin feature/amazing-feature) - Open a Pull Request
This project is licensed under the MIT License - see the LICENSE file for details.
Planned integrations with bitsCrunch APIs:
- Wallet risk scoring and profiling
- NFT forgery detection
- Wash trading analysis
- Real-time collection valuation
- Whale wallet tracking
This project is submitted for the bitsCrunch x AI Builders Hack 2025.
- Track: Chatbots & Copilots / LLM Tools / NFT Analytics Dashboards
- Team: Blockchain Oracle
- #CrunchHack2025
- bitsCrunch for organizing the hackathon
- UnleashNFTs for providing comprehensive NFT data
- FastMCP for the MCP server framework
- Vercel AI SDK for AI integration
- shadcn/ui for UI components
Built with โค๏ธ for the NFT community and the bitsCrunch x AI Builders Hack 2025