• CODE
  • MAPPING
  • LOGIC
  • HUMAN

How to generate portfolio analysis scripts with your agent

Connect your broker exports to your agent. It learns your data structure so it can write the Python code you need for custom math.

Ask AI about this page

Our technology reaches across leading technology and enterprise teams.

  • Amazon
  • NVIDIA
  • Red Hat
  • Fidelity Investments
  • Intuit
  • OLX Brasil
  • Writesonic
  • Artium
  • Trolley
Bunny World Voxel Workspace

Short answer

How do I get my AI to write custom portfolio scripts?

Your agent uses the connector to read your broker's CSV headers and sample rows. Once it understands the column names and data types, it writes Python code to calculate your specific metrics. You get ready-to-run scripts for P&L, dividends, or tax reporting.

The results of the analysis

What you get from the analysis

Your agent turns raw CSV data into actionable code.

CODE

Custom Python scripts

Your agent writes scripts tailored to your specific CSV layout. You can run these locally to calculate returns or dividends.

MAPPING

Column identification

Your agent identifies which columns represent tickers, quantities, and prices. This prevents errors in your math.

LOGIC

Custom math formulas

You define the logic, like weighted average cost or yield on cost. Your agent translates that logic into code.

HUMAN

Manual code review

You must check the generated Python code before running it against your real financial data. Your agent provides the logic, but you provide the final approval.

The workflow

What your agent does when the CSV arrives.

Your agent handles the tedious work of reading file structures so you can focus on the math.

  1. Read the file

    Your agent looks at your exported CSV to see how your broker labels its data.

    parse_portfolio_csv
  2. Map the columns

    It matches your broker's headers to standard financial terms like 'Ticker' or 'Cost Basis'.

    parse_portfolio_csv
  3. Write the script

    Your agent uses the mapped structure to write Python code that performs your requested calculations.

    parse_portfolio_csv
  4. Verify the logic

    Your agent explains how the code works so you can confirm the math is correct.

    parse_portfolio_csv

Vinkius Agentic Execution Platform

State the outcome. Agents take it from there.

You don't have to drive this run by hand. Inside the Vinkius Agentic Execution Platform, agents pick up the task above and carry it to the end: you set the limits, you watch the steps, you keep all decisions.

Run it in Vinkius

Agents carry the task to the end

Agents execute papaparse tasks from end to end inside the Vinkius Agentic Execution Platform: set the outcome, and the steps run.

Take it to any compatible AI

One connection, any client

Same connection follows you to ChatGPT, Claude, Gemini and any other client you love. Switch whenever you want: your connection, your permissions and your record move with you.

Spaces

One Space per activity

A Space gathers the context, tools and tasks of one activity, so you coordinate several agents at once and follow each execution as it happens.

Limits

Autonomy inside limits you set

Permissions and spending limits are yours to define. Agents halt for your approval on anything sensitive, and you choose how far autonomy goes, step by step or end to end.

Record

All steps, on the record

Each action your agents take lands in a signed audit trail. Results are verified, mistakes are learned from, and an emergency stop is one click away.

Models

Included in your plan

A curated selection of AI models is included in your plan, and you can add your own through BYOK whenever you prefer.

Try it

Copy these to start.

Use these prompts once you have connected the MCP.

Starting points

Swap the bracketed text for your specific broker name or the specific metric you want to calculate.

papaparse Connector

You're all set. Choose your MCP client and follow the setup instructions.

Connector linkhttps://edge.vinkius.com/vk_preview_UXTNF7rAXxtPhyKSsuqvjd7wl2jy9r8H1MHscdNL/mcp

Claude Desktop

Follow the steps below to connect in seconds.

  1. 1In Claude Desktop, open Settings → Connectors.
  2. 2Click “Add custom connector” and paste the connector link above as the remote MCP server URL.
  3. 3Click Add and start a new chat, papaparse capabilities are ready to use.
Configuration · claude_desktop_config.jsonCopy
{
  "mcpServers": {
    "portfolio-csv-analyzer-mcp": {
      "url": "https://edge.vinkius.com/vk_preview_UXTNF7rAXxtPhyKSsuqvjd7wl2jy9r8H1MHscdNL/mcp"
    }
  }
}
Copy into chat04
  • 01

    Read my [Broker Name] CSV and write a Python script to calculate my total realized P&L.

  • 02

    Map the columns in this portfolio export so I can write a script for dividend yield on cost.

  • 03

    Analyze this CSV structure and write a script to find my largest losers by percentage.

  • 04

    Based on this CSV, write a Python function that calculates the weighted average cost for each ticker.

  • Claude
  • ChatGPT
  • Cursor
  • VS Code
  • Windsurf
  • Claude Code
  • JetBrains
  • Cline

Start here

Connect Portfolio CSV Analyzer once, then ask.

One connection gives your agent access to your files. Your credentials stay encrypted and secure.

Connect Portfolio CSV Analyzer to your agent

FAQ

How this task behaves

  • 01

    Can your agent execute the Python code for me?

    No. Your agent writes the code based on your CSV structure, but you must run the script in your own local environment.

  • 02

    Does your agent change my original CSV files?

    No. The tool only reads the files to understand the structure. It cannot modify or delete your original data.

  • 03

    Will it work with any broker export?

    Yes, as long as the export is in a CSV format. Your agent maps the headers regardless of what your broker calls them.

  • 04

    Can it calculate taxes?

    It can write the Python code to perform tax calculations, but you are responsible for verifying the accuracy of the logic.

  • 05

    Do I need to upload my files to a website?

    No. You provide the files to your AI client, and your agent uses the connector to read them locally.

  • More questions about Portfolio CSV Analyzer? The Connector page answers them. See everything the Portfolio CSV Analyzer Connector can do

Building with AI? Ship this whole workflow in your product.

Vinkius Connect is the connectivity layer for AI builders. All the capabilities used on this page, from papaparse to thousands more, arrive through one SDK, already maintained for you. One Application, unlimited seats, each with their own connectors and credentials, isolated and never exposed to Vinkius. No OAuth flows to write, no tokens to store, no APIs to chase.

Explore Vinkius Connect

TypeScript · Python · Java · Go · C# · PHP · Rust

  • 01

    Your customers bring their own keys.

    Each user connects their own apps and keeps their own credentials. Vinkius only sees the identifier your backend sends.

  • 02

    Whole catalog, kept current.

    papaparse plus thousands more, maintained and growing daily. No integrations to write, no token storage, no OAuth plumbing.

  • 03

    Any agent, any model.

    Capabilities land as framework-neutral objects, with adapters for OpenAI, Anthropic, Gemini, the Vercel AI SDK, LangChain and more.

Connect papaparse to Claude, Cursor, ChatGPT & more

From idea to done

See what gets done when the agents take over the busywork

Each workflow on this page runs on the same platform. Connect your tools once, and your agents keep working in any AI you trust.