Helm
v0.1.0Rules-based investment risk profiling and portfolio allocation for AI agents.
MCP server for Helm, a rules-based investment profiling and portfolio allocation engine. Use this package when an AI assistant or agent should profile a client's investment risk. The model interviews the client; Helm's versioned rules decide the profile and allocation, so the same answers always give the same, auditable result. All tools are read-only. The input schema of evaluate_risk_profile is generated from the active definition, so the model sees the exact allowed values and ranges, and a custom definition changes the tool automatically.
Summary extracted from the README.
@zagvar/helm-mcp
MCP server for Helm, a rules-based investment profiling and portfolio allocation engine.
Use this package when an AI assistant or agent should profile a client's investment risk. The model interviews the client; Helm's versioned rules decide the profile and allocation, so the same answers always give the same, auditable result.
Helm returns a rules-based risk profile, not financial advice. Production users remain responsible for regulatory, suitability, audit, and disclosure requirements in their jurisdiction.
What it exposes
| Name | Kind | Purpose |
|---|---|---|
get_questionnaire |
Tool | Questions to ask, with answer types, allowed values, ranges and units. |
evaluate_risk_profile |
Tool | Score, profile, override, allocation, and the model version and graph checksum for audit. |
describe_risk_model |
Tool | Profiles with minimum scores and allocations, question weights, and overrides. |
risk_profile_interview |
Prompt | Walks the assistant through the interview, optionally in a given language. |
All tools are read-only. The input schema of evaluate_risk_profile is
generated from the active definition, so the model sees the exact allowed
values and ranges, and a custom definition changes the tool automatically.
Claude Desktop
Open Settings → Developer → Edit Config and add Helm to
claude_desktop_config.json:
{
"mcpServers": {
"helm": {
"command": "npx",
"args": ["-y", "@zagvar/helm-mcp"]
}
}
}
Quit and restart Claude Desktop. Helm's tools appear under the connectors menu in the message box, and the interview prompt is available from the same menu.
Claude Code
claude mcp add --transport stdio helm -- npx -y @zagvar/helm-mcp
Add --scope project to share the server with your team through .mcp.json,
or --scope user to use it in every project.
Other MCP clients
Any client that launches stdio servers can run Helm with the command
npx -y @zagvar/helm-mcp. The package requires Node.js 24 or later.
Custom definitions
Point the server at your own risk-profile definition with --definition or the
HELM_DEFINITION environment variable:
{
"mcpServers": {
"helm": {
"command": "npx",
"args": ["-y", "@zagvar/helm-mcp"],
"env": {
"HELM_DEFINITION": "/absolute/path/to/definition.json"
}
}
}
}
MCP clients start servers with a minimal environment, so set
HELM_DEFINITION in the client's env block rather than in your shell. Use
an absolute path. The definition is validated when the server starts, and an
invalid file stops it with a readable error in the client's server log.
Use in your own host
createHelmMcpServer returns an McpServer from the official TypeScript SDK,
so you can serve Helm over any MCP transport. You own the engine's lifecycle:
import { serveStdio } from "@modelcontextprotocol/server/stdio";
import { RiskProfilerEngine } from "@zagvar/helm-core";
import { createHelmMcpServer } from "@zagvar/helm-mcp";
const engine = new RiskProfilerEngine();
const handle = serveStdio(() => createHelmMcpServer({ engine }));
process.on("SIGTERM", async () => {
await handle.close();
engine.dispose();
});
Debugging
Try the server without an AI client using the MCP Inspector:
npx @modelcontextprotocol/inspector -- npx -y @zagvar/helm-mcp
npx @modelcontextprotocol/inspector --cli --method tools/list -- npx -y @zagvar/helm-mcp
The server writes its logs to stderr, because stdout carries the protocol. In
Claude Desktop, find them in mcp-server-helm.log under ~/Library/Logs/Claude
(macOS) or %APPDATA%\Claude\logs (Windows).
License
MIT