Two MCP tools. Markowitz mean-variance optimization across the live Solana token universe. Real wallet metrics on demand. Connect once, query always.
Each call proxies directly to the SolPortfolio API. All optimization, price fetching, and Solana RPC work happens server-side.
// response { "portfolio": [ { "symbol": "JTO", "chain": "SOLANA", "weight": 15.4, "annual_return": 320.5, "annual_volatility": 210.3, "sharpe_ratio": 1.52, "sortino_ratio": 2.10 } ], "portfolio_metrics": { "total_tokens": 10, "annual_return": 280.0, "sharpe_ratio": 1.47, "total_weight": 100.0 } }
// response { "token_metrics": [ { "symbol": "JTO", "balance": 500, "price": 2.14, "value": 1070.0, "metrics": { "weight": 12.3, "sharpe_ratio": 1.51, "sortino_ratio": 2.05 } } ], "portfolio_metrics": { "annual_return": 275.0, "sharpe_ratio": 1.46 } }
One JSON block in your MCP client config. No auth setup, no SDKs, no session state to manage.
Add the server under mcpServers in your Claude Desktop config file, then restart the app.
~/Library/Application Support/Claude/claude_desktop_config.json%APPDATA%\Claude\claude_desktop_config.json{
"mcpServers": {
"sol-portfolio": {
"type": "streamable-http",
"url": "https://mcp.solportfolio.io/mcp"
}
}
}
Register the server via the CLI. The tools are available in the next session — no restart needed.
# register the MCP server claude mcp add sol-portfolio \ --transport streamable-http \ https://mcp.solportfolio.io/mcp
Guides on portfolio theory, risk management, and Solana token selection — the concepts this API puts to work.