Connect Altruist Open API to Claude: Track Wealth & Account History
Learn how to connect Altruist Open API to Claude using Truto's managed MCP server. Automate portfolio analysis, position audits, and custodial data feeds securely.
If your team needs to connect Altruist Open API to Claude to automate wealth management workflows, audit portfolio histories, or oversee custodial data feeds, you need a Model Context Protocol (MCP) server. This server acts as the translation layer between Claude's tool calls and Altruist's REST APIs. You can either build and maintain this infrastructure yourself, or use a managed integration platform like Truto to dynamically generate a secure, authenticated MCP server URL. If your team uses ChatGPT, check out our guide on /connect-altruist-open-api-to-chatgpt-analyze-portfolio-activity/ or explore our broader architectural overview on /connect-altruist-open-api-to-ai-agents-sync-feeds-position-data/.
Giving a Large Language Model (LLM) read and write access to a specialized wealth management platform like Altruist is a serious engineering undertaking. You have to handle secure token lifecycles, map nested financial schemas to MCP tool definitions, and deal with Altruist's specific pagination constraints. Every time Altruist deprecates a V1 resource or changes a data feed schema, you have to update your server code, redeploy, and test the integration.
This guide breaks down exactly how to use Truto to generate a secure, managed MCP server for Altruist Open API, connect it natively to Claude Desktop, and execute complex wealth management workflows using natural language.
The Engineering Reality of the Altruist Open API
A custom MCP server is a self-hosted integration layer. While the open MCP standard provides a predictable way for models to discover tools, the reality of implementing it against specialized financial APIs is painful. Altruist is built to manage complex household hierarchies, custodial accounts, and high-frequency transaction data. Its API reflects that complexity.
If you decide to build a custom Altruist Open API MCP server, here are the specific integration challenges you will face:
Fragmented V1 vs V2 API Versions
Altruist is actively modernizing its API surface area. You will find endpoints like list_all_altruist_open_api_accounts_v_1 existing alongside their V2 counterparts. An LLM has no context on which API version to use for a given task. You must build a curation layer that hides deprecated endpoints and presents a unified, validated set of operations to Claude, ensuring the agent does not hallucinate payloads for sunsetted V1 schemas.
Nested Data Envelopes and Pagination Limits
Altruist handles large financial datasets using strict pagination. Endpoints rely on page and page_size query parameters, with a hard maximum limit of 1000 records per page (defaulting to 100). Furthermore, responses are not flat arrays. A request to fetch positions returns data nested inside a data.positions object. If you simply pass raw OpenAPI specs to Claude, the LLM often struggles to parse this nested envelope structure correctly, leading to hallucinated data extraction. Your MCP server must explicitly instruct the LLM on how to extract records from these nested properties.
Asynchronous Custodial Data Feeds
Managing flat file data feeds in Altruist is not a simple CRUD operation. Endpoints like create_a_altruist_open_api_data_feed provision asynchronous data transfers for specific partner codes and rep codes. The LLM needs strict schema guidance to ensure it passes the correct partner_code and boolean flags (like file_transfer), otherwise the API will reject the payload with cryptic 400 errors.
Strict Rate Limiting Behavior
Altruist enforces rate limits on its API. It is critical to understand that Truto does not retry, throttle, or apply backoff on rate limit errors. When the Altruist API returns an HTTP 429 status code, Truto passes that error directly to the caller. Truto normalizes the upstream rate limit information into standardized headers (ratelimit-limit, ratelimit-remaining, ratelimit-reset) per the IETF spec. It is entirely the responsibility of the caller (or the LLM framework executing the tool) to read these headers and implement the appropriate retry or backoff logic.
Step 1: Generating the Altruist Open API MCP Server
Truto's dynamic tool generation derives MCP tool definitions directly from the integration's documented schemas. Rather than hardcoding a server, you generate a secure URL containing a cryptographic token that maps to a specific integrated Altruist account.
You can generate this server in two ways: via the Truto UI or programmatically via the API.
Method A: Via the Truto UI
For internal tooling and manual agent testing, the UI is the fastest path.
- Navigate to the Integrated Accounts page in your Truto dashboard.
- Select your connected Altruist Open API account.
- Click the MCP Servers tab.
- Click Create MCP Server.
- Configure your access controls (e.g., restrict to
readmethods only, set an expiration date). - Copy the generated MCP Server URL (e.g.,
https://api.truto.one/mcp/a1b2c3d4e5f6...).
Method B: Via the Truto REST API
For production multi-tenant environments where you are deploying AI agents for your customers, you generate MCP servers programmatically.
Make a POST request to /integrated-account/:id/mcp with your desired configuration:
const response = await fetch('https://api.truto.one/integrated-account/YOUR_ACCOUNT_ID/mcp', {
method: 'POST',
headers: {
'Authorization': 'Bearer YOUR_TRUTO_API_KEY',
'Content-Type': 'application/json'
},
body: JSON.stringify({
name: "Altruist Portfolio Agent",
config: {
methods: ["read", "list", "get"] // Restrict to read-only financial data
},
expires_at: "2026-12-31T23:59:59Z"
})
});
const mcpServer = await response.json();
console.log(mcpServer.url); // Pass this URL to your Claude clientThis API call generates a random hex string, hashes it via HMAC for secure storage, and returns the ready-to-use JSON-RPC 2.0 endpoint.
Step 2: Connecting the MCP Server to Claude
Once you have your Truto MCP URL, connecting it to Claude takes seconds. You can configure this via the Claude UI or manually via your system configuration file.
Method A: Via the Claude UI
If you are using Claude Desktop or Claude Web with custom connector support:
- Open Claude and navigate to Settings -> Integrations -> Add MCP Server.
- Give the connector a descriptive name like "Altruist Open API (Truto)".
- Paste the Truto MCP URL into the connection field.
- Click Add.
Claude will immediately execute an MCP initialize handshake, request the tools/list, and populate the agent's context with Altruist capabilities.
Method B: Via Manual Config File
If you are deploying Claude Desktop locally or managing configurations via code, you can define the server in your claude_desktop_config.json file. Because Truto provides a hosted URL, you use the standard Server-Sent Events (SSE) remote transport.
{
"mcpServers": {
"altruist_open_api": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-sse",
"https://api.truto.one/mcp/a1b2c3d4e5f6..."
]
}
}
}Restart Claude Desktop. The agent will read this configuration and mount the Altruist tools.
Hero Tools for Altruist Open API
When the MCP server is initialized, Truto converts Altruist's endpoint schemas into descriptive, snake_case tools. Here are the highest-leverage tools your agent can now call.
list_all_altruist_open_api_households
Retrieves a list of household IDs for the current authenticated user. This is the entry point for most portfolio analysis tasks, as Altruist groups accounts logically by household.
"Find the household ID for the 'Smith Family Trust'. You can filter the household list by passing 'Smith' into the name_pattern query parameter."
list_all_altruist_open_api_accounts
Fetches all financial accounts associated with a specific household. You must pass a valid household_id. The MCP server handles the parameter routing automatically.
"List all active accounts belonging to household ID 'hh_123456'. Extract the account IDs from the data.accounts array in the response."
list_all_altruist_open_api_positions
Returns the most recent investment positions for a given account. This tool requires an account_id and provides the raw data needed to calculate asset allocation or identify concentrated stock positions.
"Get the current positions for account ID 'acc_98765'. What is the largest equity position by market value in this account?"
list_all_altruist_open_api_transactions
Retrieves transaction history for an account. It accepts date_from and date_to parameters (formatted as YYYY-MM-DD). If omitted, it defaults to the last month of activity.
"Fetch all transactions for account ID 'acc_98765' between 2025-01-01 and 2025-03-31. Summarize the total value of all 'dividend' and 'interest' transactions during this period."
list_all_altruist_open_api_data_feeds
Retrieves a list of all active data feeds for the signed-in advisor under a specific partner code. Altruist returns these feeds as a bare array.
"List all data feeds currently configured for partner code 'PRT-XYZ'. Tell me the ID and status of each feed."
create_a_altruist_open_api_data_feed
Enables a daily custodial data feed (flat files) for the advisor's firm. This requires passing the designated partner_code and explicitly setting the file_transfer boolean to turn the feed on.
"Enable the daily custodial data feed for partner code 'PRT-XYZ'. Set file_transfer to true to begin the daily exports."
To view the complete inventory of available tools, required parameters, and JSON schema definitions, visit the Altruist Open API integration page.
Workflows in Action
With the MCP server connected, Claude can now execute multi-step financial workflows by chaining these tools together. Here are two real-world examples of how an AI agent interacts with Altruist Open API.
Workflow 1: Portfolio Rebalancing & Position Audit
An advisor wants to review a specific family's portfolio to check for concentrated positions across all their accounts.
"Find the household for the 'Johnson' family. Then, get all their accounts. For each account, pull the current positions and generate a summary of their top 3 holdings across the entire household."
Execution Steps:
- Search Households: Claude calls
list_all_altruist_open_api_householdswithname_pattern: "Johnson"to retrieve thehousehold_id. - Fetch Accounts: Claude passes the retrieved
household_idintolist_all_altruist_open_api_accountsto get the list of associated accounts. - Iterate Positions: For each account ID returned in the
data.accountsarray, Claude loops through and callslist_all_altruist_open_api_positions. - Aggregate & Analyze: Claude aggregates the positions in memory, sorts them by market value, and returns a natural language summary of the top holdings to the user.
sequenceDiagram
participant User
participant Claude as Claude Desktop
participant MCP as Truto MCP Server
participant Altruist as Altruist API
User->>Claude: "Audit the Johnson family portfolio..."
Claude->>MCP: Call list_all_altruist_open_api_households<br>{"name_pattern": "Johnson"}
MCP->>Altruist: GET /v2/households?name_pattern=Johnson
Altruist-->>MCP: { "data": { "households": [...] } }
MCP-->>Claude: JSON-RPC Result
Claude->>MCP: Call list_all_altruist_open_api_accounts<br>{"household_id": "hh_123"}
MCP->>Altruist: GET /v2/accounts?household_id=hh_123
Altruist-->>MCP: { "data": { "accounts": [...] } }
MCP-->>Claude: JSON-RPC Result
Claude->>MCP: Call list_all_altruist_open_api_positions<br>{"account_id": "acc_456"}
MCP->>Altruist: GET /v2/positions?account_id=acc_456
Altruist-->>MCP: { "data": { "positions": [...] } }
MCP-->>Claude: JSON-RPC Result
Claude-->>User: Markdown summary of top 3 holdingsWorkflow 2: Custodial Data Feed Provisioning
An IT administrator needs to onboard a new reporting tool and verify the custodial feeds are active.
"Check if we have an active data feed for partner code 'REP-789'. If we don't, create a new data feed for that partner code with file transfers enabled."
Execution Steps:
- Check Feeds: Claude calls
list_all_altruist_open_api_data_feedspassingpartner_code: "REP-789". - Evaluate Logic: Claude analyzes the returned array. Finding it empty or disabled, it determines a new feed is required.
- Provision Feed: Claude calls
create_a_altruist_open_api_data_feedwithpartner_code: "REP-789"andfile_transfer: trueto initiate the daily flat file generation. - Confirm: Claude informs the administrator that the feed has been successfully enabled.
Security and Access Control
Exposing financial data to an AI agent requires strict security boundaries. Truto provides four distinct configuration layers when creating an MCP token to ensure least-privilege access:
- Method Filtering (
methods): Restrict the server to specific operation types. Settingmethods: ["read"]ensures Claude can only callgetandlistoperations (like viewing accounts). It physically blockscreate,update, anddeleteoperations at the tool generation level. - Tag Filtering (
tags): Filter the exposed tools by functional area. If Altruist resources are tagged with"reporting"and"transactions", you can limit the MCP server to only expose tools relevant to those domains. - Expiration (
expires_at): Set a precise ISO datetime for the server to self-destruct. This is ideal for granting a temporary auditing agent access for a 24-hour compliance window. - Extra Authentication (
require_api_token_auth): By default, possessing the MCP URL is enough to connect. Enabling this flag adds a secondary layer, forcing the MCP client to also pass a valid Truto API token via a Bearer header. This protects URLs that might accidentally leak into log files.
Moving Beyond Custom Integration Code
Building a custom MCP server for Altruist Open API forces your engineering team to take ownership of financial schema mapping, OAuth or API key lifecycles, and constant API deprecation monitoring.
By leveraging Truto's managed MCP architecture, tool generation becomes entirely dynamic and documentation-driven. When Altruist updates a schema or introduces a new resource, Truto's environment-level overrides instantly update the MCP tool definitions - no code changes, no pull requests, and no redeployments required. You get secure, rate-limit-aware, and schema-accurate LLM tools out of the box, allowing your team to focus on building agentic workflows instead of maintaining financial data plumbing.
FAQ
- How does Truto handle Altruist API rate limits?
- Truto does not retry, throttle, or apply backoff on rate limit errors. When Altruist returns an HTTP 429, Truto passes that error directly to the caller and normalizes upstream rate limit info into standardized IETF headers (ratelimit-limit, ratelimit-remaining, ratelimit-reset). The caller is responsible for implementing retry/backoff logic.
- Can I prevent Claude from modifying Altruist account data?
- Yes. When creating the MCP server via the Truto UI or API, you can configure method filtering by setting `methods: ["read"]`. This restricts the LLM to only 'get' and 'list' operations, completely hiding write tools.
- How does the MCP server handle Altruist's nested API responses?
- Truto dynamically derives tool schemas from Altruist's documentation. Tools like `list_all_altruist_open_api_positions` include explicit descriptions instructing the LLM on exactly which nested properties (e.g., `data.positions`) to extract, preventing hallucinations.
- Do I need to hardcode API endpoints in my MCP server?
- No. Truto dynamically generates the MCP tools based on the Altruist Open API integration's resources and documentation records. You just pass the generated Truto MCP URL to Claude.