CoinMarketCap Portfolio MCP Server
Provides real-time market data, token info, and price comparisons for thousands of cryptocurrencies.
Enables portfolio analysis and token tracking on the Ethereum blockchain.
Enables portfolio analysis and token tracking on the Optimism blockchain.
Enables portfolio analysis and token tracking on the Polygon blockchain.
Enables portfolio analysis and token tracking on the Solana blockchain.
Click on "Install 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., "@CoinMarketCap Portfolio MCP ServerAnalyze my Ethereum wallet"
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.
CoinMarketCap Portfolio MCP Server π
Transform Claude AI into your personal crypto portfolio analyst.
Analyze wallets, get AI-powered recommendations, and track portfolios across 8+ blockchainsβall through natural conversation with Claude.
π― What This Does
πΌ Portfolio Analysis - Analyze any crypto wallet with one command
π Market Data - Get real-time prices and trends for 1000+ tokens
π€ AI Recommendations - Get personalized investment advice from Claude
π Multi-Chain - Supports Ethereum, Base, Solana, Polygon, Arbitrum, Optimism, Avalanche, BNB
Related MCP server: Wealthfolio MCP Server
ποΈ Architecture

How it works:
You ask Claude to analyze a wallet
Claude calls the MCP server
Server fetches data from Moralis & CoinMarketCap
Claude provides insights with charts and recommendations
πΈ Example Output

