TLDR: StocksCafe now supports MCP (Model Context Protocol)!
Your AI assistant can now securely access your StocksCafe data, including your portfolio holdings, transaction history, and custom assets — with your permission, of course.
AI assistant access is for the Friends of StocksCafe with an active subscription. If your subscription lapses, your assistant stops working — and picks up again if you renew.
Getting started is straightforward. Simply navigate to Settings → AI Assistant. Generate an API token and share it with your favourite AI assistant, such as Muse, Claude, or ChatGPT.
That’s it! Your AI assistant can now access your StocksCafe data and perform actions on your behalf, subject to the permissions you grant through the token.
A use case we’d particularly like to highlight: Managing Custom Assets
What if you own an investment that isn’t supported by StocksCafe? You can use your AI assistant to help manage it!
For example, suppose you hold a Franklin Income Fund (LU0320765646). You could simply give your AI assistant the following instruction:
Every day, visit this Franklin Income Fund page to retrieve its latest daily price and dividend information. Then, update the corresponding Custom Asset, Franklin (LU0320765646), in my StocksCafe portfolio accordingly.
Your AI assistant can then help you keep the asset’s pricing and dividend records up to date automatically, without having to do it manually every day.
You can now use AI assistants to help maintain and manage investment data that StocksCafe doesn’t natively support.
Feel free to reach out and let us know what other ability you would like to us give your AI assistants!
Appendix
Detailed step by step guide
1) Create a token for your AI assistant
Mobile: go to Settings → AI Assistants, then Allow an AI assistant.
Desktop: go to Account Settings → AI Assistant Access.
You are asked for three things:
- An identifier for the assistant — for example “Muse”. That is the only name it gets, and it is how the assistant appears in your list, so it has to be unique among your assistants.
- How long the access lasts, in days. It defaults to 90 days, and you can set anything from 1 day to 10 years.
- The portfolios it may read — that is the next step.
2) Choose which portfolio(s) it can read
This is the important part.
The assistant can only ever see the portfolios you tick. If your portfolios are SG Stocks, US Stocks, Crypto and HK Stocks, and you only tick SG Stocks, then that assistant sees your Singapore holdings and nothing else. The other three remain completely invisible to it — not hidden behind a setting it could ask you to change, but absent from what it can retrieve at all.
3) Choose what it can change
An assistant can also write, and only if you say so. There are two boxes, and they are deliberately separate:
- Also allow it to add, edit and delete transactions — the assistant may add, change and remove the transactions of the portfolios you ticked.
- Also allow it to add, edit and delete the prices and dividends of your custom assets — note that it can only do so on custom assets inside the portfolio(s) you chosen.
Both boxes are off by default, and an assistant that was approved before a box existed stays read-only until you approve it again.
Think about the second box before you tick it. Custom assets are yours rather than a portfolio’s, so that permission covers every custom asset you have, and a change to a price is a change to what your portfolio is worth. The first box is the smaller thing: it changes the history of the portfolios you already chose to share.
4) You’re done
You are given two things: a server address and a token.
Server address: https://mcp.stocks.cafe/mcp
Token: sc_mcp_...
Paste them into your AI assistant chat and that’s it. There is nothing to install — no Python, no local program, no command line. Your assistant connects to the StocksCafe MCP server directly, over an encrypted connection, and it can see exactly the portfolios you ticked.
If you’re using StocksCafe on your computer, the app shows you both of these with a copy button next to each. If you’re on the web, you get the same pair on the approval screen, together with the whole configuration block ready to copy.
The token is shown only once. We store just a hash of it, so it genuinely cannot be shown again — if you lose it, approve a new one.
What your assistant can and cannot do
It can:
- List your portfolios and their names
- See your current holdings — quantity, average cost, latest close, market value, unrealised profit and loss, day change, and dividends
- Summarise the lot: total value, total cost, overall return, and your largest positions
- Read your transaction history in the portfolios you ticked — buys, sells and fees, with their date, shares, price, fees, total and notes
- Read your custom assets — the assets you made up yourself, with their prices and their dividends
- Ask what it is allowed to do, and when its access ends
It can change things — but only if you say so:
- Add, edit and delete transactions in the portfolios you ticked
- Add, edit and delete the prices and dividends of your custom assets — see Updating your custom assets below for how that works day by day
It cannot:
- See a portfolio you didn’t tick
- See your cash transactions, your closed positions, your watchlist, your notes, your alerts, or your account details
- Create a custom asset — it can only work with the ones you already have
- Delete a transaction that belongs to a broker sync (uSmart), because that record is the sync’s
- Move a transaction into a portfolio that was not shared
- Change anything you did not tick a box for
- Do anything with the token except what it was granted
The token is scoped by design. Approving an assistant is not the same as handing over your account.
Connecting a client
Most AI assistants that support MCP can connect to a remote server. Some ask you for the address and the token, others want the whole configuration. This is it:
{
"mcpServers": {
"stockscafe": {
"url": "https://mcp.stocks.cafe/mcp",
"headers": {
"Authorization": "Bearer sc_mcp_..."
}
}
}
}
The server exposes the read tools — list_portfolio_labels, get_holdings, get_portfolio_summary, get_holding, get_transactions, list_custom_assets, get_custom_asset_prices, get_custom_asset_dividends and get_access_info — so the assistant can start with a quick look at what is available before pulling in holdings. The write tools are there too, and they only work when the grant carries the permission for them.
Three of those are also available as whole documents (stockscafe://portfolio/labels, .../holdings, .../summary) for clients that prefer reading a document to making a series of calls.
Your assistant’s chat is the only thing that changes. StocksCafe does the rest.
A few questions you might have
Does the assistant see my other StocksCafe data?
No. Only the portfolios you ticked, the transactions inside them, and your custom assets.
How do I update the price of a custom asset?
Either ask your assistant to do it, or enter the row yourself — see Updating your custom assets above. The assistant needs the second box ticked and the asset has to exist already; the manual path needs neither.
Can it trade?
No. There is no broker connection here at all, so it cannot place a trade. It can record a transaction in your portfolio, and it can update the prices and dividends of your custom assets — but only when you tick the box that allows it. Both boxes are off by default, and each one covers exactly what its name says.
Do I need a paid subscription?
Yes — AI assistant access is for the Friends of StocksCafe with an active subscription. The approval screen says so if you aren’t one, and your existing approvals keep working as long as your subscription is active.
What happens if my subscription lapses?
Your assistant stops working immediately. Nothing is deleted — renew and it picks up again with the same portfolios and the same token.
What if I lose the token?
Just approve the assistant again and make a new one. We cannot show you the old one, because we never stored it.
What happens after 90 days?
The assistant stops working. You get a fresh notification and can approve it again — at which point you choose the portfolios again from scratch, so you stay in control of what is shared.
My assistant already has a token. Can I let it write now?
Not on the existing token. A permission is given when you approve an assistant, so revoke it and approve it again with the box ticked. The old token stops working the moment you revoke it.
Does this work on mobile?
The approval and management screens work everywhere, including on your phone. The assistant itself runs where it runs — the point is that it now talks to StocksCafe, so it works the same wherever it is.
I already share my portfolio publicly. Does this change anything?
No — public sharing is a separate, existing setting. This is about private access for a specific assistant you have approved.
