# ChainFolioAI [Health: Active]

**Category:** 💰 Finance & Fintech  
**Repository:** https://chainfolioai.com/developers  
**Views:** 0  
**Installs:** 0  
**Upvotes:** 0  
**Directory Page:** https://allmcps.com/mcp/chainfolioai

## Description
Read-only crypto and traditional portfolio: holdings, PNL, FIFO tax figures and market data.

## Tools
Capabilities this server exposes over MCP:

- **get_portfolio** — Returns the user's latest portfolio snapshot: balances per network (ETH, SOL, BTC, ADA), exchanges (CEX), DeFi and manual assets.
- **get_wallets** — Returns the wallets of each portfolio, with addresses as pseudonyms (wallet_…), never in clear.
- **get_pnl** — The user's portfolio performance in euros: current total and change over 24 h, 7 days, 30 days and since the start, from the saved snapshots.
- **get_realized_gains** — The user's realised capital gains using FIFO, in euros, with fees and gas deducted: total, per asset and per year. Not a tax return.
- **get_metrics** — Advanced portfolio metrics from the saved history: ROI, CAGR, Sharpe, Sortino, Calmar, volatility, maximum and current drawdown, win rate and 95% VaR.
- **get_trades** — Transactions recorded by the user (buys, sells and fees), in euros, newest first. Optional filters by asset and year.
- **get_tax_estimate** — ESTIMATE of capital-gains tax in a country, in that country's currency: the country's cost method (FIFO, average cost, LIFO, UK pooling, annual sum), each trade converted at the ECB rate of its date, the rules of the year of sale, holding period, annual allowance and, where the law allows, losses carried from previous years. Not a tax return. Each country's options are in list_tax_countries (options field).
- **list_tax_countries** — Crypto tax regimes published by ChainFolioAI: short- and long-term rate, holding period, annual allowance and legal reference, per country.
- **get_global_market** — Global crypto market state: total market cap, 24 h change and Bitcoin and Ethereum dominance.
- **get_derivatives** — Derivatives data for a symbol on OKX: open interest, long/short ratio, funding, CVD, taker volume, 1 h candles, put/call and a composite sentiment score (0–100).
- **get_price_on** — Closing price in US dollars of a crypto asset on a date (UTC), from OKX daily candles. Useful to value a past buy or sale.
- **get_defi_positions** — The user's lending positions read from the contracts (Aave V3, Spark, Compound V3, Morpho, EigenLayer) on Ethereum, Arbitrum, Base, Optimism and Polygon: supplied, borrowed and net, with health factor. It queries the blockchain, so it takes a few seconds.
- **get_nfts** — NFTs in the user's EVM wallets on one network. They are not included in the portfolio total (no reliable price).
- **get_portfolio_score** — The user's portfolio score (0–100), as shown in the app: diversification, crypto/traditional mix, stablecoin reserve, performance and risk management. A reading aid, not a recommendation to buy or sell.
- **get_whale_activity** — Scans the given addresses and returns recent on-chain movements (large transfers, accumulation). Supports ETH, BTC and SOL.
- **get_market** — Returns the top crypto assets by market cap (price, market cap, volume, 24h and 7d change).
- **list_known_whales** — Lists the preloaded known whales (exchanges, funds, public figures, governments) with address and chain. Use the addresses as input to get_whale_activity.
- **get_fear_greed** — Crypto market Fear & Greed index (current value 0–100, classification and recent history).
- **get_asset** — Price, market cap, volume and change (24h/7d) of a crypto asset by symbol (e.g. btc, eth, sol).
- **get_fire** — Calculates the years to financial independence (4% rule) from expenses, savings, return and age.
- **get_news** — Latest crypto news (CoinDesk, CoinTelegraph): title, source, link and date.
- **get_btc_blocks** — Recent Bitcoin blocks (height, number of transactions, median fee, pool) and recommended mempool fees.
- **ask_ai** — Ask the AI assistant, in natural language, about your real portfolio (analysis, context, risks). It never gives buy or sell orders. Daily limit per account.

## Claude Desktop Quick Installation
Remote MCP endpoint (confidence: high). Install path detected from listing signals. Add as a URL/SSE server in your client:

```json
"mcpServers": {
  "chainfolioai": {
    "url": "https://chainfolioai.com/api/mcp"
  }
}
```

## Documentation

## What ChainFolioAI does

ChainFolioAI exposes read-only financial and crypto data through MCP. Its portfolio tools cover holdings across networks, centralized exchanges, DeFi, and manually recorded assets. Wallet addresses are returned as pseudonyms rather than clear addresses. The server also provides transaction history, performance periods, realized gains, portfolio statistics, and a score based on diversification, asset mix, stablecoin reserves, performance, and risk management.

The market side includes crypto rankings, individual asset quotes, global market conditions, Fear & Greed history, derivatives indicators from OKX, historical closing prices, crypto news, Bitcoin block details, and activity from known or supplied whale addresses. An AI question tool can analyze the user’s portfolio in natural language, including context and risks, but does not issue buy or sell orders.

## Tools and capabilities

Portfolio and transaction tools include:

- `get_portfolio` for balances grouped by network, exchange, DeFi, and manual assets.
- `get_wallets` for portfolio wallets with masked address identifiers.
- `get_pnl` for euro-denominated changes over 24 hours, 7 days, 30 days, and since inception based on saved snapshots.
- `get_trades` for buys, sells, and fees, with optional asset and year filters.
- `get_realized_gains` for FIFO gains in euros, including fees and gas deductions, by asset and year.
- `get_metrics` for ROI, CAGR, Sharpe, Sortino, Calmar, volatility, drawdowns, win rate, and 95% VaR.

Tax tools estimate capital-gains tax using a selected country’s method and rules. They account for date-based ECB conversion, holding periods, annual allowances, and eligible prior-year losses. `list_tax_countries` supplies the available regimes and their published parameters.

On-chain tools include DeFi lending positions across Aave V3, Spark, Compound V3, Morpho, and EigenLayer on Ethereum, Arbitrum, Base, Optimism, and Polygon. They report supplied, borrowed, net amounts, and health factor. NFT retrieval covers EVM wallets on one network; NFTs are excluded from portfolio totals. Whale scanning supports Ethereum, Bitcoin, and Solana, while known whale records provide addresses and chains for use as inputs.

Market tools return asset prices and changes, market-cap rankings, OKX derivatives data, historical prices, Fear & Greed readings, news links, Bitcoin block information, and a financial-independence estimate based on the 4% rule. `get_derivatives` includes open interest, long/short ratio, funding, CVD, taker volume, one-hour candles, put/call data, and a composite sentiment score.

## Limitations and notes

Tax results are estimates rather than tax returns. The applicable method and rules depend on the selected country and sale year. Portfolio score results are intended as a reading aid, not a recommendation to buy or sell. The `ask_ai` tool has a daily per-account limit and does not provide trade orders.

Some data is based on saved portfolio snapshots, while DeFi positions are queried from contracts and may take a few seconds. NFT values are not included in portfolio totals because the service does not treat their prices as reliable. Historical asset prices are closing US-dollar prices from OKX daily candles, and derivatives data is also sourced from OKX.

_Full upstream README: https://allmcps.com/mcp/chainfolioai/readme_

