canli-mcp / Quant finance

Mean-variance portfolio for a target

Find the minimum-variance portfolio that reaches a target expected return, or the utility-maximizing portfolio for a risk aversion, long-only or unconstrained.

The tool is mean_variance_portfolio in canli-mcp 0.22.0, free and MIT-licensed, with no account and no API key. It comes from canli-quant-mcp, which canli-mcp includes, and it is also its own server.

Arguments

As the server declares them
ArgumentRequiredType
returnsnonumber[][]
covariancenonumber[][]
expected_returnsnonumber[]
periods_per_yearnonumber
assetsnostring[]
target_returnnonumber
risk_aversionnonumber
long_onlynoboolean
max_weightnonumber

How a model reaches it

Ask in plain words. The model finds mean_variance_portfolio with canli-mcp's find_tool, reads its arguments with describe_tool if it needs to, and runs it with run_tool. The call has this shape, with your values in place of the angle brackets:

{
  "name": "mean_variance_portfolio",
  "arguments": {}
}

Words that find it

Besides its name, title and description, find_tool matches a question to mean_variance_portfolio on these words: mean, variance, optimization, markowitz, target, return, risk, aversion, efficient, portfolio.

More

Nothing here is investment advice.