Claude analyzes your wallet and provides:
β Total portfolio value
β Asset allocation breakdown
β Risk assessment with alerts
β Rebalancing recommendations
β Visual charts and graphs
π Quick Start (5 Minutes)
Prerequisites
Python 3.12+
Moralis API Key (free - 40k requests/day)
Step 1: Clone & Install
# Clone repository
git clone https://github.com/vibhudixit123/coinmarketcap_mcp.git
cd coinmarketcap_mcp
# Create virtual environment
python3 -m venv venv
source venv/bin/activate # On Windows: venv\Scripts\activate
# Install dependencies
pip install -r requirements.txtStep 2: Configure API Key
# Copy environment template
cp .env.example .env
# Add your Moralis API key
nano .envAdd this line:
MORALIS_API_KEY=your_api_key_hereGet your free API key at moralis.io β Dashboard β Web3 APIs
Step 3: Test the Server
python -m src.serverYou should see:
============================================================
CoinMarketCap MCP Server (Multi-Chain + Portfolio Edition)
Supported Chains: ethereum, base, polygon, arbitrum...
Total Tools: 12 (8 market + 4 portfolio)
============================================================
Moralis client initialized β
Press Ctrl+C if it works. Now configure Claude Desktop!
π₯οΈ Configure Claude Desktop
Step 1: Find Your Paths
# Get your Python path
which python3
# Example output: /Users/yourname/coinmarketcap_mcp/venv/bin/python3
# Get your project path
pwd
# Example output: /Users/yourname/coinmarketcap_mcpStep 2: Edit Claude Desktop Config
On Mac:
nano ~/Library/Application\ Support/Claude/claude_desktop_config.jsonOn Windows:
notepad %APPDATA%\Claude\claude_desktop_config.jsonStep 3: Add This Configuration
{
"mcpServers": {
"coinmarketcap-portfolio": {
"command": "/Users/yourname/coinmarketcap_mcp/venv/bin/python3",
"args": ["-m", "src.server"],
"cwd": "/Users/yourname/coinmarketcap_mcp",
"env": {
"PYTHONPATH": "/Users/yourname/coinmarketcap_mcp",
"MORALIS_API_KEY": "your_moralis_api_key_here"
}
}
}
}Replace:
/Users/yourname/...with YOUR paths from Step 1your_moralis_api_key_herewith YOUR Moralis API key
Step 4: Restart Claude Desktop
Quit Claude Desktop completely (Cmd+Q on Mac, close on Windows)
Open Claude Desktop
Look for π¨ hammer icon at the bottom
β If you see the hammer icon, it worked!
π¬ Try It Out
Ask Claude:
"What blockchain networks do you support?"
"What's the price of ETH?"
"Analyze wallet 0x742d35Cc6634C0532925a3b844Bc9e7595f0bEb on Ethereum"
"Give me investment recommendations for my portfolio"π οΈ Available Tools
Market Data (8 tools)
get_token_info- Get token detailslist_tokens- Top tokens on any chaincompare_tokens- Compare multiple tokenssearch_token_across_chains- Find token everywhere
Portfolio Analysis (4 tools)
analyze_wallet- Complete portfolio breakdownget_portfolio_recommendations- AI investment advicecompare_portfolio_to_market- Benchmark performanceget_portfolio_summary- Quick overview
π³ Docker
If you prefer Docker:
# Build
docker build -t coinmarketcap-mcp .
# Run
docker run -e MORALIS_API_KEY=your_key coinmarketcap-mcp
# Or use docker-compose
docker-compose upπ Host it as a remote MCP server (multi-user)
You can run this as a public, hosted MCP server that anyone can connect to.
It runs the MCP Streamable HTTP transport at /mcp and is multi-user by
design: the server stores no Moralis key. Each user supplies their own
Moralis API key on every request via the X-Moralis-Key header β so you never
pay for their usage and there's nothing to abuse.
The market-data tools use a public CoinMarketCap endpoint and need no key. Only the 4 portfolio tools need a Moralis key, taken from the caller's header.
Run the HTTP transport locally
MCP_TRANSPORT=http PORT=8000 python -m src.server
# Health check: curl http://localhost:8000/health
# MCP endpoint: http://localhost:8000/mcpDeploy to Render (free tier)
Push this repo to GitHub.
In Render: New β Blueprint, select the repo. The included
render.yamlbuilds the Dockerfile and setsMCP_TRANSPORT=http. (NoMORALIS_API_KEYis set on the server β that's intentional.)Deploy. Your server is live at
https://<your-app>.onrender.com/mcp.
Any Docker host (Railway, Fly.io, a VPS) works too β just set MCP_TRANSPORT=http
and expose the port. Render injects PORT automatically.
How users connect (with their own key)
Clients that support remote MCP servers with custom headers (e.g. Cursor, Cline):
{
"mcpServers": {
"coinmarketcap": {
"url": "https://<your-app>.onrender.com/mcp",
"headers": { "X-Moralis-Key": "THEIR_OWN_MORALIS_KEY" }
}
}
}For Claude Desktop, connect through the mcp-remote bridge:
{
"mcpServers": {
"coinmarketcap": {
"command": "npx",
"args": [
"mcp-remote", "https://<your-app>.onrender.com/mcp",
"--header", "X-Moralis-Key:THEIR_OWN_MORALIS_KEY"
]
}
}
}Each user gets their own free Moralis key at moralis.io.
π Troubleshooting
"Module not found" error
Add PYTHONPATH to your Claude config:
"env": {
"PYTHONPATH": "/full/path/to/coinmarketcap_mcp"
}No hammer icon in Claude Desktop
Check config file location is correct
Verify Python path:
which python3Test server manually:
python -m src.serverView logs:
tail -f ~/Library/Logs/Claude/mcp*.log
"MORALIS_API_KEY not found"
Make sure the key is in both:
.envfile in project directoryClaude Desktop config JSON
π¦ What You Get
β
12 AI Tools for Claude to use
β
8 Blockchain Networks supported
β
Real-time Data from Moralis & CoinMarketCap
β
Portfolio Analysis with risk assessment
β
AI Recommendations for rebalancing
β
Visual Dashboards with charts
β
Docker Support for easy deployment
π€ Contributing
Pull requests welcome! For major changes, please open an issue first.
π License
MIT License - see LICENSE file
π Credits
Moralis - Blockchain API
CoinMarketCap - Market data
Anthropic - Claude AI & MCP
Built by Vibhu Dixit
β Star this repo if you find it useful!
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Latest Blog Posts
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/Alg0-labs/crypto-portfolio-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server