indexa-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., "@indexa-mcp How much do I have in Indexa and how is my portfolio split?"
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.
indexa-mcp
A local, read-only MCP server to query your Indexa Capital accounts from Claude or any other MCP client.
Only sends
GETrequests to a closed list of endpoints. It cannot move money, make contributions or modify anything.Runs on your machine over stdio (it opens no network port).
Never returns personal data (ID document, address, holders, contract).
Unofficial project, not affiliated with Indexa Capital. Not financial advice.
Tools
Tool | Endpoint | Returns |
|
| Your accounts (number, type, risk, status). Start here |
|
| Account profile (type, risk, dates) |
|
| Total value, cash, positions, target vs. real weights |
|
| Returns, P&L, volatility, Sharpe, monthly history, benchmark |
|
| Fee breakdown |
|
| Contributions, withdrawals, fees (filterable, paginated) |
|
| Fund buys/sells (filterable, paginated) |
|
| Pending orders and requests |
|
| Realized/unrealized gains and losses per lot (paginated) |
List tools accept date_from, date_to (YYYY-MM-DD), limit (1-200, default 20) and
offset. All tools are advertised with readOnlyHint: true.
Related MCP server: eToro Portfolio Connector
Requirements
Python 3.11+ and uv
An Indexa API token: private area → User settings → Applications
Install and configure
Claude Code
claude mcp add indexa -e INDEXA_API_TOKEN="$INDEXA_API_TOKEN" -- \
uvx --from git+https://github.com/gmerinojimenez/indexa-mcp indexa-mcpClaude Desktop
~/Library/Application Support/Claude/claude_desktop_config.json:
{
"mcpServers": {
"indexa": {
"command": "uvx",
"args": ["--from", "git+https://github.com/gmerinojimenez/indexa-mcp", "indexa-mcp"],
"env": { "INDEXA_API_TOKEN": "your-token" }
}
}
}From a local clone
git clone https://github.com/gmerinojimenez/indexa-mcp && cd indexa-mcp
uv sync
claude mcp add indexa -e INDEXA_API_TOKEN="$INDEXA_API_TOKEN" -- \
uv run --directory "$PWD" indexa-mcpWithout keeping the token in plain text (macOS)
Store it in the Keychain:
security add-generic-password -s indexa-mcp -a "$USER" -w # prompts for the tokenand start the server through a wrapper that reads it on the fly:
{
"mcpServers": {
"indexa": {
"command": "sh",
"args": ["-c", "INDEXA_API_TOKEN=$(security find-generic-password -s indexa-mcp -w) exec uvx --from git+https://github.com/gmerinojimenez/indexa-mcp indexa-mcp"]
}
}
}Example questions
"How much do I have in Indexa and how is the portfolio split?"
"What is my annualized return and how am I doing against the benchmark?"
"List my contributions in 2025."
"How much have I paid in fees?"
"Do I have any pending orders?"
Environment variables
Variable | Description |
| Required. Indexa API token |
| Optional. Log level on stderr (default |
Security
Summary (details in SECURITY.md):
Closed list of
GETendpoints; the base URL is a constant that cannot be changed through the environment; redirects are never followed.The token only travels in the
X-AUTH-TOKENheader and is never logged or shown in errors.Personal data is filtered with an allow-list; response sizes are capped.
Important: the Indexa token itself is not read-only; the guarantee comes from this server's code. Whatever you query is sent to the AI client you use. If the token leaks, revoke it in Indexa.
Development
uv sync
uv run pytest # tests with mocked HTTP, they never touch the real API
uv run ruff check . && uv run ruff format --check .
uv run mypy
uv run pip-audit --skip-editableTo try it with the official inspector:
npx @modelcontextprotocol/inspector uv run indexa-mcpLicense
MIT
Available Tools
9 toolsindexa_get_accountGet Indexa accountBRead-onlyIdempotent
Get an account's profile: type, risk level, status, key dates.
Inputs: account_number (required). Returns: object
indexa_get_cash_transactionsGet Indexa cash transactionsARead-onlyIdempotent
Cash movements (contributions, withdrawals, fees), newest first.
date_from/date_to are inclusive ISO dates (YYYY-MM-DD). Paginate with
limit (max 200) and offset; next_offset is null on the last page.
Inputs: account_number (required), limit, offset, date_to, +1 more. Returns: object
indexa_get_feesGet Indexa feesBRead-onlyIdempotent
Fee breakdown charged on the account (management, custody, fund TER).
Inputs: account_number (required). Returns: object
indexa_get_fiscal_resultsGet Indexa fiscal resultsBRead-onlyIdempotent
Realized/unrealized gains and losses per fund lot, for tax purposes.
items are the individual lots (newest first, paginated like the transaction tools); totals holds the per-fund totals.
Inputs: account_number (required), limit, offset, date_to, +1 more. Returns: object
indexa_get_instrument_transactionsGet Indexa fund transactionsARead-onlyIdempotent
Fund buys/sells (titles, price, amount), newest first.
date_from/date_to are inclusive ISO dates (YYYY-MM-DD). Paginate with
limit (max 200) and offset; next_offset is null on the last page.
Inputs: account_number (required), limit, offset, date_to, +1 more. Returns: object
indexa_get_pending_transactionsGet Indexa pending transactionsCRead-onlyIdempotent
Orders, transfers and requests that are still pending.
Inputs: account_number (required). Returns: object
indexa_get_performanceGet Indexa performanceBRead-onlyIdempotent
Performance summary: time/money-weighted returns, P&L, volatility, Sharpe ratio, drawdowns, monthly history and benchmark comparison.
Large daily time series are omitted to keep the response small.
Inputs: account_number (required). Returns: object
indexa_get_portfolioGet Indexa portfolioBRead-onlyIdempotent
Current portfolio: totals, cash, positions and target-vs-real weights.
Inputs: account_number (required). Returns: object
indexa_list_accountsList Indexa accountsARead-onlyIdempotent
List the user's Indexa accounts (number, type, risk, status).
Personal data (ID document, address, holders) is deliberately omitted.
Inputs: no named parameters. Returns: object
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 9 tools
Each tool maps to a distinct resource or slice of account data: holdings (portfolio) vs. returns (performance) vs. costs (fees) vs. transactions (cash/instrument/pending) vs. tax lots (fiscal). The only near-neighbors, cash vs. instrument vs. pending transactions, are clearly separated by the descriptions, and list_accounts vs. get_account is unambiguous.
Every tool follows the same indexa_<verb>_<noun> pattern with consistent verb usage (list_ for collection of accounts, get_ for single-resource reads). No camelCase/snake_case mixing or alternate verb styles.
Nine tools is well within the ideal 3-15 range and each one covers a distinct reporting need with no filler. The surface stays lean by explicitly folding time-series detail out of responses rather than adding extra endpoints.
The read-only reporting lifecycle is well covered: accounts, portfolio, performance, fees, all transaction types, pending activity and fiscal results. Minor gaps remain, such as document/statement retrieval, account-level summary or benchmark data as standalone tools, and any write/order-placement path if the API supports one.
Maintenance
Related MCP Connectors
Read-only access to your own bank, card and brokerage accounts for Claude, ChatGPT and other AI agents: balances, transactions, spending, subscriptions, cashflow and investment holdings. It can never move money.
Connect Claude, ChatGPT, Codex, Claude Code or another MCP client to your real multi-broker investment portfolio. Fortunest tracks stocks, ETFs and crypto across brokers and exchanges; its MCP server lets your agent read holdings, returns, allocation, risk, trades and tax lots, calculated by Fortunest rather than guessed by the model. Reads run on their own; every change waits for your approval in the Fortunest app, and no tool places an order or moves money. Sign-in is OAuth 2.1 and needs Fortunest Pro (14-day trial, no card). A free demo that needs no account is listed as Fortunest demo.
Read-only access to your own crypto portfolio across 11+ exchanges and 20+ chains: holdings, full history, FIFO cost basis and P&L, fees and income. Ask Claude or ChatGPT about your portfolio; the connector can never trade, move funds or act as a login.
Brazilian Open Finance MCP — 30+ banks (Itaú, Nubank, etc.) to Claude/Cursor. Read-only.
Related MCP Servers
- AlicenseAqualityDmaintenanceA read-only MCP server that enables Claude to monitor Indexa Capital investments, providing tools to query portfolio summary, account details, performance, transactions, and fees.75 npm5MIT
- AlicenseNot gradedqualityCmaintenanceA read-only MCP server that connects Claude to your eToro account, enabling queries about your portfolio, P\&L, balances, watchlists, live prices, and price history.MIT
- FlicenseNot gradedqualityDmaintenanceRead-only MCP server for connecting to Pluggy Open Finance Brasil, exposing accounts, balances, transactions, and investments to Claude agents.-
- FlicenseNot gradedqualityCmaintenanceExposes Trading212 account data (summary, portfolio, cash, order history, dividends) as MCP tools, intended for direct connection to Claude.ai.-