Chiliz MCP
Analyzes Reddit discussions to provide social sentiment analysis for Chiliz fan tokens.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@Chiliz MCP analyze whale movements for CHZ"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
Chiliz MCP
Advanced Model Context Protocol (MCP) server for the Chiliz blockchain ecosystem. Features comprehensive tools for fan token management, DeFi operations, sports analytics, and social sentiment tracking.

Features
Core Blockchain Tools
Real-time Price Tracking: Live prices for all Chiliz fan tokens
Wallet Management: Balance checking, transaction history, portfolio analytics
Transaction Capabilities: Send CHZ, swap tokens, approve spending
Smart Contract Deployment: Deploy ERC-20 tokens, NFT collections, and custom contracts
Blockchain Analytics: Network stats, gas prices, block explorer integration
WebSocket Monitoring: Real-time block updates, pending transactions, contract events
Advanced Analytics
Smart Money Tracking: Whale movements, unusual patterns detection
Token Velocity Analysis: Trading volume, liquidity metrics
Social Sentiment: Twitter/Reddit sentiment analysis for fan tokens
Sports Correlation: Team performance impact on token prices
Supported Fan Tokens
Support for major Chiliz fan tokens including:
European clubs: PSG, Barcelona, Juventus, Manchester City, AC Milan, Inter Milan
Brazilian clubs: Flamengo (MENGO), Corinthians (SCCP), Sรฃo Paulo (SPFC), Palmeiras (VERDAO)
Esports: OG, Natus Vincere, Team Heretics
Sports: UFC, PFL
FanX DEX Integration
Liquidity pool analytics
Optimal swap routing
APY calculations
Impermanent loss tracking
๐ Enterprise Security
KeyManager: AES-256-GCM encrypted private key storage
TransactionSigner: Secure transaction signing with confirmation callbacks
Key Rotation: Support for multiple encrypted keys with ID-based management
Environment Protection: Secure key handling from environment or encrypted storage
๐ Advanced Error Handling & Resilience
Automatic Retry: Exponential backoff for transient failures
Circuit Breaker: Fast-fail pattern for persistent errors
Custom Error Types: Comprehensive error hierarchy (NetworkError, RPCError, ValidationError, etc.)
Error Context: Detailed error information with retryable status and metadata
โก Real-time Streaming
PriceStream: Live price updates with WebSocket auto-reconnection
Whale Alerts: Configurable threshold for large transaction notifications
DEX Activity: Real-time swap and liquidity event monitoring
Event-Driven: EventEmitter-based architecture for flexible subscriptions
๐ 1inch DEX Aggregation
Multi-DEX Routing: Find best prices across multiple DEXes
Swap Optimization: Automatic path finding for optimal execution
Gas Estimation: Pre-execution cost analysis
Token Approvals: Simplified approval transaction generation
๐ Advanced Analytics Tools
GasEstimator: Real-time gas price recommendations (slow/standard/fast)
Transaction Cost Analysis: Comprehensive cost breakdowns with network congestion detection
PortfolioTracker: Complete portfolio analytics with ROI, diversity scores, and performance metrics
Portfolio Comparison: Multi-wallet analysis and benchmarking
๐งช Production-Ready Testing
Jest Framework: Comprehensive unit and integration tests
70% Coverage Target: Enforced code coverage thresholds
ESM Support: Modern JavaScript module testing
CI Integration: Automated testing on every commit
๐ CI/CD Pipelines
Automated Testing: Matrix testing across Node 18.x and 20.x
Build Verification: TypeScript compilation and type checking
Automated Publishing: npm and GitHub Packages deployment on release
Release Automation: Changelog generation and GitHub releases
๐ Monitoring & Observability
Telemetry System: Comprehensive metrics collection (requests, errors, response times)
Performance Tracking: p95/p99 response time monitoring
Health Checks: Automated system health status
Prometheus Export: Standard metrics format for monitoring tools
๐ณ Production Deployment
Docker Support: Multi-stage optimized builds
Docker Compose: Full stack with Redis, Prometheus, and Grafana
Health Checks: Container health monitoring
Non-root User: Security-hardened container execution
Related MCP server: Onesource MCP
Installation
Quick Start
Clone the repository
git clone https://github.com/BrunoPessoa22/chiliz-mcp.git
cd chiliz-mcpInstall dependencies
npm installConfigure environment
cp .env.example .env
# Edit .env with your configurationBuild the project
npm run buildStart the MCP server
npm startUsing with Claude Desktop
Install the MCP server globally:
npm install -g chiliz-mcpAdd to Claude Desktop configuration (
~/Library/Application Support/Claude/claude_desktop_config.json):
{
"mcpServers": {
"chiliz-mcp": {
"command": "node",
"args": ["/path/to/chiliz-mcp/dist/index.js"],
"env": {
"CHILIZ_RPC_URL": "https://rpc.ankr.com/chiliz",
"NETWORK": "mainnet"
}
}
}
}Restart Claude Desktop
Configuration
Required Environment Variables
Variable | Description | Example |
| Chiliz mainnet RPC endpoint |
|
| WebSocket endpoint for real-time monitoring |
|
| Network to connect to |
|
| CoinGecko API key (optional) | Your API key |
Optional Configuration
Variable | Description | Default |
| Cache time-to-live (seconds) |
|
| Max requests per window |
|
| Wallet private key for transactions | None |
Available Tools
Price Tools
get_token_price- Get current price for any fan tokenget_price_history- Historical price data with chartsget_market_overview- Market cap rankings and trends
Wallet Tools
get_wallet_balance- Check CHZ and token balancesget_transaction_history- Transaction history for addressesget_portfolio_value- Total portfolio valuation
Transaction Tools
send_chz- Send CHZ to another addresssend_fan_token- Transfer fan tokensswap_tokens- Swap between fan tokens via DEXapprove_token- Approve token spending
Smart Contract Deployment Tools
deploy_erc20_token- Deploy custom ERC-20 tokensdeploy_nft_collection- Deploy ERC-721 NFT collectionsdeploy_custom_contract- Deploy arbitrary Solidity contracts
Analytics Tools
track_whale_movements- Monitor large transactionsanalyze_token_velocity- Trading volume analysisdetect_unusual_patterns- Anomaly detectionget_liquidity_metrics- DEX liquidity analyticsestimate_gas- Advanced gas estimation with cost analysisget_gas_price_recommendations- Get slow/standard/fast gas pricesanalyze_transaction_cost- Comprehensive transaction cost breakdowncalculate_optimal_gas_price- Calculate optimal gas by urgencytrack_portfolio- Track portfolio value and analyticsget_portfolio_performance- ROI and performance metricsget_portfolio_diversity- Diversity score and recommendationscompare_portfolios- Compare multiple wallet portfolios
1inch DEX Tools
get_1inch_quote- Get swap quote from 1inch aggregatorget_1inch_swap- Get swap transaction dataget_1inch_tokens- List supported tokensget_1inch_liquidity_sources- Get available DEX sourcesfind_best_route- Find optimal swap route across DEXes
Social & Sports Tools
get_social_sentiment- Twitter/Reddit sentimentget_team_performance- Sports results correlationanalyze_fan_engagement- Community metrics
WebSocket Real-time Monitoring
start_block_monitoring- Monitor new blocks in real-timestart_log_monitoring- Track contract events/logsstart_pending_tx_monitoring- Watch pending transactionsmonitor_fan_token_transfers- Real-time token transfer alertsget_recent_blocks- Retrieve recent block historyget_recent_logs- Get recent contract eventsget_recent_pending_transactions- View pending tx poolget_websocket_status- Check connection statusstop_all_monitoring- Stop all real-time subscriptions
Development
Project Structure
chiliz-mcp/
โโโ src/
โ โโโ tools/ # MCP tool implementations
โ โโโ api/ # External API clients
โ โโโ security/ # KeyManager & TransactionSigner
โ โโโ errors/ # Error handling & retry logic
โ โโโ streaming/ # Real-time PriceStream
โ โโโ dex/ # 1inch DEX integration
โ โโโ monitoring/ # Telemetry & metrics
โ โโโ config/ # Configuration & validation
โ โโโ types/ # TypeScript definitions
โ โโโ index.ts # Main MCP server
โโโ tests/
โ โโโ unit/ # Unit tests
โ โโโ integration/ # Integration tests
โโโ .github/workflows/ # CI/CD pipelines
โโโ docs/ # Documentation
โโโ landing-page/ # Documentation website
โโโ Dockerfile # Docker deploymentRunning Tests
# Run all tests
npm test
# Run unit tests only
npm run test:unit
# Run integration tests only
npm run test:integration
# Run tests in watch mode
npm run test:watch
# Generate coverage report
npm run test:coverageBuilding from Source
npm run build
npm run dev # Development mode with watchDeployment
Deploy Landing Page to Vercel
cd landing-page
npx vercelDeploy to Production
Set up production environment variables
Build for production:
npm run build:prodDeploy using your preferred method (Docker, PM2, systemd)
Docker Deployment
Using Docker Compose (Recommended):
# Start all services (MCP + Redis)
docker-compose up -d
# Start with monitoring stack (includes Prometheus + Grafana)
docker-compose --profile monitoring up -d
# View logs
docker-compose logs -f chiliz-mcp
# Stop all services
docker-compose downUsing Docker directly:
# Build image
docker build -t chiliz-mcp .
# Run container
docker run -d --name chiliz-mcp \
-p 9090:9090 \
-e CHILIZ_RPC_URL=https://rpc.ankr.com/chiliz \
-e NETWORK=mainnet \
chiliz-mcp
# Check health
docker ps
docker logs chiliz-mcpDocumentation
Full documentation available at: https://chiliz-mcp.vercel.app
Example Usage
// Get Flamengo token price
const price = await mcp.callTool('get_token_price', {
symbol: 'MENGO'
});
// Check wallet balance
const balance = await mcp.callTool('get_wallet_balance', {
address: '0x...',
tokens: ['MENGO', 'SCCP']
});
// Swap tokens via FanX DEX
const swap = await mcp.callTool('swap_tokens', {
tokenIn: 'CHZ',
tokenOut: 'MENGO',
amount: '100'
});
// Deploy ERC-20 token
const token = await mcp.callTool('deploy_erc20_token', {
name: 'Flamengo Fan Token',
symbol: 'MENGO',
initialSupply: 1000000
});
// Deploy NFT collection
const nft = await mcp.callTool('deploy_nft_collection', {
name: 'Match Highlights',
symbol: 'HIGHLIGHT',
maxSupply: 10000,
baseTokenURI: 'ipfs://QmXxx/'
});Contributing
We welcome contributions! See CONTRIBUTING.md for guidelines.
Recently Completed โ
โ 1inch DEX integration
โ WebSocket real-time updates
โ Advanced error handling & retry logic
โ Security features (KeyManager, TransactionSigner)
โ Portfolio tracking & analytics
โ Testing suite with 70% coverage
โ CI/CD pipelines
โ Docker deployment
โ Monitoring & telemetry
Current Priority Areas
High Priority: Multi-chain support (expand beyond Chiliz)
High Priority: GraphQL API layer
Medium Priority: Historical data storage & analytics
Medium Priority: Advanced NFT marketplace integration
Low Priority: UI dashboard for monitoring
License
MIT License - see LICENSE file
Links
Quick Commands
# Install
npm install -g chiliz-mcp
# Check version
chiliz-mcp --version
# Run server
chiliz-mcp start
# Run tests
chiliz-mcp test
# View logs
chiliz-mcp logsAcknowledgments
Built with love for the Chiliz community. Special thanks to all Brazilian football fans!
Note: This is an independent project and is not officially affiliated with Chiliz. Always verify smart contract addresses and exercise caution when handling private keys.
Available Tools
52 toolsanalyze_holder_distributionC
Analyze token holder distribution and concentration
Inputs: symbol (required).
analyze_team_performanceC
Analyze correlation between team performance and token price
Inputs: token (required), period.
approve_tokenC
Approve token spending for a contract
Inputs: token (required), amount (required), spender (required).
calculate_optimal_stakeC
Calculate optimal stake distribution across validators
Inputs: amount (required), duration, riskTolerance.
calculate_price_impactB
Calculate price impact for a swap on KAYEN
Inputs: tokenIn (required), amountIn (required), poolAddress (required).
calculate_staking_rewardsC
Calculate staking rewards projection
Inputs: amount (required), days, validatorAddress.
calculate_token_velocityC
Calculate token velocity and turnover metrics
Inputs: token (required), period.
compare_token_distributionsB
Compare holder distributions across multiple tokens
Inputs: symbols (required).
compare_validatorsC
Compare Chiliz validators by performance and metrics
Inputs: limit, sortBy.
deploy_custom_contractC
Deploy a custom Solidity smart contract on Chiliz blockchain
Inputs: sourceCode (required), contractName (required), constructorArgs.
deploy_erc20_tokenC
Deploy a custom ERC-20 token on Chiliz blockchain
Inputs: name (required), symbol (required), initialSupply (required).
deploy_nft_collectionB
Deploy an ERC-721 NFT collection on Chiliz blockchain
Inputs: name (required), symbol (required), maxSupply (required), baseTokenURI (required).
detect_arbitrageC
Detect arbitrage opportunities between KAYEN and other DEXs
Inputs: maxPriceImpact, minProfitPercentage.
detect_whale_tradesC
Detect large transactions (whale trades)
Inputs: blockRange, minValueUSD.
find_best_swap_routeC
Find optimal swap route on KAYEN Protocol
Inputs: tokenIn (required), amountIn (required), tokenOut (required).
get_blockchain_infoC
Get current Chiliz blockchain information
Inputs: no named parameters.
get_fan_token_priceB
Get current price and market data for a fan token
Inputs: symbol (required).
get_fan_tokens_listB
Get list of all supported fan tokens
Inputs: no named parameters.
get_governance_historyC
Get governance proposal and voting history for a token
Inputs: symbol (required), limit, status.
get_historical_price_dataC
Get historical price data from The Graph subgraph
Inputs: symbol (required), days, interval.
get_influencer_activityD
Track influencer mentions and activity
Inputs: token (required), minFollowers.
get_league_standingsC
Get league standings for a specific league
Inputs: league (required).
get_market_chartC
Get historical price chart data for a token
Inputs: symbol (required), days.
get_market_sentimentC
Get overall market sentiment analysis
Inputs: token (required).
get_multiple_pricesB
Get prices for multiple fan tokens at once
Inputs: symbols (required).
get_my_balanceB
Get balance of configured wallet (requires PRIVATE_KEY env)
Inputs: no named parameters.
get_pool_apyB
Get APY for a KAYEN liquidity pool
Inputs: poolAddress (required), period.
get_recent_blocksC
Get recent blocks from monitoring history
Inputs: limit.
get_recent_logsC
Get recent contract logs from monitoring history
Inputs: limit, address, filterId.
get_recent_pending_transactionsC
Get recent pending transactions from monitoring
Inputs: limit, minValueETH.
get_social_sentimentC
Analyze social media sentiment for a token
Inputs: token (required), platforms.
get_token_holdersC
Get top holders of a specific fan token
Inputs: symbol (required), limit.
get_token_velocity_metricsC
Get token velocity and turnover metrics from The Graph
Inputs: symbol (required), days.
get_transactionC
Get details of a specific transaction
Inputs: txHash (required).
get_upcoming_matchesC
Get upcoming matches for fan token teams
Inputs: days, tokens.
get_validator_performanceC
Get detailed performance metrics for a validator
Inputs: validatorAddress (required), days.
get_validator_risksC
Assess risks of staking with a specific validator
Inputs: validatorAddress (required).
get_wallet_balanceB
Get CHZ and fan token balances for a wallet address
Inputs: address (required).
get_websocket_statusB
Get WebSocket connection and monitoring status
Inputs: no named parameters.
identify_unusual_patternsC
Identify unusual trading patterns
Inputs: token (required), threshold.
monitor_fan_token_transfersC
Monitor real-time transfers of a specific fan token
Inputs: tokenAddress (required), tokenSymbol.
monitor_slashing_eventsC
Monitor recent slashing events on the network
Inputs: hours, severity.
query_fan_token_analyticsC
Query detailed fan token analytics via The Graph protocol
Inputs: symbol (required), days.
send_tokensB
Send CHZ or fan tokens (requires PRIVATE_KEY env)
Inputs: to (required), amount (required), token.
start_block_monitoringB
Start real-time monitoring of new blocks on Chiliz Chain
Inputs: storeHistory.
start_log_monitoringC
Start monitoring contract events/logs in real-time
Inputs: topics, address, storeHistory.
start_pending_tx_monitoringC
Start monitoring pending transactions in the mempool
Inputs: minValueETH, storeHistory, filterLargeTransactions.
stop_all_monitoringA
Stop all WebSocket monitoring and disconnect
Inputs: no named parameters.
swap_tokensC
Swap between tokens (DEX integration)
Inputs: amount (required), toToken (required), fromToken (required), slippage.
track_liquidity_changesC
Track liquidity changes in KAYEN pools
Inputs: poolAddress (required), hours.
track_social_momentumC
Track changes in social media activity
Inputs: token (required), timeframe.
track_whale_movementsC
Track large holder (whale) movements via The Graph
Inputs: symbol (required), minAmount (required), hours.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelogโฆ
TDQS
Scored across 52 tools
Many tools overlap in purpose: get_multiple_prices/get_fan_token_price/get_market_chart/get_historical_price_data; detect_whale_trades/track_whale_movements; calculate_token_velocity/get_token_velocity_metrics; get_token_holders/analyze_holder_distribution/compare_token_distributions. An agent would struggle to choose correctly without additional discrimination cues.
Nearly all names use snake_case with a leading verb such as get_, start_, calculate_, track_, or deploy_, so the convention is predictable throughout. Minor near-duplicates in wording do not break the consistent verb_noun pattern.
52 tools is far beyond the 3-15 well-scoped range and matches the extreme mismatch level. Many tools are overlapping analytics variants or thin wrappers, so the set is bloated rather than purposefully scoped.
The surface covers many read and analytics areas, but core lifecycle actions are missing: staking/delegation execution, governance proposal/vote, NFT minting, generic contract read/write, and wallet transaction history. These gaps create dead ends for common blockchain workflows.
Maintenance
Related MCP Connectors
Unlock the power of real-time cryptocurrency data with our Crypto Price Insights MCP server.
Crypto market intelligence, token rug-checks, and wallet verification in one MCP server.
MCP server with quote and live cryptocurrency price tools, local and cloud-deployed transports.
23-in-1 MCP server: EVM tx simulator, funding rate arb, macro radar, swap calldata & security.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceA comprehensive MCP server providing unified access to over 144 tools for lending, trading, and staking across six major DeFi protocols on the Stacks Bitcoin Layer 2. It enables AI agents to perform complex blockchain operations and interact with the DeFi ecosystem using natural language commands.3MIT
- AlicenseAqualityBmaintenanceMCP server with 43 tools for blockchain data โ token lookups, wallet balances, live chain queries across 10+ networks, and full API documentation search.27610 npmApache 2.0
- AlicenseAqualityCmaintenanceComprehensive MCP server for real-time stock, cryptocurrency, options, and fundamental analysis, including SEC filings and insider trading data.269 npmMIT
- AlicenseDqualityDmaintenanceA powerful cryptocurrency analysis MCP server that adds advanced technical analysis capabilities to the original Binance MCP implementation.151Apache 2.0