crypto-portfolio-mcp
Fetches real-time cryptocurrency price data from Binance for any trading pair (e.g., BTC/USDT), enabling portfolio tracking and valuation with current market prices.
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., "@crypto-portfolio-mcpwhat's my current portfolio summary?"
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.
Crypto Portfolio MCP
An MCP server for tracking and managing cryptocurrency portfolio allocations, enabling AI agents to query and optimize portfolio strategies in real time.
Features
Portfolio Management: Add and track cryptocurrency holdings with real-time Binance prices.
Price Retrieval: Fetch current prices for any Binance trading pair (e.g., BTC/USDT).
Value History: Generate visual charts of portfolio value over time.
Analysis Prompt: Pre-built prompt for portfolio analysis with diversification and risk suggestions.
SQLite Storage: Persistent storage of holdings in a local database.
Related MCP server: Armor Crypto MCP
Installation
Prerequisites
Python 3.10+
Git (optional, for cloning the repo)
A compatible MCP client (e.g., Claude Desktop)
Setup
Clone the Repository:
git clone https://github.com/kukapay/crypto-portfolio-mcp.git cd crypto-portfolio-mcpInstall requirements:
pip install mcp[cli] ccxt matplotlibInstall for Claude Desktop:
mcp install main.py --name "CryptoPortfolioMCP"Or update the configuration file manually:
{ "mcpServers": { "crypto-portfolio-mcp": { "command": "python", "args": [ "path/to/crypto-portfolio-mcp/main.py" ] } } }
Usage
Once installed, interact with the server through an MCP client like Claude Desktop. Below are example commands:
Add a Holding
Prompt: "Add 0.1 BTC to my portfolio"
Result: Adds 0.1 BTC/USDT to your portfolio and confirms with "Added 0.1 BTC/USDT to portfolio".
Get Current Price
Prompt: "What's the current price of ETH on Binance?"
Result: Returns "Current price of ETH/USDT on Binance: $2000.50" (example price).
Portfolio Summary
Prompt: "What's my current portfolio summary?"
Result: Displays a formatted summary, e.g.:
Portfolio Summary: BTC/USDT: 0.1 @ $60000.00 = $6000.00 ETH/USDT: 2.0 @ $2000.00 = $4000.00 Total Value: $10000.00
Portfolio Value History
Prompt: "Show me my portfolio value history"
Result: Generates and displays a PNG chart of your portfolio value over time.
Analyze Portfolio
Prompt: "Analyze my crypto portfolio"
Result: Provides an analysis with suggestions based on current holdings and Binance market trends.
Tools
The server exposes the following tools:
get_portfolio_summary: Retrieves a text summary of your current portfolio.add_holding(coin_symbol: str, amount: float): Adds a cryptocurrency holding (e.g., "BTC", 0.1).get_price(coin_symbol: str): Fetches the current price of a trading pair from Binance.portfolio_value_history(): Generates a PNG chart of portfolio value history.
See the source code docstrings for detailed parameter descriptions.
Database
Holdings are stored in a SQLite database (portfolio.db) with the following schema:
CREATE TABLE holdings (
id INTEGER PRIMARY KEY,
coin_symbol TEXT, -- e.g., "BTC/USDT"
amount REAL, -- Quantity of the asset
purchase_date TEXT -- ISO format timestamp
)License
This project is licensed under the MIT License. See LICENSE for details.
This server cannot be installed
Maintenance
Related MCP Servers
- AlicenseAqualityFmaintenanceAn MCP server that delivers cryptocurrency sentiment analysis to AI agents.Last updated548MIT

Armor Crypto MCPofficial
AlicenseCqualityCmaintenanceAn MCP server providing unified access to blockchain operations, bridging, swapping, and crypto trading strategies for AI agents.Last updated37180GPL 3.0- AlicenseAqualityFmaintenanceAn MCP server that tracks real-time data for major crypto-related stocks to help AI agents analyze blockchain investment opportunities.Last updated33MIT
- AlicenseAqualityCmaintenanceA portfolio analysis MCP server that enables AI agents to manage investment portfolios, fetch financial data from Yahoo Finance and CoinGecko, and perform advanced analysis like weight optimization and Monte Carlo simulations. It utilizes reference-based caching to efficiently handle large datasets without bloating the LLM's context window.Last updated261MIT
Related MCP Connectors
MCP server connecting AI agents to non-custodial staking data across 130+ networks.
MCP server for Gainium — manage trading bots, deals, and balances via AI assistants
HiveCapital MCP Server — autonomous investment layer for AI agents
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
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/kukapay/crypto-portfolio-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server