Skip to main content
Glama
Nokke32

pp-mcp

by Nokke32

English | Deutsch

pp-mcp β€” MCP Server for Portfolio Performance

A read-only MCP server that provides filtered account and portfolio data from one or more Portfolio Performance .portfolio files β€” e.g. to generate reports from them (transactions of an account, distributions/interest/taxes for a period, etc.).

Files are only read, never modified. Supports unencrypted and AES-encrypted (password-protected) files. Works as a standard MCP server with any MCP-compatible AI assistant (Claude, etc.) or your own scripts.

πŸ“– Full documentation is in the Wiki β€” installation (local & Docker, single- & multi-source), connecting AI assistants (Claude Desktop, Claude Code, others), example prompts, and the complete tool reference (parameters/return values) for scripting against pp-mcp directly.

Quick start

pip install -r requirements.txt
export PP_FILE_PATH=/path/to/file.portfolio
python -m src.main   # from the repo root; runs on http://localhost:8080

Or with Docker:

cp .env.example .env
docker-compose -f docker-compose.dev.yml up -d --build

See the Installation wiki page for the production/multi-source Docker setup, all environment variables, and connecting an AI assistant (Configuring AI Tools).

Related MCP server: My Portfolio MCP Server

Terminology

Portfolio Performance uses the word "portfolio" for two different things, which can be ambiguous β€” pp-mcp uses these terms consistently everywhere (tool descriptions, parameters, the wiki):

  • Source (parameter source) β€” one complete .portfolio file, i.e. one configured data source. See list_data_sources.

  • Portfolio (parameter portfolio_name) β€” a securities portfolio/depot within a source (Portfolio Performance's own internal term for this object). See list_portfolios.

  • Account (parameter account) β€” a cash account within a source. See list_accounts.

  • Security (parameter security) β€” a stock, fund, ETF, etc. See list_securities.

If it's unclear whether "portfolio" refers to a source or a portfolio/depot in a given context, check list_data_sources and list_portfolios to see which one actually matches.

Structure

  • src/config.py β€” Pydantic settings (env / .env).

  • src/portfolio.py β€” Portfolio class (mtime-based cache, name↔UUID resolution, filtering & aggregation, one instance per source) + PortfolioRegistry (manages multiple Portfolio instances based on the configured sources, one per source id).

  • src/mcp_server.py β€” FastMCP tools (thin wrappers around the registry), optional bearer auth.

  • src/price_feed.py β€” SSRF-protected scraper for the GENERIC_HTML_TABLE price feed (ariva.de), used by refresh_prices.

  • src/main.py β€” server startup.

  • src/pp_parser/ β€” vendored parser (decrypts/decompresses the file, reads protobuf).

A
license - permissive license
Not graded
quality - not tested
B
maintenance

Maintenance

–Maintainers
–Response time
–Release cycle
–Releases (12mo)
Commit activity

Resources

Unclaimed servers have limited discoverability.

Looking for Admin?

If you are the server author, to access and configure the admin panel.

Related MCP Servers

  • A
    license
    A
    quality
    D
    maintenance
    A read-only MCP server that provides access to Charles Schwab account data and market information, including portfolio positions, real-time quotes, options chains, price history, and account balances through AI assistants.
    9
    MIT
  • F
    license
    Not graded
    quality
    B
    maintenance
    A Model Context Protocol (MCP) server for managing investment portfolios, enabling transaction tracking, position management, alerts, and daily snapshots with Google Drive sync.
  • F
    license
    Not graded
    quality
    C
    maintenance
    An MCP server that turns Interactive Brokers into a question-answering portfolio analyst.
    4
  • A
    license
    Not graded
    quality
    D
    maintenance
    A read-only MCP server that connects to Interactive Brokers Gateway or TWS to expose account, contract, execution, and historical-data queries over stdio.
    9
    MIT

View all related MCP servers

Related MCP Connectors

  • Read-only MCP server for ClassQuill, a tutoring-business-management platform.

  • Open-source MCP server for Zerodha Kite Connect. Portfolio, market data, backtesting, alerts.

  • Read-only MCP server for searching Japan government procurement bid information from the KKJ portal.

View all MCP Connectors

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/Nokke32/pp-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server