Using AI to analyze a Portfolio Performance XML file — has anyone else tried this?

Hi everyone,

I’ve been using Portfolio Performance for a while now and I find it really useful. That said, at my level, I also find some of the performance reporting a bit hard to read. There are lots of charts, tables and figures, and even if I understand them, I don’t always find the whole thing very intuitive.

So last weekend, mostly out of curiosity, I thought: why not feed the XML to an AI and see what it comes up with? At first it was just for fun. In the end, I spent two sleepless nights on it, tried 3 different AIs, and got a surprisingly decent result: a 24-page report with tables and charts, but above all something that actually explains the portfolio in plain language and tries to analyze its performance.

I used ChatGPT Plus, Perplexity Pro and the free version of Claude. At first all three gave me a first report. Then I started having fun with it: I asked each of them to judge the other two reports.

Perplexity was clearly behind, and it more or less admitted it itself by preferring Claude’s report. GPT didn’t react very gracefully to Perplexity’s criticism, but it did recognize some strengths in Claude’s work. Claude, characteristically, thought the three approaches were different but complementary. And in the end Perplexity basically gave up and admitted GPT’s version was stronger.

In practice, the roles ended up splitting quite naturally: GPT did the actual drafting, Claude acted more like an auditor, and Perplexity gave its opinion on both. I ended up with 6 versions, a summary, and a technical annex that I’m still not sure I really needed. So yes, a lot of work for a very small portfolio. But intellectually, it was really interesting.

To give a more concrete idea of the result, here are two anonymized extracts.

First, the structured summary table :

Central diagnosis — The actual portfolio currently looks like roughly XX% World / XX% semiconductors / XX% small caps / XX% crypto / XX% French euro funds, against a target of 55/15/10/10/10. The real issue is not changing the strategy, but making sure every new euro finally serves the strategy that was already defined.

Then the plain-language summary :

Where does the portfolio stand?

The portfolio is broadly consistent with a dynamic long-term strategy. However, the actual allocation is not yet the one being targeted: the core position is still too small, while the crypto sleeve still weighs too much.

What is working

The World ETF is doing its job well as a diversified foundation. The semiconductor conviction is coherent and performing well, even if it still remains too small within the overall portfolio.

What is a problem

The early 2026 decline mainly comes from the crypto sleeve. So it is not the core strategy that is being called into question, but its actual structure. In short: the portfolio is not badly designed, it is still badly balanced.

What needs to happen

Stop adding to crypto while it remains above target. Direct new contributions first to the World ETF, then to semiconductors, then to small caps. Less tactical tinkering, more consistent DCA.

I haven’t really seen any thread here — or anywhere in English, French or German — going into this subject in any real depth with Portfolio Performance. So I was wondering: has anyone here tried something similar? And if yes, would there be any interest in exchanging prompts and methods to improve this kind of thing, like Panini cards lol?

Or maybe it has no real interest at all and I’m the only one who found it interesting :wink:

I actually was just thinking about doing this, and came to the forum and saw your post here. I’m probably not gonna bother doing it myself, as I was only thinking about doing it in the context of setting up a portfolio for real returns, but learned that simply doesn’t work for PP, as unless taxes are associated with a specific security, it isn’t counted for performance purposes (at least that’s what I read). But it isn’t a bad idea if you want to get specific answers to your questions, sure.

Hi there,

I had the same idea and did some research about that.

I started first with the parsing of the raw xml. But results weren’t great.

I found an older Python Library that parses the PP xml files. So based on this I built an MCP that exposes a server with several tools that can AI easily use. Loads of bugfixes included.

You just need to expose the MCP Server for your AI Tool/Model of choice. (personally for private stuff i use opencode)

leneffets/pyfolio-performance-mcp: Python library + MCP server to read Portfolio Performance XML files. Access your portfolio data via AI agents for investment analysis.

With that exposed to AI, I was able to get quite amazing results with a comprehensive prompt that includes:

  • Whats do you think is the strategy
  • Structure
  • Overlap
  • Risk
  • Performance Overview
  • Recommendations
  • Forecast based on my personal goals
  • Evaluation of current market
  • Score of complexity and robustness of depots/accounts
  • Longterm Endurance for my strategy
  • personal information and goals

Actually like an experienced investment advisor.

Feel free to try it and share results or improvements.

Based on your technical background, AI may help to get this up and running. :wink:

Cheers,