# ๐ค๐ฐ Universal Crypto MCP
<p align="center">
<pre align="center">
โโโ โโโโโโโ โโโโโโโโโ โโโโโโโโโโโโโโโโโโ โโโโโโโโ โโโโโโ โโโ
โโโ โโโโโโโโ โโโโโโโโโ โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โโโ โโโโโโโโโ โโโโโโโโโ โโโโโโโโโ โโโโโโโโโโโโโโโโโโโโโโโโโโโ
โโโ โโโโโโโโโโโโโโโโโโโโ โโโโโโโโโโ โโโโโโโโโโโโโโโโโโโโโโโโโโโ
โโโโโโโโโโโโ โโโโโโโโโ โโโโโโโ โโโโโโโโโโโ โโโโโโโโโโโโโโ โโโโโโโโโโโ
โโโโโโโ โโโ โโโโโโโโ โโโโโ โโโโโโโโโโโ โโโโโโโโโโโโโโ โโโโโโโโโโโ
โโโโโโโโโโโโโโ โโโ โโโโโโโโโโ โโโโโโโโโ โโโโโโโ
โโโโโโโโโโโโโโโโโโโโ โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โโโ โโโโโโโโ โโโโโโโ โโโโโโโโ โโโ โโโ โโโ
โโโ โโโโโโโโ โโโโโ โโโโโโโ โโโ โโโ โโโ
โโโโโโโโโโโ โโโ โโโ โโโ โโโ โโโโโโโโโ
โโโโโโโโโโ โโโ โโโ โโโ โโโ โโโโโโโ
โโโโ โโโโ โโโโโโโโโโโโโโ
โโโโโ โโโโโโโโโโโโโโโโโโโโโ
โโโโโโโโโโโโโโ โโโโโโโโ
โโโโโโโโโโโโโโ โโโโโโโ
โโโ โโโ โโโโโโโโโโโโโโ
โโโ โโโ โโโโโโโโโโ
</pre>
</p>
<h3 align="center">
๐ <strong>Give Claude Money!</strong> ๐<br/>
<em>The first MCP server that lets AI agents send and receive crypto payments.</em>
</h3>
```bash
npx @nirholas/universal-crypto-mcp
```
<p align="center">
<img src="https://img.shields.io/npm/v/@nirholas/universal-crypto-mcp.svg?style=for-the-badge&logo=npm&color=cb3837" alt="npm version">
<img src="https://img.shields.io/npm/dm/@nirholas/universal-crypto-mcp.svg?style=for-the-badge&logo=npm&color=cb3837" alt="npm downloads">
<img src="https://img.shields.io/badge/x402-enabled-brightgreen?style=for-the-badge" alt="x402 enabled">
<img src="https://img.shields.io/badge/chains-EVM%20%2B%20Solana-blue?style=for-the-badge" alt="chains">
</p>
<p align="center">
<a href="https://modelcontextprotocol.io"><img src="https://img.shields.io/badge/MCP-Compatible-6366f1?style=for-the-badge&logo=data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyNCAyNCI+PHBhdGggZmlsbD0id2hpdGUiIGQ9Ik0xMiAyQzYuNDggMiAyIDYuNDggMiAxMnM0LjQ4IDEwIDEwIDEwIDEwLTQuNDggMTAtMTBTMTcuNTIgMiAxMiAyek0xMiAyMGMtNC40MSAwLTgtMy41OS04LThzMy41OS04IDgtOCA4IDMuNTkgOCA4LTMuNTkgOC04IDh6Ii8+PC9zdmc+" alt="MCP Compatible"></a>
<a href="https://www.typescriptlang.org/"><img src="https://img.shields.io/badge/TypeScript-5.0-3178c6?style=for-the-badge&logo=typescript&logoColor=white" alt="TypeScript"></a>
<a href="https://nodejs.org/"><img src="https://img.shields.io/badge/Node.js-18+-339933?style=for-the-badge&logo=node.js&logoColor=white" alt="Node.js 18+"></a>
<a href="LICENSE"><img src="https://img.shields.io/badge/License-Apache%202.0-blue.svg?style=for-the-badge" alt="License: Apache 2.0"></a>
</p>
<p align="center">
<a href="https://github.com/nirholas/universal-crypto-mcp/stargazers"><img src="https://img.shields.io/github/stars/nirholas/universal-crypto-mcp?style=for-the-badge&logo=github&color=yellow" alt="GitHub Stars"></a>
<a href="https://github.com/nirholas/universal-crypto-mcp/issues"><img src="https://img.shields.io/github/issues/nirholas/universal-crypto-mcp?style=for-the-badge&color=orange" alt="Issues"></a>
</p>
<p align="center">
<img src=".github/demo.svg" alt="Universal Crypto MCP Demo" width="800">
</p>
## โจ What's New: AI Service Marketplace
> **Monetize your AI services & discover the best APIs!** ๐ธ
The **AI Service Marketplace** is a complete ecosystem for AI service discovery, monetization, and reputation management:
- ๐ช **Register your AI service** - Instant monetization with pay-per-use or subscriptions
- ๐ **AI agents discover services** - Automatic discovery by category, price, and rating
- โญ **On-chain reputation** - Build trust with verified ratings and reviews
- ๐ณ **Flexible pricing** - Pay-per-use, subscriptions, free tiers
- ๐ **Analytics dashboard** - Track usage, revenue, and performance
- ๐ **Secure payments** - Escrow, dispute resolution, automatic refunds
**[Learn more โ](MARKETPLACE.md)** | **[View Tutorial โ](docs/content/tutorials/marketplace-service.md)**
### x402 Payment Protocol
**AI agents can now pay for things on the internet!** ๐ธ
```
User: "Get premium weather data for Tokyo"
Claude: ๐ Checking x402 balance... $45.23 USDs
๐ณ Paying $0.01 for premium API access...
โ
Payment confirmed! Here's your detailed forecast:
๐ค๏ธ Tokyo Weather (7-day premium forecast)...
```
**AI agents can now:**
- ๐ธ **Pay for premium APIs** automatically
- ๐ช **Sell their own services** to other agents
- ๐ **Trade with other AI agents** peer-to-peer
- โ๏ธ **Work across EVM + Solana** chains
> โญ **If you find this useful, please star the repo!** It helps others discover this project.
<p align="center">
<a href="https://x.com/nichxbt"><img src="https://img.shields.io/badge/๐-Follow-000000?style=for-the-badge&logo=x&logoColor=white" alt="Follow on X"></a>
</p>
---
A Universal Model Context Protocol server for all EVM-compatible networks + Solana.
Enable AI agents (Claude, ChatGPT, Cursor) to interact with any EVM blockchain through natural language.
## ๐ Why Universal Crypto MCP?
| Feature | Universal Crypto MCP | Other MCP Servers |
|---------|---------------------|-------------------|
| **Tools** | 380+ tools | 10-50 tools |
| **Chains** | 20+ chains (EVM + multi-chain) | 1-3 chains |
| **DEX Support** | Multi-aggregator (1inch, 0x, ParaSwap) | Single DEX or none |
| **Security** | GoPlus, honeypot, rug pull detection | Basic or none |
| **DeFi** | Aave, Compound, Lido, Uniswap | Limited |
| **Market Data** | CoinGecko, DefiLlama, LunarCrush | Basic prices |
| **Bridges** | LayerZero, Stargate, Wormhole | None |
| **MEV Protection** | Flashbots integration | None |
| **Transport** | stdio, HTTP, SSE | Usually only stdio |
| **ChatGPT Support** | โ
Native HTTP mode | โ Most don't |
---
## ๐ฆ Package Structure
The most comprehensive crypto MCP monorepo with **10+ integrated packages** from the best MIT-licensed projects:
```
packages/
โโโ core/ # Shared types, utilities, configuration
โโโ trading/ # CEX exchange integrations
โ โโโ binance/ # Binance spot & futures
โ โโโ binance-us/ # Binance US
โ โโโ bybit/ # Bybit exchange (ethancod1ng) โญ NEW
โโโ market-data/ # Prices, news, analytics
โ โโโ prices/ # CoinGecko, DexPaprika, CoinMarketCap
โ โโโ news/ # CryptoPanic, aggregated news
โ โโโ analytics/ # Whale tracking, Fear/Greed, Dune
โ โโโ predictions/ # AI price predictions
โ โโโ crypto-indicators/ # Technical analysis (Kukapay) โญ NEW
โ โโโ crypto-sentiment/ # Sentiment analysis (Kukapay) โญ NEW
โ โโโ crypto-feargreed/ # Fear & Greed Index (Kukapay) โญ NEW
โ โโโ cryptopanic/ # News aggregation (Kukapay)
โ โโโ coinmarketcap/ # CMC API (Shinzo Labs) โญ NEW
โโโ defi/ # On-chain DeFi tools (60+ networks!)
โ โโโ protocols/ # EVM MCP Server (360โญ), Sperax, DEX
โ โ โโโ algorand/ # Algorand tools (GoPlausible) โญ NEW
โ โ โโโ bsc-ops/ # BSC operations (TermiX) โญ NEW
โ โโโ chain-tools/ # BNB Chain, Onchain MCP
โ โโโ agents/ # Autonomous DeFi agents
โโโ wallets/ # Wallet management
โ โโโ evm/ # Ethereum & EVM wallets
โ โโโ solana/ # Solana wallets
โโโ payments/ # Payment infrastructure
โ โโโ x402/ # x402 protocol, USDC transfers
โโโ automation/ # Bots & automation
โ โโโ social/ # XActions Twitter automation
โ โโโ sweep/ # Dust sweeping
โ โโโ volume/ # Volume tools
โโโ generators/ # Meta-tools for building MCP servers
โโโ abi-to-mcp/ # Convert ABIs to MCP tools
โโโ repo-to-mcp/ # GitHub repos โ MCP servers
โโโ doc-extractor/ # Extract docs for LLMs
โโโ registry/ # Lyra tool registry
โโโ discovery/ # Tool discovery & search
```
๐ **[View Package Documentation โ](docs/content/packages/)**
### Integrated Community MCP Servers
This repo consolidates the best MIT-licensed crypto MCP projects with proper attribution:
| Project | Author | Category | Description |
|---------|--------|----------|-------------|
| [evm-mcp-server](https://github.com/mcpdotdirect/evm-mcp-server) | mcpdotdirect | defi | 60+ networks, 22+ tools |
| [crypto-indicators-mcp](https://github.com/kukapay/crypto-indicators-mcp) โญ **NEW** | Kukapay | market-data | Technical indicators (RSI, MACD, Bollinger) |
| [crypto-sentiment-mcp](https://github.com/kukapay/crypto-sentiment-mcp) โญ **NEW** | Kukapay | market-data | Multi-source sentiment analysis |
| [crypto-feargreed-mcp](https://github.com/kukapay/crypto-feargreed-mcp) โญ **NEW** | Kukapay | market-data | Fear & Greed Index |
| [cryptopanic-mcp-server](https://github.com/kukapay/cryptopanic-mcp-server) | Kukapay | market-data | Crypto news aggregation |
| [coinmarketcap-mcp](https://github.com/shinzo-labs/coinmarketcap-mcp) โญ **NEW** | Shinzo Labs | market-data | Complete CMC API |
| [whale-tracker-mcp](https://github.com/kukapay/whale-tracker-mcp) | Kukapay | analytics | Large wallet tracking |
| [mcp-web3-stats](https://github.com/crazyrabbitLTC/mcp-web3-stats) | crazyrabbitLTC | analytics | Dune Analytics integration |
| [dexpaprika-mcp](https://github.com/coinpaprika/dexpaprika-mcp) | CoinPaprika | prices | DEX price data |
| [algorand-mcp](https://github.com/GoPlausible/algorand-mcp) โญ **NEW** | GoPlausible | blockchain | 40+ Algorand tools |
| [bybit-mcp-server](https://github.com/ethancod1ng/bybit-mcp-server) โญ **NEW** | ethancod1ng | exchange | Bybit API integration |
| [bsc-mcp](https://github.com/TermiX-official/bsc-mcp) โญ **NEW** | TermiX | defi | BSC operations & security |
| [onchain-mcp](https://github.com/bankless/onchain-mcp) | Bankless | defi | On-chain tools |
| [mcp-free-usdc-transfer](https://github.com/magnetai/mcp-free-usdc-transfer) | MagnetAI | payments | Free USDC transfers |
**All integrated projects maintain their original MIT licenses with full attribution.**
See [CONTRIBUTORS.md](CONTRIBUTORS.md) for detailed attribution and our modifications.
---
## Supported Networks
### EVM Chains
- Ethereum, BNB Smart Chain (BSC), Polygon, Arbitrum, Base, Optimism
- Avalanche, Fantom, zkSync Era, Linea, Scroll, Blast, Mode, Mantle
- opBNB + All testnets
### Multi-Chain (NEW)
- **Cosmos/IBC** - ATOM, OSMO, JUNO, INJ, and more
- **Near Protocol** - NEAR native + contracts
- **Sui** - SUI with Move support
- **Aptos** - APT with Move support
- Bitcoin, Litecoin, Solana, TON, XRP, THORChain
## Features
- ๐ **Swap/DEX** - Token swaps via 1inch, 0x, ParaSwap
- ๐ **Bridge** - Cross-chain transfers via LayerZero, Stargate, Wormhole
- โฝ **Gas** - Gas prices across chains, EIP-1559 suggestions
- ๐ฆ **Multicall** - Batch read/write operations
- ๐ **Events/Logs** - Query historical events, decode logs
- ๐ **Security** - Rug pull detection, honeypot check, GoPlus token/address security, dApp phishing detection
- ๐ฐ **Staking** - Liquid staking (Lido), LP farming
- โ๏ธ **Signatures** - Sign messages, verify signatures, EIP-712
- ๐ฆ **Lending** - Aave/Compound positions, borrow rates
- ๐ **Price Feeds** - Historical prices, TWAP, oracle aggregation
- ๐ **Portfolio** - Track holdings across chains
- ๐๏ธ **Governance** - Snapshot votes, on-chain proposals
- ๐ **Deployment** - Deploy contracts, CREATE2, upgradeable proxies, verification
- ๐ก๏ธ **MEV Protection** - Flashbots Protect, private transactions, bundle simulation
- ๐ **ENS/Domains** - Register, transfer, renew, set records, subdomains
- ๐ **Market Data** - CoinGecko & CoinStats prices, OHLCV, trending, categories, exchanges
- ๐ **DeFi Analytics** - DefiLlama TVL, yields, fees, bridges, stablecoins, protocol data
- ๐ฌ **Social Sentiment** - LunarCrush social metrics, influencers, trending topics
- ๐ **DEX Analytics** - DexPaprika & GeckoTerminal pools, trades, OHLCV, trending tokens
- ๐ฎ **Predictions** - Polymarket prediction markets, crypto forecasts
- ๐ **Technical Indicators** - 50+ indicators (RSI, MACD, Bollinger Bands, etc.)
- ๐ **Alerts** - Price alerts, whale movement alerts, gas alerts (NEW)
- ๐ก **WebSockets** - Real-time price streams, trade feeds, mempool monitoring (NEW)
- ๐ **Wallet Analytics** - Whale tracking, wallet scoring, behavior analysis (NEW)
- ๐ **Multi-Chain** - Cosmos, Near, Sui, Aptos native support (NEW)
- ๐ฐ **x402 Payments** - AI agents can pay for premium APIs automatically (NEW)
---
## ๐ฐ x402 Payment Protocol (NEW!)
<p align="center">
<img src="https://img.shields.io/badge/Protocol-x402-6366f1?style=for-the-badge" alt="x402">
<img src="https://img.shields.io/badge/Give_Claude-Money!-00d4aa?style=for-the-badge" alt="Give Claude Money">
</p>
> **Give Claude Money!** AI agents can now make and receive cryptocurrency payments.
### What is x402?
x402 implements HTTP 402 Payment Required, enabling AI agents to:
- ๐ธ **Pay for APIs** - Automatically pay for premium API access
- ๐ค **Autonomous Payments** - No human approval needed
- ๐ฆ **Hold funds** - Agents have their own crypto wallets
- ๐ **Earn yield** - Payments use USDs stablecoin (~5% APY auto-yield)
### Quick Setup
```bash
# Add to your environment
export X402_PRIVATE_KEY=0x... # Your EVM private key
export X402_CHAIN=arbitrum # Default chain (or base, ethereum, polygon)
```
### x402 Tools (14 Total)
| Tool | Description |
|------|-------------|
| `x402_pay_request` | Make HTTP request with automatic 402 payment |
| `x402_balance` | Check wallet balance (USDC/USDs + native) |
| `x402_send` | Send direct payment to an address |
| `x402_batch_send` | Send multiple payments in one transaction |
| `x402_gasless_send` | Send payment without paying gas |
| `x402_estimate` | Check cost before paying |
| `x402_address` | Get your wallet address |
| `x402_networks` | List supported networks |
| `x402_yield` | Check USDs auto-yield earnings |
| `x402_apy` | Get current APY rate |
| `x402_yield_estimate` | Project future yield |
| `x402_approve` | Approve token spending |
| `x402_tx_status` | Check transaction status |
| `x402_config` | View current configuration |
### Supported Networks
| Network | CAIP-2 | Status |
|---------|--------|--------|
| Base | `eip155:8453` | โ
Recommended |
| Arbitrum | `eip155:42161` | โ
Supported |
| Ethereum | `eip155:1` | โ
Supported |
| Polygon | `eip155:137` | โ
Supported |
| Solana | `solana:mainnet` | โ
Supported |
### Example
```
User: "Get premium weather data for Tokyo"
Agent: [calls x402_pay_request to weather API]
[automatically pays $0.01 in USDs]
"Here's the detailed forecast..."
```
### x402 Architecture
```
โโโโโโโโโโโ โโโโโโโโโโโโโ โโโโโโโโโโโโโ
โ Claude โโโโโโโถโ MCP Serverโโโโโโโถโ Paid API โ
โ (AI) โ โ (x402) โ โ (402) โ
โโโโโโโโโโโ โโโโโโโโโโโโโ โโโโโโโโโโโโโ
โ โ โ
โ "Get data" โ HTTP + Payment โ
โ โ โ
โโโโโโโโโโโโโโโโโโดโโโโโโโโโโโโโโโโโโโโ
```
๐ **Full Documentation:**
- [x402 README](x402/README.md) - Overview and quick start
- [Quickstart Guide](x402/docs/QUICKSTART.md) - 5-minute setup
- [MCP Tools Reference](x402/docs/MCP_TOOLS.md) - All 14 tools explained
- [Architecture](x402/docs/ARCHITECTURE.md) - Technical deep dive
- [Examples](x402/docs/EXAMPLES.md) - Real-world use cases
- [Security Guide](x402/docs/SECURITY.md) - Best practices
---
## Quick Start
### Claude Desktop
Add to your `claude_desktop_config.json`:
```json
{
"mcpServers": {
"universal-crypto-mcp": {
"command": "npx",
"args": ["-y", "@nirholas/universal-crypto-mcp@latest"],
"env": {
"PRIVATE_KEY": "your_private_key_here (optional)"
}
}
}
}
```
### Cursor
Add to your MCP settings:
```json
{
"mcpServers": {
"universal-crypto-mcp": {
"command": "npx",
"args": ["-y", "@nirholas/universal-crypto-mcp@latest"],
"env": {
"PRIVATE_KEY": "your_private_key_here (optional)"
}
}
}
}
```
### ChatGPT Developer Mode
1. Enable [Developer Mode](https://chatgpt.com/#settings/Connectors/Advanced) in ChatGPT settings
2. Start the HTTP server:
```bash
npx @nirholas/universal-crypto-mcp@latest --http
```
3. In ChatGPT Settings โ Apps, click **Create app**
4. Enter your server URL: `http://localhost:3001/mcp`
5. Select the app in conversations via **Developer mode** menu
For detailed setup instructions, see [ChatGPT Setup Guide](https://mcp.giving/mcp-server/chatgpt-setup/).
## Server Modes
| Mode | Command | Use Case |
|------|---------|----------|
| stdio | `npx @nirholas/universal-crypto-mcp` | Claude Desktop, Cursor |
| HTTP | `npx @nirholas/universal-crypto-mcp --http` | ChatGPT Developer Mode |
| SSE | `npx @nirholas/universal-crypto-mcp --sse` | Legacy HTTP clients |
---
## ๐ฌ Example Prompts (Copy & Paste!)
Real prompts you can use with Claude, ChatGPT, or Cursor. Just copy and paste!
### ๐ Token Swaps
```
Swap 0.1 ETH for USDC on Arbitrum
```
```
Get me a quote to swap 100 USDC to WBTC on Base
```
```
What's the best rate to swap 500 DAI to ETH across all DEXs on Ethereum?
```
### ๐ Market Data & Prices
```
What's the current price of Bitcoin and Ethereum in USD?
```
```
Show me the top 10 trending coins on CoinGecko right now
```
```
Get the 7-day OHLCV data for Solana
```
```
What's the market cap and 24h volume of BNB?
```
```
Show me the price of token 0xdAC17F958D2ee523a2206206994597C13D831ec7 on Ethereum
```
### ๐ DeFi Analytics (DefiLlama)
```
What's the total TVL of Aave across all chains?
```
```
Show me the top 10 protocols by TVL
```
```
What are the best yield opportunities for stablecoins right now?
```
```
How much volume did bridges process in the last 24 hours?
```
```
Show me the TVL history of Uniswap over the last 30 days
```
### ๐ DEX Analytics
```
Show me the top trending pools on Uniswap V3
```
```
Get the most traded tokens on Base in the last 24 hours
```
```
Find all liquidity pools for PEPE on Ethereum
```
```
What's the price and liquidity of the ETH/USDC pool on Aerodrome?
```
### ๐ Security Checks
```
Is this token safe? 0x95aD61b0a150d79219dCF64E1E6Cc01f0B64C4cE (SHIB)
```
```
Check if this token is a honeypot: 0x... on BSC
```
```
Scan my wallet for risky approvals: 0xYourAddress
```
```
Is this dApp URL safe to connect to? https://suspicious-site.xyz
```
### ๐ฐ Staking & Lending
```
What's the current staking APY for ETH on Lido?
```
```
Show me Aave lending rates for USDC on Arbitrum
```
```
What's my health factor on Aave if I borrow 1000 USDC against 2 ETH?
```
### ๐ Cross-Chain Bridges
```
Bridge 100 USDC from Ethereum to Arbitrum
```
```
What's the cheapest way to bridge ETH from mainnet to Base?
```
```
Get a bridge quote for 0.5 ETH from Polygon to Optimism
```
### โฝ Gas & Network
```
What's the current gas price on Ethereum?
```
```
Get EIP-1559 gas fees for all supported chains
```
```
Is it cheap to transact on Arbitrum right now?
```
### ๐๏ธ Governance
```
Show me active proposals on Uniswap
```
```
What's my voting power on Compound?
```
```
Get the results of the latest Aave governance vote
```
### ๐ฌ Social Sentiment (LunarCrush)
```
What's the social sentiment for Bitcoin right now?
```
```
Show me the top crypto influencers on social media
```
```
What tokens are trending on Twitter/X today?
```
```
Get the Galaxy Score for Ethereum
```
### ๐ ENS Domains
```
Resolve vitalik.eth to an address
```
```
Who owns the ENS domain "ethereum.eth"?
```
```
Register the domain mycoolname.eth for 1 year
```
### ๐ฐ Crypto News
```
Get the latest crypto news
```
```
Search news about Bitcoin ETF
```
```
What's the breaking news in DeFi?
```
### ๐ Portfolio & Wallet
```
Show my token balances on Ethereum: 0xYourAddress
```
```
Get all NFTs owned by vitalik.eth
```
```
What approvals have I granted from my wallet?
```
```
Track my portfolio across all EVM chains
```
### ๐ Advanced Operations
```
Deploy a new ERC-20 token called "MyToken" (MTK) with 1 million supply on Base
```
```
Submit this transaction privately via Flashbots to avoid MEV
```
```
Encode a call to the transfer function for 100 USDC
```
```
Simulate this transaction before executing: 0x...
```
### ๐ Technical Indicators
```
Calculate RSI for Bitcoin over the last 14 days
```
```
Get MACD signal for ETH/USDT on the 4-hour timeframe
```
```
Show Bollinger Bands for SOL with 20-period SMA
```
```
What's the current trend signal for BTC using multiple indicators?
```
```
Run a momentum strategy analysis on DOGE
```
### ๐ฎ Prediction Markets
```
What are the top crypto prediction markets on Polymarket?
```
```
Search for Bitcoin price predictions
```
```
What's the current odds for ETH reaching $5000?
```
### ๐ Events & Logs
```
Get all Transfer events for USDC in the last 100 blocks on Ethereum
```
```
Show me Approval events for my wallet address
```
```
Decode this transaction log: 0x...
```
### โ๏ธ Signatures & Messages
```
Sign this message with my wallet: "Hello World"
```
```
Verify this signature is from vitalik.eth
```
```
Create an EIP-712 typed data signature for a permit
```
### ๐ฆ Batch Operations (Multicall)
```
Get token balances for 10 different tokens in one call
```
```
Read multiple contract values at once from Aave
```
```
Batch check allowances for all my approved tokens
```
---
## ๐งช Testing
We use [Vitest](https://vitest.dev/) as our testing framework with comprehensive test coverage.
### Running Tests
```bash
# Run all unit tests
npm test
# Run tests in watch mode (re-runs on file changes)
npm run test:watch
# Run tests with coverage report
npm run test:coverage
# Run E2E tests (requires network access)
npm run test:e2e
# Run E2E tests in watch mode
npm run test:e2e:watch
# Open interactive test UI
npm run test:ui
```
### MCP Inspector
Test your MCP tools interactively using the official [MCP Inspector](https://github.com/modelcontextprotocol/inspector):
```bash
npm run test:inspector
```
This opens a browser-based UI where you can:
- Browse all available tools and prompts
- Test tool execution with custom parameters
- View tool responses and debug issues
- Validate your MCP server implementation
### Test Structure
```
tests/
โโโ setup.ts # Global test setup
โโโ e2e/ # End-to-end tests
โ โโโ evm-tools.e2e.test.ts
โ โโโ market-data.e2e.test.ts
โโโ integration/ # Integration tests
โ โโโ evm-tools.test.ts
โ โโโ multichain.test.ts
โโโ mocks/ # Test mocks and fixtures
src/
โโโ evm/
โ โโโ chains.test.ts # Unit tests alongside source
โ โโโ modules/
โ โโโ */tools.test.ts
โโโ utils/
โโโ errors.test.ts
โโโ helper.test.ts
โโโ validation.test.ts
```
---
## Local Development
```bash
# Clone
git clone https://github.com/nirholas/universal-crypto-mcp
cd universal-crypto-mcp
# Install
npm install
# Run dev server (stdio - Claude)
npm run dev
# Run dev server (HTTP - ChatGPT)
npm run dev:http
# Run dev server (SSE - legacy)
npm run dev:sse
```
---
## ๐งช Testing
<p align="center">
<a href="https://codecov.io/gh/nirholas/universal-crypto-mcp"><img src="https://img.shields.io/codecov/c/github/nirholas/universal-crypto-mcp?style=flat-square&logo=codecov&label=coverage" alt="Code Coverage"></a>
<a href="https://github.com/nirholas/universal-crypto-mcp/actions/workflows/ci.yml"><img src="https://img.shields.io/github/actions/workflow/status/nirholas/universal-crypto-mcp/ci.yml?branch=main&style=flat-square&logo=github&label=tests" alt="Tests"></a>
</p>
### Running Tests
```bash
# Run all tests
npm test
# Run unit tests only
npm run test:unit
# Run integration tests
npm run test:integration
# Run E2E tests (requires network access)
npm run test:e2e
# Run tests with coverage report
npm run test:coverage
# Run tests in watch mode (development)
npm run test:watch
```
### Test Structure
| Type | Location | Description |
|------|----------|-------------|
| **Unit** | `src/**/*.test.ts` | Test individual functions/modules |
| **Integration** | `tests/integration/` | Test multiple components together |
| **E2E** | `tests/e2e/` | Test full MCP server flow |
### E2E Tests
End-to-end tests verify the complete tool execution flow:
- **EVM Tools** - Block, balance, token operations across chains
- **DeFi Tools** - Protocol TVL, yields, stablecoins via DefiLlama
- **Market Data** - CoinGecko, Fear & Greed index
- **Multichain** - Same operations across different networks
- **Error Recovery** - Error handling, invalid inputs, edge cases
### Custom Test Utilities
The project includes custom Vitest matchers for MCP responses:
```typescript
// In your test file
import "../utils/assertions"
expect(result).toBeSuccessfulToolResponse()
expect(result).toHaveJsonProperty("balance")
expect(result).toContainValidAddress()
expect(result).toContainToolError(/invalid/i)
```
### Test Fixtures
Reusable test data in `tests/utils/fixtures.ts`:
```typescript
import {
ETH_MAINNET_ADDRESSES,
MOCK_TOKEN_DATA,
generateRandomAddress
} from "../utils/fixtures"
```
For detailed testing documentation, see [tests/README.md](tests/README.md).
---
## โ๏ธ Environment Variables
Configure optional API keys for enhanced features. Create a `.env` file:
```bash
# Required for write operations (swaps, transfers, etc.)
PRIVATE_KEY=your_private_key_here
# Market Data (optional - has free tier)
COINGECKO_API_KEY=your_key # https://coingecko.com/api
COINSTATS_API_KEY=your_key # https://coinstats.app
# Social Sentiment (optional)
LUNARCRUSH_API_KEY=your_key # https://lunarcrush.com/developers
# News (optional)
CRYPTOPANIC_API_KEY=your_key # https://cryptopanic.com/developers
# Cross-chain Swaps (optional)
RUBIC_API_KEY=your_key # https://rubic.exchange
# Custom RPC endpoints (optional - uses public RPCs by default)
ETHEREUM_RPC_URL=https://mainnet.infura.io/v3/YOUR_KEY
ARBITRUM_RPC_URL=https://arb1.arbitrum.io/rpc
BASE_RPC_URL=https://mainnet.base.org
```
### What Works Without API Keys
| Feature | Without API Key | With API Key |
|---------|-----------------|--------------|
| Token prices | โ
CoinGecko free tier | โ
Higher rate limits |
| DeFi analytics | โ
DefiLlama (free) | - |
| Security checks | โ
GoPlus (free) | - |
| DEX analytics | โ
GeckoTerminal (free) | - |
| Social sentiment | โ | โ
LunarCrush |
| Crypto news | โ | โ
CryptoPanic |
| Cross-chain swaps | โ
Basic | โ
Best routes |
---
## Documentation
https://mcp.giving
---
## ๏ฟฝ Documentation & Examples
### ๐ Documentation
Comprehensive guides and API references:
- **[Getting Started](docs/content/getting-started/)**
- [Installation Guide](docs/content/getting-started/installation.md)
- [Configuration](docs/content/getting-started/configuration.md)
- [Your First MCP Tool](docs/content/getting-started/first-tool.md)
- [Deployment Guide](docs/content/getting-started/deployment.md)
- **[Package Documentation](docs/content/packages/)**
- [Core Package](docs/content/packages/core.md)
- [Trading](docs/content/packages/trading.md)
- [Market Data](docs/content/packages/market-data.md)
- [Wallets](docs/content/packages/wallets.md)
- [DeFi](docs/content/packages/defi.md)
- [Payments (x402)](docs/content/packages/payments.md)
- **[x402 Deploy Documentation](docs/content/x402-deploy/)**
- [Overview](docs/content/x402-deploy/overview.md)
- [Quick Start](docs/content/x402-deploy/quick-start.md)
- [Configuration](docs/content/x402-deploy/configuration.md)
- [Providers](docs/content/x402-deploy/providers.md)
- [Discovery](docs/content/x402-deploy/discovery.md)
- **[Contributing](docs/content/contributing/)**
- [Development Guide](docs/content/contributing/development.md)
- [Testing](docs/content/contributing/testing.md)
- [Releases](docs/content/contributing/releases.md)
### ๐ป Examples
Working code examples you can run and modify:
- **[Basic MCP Server](examples/basic-mcp-server/)** - Minimal MCP server with market data tools
- **[Paid API Example](examples/paid-api/)** - Add x402 payments to Express API
- **[Trading Bot](examples/trading-bot/)** - Automated trading bot with RSI + MA strategy
- **[Full Deployment](examples/full-deployment/)** - Production-ready server with all features
Each example includes:
- Complete source code
- README with setup instructions
- Package configuration
- Environment setup guide
---
## ๏ฟฝ๐บ๏ธ Roadmap
A comprehensive roadmap of all crypto/blockchain/DeFi/Web3 features to be implemented.
### Legend
- โ
Implemented
- ๐ง In Progress
- ๐ Planned
<details>
<summary><b>๐ Core Blockchain Operations</b> (click to expand)</summary>
### ๐ Core Blockchain Operations
#### Network & Chain
| Feature | Status |
|---------|--------|
| Get chain ID, block number, gas price | โ
|
| Get network status/health | โ
|
| Switch networks/chains | โ
|
| Get supported networks list | โ
|
| Get RPC endpoints | โ
|
| Estimate block time | โ
|
| Get chain metadata (name, symbol, explorers) | โ
|
| Get finality status | โ
|
| Get mempool/pending transactions | โ
|
| Get network peers/nodes | โ
|
| Get gas oracle | โ
|
#### Blocks
| Feature | Status |
|---------|--------|
| Get block by number/hash | โ
|
| Get latest block | โ
|
| Get block transactions | โ
|
| Get block receipts | โ
|
| Get uncle blocks | โ
|
| Subscribe to new blocks | ๐ |
| Get block rewards | โ
|
| Get block gas used/limit | โ
|
| Get block range | โ
|
| Get blocks by miner | โ
|
#### Transactions
| Feature | Status |
|---------|--------|
| Send transaction | โ
|
| Get transaction by hash | โ
|
| Get transaction receipt | โ
|
| Get transaction status | โ
|
| Estimate gas | โ
|
| Speed up transaction (replace with higher gas) | โ
|
| Cancel transaction | โ
|
| Decode transaction input | โ
|
| Simulate transaction | โ
|
| Get transaction trace | ๐ |
| Get internal transactions | ๐ |
| Batch transactions | โ
|
| Get pending transactions | โ
|
| Get transaction history by address | โ
|
#### Accounts/Wallets
| Feature | Status |
|---------|--------|
| Get balance (native/token) | โ
|
| Get nonce | โ
|
| Get transaction count | โ
|
| Create wallet | โ
|
| Import wallet (private key/mnemonic) | โ
|
| Export private key | ๐ |
| Sign message | โ
|
| Verify signature | โ
|
| Get address from private key | โ
|
| Generate mnemonic | โ
|
| Derive addresses (HD wallet) | โ
|
| Multi-sig wallet operations | ๐ |
| Get wallet permissions | ๐ |
| Revoke approvals | โ
|
| Account abstraction (ERC-4337) | ๐ |
| Social recovery | ๐ |
| Hardware wallet integration | ๐ |
| Get wallet portfolio | โ
|
| Get token approvals | โ
|
</details>
<details>
<summary><b>๐ฐ Token Operations</b> (click to expand)</summary>
### ๐ฐ Token Operations
#### Native Tokens
| Feature | Status |
|---------|--------|
| Get native balance | โ
|
| Transfer native tokens | โ
|
| Wrap/unwrap native tokens (WETH, WBNB) | โ
|
#### ERC-20 (Fungible Tokens)
| Feature | Status |
|---------|--------|
| Get token info (name, symbol, decimals, total supply) | โ
|
| Get token balance | โ
|
| Transfer tokens | โ
|
| Approve spending | โ
|
| Get allowance | โ
|
| Transfer from (delegated) | โ
|
| Burn tokens | โ
|
| Mint tokens | โ
|
| Get token holders | โ
|
| Get token transfers | โ
|
| Permit (gasless approvals - EIP-2612) | โ
|
| Batch transfers | โ
|
| Token snapshots | ๐ |
| Get token supply info | โ
|
| Check/revoke token approval | โ
|
#### ERC-721 (NFTs)
| Feature | Status |
|---------|--------|
| Get NFT metadata | โ
|
| Get NFT owner | โ
|
| Transfer NFT | โ
|
| Approve NFT | โ
|
| Set approval for all | โ
|
| Get NFTs by owner | โ
|
| Get NFT collection info | โ
|
| Mint NFT | ๐ |
| Burn NFT | ๐ |
| Get NFT transfer history | ๐ |
| Get NFT traits/attributes | โ
|
| Get NFT rarity | ๐ |
| Verify NFT authenticity | ๐ |
| Batch transfer NFTs | โ
|
| Check NFT approval | โ
|
| Revoke NFT approval | โ
|
| Approve for marketplace | โ
|
| Fetch NFT metadata from URI | โ
|
#### ERC-1155 (Multi-Token)
| Feature | Status |
|---------|--------|
| Get token balance (fungible + NFT) | โ
|
| Batch transfers | ๐ |
| Batch balance queries | ๐ |
| Safe transfer | โ
|
| Get URI | โ
|
#### Other Token Standards
| Feature | Status |
|---------|--------|
| ERC-777 (advanced fungible) | ๐ |
| ERC-3525 (semi-fungible) | ๐ |
| ERC-4626 (tokenized vaults) | ๐ |
| ERC-6551 (token-bound accounts) | ๐ |
| ERC-404 (hybrid tokens) | ๐ |
| Soulbound tokens (SBTs) | ๐ |
</details>
<details>
<summary><b>๐ฆ DeFi - DEX, Lending, Staking, Derivatives</b> (click to expand)</summary>
### ๐ฆ DeFi - Decentralized Exchanges (DEX)
#### Swaps
| Feature | Status |
|---------|--------|
| Get quote/price | โ
|
| Swap exact tokens for tokens | โ
|
| Swap tokens for exact tokens | โ
|
| Multi-hop swaps | โ
|
| Split route swaps | ๐ |
| Cross-DEX aggregation | โ
|
| Limit orders | ๐ |
| TWAP orders (time-weighted) | ๐ |
| Stop-loss orders | ๐ |
| Get slippage estimate | โ
|
| Get price impact | โ
|
| MEV protection (private transactions) | ๐ |
#### DEX Analytics
| Feature | Status |
|---------|--------|
| Get trending pools | โ
|
| Get new pools | โ
|
| Get top pools by volume | โ
|
| Get pool OHLCV data | โ
|
| Get pool trades | โ
|
| Get token pools | โ
|
| Get DEX list | โ
|
| Search pools cross-chain | โ
|
| Get token price by contract | โ
|
| Get pool transactions | โ
|
| Multi-token price lookup | โ
|
#### Liquidity Provision
| Feature | Status |
|---------|--------|
| Add liquidity | โ
|
| Remove liquidity | โ
|
| Get LP token balance | โ
|
| Get pool reserves | โ
|
| Get pool APY/APR | ๐ |
| Get impermanent loss estimate | ๐ |
| Concentrated liquidity (Uniswap V3) | ๐ |
| Set price range | ๐ |
| Collect fees | ๐ |
| Rebalance position | ๐ |
| Add liquidity with native token | โ
|
| Calculate arbitrage opportunities | โ
|
#### AMM Types Support
| Feature | Status |
|---------|--------|
| Constant product (x*y=k) | โ
|
| Stable swap (Curve) | ๐ |
| Concentrated liquidity | ๐ |
| Order book hybrid | ๐ |
| Virtual AMM (perpetuals) | ๐ |
---
### ๐ฆ DeFi - Lending & Borrowing
#### Lending
| Feature | Status |
|---------|--------|
| Supply/deposit assets | โ
|
| Withdraw assets | โ
|
| Get supply APY | โ
|
| Get supplied balance | โ
|
| Get utilization rate | ๐ |
| Enable/disable as collateral | ๐ |
#### Borrowing
| Feature | Status |
|---------|--------|
| Borrow assets | โ
|
| Repay debt | โ
|
| Get borrow APY | โ
|
| Get borrowed balance | โ
|
| Get health factor | โ
|
| Get liquidation threshold | โ
|
| Get max borrowable amount | ๐ |
| Flash loans | โ
|
| Get borrow limit | ๐ |
| Get flash loan info | โ
|
#### Liquidations
| Feature | Status |
|---------|--------|
| Liquidate unhealthy positions | ๐ |
| Get liquidatable positions | โ
|
| Get liquidation bonus | ๐ |
| Partial liquidations | ๐ |
#### Isolated Markets
| Feature | Status |
|---------|--------|
| Supply to isolated pool | ๐ |
| Borrow from isolated pool | ๐ |
| Get isolation mode debt ceiling | ๐ |
---
### ๐ฅฉ DeFi - Staking
#### Native Staking
| Feature | Status |
|---------|--------|
| Stake native tokens | โ
|
| Unstake/withdraw | โ
|
| Claim rewards | โ
|
| Get staking APY | โ
|
| Get validator list | ๐ |
| Delegate to validator | ๐ |
| Redelegate | ๐ |
| Get unbonding period | ๐ |
#### Liquid Staking
| Feature | Status |
|---------|--------|
| Stake for liquid staking tokens (stETH, rETH) | โ
|
| Unwrap liquid staking tokens | โ
|
| Get exchange rate | โ
|
| Get staking rewards rate | โ
|
#### LP Staking/Farming
| Feature | Status |
|---------|--------|
| Stake LP tokens | โ
|
| Unstake LP tokens | โ
|
| Claim farming rewards | โ
|
| Get farming APY | โ
|
| Compound rewards | ๐ |
| Get pending rewards | โ
|
| Boost rewards (veTokens) | ๐ |
#### Restaking
| Feature | Status |
|---------|--------|
| Restake assets (EigenLayer) | ๐ |
| Get restaking points | ๐ |
| Choose operators | ๐ |
| Withdraw from restaking | ๐ |
---
### ๐ DeFi - Derivatives
#### Perpetual Futures
| Feature | Status |
|---------|--------|
| Open long/short position | ๐ |
| Close position | ๐ |
| Add/remove margin | ๐ |
| Set leverage | ๐ |
| Get funding rate | ๐ |
| Get open interest | ๐ |
| Get liquidation price | ๐ |
| Set stop-loss/take-profit | ๐ |
| Get PnL | ๐ |
| Partial close | ๐ |
#### Options
| Feature | Status |
|---------|--------|
| Buy call/put options | ๐ |
| Sell/write options | ๐ |
| Exercise options | ๐ |
| Get option greeks | ๐ |
| Get implied volatility | ๐ |
| Get option chain | ๐ |
| Spread strategies | ๐ |
#### Synthetics
| Feature | Status |
|---------|--------|
| Mint synthetic assets | ๐ |
| Burn synthetic assets | ๐ |
| Get collateral ratio | ๐ |
| Get synthetic price feed | ๐ |
| Liquidate synthetic positions | ๐ |
</details>
<details>
<summary><b>๐ Cross-Chain, Governance, Security, NFTs</b> (click to expand)</summary>
### ๐ Cross-Chain & Bridges
#### Bridging
| Feature | Status |
|---------|--------|
| Bridge tokens cross-chain | โ
|
| Get bridge quote | โ
|
| Get bridge status | โ
|
| Get supported chains | โ
|
| Get supported tokens | โ
|
| Claim bridged tokens | ๐ |
| Get bridge fees | โ
|
| Get estimated time | โ
|
#### Cross-Chain Messaging
| Feature | Status |
|---------|--------|
| Send cross-chain message | ๐ |
| Receive cross-chain message | ๐ |
| LayerZero operations | ๐ |
| Axelar operations | ๐ |
| Wormhole operations | ๐ |
| CCIP (Chainlink) | ๐ |
| Hyperlane operations | ๐ |
#### Atomic Swaps
| Feature | Status |
|---------|--------|
| Initiate atomic swap | ๐ |
| Complete atomic swap | ๐ |
| Refund atomic swap | ๐ |
---
### ๐ณ๏ธ Governance
#### Voting
| Feature | Status |
|---------|--------|
| Create proposal | โ
|
| Vote on proposal | โ
|
| Delegate votes | โ
|
| Get voting power | โ
|
| Get proposal state | โ
|
| Queue proposal | โ
|
| Execute proposal | โ
|
| Cancel proposal | โ
|
| Get vote receipt | โ
|
#### Token Locking
| Feature | Status |
|---------|--------|
| Lock tokens for voting (veTokens) | ๐ |
| Extend lock period | ๐ |
| Increase locked amount | ๐ |
| Withdraw unlocked tokens | ๐ |
| Get lock info | ๐ |
#### Snapshot (Off-chain)
| Feature | Status |
|---------|--------|
| Create space | ๐ |
| Create off-chain proposal | ๐ |
| Vote off-chain | ๐ |
| Get snapshot results | ๐ |
---
### ๐ Security & Analysis
#### Contract Analysis
| Feature | Status |
|---------|--------|
| Verify contract source | โ
|
| Get contract ABI | โ
|
| Check if contract is proxy | โ
|
| Get implementation address | โ
|
| Detect honeypots | โ
|
| Check for rug pull risks | โ
|
| GoPlus token security check | โ
|
| GoPlus rug pull detection | โ
|
| Audit score | ๐ |
| Get contract creator | โ
|
| Get contract age | โ
|
| Detect malicious functions | โ
|
#### Token Security
| Feature | Status |
|---------|--------|
| Check token safety | โ
|
| Get holder distribution | โ
|
| Check if mintable | โ
|
| Check if pausable | โ
|
| Check for hidden fees | โ
|
| Check liquidity locked | โ
|
| Get top holders | โ
|
| Check ownership renounced | โ
|
| GoPlus NFT security | โ
|
| GoPlus approval security | โ
|
#### Wallet Security
| Feature | Status |
|---------|--------|
| Get approval list | โ
|
| Revoke approvals | โ
|
| Check for drainers | โ
|
| Simulate transaction safety | โ
|
| Get wallet risk score | ๐ |
| GoPlus address security | โ
|
| GoPlus dApp phishing check | โ
|
| GoPlus signature decode | โ
|
---
### ๐ Price & Market Data
#### Price Feeds
| Feature | Status |
|---------|--------|
| Get current price | โ
|
| Get historical prices | โ
|
| Get OHLCV data | โ
|
| Get price from DEX | โ
|
| Get price from oracle (Chainlink, Pyth) | โ
|
| Get TWAP price | โ
|
| Get price across exchanges | โ
|
| Get volume | โ
|
| Get market cap | โ
|
| Get trending coins | โ
|
| Get token by contract address | โ
|
| Get exchange rates | โ
|
| Get coin categories | โ
|
| Get derivatives data | โ
|
| Get company BTC/ETH holdings | โ
|
#### Analytics
| Feature | Status |
|---------|--------|
| Get TVL (Total Value Locked) | โ
|
| Get protocol metrics | โ
|
| Get yield farming APYs | โ
|
| Get gas tracker | โ
|
| Get whale transactions | ๐ |
| Get token flow analysis | ๐ |
| Get DEX volume | โ
|
| Get lending metrics | ๐ |
| Get DeFi fees & revenue | โ
|
| Get stablecoin data | โ
|
| Get bridge volumes | โ
|
| Get liquidation data | โ
|
| Get DeFi hacks history | โ
|
| Get perpetuals data | โ
|
---
### ๐ Identity & Domains
#### ENS (Ethereum Name Service)
| Feature | Status |
|---------|--------|
| Register domain | โ
|
| Resolve name to address | โ
|
| Reverse resolve address to name | โ
|
| Set primary name | ๐ |
| Set records (text, address, content hash) | โ
|
| Transfer domain | โ
|
| Renew domain | โ
|
| Get expiry date | ๐ |
| Set subdomains | โ
|
#### Other Name Services
| Feature | Status |
|---------|--------|
| Unstoppable Domains | ๐ |
| Space ID (.bnb) | ๐ |
| Bonfida (.sol) | ๐ |
| ANS (.avax) | ๐ |
#### DIDs & Verifiable Credentials
| Feature | Status |
|---------|--------|
| Create DID | ๐ |
| Resolve DID | ๐ |
| Issue verifiable credential | ๐ |
| Verify credential | ๐ |
| Revoke credential | ๐ |
---
### ๐ผ๏ธ NFT & Metaverse
#### NFT Marketplace
| Feature | Status |
|---------|--------|
| List NFT for sale | ๐ |
| Buy NFT | ๐ |
| Make offer | ๐ |
| Accept offer | ๐ |
| Cancel listing | ๐ |
| Auction NFT | ๐ |
| Bid on auction | ๐ |
| Get floor price | ๐ |
| Get collection stats | ๐ |
#### NFT Creation
| Feature | Status |
|---------|--------|
| Deploy NFT collection | ๐ |
| Mint NFTs | ๐ |
| Set royalties | ๐ |
| Set metadata | ๐ |
| Reveal NFTs | ๐ |
| Whitelist management | ๐ |
| Airdrop NFTs | ๐ |
#### NFT Finance
| Feature | Status |
|---------|--------|
| NFT collateralized loans | ๐ |
| NFT fractionalization | ๐ |
| NFT renting | ๐ |
| NFT staking | ๐ |
#### Metaverse
| Feature | Status |
|---------|--------|
| Buy virtual land | ๐ |
| Sell virtual land | ๐ |
| Build on land | ๐ |
| Transfer assets between metaverses | ๐ |
---
### ๐ Events & Subscriptions
#### Event Listening
| Feature | Status |
|---------|--------|
| Subscribe to contract events | ๐ |
| Subscribe to pending transactions | ๐ |
| Subscribe to new blocks | ๐ |
| Subscribe to logs | ๐ |
| Filter events by topic | โ
|
| Get historical events | โ
|
| Decode event logs | โ
|
#### Webhooks & Notifications
| Feature | Status |
|---------|--------|
| Set up webhook for events | ๐ |
| Get transaction notifications | ๐ |
| Get price alerts | ๐ |
| Get whale alerts | ๐ |
| Get governance notifications | ๐ |
---
### ๐ Smart Contract Interaction
#### Read Operations
| Feature | Status |
|---------|--------|
| Call view/pure functions | โ
|
| Get storage at slot | โ
|
| Get contract bytecode | โ
|
| Multicall (batch reads) | โ
|
| Static call simulation | โ
|
#### Write Operations
| Feature | Status |
|---------|--------|
| Send transaction to contract | โ
|
| Encode function call | โ
|
| Decode function result | โ
|
| Estimate gas for call | โ
|
| Batch transactions | โ
|
#### Contract Deployment
| Feature | Status |
|---------|--------|
| Deploy contract | โ
|
| Deploy with CREATE2 | โ
|
| Deploy proxy contract | โ
|
| Upgrade proxy | โ
|
| Verify on explorer | โ
|
---
### ๐ค Advanced Features
#### MEV & Flashbots
| Feature | Status |
|---------|--------|
| Submit private transaction | โ
|
| Submit bundle | โ
|
| Get MEV opportunities | โ
|
| Backrun protection | โ
|
| Frontrun protection | โ
|
| Sandwich protection | โ
|
#### Account Abstraction (ERC-4337)
| Feature | Status |
|---------|--------|
| Create smart account | ๐ |
| Execute user operation | ๐ |
| Batch operations | ๐ |
| Sponsor gas (Paymaster) | ๐ |
| Session keys | ๐ |
| Social recovery | ๐ |
#### Intents & Solvers
| Feature | Status |
|---------|--------|
| Submit intent | ๐ |
| Get solver quotes | ๐ |
| Execute via solver | ๐ |
#### Oracles
| Feature | Status |
|---------|--------|
| Get Chainlink price | โ
|
| Get Pyth price | ๐ |
| Get Band Protocol price | ๐ |
| Get API3 price | ๐ |
| Request randomness (VRF) | ๐ |
| Request external data | ๐ |
---
### ๐ ๏ธ Utility Functions
#### Gas
| Feature | Status |
|---------|--------|
| Get gas price | โ
|
| Get priority fee | โ
|
| Get base fee | โ
|
| Get gas history | โ
|
| Estimate gas for transaction | โ
|
| Get EIP-1559 fees | โ
|
#### Encoding/Decoding
| Feature | Status |
|---------|--------|
| ABI encode | โ
|
| ABI decode | โ
|
| Keccak256 hash | โ
|
| Pack/unpack data | โ
|
| Sign typed data (EIP-712) | โ
|
#### Address Utils
| Feature | Status |
|---------|--------|
| Validate address | โ
|
| Checksum address | โ
|
| Get address from ENS | โ
|
| Check if contract | โ
|
| Get contract type | ๐ |
---
### ๐ฐ Data & Information
#### News & Social
| Feature | Status |
|---------|--------|
| Get crypto news | โ
|
| Search crypto news | โ
|
| Get DeFi news | โ
|
| Get Bitcoin news | โ
|
| Get breaking news | โ
|
| Get social sentiment | โ
|
| Get influencer rankings | โ
|
| Get trending topics | โ
|
| Get coin social metrics | โ
|
| Get social feed | โ
|
| Get market sentiment index | โ
|
| Get Galaxy Score | โ
|
| Get AltRank | โ
|
| Get Twitter mentions | ๐ |
| Get Discord activity | ๐ |
| Get GitHub activity | ๐ |
#### On-Chain Data
| Feature | Status |
|---------|--------|
| Get token holders | ๐ |
| Get whale wallets | ๐ |
| Get smart money movements | ๐ |
| Get protocol users | ๐ |
| Get daily active addresses | ๐ |
| Get network hash rate | ๐ |
</details>
<details>
<summary><b>๐๏ธ Institutional & Compliance</b> (click to expand)</summary>
### ๐๏ธ Institutional & Compliance
#### KYC/AML
| Feature | Status |
|---------|--------|
| Wallet screening | ๐ |
| Transaction monitoring | ๐ |
| Risk scoring | ๐ |
| Sanctions checking | ๐ |
#### Custody
| Feature | Status |
|---------|--------|
| Multi-sig operations | ๐ |
| Cold storage | ๐ |
| Hot wallet management | ๐ |
| Policy enforcement | ๐ |
#### Reporting
| Feature | Status |
|---------|--------|
| Tax reporting | ๐ |
| Portfolio tracking | โ
|
| P&L reporting | ๐ |
| Transaction history export | ๐ |
</details>
---
## Data Sources
This MCP server integrates with the following APIs:
| Provider | Data Type | API Key Required |
|----------|-----------|------------------|
| [CoinGecko](https://coingecko.com) | Market data, prices, OHLCV | Optional (free tier) |
| [CoinStats](https://coinstats.app) | Portfolio, prices, wallets | Yes |
| [DefiLlama](https://defillama.com) | TVL, yields, fees, protocols | No |
| [LunarCrush](https://lunarcrush.com) | Social sentiment, influencers | Yes |
| [GoPlus](https://gopluslabs.io) | Security analysis, honeypot detection | No |
| [GeckoTerminal](https://geckoterminal.com) | DEX pools, trades, OHLCV | No |
| [DexPaprika](https://dexpaprika.com) | DEX analytics, pools | No |
| [CryptoPanic](https://cryptopanic.com) | Crypto news | Yes |
| [Alternative.me](https://alternative.me) | Fear & Greed Index | No |
---
## Related MCP Servers
Additional specialized MCP servers in this workspace:
| Server | Description | Tools |
|--------|-------------|-------|
| [binance-mcp-server](./binance-mcp-server/) | Binance.com global exchange API | 156+ tools |
| [binance-us-mcp-server](./binance-us-mcp-server/) | Binance.US exchange API | 71+ tools |
### Binance.com Server
Full Binance global API coverage including:
- Spot trading, wallet, staking, mining
- Convert, Simple Earn, Algo Trading (TWAP/VP)
- NFT, Pay, Copy Trading, Dual Investment
- VIP Loans, C2C/P2P, Fiat
```json
{
"mcpServers": {
"binance": {
"command": "npx",
"args": ["ts-node", "binance-mcp-server/src/index.ts"],
"env": {
"BINANCE_API_KEY": "your_key",
"BINANCE_API_SECRET": "your_secret"
}
}
}
}
```
### Binance.US Server
US-regulated exchange with:
- Market data, spot trading, wallet
- Staking, OTC, sub-accounts
- Custodial solutions (institutional)
```json
{
"mcpServers": {
"binance-us": {
"command": "node",
"args": ["binance-us-mcp-server/build/index.js"],
"env": {
"BINANCE_US_API_KEY": "your_key",
"BINANCE_US_API_SECRET": "your_secret"
}
}
}
}
```
---
## Credits
Built by **[nich](https://x.com/nichxbt)** ([github.com/nirholas](https://github.com/nirholas))
---
## ๐ข Who's Using This?
Universal Crypto MCP is used by developers and teams building:
- ๐ค **AI Trading Bots** - Automated portfolio management
- ๐ **Analytics Dashboards** - DeFi monitoring tools
- ๐ **Security Auditors** - Token vetting workflows
- ๐ฆ **DeFi Applications** - Cross-chain operations
- ๐ฑ **Mobile Apps** - Crypto portfolio trackers
- ๐ **Educational Tools** - Blockchain learning platforms
> **Using Universal Crypto MCP?** [Let us know!](https://github.com/nirholas/universal-crypto-mcp/issues/new?title=Add%20my%20project%20to%20Who's%20Using%20This) We'd love to feature your project.
---
## ๐ค Contributing
We welcome contributions of all kinds! Please read our [Contributing Guide](CONTRIBUTING.md) for details.
### Quick Start for Contributors
```bash
# Fork and clone the repo
git clone https://github.com/YOUR_USERNAME/universal-crypto-mcp.git
cd universal-crypto-mcp
# Install dependencies
npm install
# Create a feature branch
git checkout -b feat/your-feature
# Make your changes, then run checks
npm run lint # Check code style
npm test # Run tests
npm run test:coverage # Check coverage
# Commit with conventional commits
git commit -m "feat(module): add new feature"
# Push and create a PR
git push origin feat/your-feature
```
### Code Style
We use **Prettier** for formatting and **ESLint** for linting:
```bash
npm run format # Format code
npm run lint # Check types and lint
npm run lint:fix # Auto-fix issues
```
### Ways to Contribute
- ๐ [Report bugs](https://github.com/nirholas/universal-crypto-mcp/issues/new?template=bug_report.yml)
- ๐ก [Request features](https://github.com/nirholas/universal-crypto-mcp/issues/new?template=feature_request.yml)
- ๐ [Improve docs](https://github.com/nirholas/universal-crypto-mcp/edit/main/README.md)
- ๐ง Submit pull requests
- โญ [Star the repo](https://github.com/nirholas/universal-crypto-mcp/stargazers)
---
## ๐ License
Apache-2.0 ยฉ [nich](https://github.com/nirholas)
---
<p align="center">
<b>Stop copy-pasting blockchain queries. Let AI do it.</b><br>
<sub>Made with ๐ for the crypto community</sub>
</p>
<p align="center">
<a href="https://github.com/nirholas/universal-crypto-mcp/stargazers">
<img src="https://img.shields.io/github/stars/nirholas/universal-crypto-mcp?style=social" alt="Star on GitHub">
</a>
</p>