taxfolio-mcp
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., "@taxfolio-mcpFind tax-loss harvesting opportunities in my portfolio."
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.
taxfolio-mcp
MCP server for taxfolio — tax-loss harvesting via LLM agents.
Tools
harvest_losses
Find tax-loss harvesting opportunities. Sells losers, buys same-industry substitutes ranked by return correlation.
Input:
{
"holdings": [
{"ticker": "INTC", "shares": 200, "cost_basis": 45.0, "acquired": "2024-06-01"},
{"ticker": "NVDA", "shares": 50, "cost_basis": 130.0, "acquired": "2024-06-01"}
],
"min_loss_pct": 5.0,
"min_correlation": 0.5
}Output:
{
"summary": {"positions_harvested": 1, "total_loss_harvested": -4600.0, "total_tax_benefit": 1702.0},
"trades": [{"sell_ticker": "INTC", "sell_shares": 200, "buy_ticker": "MU", "correlation": 0.48}],
"warnings": [],
"limitations": ["Market data from yfinance", "Not tax advice"]
}optimize
Tax-aware portfolio rebalancing via C++20 QP solver.
Related MCP server: Black-Litterman Portfolio Optimization MCP Server
Install
# Requires taxfolio to be installed first
# See: https://github.com/ajtgjmdjp/taxfolio
uv pip install taxfolio-mcpUsage with Claude Desktop
Add to ~/.config/claude/claude_desktop_config.json:
{
"mcpServers": {
"taxfolio": {
"command": "taxfolio-mcp"
}
}
}Then ask Claude:
"Find tax-loss harvesting opportunities in my portfolio: INTC 200 shares bought at $45, NVDA 50 shares bought at $130, PFE 300 shares bought at $35"
Limitations
Market data fetched via yfinance (may be delayed or unavailable)
Substitute matching is heuristic (industry group + return correlation)
Maximum 100 holdings per request
Not tax advice — consult a tax professional before executing trades
License
This server cannot be deployed
Maintenance
Related MCP Connectors
Unified financial infrastructure connecting AI agents directly to trade live/demo brokerage accounts, Web3 non-custodial wallets, real-time market data across equities, ETFs, crypto, forex, options, DeFi swaps, and prediction markets, institutional research feeds, and algorithmic strategy backtesters.
Investment research superagent: podcasts, SEC filings, and no-code research pipelines.
Evidence-backed capital-change intelligence and sourced financial data for AI agents
Connect your portfolio to Claude, ChatGPT, or Codex to analyze it and make smarter investments.
Related MCP Servers
- FlicenseNot gradedqualityDmaintenanceEnables AI-powered trading and portfolio management through Upstox API integration. Supports portfolio rebalancing strategies with LLM inference for automated trading decisions.-
- AlicenseNot gradedqualityCmaintenanceEnables AI agents to perform Black-Litterman portfolio optimization with investor views, backtesting, and asset analysis, generating dashboards for visualization.MIT
- AlicenseNot gradedqualityDmaintenanceEnables LLM-driven portfolio optimization using natural language, providing tools for mean-variance, HRP, Black-Litterman, and other optimization methods.6Apache 2.0
- AlicenseNot gradedqualityAmaintenanceEnables AI agents to manage and analyze personal investment portfolios, including fund and stock holdings, net value tracking, XIRR calculations, penetration analysis, and backtesting.Apache 2.0