Skip to main content
Glama
indexa-mcp

indexa-mcp

indexa-mcp

A local, read-only MCP server to query your Indexa Capital accounts from Claude or any other MCP client.

  • Only sends GET requests 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

indexa_list_accounts

GET /users/me

Your accounts (number, type, risk, status). Start here

indexa_get_account

GET /accounts/{n}

Account profile (type, risk, dates)

indexa_get_portfolio

.../portfolio

Total value, cash, positions, target vs. real weights

indexa_get_performance

.../performance

Returns, P&L, volatility, Sharpe, monthly history, benchmark

indexa_get_fees

.../fees

Fee breakdown

indexa_get_cash_transactions

.../cash-transactions

Contributions, withdrawals, fees (filterable, paginated)

indexa_get_instrument_transactions

.../instrument-transactions

Fund buys/sells (filterable, paginated)

indexa_get_pending_transactions

.../pending-transactions

Pending orders and requests

indexa_get_fiscal_results

.../fiscal-results

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-mcp

Claude 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-mcp

Without 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 token

and 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

INDEXA_API_TOKEN

Required. Indexa API token

INDEXA_MCP_LOG_LEVEL

Optional. Log level on stderr (default WARNING)

Security

Summary (details in SECURITY.md):

  • Closed list of GET endpoints; 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-TOKEN header 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-editable

To try it with the official inspector:

npx @modelcontextprotocol/inspector uv run indexa-mcp

License

MIT

Available Tools

9 tools
indexa_get_accountGet Indexa accountB
Read-onlyIdempotent

Get an account's profile: type, risk level, status, key dates.

Inputs: account_number (required). Returns: object

indexa_get_cash_transactionsGet Indexa cash transactionsA
Read-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 feesB
Read-onlyIdempotent

Fee breakdown charged on the account (management, custody, fund TER).

Inputs: account_number (required). Returns: object

indexa_get_fiscal_resultsGet Indexa fiscal resultsB
Read-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 transactionsA
Read-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 transactionsC
Read-onlyIdempotent

Orders, transfers and requests that are still pending.

Inputs: account_number (required). Returns: object

indexa_get_performanceGet Indexa performanceB
Read-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 portfolioB
Read-onlyIdempotent

Current portfolio: totals, cash, positions and target-vs-real weights.

Inputs: account_number (required). Returns: object

indexa_list_accountsList Indexa accountsA
Read-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

    A3.5/5.0

    Scored across 9 tools

    Disambiguation5/5

    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.

    Naming Consistency5/5

    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.

    Tool Count5/5

    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.

    Completeness4/5

    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

    ActivityMaintained
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      A
      quality
      D
      maintenance
      A read-only MCP server that enables Claude to monitor Indexa Capital investments, providing tools to query portfolio summary, account details, performance, transactions, and fees.
      7
      5 npm
      5
      MIT
    • A
      license
      Not graded
      quality
      C
      maintenance
      A 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
    • F
      license
      Not graded
      quality
      D
      maintenance
      Read-only MCP server for connecting to Pluggy Open Finance Brasil, exposing accounts, balances, transactions, and investments to Claude agents.
      -
    • F
      license
      Not graded
      quality
      C
      maintenance
      Exposes Trading212 account data (summary, portfolio, cash, order history, dividends) as MCP tools, intended for direct connection to Claude.ai.
      -