1. Conduid
  2. Data
  3. Suivi Bourse
MCP server · Data

Suivi Bourse

Self-hosted stock portfolio tracker in one container.

58Fair

Scored 5 hours ago · breakdown

About Suivi Bourse

Suivi Bourse is an MCP server published by pbrissaud in the Data category: self-hosted stock portfolio tracker in one container. Conduid read 11 tools from its source: get_benchmark_comparison, get_investment_rhythm, get_portfolio_history, get_portfolio_totals, get_profile, list_accounts and 5 more. No package is published for it, so it installs from a source checkout.

The repository has 81 stars and 23 forks, and its last commit was on 1 Dec 2026. Conduid has no tagged release on record for it. Its topics include docker, duckdb, investing, personal-finance, portfolio-tracker and self-hosted.

Install

From source
git clone https://github.com/pbrissaud/suivi-bourse

Tools (11)

get_benchmark_comparisonDoes the owner do better than a market index? The same money, on the same days, put in a reference fund, set against what the owner actually did with it. The reference is `reference`, a ticker; `index` names the market it follows and `inception` is the fund's first day, both null for a ticker the app does not list. Every purchase goes into the fund on the day it was made; every sale and every dividend comes out of it. `state` says whether there is an answer: A FIGURE EXISTS ONLY WHEN `state` IS "ready". On every other state say why in words, and give NO GAP FOR THE PORTFOLIO. The one exception is a row of `per_account` under "nothing_to_compare" (below): - "no_reference": the owner has chosen no fund to compare against yet. They choose one in the app; name no screen. - "rebuilding" and "splits_unknown": the fund's history is still being fetched ("splits_unknown": its split history waits for the next fetch). `rebuild` says how far: `rebuild.symbol` is the fund, `rebuild.reached` the oldest day fetched, `rebuild.target` the day it is heading for and `rebuild.ratio` the share done, from 0 to 1. Quote the ratio when it is not null; promise no duration. `rebuild.requested` is false while the fund is still waiting for its turn: nothing has been asked for yet. `rebuild.failing` is true when its last request failed: its turn came, so never say it is waiting; the System page says more. - "nothing_to_compare": `reason` says why. "no_events" is an empty ledger; "not_computed" means the daily figures are not computed yet; "nothing_held" means no securities were held while the fund was quoted; "no_rate_on_seed" means an exchange rate is missing on the first day; "never_priced" means the market returned no price at all for the fund over the ledger's period: nothing is being fetched, so never say it is in progress or will come, and promise no duration; the System page says more. `per_account` may still carry rows. Each is a real comparison of its own account: quote its `per_account.gap_gross` only with that row's `per_account.covered_from` to `per_account.covered_to`, never as the portfolio's. EVERY FIGURE IS QUOTED WITH ITS PERIOD, `covered_from` to `covered_to`, in the same sentence. `portfolio_from` is the first day the owner's daily figures exist, not the day of a purchase. `truncated_by_fund` true means the fund was first quoted after that day, so the period may start later than `portfolio_from`: never call `portfolio_from` the first purchase. `ended` "exhausted" means the fund could not have funded a withdrawal, so the period stops there; "awaiting_rate" means its next close has no exchange rate yet. Say that the period stopped early, and why. `gap_gross` is `portfolio_value` minus `reference_value` on `covered_to`: positive means the owner is ahead of the fund. `accounts` is the perimeter those figures are summed over. THE GAP IS GROSS: no tax on either side. `contributed` is the money put in over the period (net of what came back out of the securities), the denominator of the two returns below. `portfolio_return` and `reference_return` are the GAIN ON THE MONEY INVESTED over the period, the value minus what was put in, over what was put in. They are NOT PER YEAR, and they are not `get_portfolio_totals.xirr`: never annualise them, and never set them against `get_portfolio_totals.xirr` or `get_portfolio_totals.twr_index`, which cover other periods and count cash. Either is null on a perimeter that put nothing in or took out more than it put in. `portfolio_value`, `gap_gross` and `portfolio_return` can also be null on a "ready" answer, when a day's value is missing: then give no gap, and say the app has no figure. `per_account` is the same measure account by account, each over its own period: `per_account.covered_from` to `per_account.covered_to`, and `per_account.ended` when it stopped early. Each `per_account.account` is a `list_accounts.id`: name it by its `list_accounts.label`, or its `list_accounts.id` when it has no label. Its fig
get_investment_rhythmHow much the owner buys in a month, and how often — over the last 12 months. Use this to describe the owner's investing habit, and as the input to any projection of what they will put in next. It is measured on the BUY events over the twelve calendar months ending today, for the portfolio as a whole and broken down by account. There is no per-symbol figure. `months` is the observed months themselves, oldest first, each a `months.month` (YYYY-MM) with its `months.amount` — null on a month with no purchase — and the figures below are reductions of that series. `accounts` is the same measure per account: each row names its `accounts.account` and carries `accounts.monthly_amount`, `accounts.months_covered`, `accounts.months_observed`, `accounts.dispersion` and `accounts.months`, each `accounts.months.month` with its `accounts.months.amount`. Read them exactly as the portfolio's below. NEVER QUOTE `monthly_amount` WITHOUT `months_covered` AND `months_observed`. The amount is the median of the months that carried at least one purchase — months with no purchase are not averaged in as zeros. So 500 with `months_covered` 6 and `months_observed` 12 means "500 in each of six months out of twelve", which is about 3000 over the year and NOT 6000. Multiplying the amount by twelve is the wrong answer this app publishes the coverage to prevent. Give both figures in the same sentence, every time. `months_observed` is 12 unless the ledger is younger than that, in which case it is the ledger's age in months, counted from its first event of any kind — so a portfolio opened four months ago reports 4. Months with no purchase are counted as observed and uncovered, which is how a stop in investing is visible: 12 observed and 3 covered means nine months without a purchase, not nine months nobody looked at. SELLS ARE NOT SUBTRACTED, and that inflates the figure. Selling one holding to buy another counts as rhythm here, because nothing on a purchase says where its money came from — so a month of rebalancing reports more than the owner actually put in, and this measure is not proof that money entered the portfolio. Say so when the figure is doing work in your answer; never call it a contribution, a deposit, or dollar-cost averaging. `dispersion` is the coefficient of variation of those same monthly amounts: 0 means every covered month was the same size, and around 1 or above means one month dominates the rest. It is not a percentage of anything. A null `monthly_amount` with `months_covered` 0 means NO PURCHASE IN THE WINDOW — the owner may still have deposited, been granted shares or received dividends, none of which is a purchase. A null with `months_observed` 0 as well means the ledger is empty, or has nothing dated in the past. Neither is a rhythm of zero and neither is an error. There is deliberately no label here — no "regular", no "monthly", no "irregular". The app publishes the numbers and does not judge them; the judgement is yours to state and to attribute to yourself. {_CURRENCY} {_ABSENCE}
get_portfolio_historyThe portfolio's value and return, one point per calendar day, over a window. `points` holds them. Each carries `day` (an ISO calendar day), `cash_balance`, `holdings_value`, `total_value`, `net_contributed` and `twr_index`. Defaults to the last 365 days when no window is given; pass `from_day` and `to_day` as ISO calendar days (YYYY-MM-DD) to narrow it. `from` and `to` state the window this answer covers, as instants. `twr_index` is an index, not a percentage: it is based at 100 at the start of the series the app stored, so a difference between two of its points is a return and a single point is not. If you want the return over the window the caller asked about, rebase it yourself on the first point of what you received. {_CURRENCY} An empty `points` list means the app has computed nothing over that window — a young install, or a window before the ledger starts. It does not mean the portfolio was worth zero then. {_ABSENCE}
ParameterTypeDescription
from_daystring
to_daystring
get_portfolio_totalsThe portfolio as a whole, on the most recent day the app has computed. `totals` carries `day`, `total_value`, `holdings_value`, `cash_balance`, `net_contributed`, the money-weighted return (`xirr`, annualised), the time-weighted return (`twr_index`, based at 100, with its `twr_since`), `gain_absolu`, `transfer_fees`, and `ytd`. Also served: `cash` (the same figure as `cash_balance`), `gain_total` (the gain counted in four terms, latent + realised + dividends - fees, as `gain_total.amount` and over `net_contributed` as `gain_total.pct`, a ratio; both null while a held line has no value) and `net_if_sold_today` (the total value less the tax a sale of everything would owe today, an ESTIMATE). Tax is projected only for the accounts named in `estimated_accounts`; every other account counts gross, so say which accounts the net figure covers. `first_deposit` is the ledger's first deposit and `granted` is how much of `net_contributed` is free grants at their declared value, not money paid in. `variation` holds, for each of the ranges 1M, YTD, 1Y and MAX, the change in the gain over that range, that change over the value at the start of the range (a ratio) and the day it counts from; a range the series is too short for is null. `ytd` IS A PAIR AND ITS `ytd.twr` IS NOT AN INDEX. `ytd.gain` is an amount; `ytd.twr` is a RETURN FRACTION — 0.019 means 1.9% — and not a figure based at 100 like `twr_index` three paragraphs down. Do not read the two as the same unit. `ytd` is null when the series does not reach back to the end of the previous year. THE GAIN ARRIVES WHOLE, NOT BROKEN DOWN. `gain_absolu` is the total, and the only term served beside it is `transfer_fees`. The unrealised gain, the realised gain and the dividends are NOT members here: they sum into `gain_absolu` and this tool does not take them apart. If you need the breakdown, `list_positions.realised` and `list_positions.dividends` carry them per holding — say that you summed them yourself, and never present a difference between your sum and `gain_absolu` as a discrepancy in the app. `twr_index` is based at 100 on `twr_since`, the day this series starts. It is NOT the same day as an account's own anchor, `list_accounts.twr_since`, and THERE IS NO RULE ABOUT WHICH COMES FIRST — it depends on which accounts the app last recomputed together, so do not derive one from the other. Read both. Where they differ, the two figures measure different periods and cannot be ranked: a global index below every account's is arithmetically ordinary, not a sign that the accounts outperformed the portfolio holding them. Say which period each figure covers. Where the two anchors are the same day, they are comparable and you may say so. HOW TO SAY IT. Lead with `xirr`: it is the money-weighted return, per year, and the one rate the app shows. Give `twr_index` only when asked how the holdings themselves did, and then only as a percent change, `twr_index` / 100 − 1, followed by "since" and `twr_since`. Never say "index" or "base 100" to the user. When the two rates have opposite signs, say why in one sentence: the time-weighted figure ignores when money was paid in, the money-weighted one does not. {_CURRENCY} `totals` is null when the app has computed nothing yet, which has two causes and one shape: the ledger is empty, or the reporting currency has never been answered — the app computes no performance at all until it is. Neither is an error and neither means the portfolio is worth zero. {_ABSENCE}
get_profileWhat the owner has declared about themself and confirmed in the app: their facts and their named projects. Read it before you frame an answer around their situation; never ask again for what it already holds. `facts` holds at most three entries, each present only once confirmed: `facts.marginal_rate` (`facts.marginal_rate.value` is a fraction, 0.3 for 30 %), `facts.risk_tolerance` (`facts.risk_tolerance.value` is prudent, balanced or dynamic) and `facts.income`. Each carries the instant it was confirmed: `facts.marginal_rate.confirmed_at`, `facts.risk_tolerance.confirmed_at`, `facts.income.confirmed_at`. THE INCOME AMOUNT IS NEVER SENT. `facts.income.declared` says the owner has declared one, and that is all this tool gives: do not ask for the figure, and do not estimate it. `projects` lists what the owner saves for, sorted by year: `projects.id`, `projects.label`, `projects.target_year`, `projects.amount` (in the reporting currency, null when none was given) and `projects.confirmed_at`. AN ABSENT FACT WAS NEVER DECLARED. It is not a zero, not a default and not a refusal; a proposal the owner has not confirmed is not in this answer either. {_ABSENCE}
list_accountsThe declared accounts, each with its newest figures — the allocation primitive. Use this to answer how the portfolio is split, and to compare accounts. `accounts` holds one row per account: `id` names it and `label` (null when none) calls it, `as_of` is the day its figures are from, and it carries its own `total_value`, `holdings_value`, `cash_balance`, `net_contributed`, returns (`xirr`, `twr_index`), `gain_absolu` and `transfer_fees`. As on the portfolio totals, `gain_absolu` is the WHOLE gain and is not broken down here: there is no unrealised, realised or dividend member on these rows. `declared` false means the owner has never declared an account, so what you are looking at is the single account every install is given. It is a designed state and not an empty one: the list always holds at least one row. Comparing accounts by value tells you about size, not about performance. But `twr_index` IS NOT COMPARABLE ACROSS ROWS AS IT STANDS: it is an index based at 100 on the first day of its own series, and these series do not start on the same day. An account opened in 2019 has been indexing for six years; one opened last month has been indexing for one, and the portfolio-wide index served by `get_portfolio_totals` starts on a day of its own that follows neither rule — so a global index sitting below every account's is arithmetically ordinary and not a bug. Each row carries `twr_since`, the calendar day its index is based at, and `get_portfolio_totals.twr_since` is the same member for the portfolio-wide index. READ `twr_since` BEFORE YOU PUT TWO OF THESE FIGURES IN ONE SENTENCE. Where two of them differ, the figures measure different periods and you cannot rank them: say which period each one covers, and do not call the lower one the worse performer. `twr_since` is absent on an account the app has computed no series for. A row carries three families of member, and they are absent independently of one another. Do not read one family's absence as another's. - `opened_on` and `first_payment` ride on their own facts and NOT on any taxation model: `opened_on` where the owner declared an opening day, `first_payment` where the ledger holds a payment into the account. An account with no model can carry both; an account with a model can carry neither. - `taxation_model_id` is the owner's declaration of which model the account carries, served as written wherever there is one. It is an internal identifier, not a name: no tool here resolves it, so do not read it aloud — say *which account* needs its model looked at, in the app. - `taxation_kind` and the four projected members — `projected_tax`, `projected_base`, `projected_rates` and `projected_rate_changes_on` — are the projection, and they are served only where that declared model still passes this version's own check on it. A model an older version accepted and this one refuses publishes NOTHING beyond its name. So `taxation_model_id` present with `taxation_kind` absent means the declaration needs repairing in the app — not that the tax is zero, and not that the read failed. AND `taxation_kind` CAN RIDE WITHOUT A FIGURE. A model can be perfectly valid and still project nothing — a kind that taxes no realised gain, an aged wrapper with no date to age it from, an account one unvalued position makes unmeasurable, and others: the list is not closed, and you are told only that there is no figure. That is an honest absence, not a broken declaration and not a zero. `projected_tax` IS A PROJECTION AND NOT A TAX. It is what the account would owe if it were emptied today under a model THE OWNER DECLARED THEMSELVES — they entered the kind and the rates, and this app applied their arithmetic rather than reading any tax code. It expresses no allowance, no loss carry-forward, no household situation and no year of any actual return. Say it is a projection under a model the owner declared, every time you quote it, and never use it to advise what is owed, what is due, or when to sell. `pr
list_eventsThe event ledger — everything the owner declared they did, newest first. The ledger is the only thing this app stores as a fact; positions, prices and performance are all derived from it. Use this to answer what the owner actually did, and when. `events` holds the rows. Each carries its `id`, its `date`, its `event_type` (BUY, SELL, GRANT, DIVIDEND, DEPOSIT or WITHDRAWAL), the `symbol` and `name` it concerns, `quantity`, `unit_price`, `fee` and `amount`, the owner's `notes`, and the `account` it belongs to. A member an event does not have is null. THIS ANSWER IS A SLICE. It returns at most `limit` events (default {DEFAULT_EVENT_LIMIT}) out of `total`, which counts every event matching the filters. Read `total` before you characterise the owner's history: if `returned` is less than `total`, you are looking at the most recent part of it and you must say so rather than describing it as the whole. Narrow with `from_day` / `to_day` (ISO calendar days), with `symbol`, or raise `limit` deliberately. Filtering by `symbol` excludes cash events (DEPOSIT and WITHDRAWAL), which carry no symbol. An `account` of "default" is the account every install is given. {_CURRENCY} {_ABSENCE}
ParameterTypeDescription
from_daystring
limitinteger
symbolstring
to_daystring
list_positionsWhat the owner currently holds, one row per (account, symbol). `positions` holds the rows. Each carries `account`, `symbol` and `name`; `quantity`, `cost_basis`, `realised` and `dividends`; `price` and `converted`; `terminal`; `closed_at` (the day a quantity-0 row was sold); and `fundamentals`. READ `cost_basis` AS A TOTAL. It is what the whole holding cost, summed over every purchase — NOT a unit price and not a purchase price. The weighted average paid per unit is `cost_basis` / `quantity`, and you must do that division yourself. THERE IS NO market_value MEMBER. It is yours to compute: the holding is worth `quantity` x `converted.value`. The unrealised gain is served: `latent_gain` is that value minus `cost_basis` and `latent_gain_pct` the same over `cost_basis` (a ratio: 0.05 is 5%), both on the securities' cost only and never on what was paid in; both are null while the line has no value, and `latent_gain` is zero on a closed position. `day_change_pct` is the move of `converted.value` since the previous close, a ratio, null when either price is unknown. Say you computed the market value; do not attribute it to this app. {_CURRENCY} THIS TOOL IS THE ONE THAT HAS EXCEPTIONS TO THAT PARAGRAPH, and there are two. `price` and `converted` are the same price twice: `price.value` is in the instrument's OWN currency, which `price.currency` names on the row, observed at `price.at`; and `converted.value` is that same price in `base_currency`, which `converted.currency` repeats on the row, at `converted.rate` as of `converted.rate_at`. Use `converted` for anything you add up or compare; use `price` only to quote the instrument on its own exchange, and name `price.currency` when you do. And `fundamentals` — what the instrument is rather than what the holding is worth — is quoted in `fundamentals.currency`, its own: `fundamentals.market_cap` especially is NOT in `base_currency` and must never be added to one. Beside it, `fundamentals` names the listing (`fundamentals.exchange`, `fundamentals.quote_type`), two ratios (`fundamentals.dividend_yield`, `fundamentals.pe_ratio`) and the classification (`fundamentals.sector`, `fundamentals.industry`, `fundamentals.country`). A fund publishes no sector: that is a null, never a bucket to sum. Two things about a row will mislead you if you do not know them: - `quantity` 0 is a SOLD position, not a mistake and not an empty row. It stays in the table on purpose, because what it realised still belongs to the totals. - `terminal` tells you which kind of pricelessness a null price is. `terminal` false means the app has simply not fetched a price yet and one is expected; `terminal` true means no price will ever come for this symbol over the period it was held. Never report a position with a null price as being worth zero — in both cases the honest answer is that it is not priced, and `terminal` is what lets you say which of the two it is. A SYMBOL ABSENT FROM THIS TABLE WAS NEVER IN IT. The ledger holds listed instruments only, so a holding with no ticker — private equity, an SPV, property — could not be entered and does not appear here. A sold position stays as a row with `quantity` 0, which is the only shape a disposal takes: nothing leaves this table. So a position you expected and cannot find was never declared, and reading it as a sale is the mistake this paragraph exists to prevent. {_ABSENCE}
propose_eventsPropose ledger events the owner stated ("j'ai acheté 10 CW8 le 3 mars à 512 €"). THIS WRITES NO EVENT: it records a proposal the owner reviews in SuiviBourse's import preview and merges or ignores, and only what they merge reaches the ledger. A proposal left unmerged expires after 7 days. Never tell the owner a proposed event is recorded; say it awaits their review, and give them the `preview_url`. `title` is one line of 1 to 80 characters naming the batch. `events_json` is a JSON STRING holding a list of 1 to 200 event objects, one per ledger line: - date: an ISO calendar day, YYYY-MM-DD. - event_type: BUY, SELL, GRANT, DIVIDEND, DEPOSIT or WITHDRAWAL. - account: the id of an account that EXISTS (see `list_accounts`). You never create an account: an unknown one refuses the whole batch. - symbol and name for a BUY, SELL, GRANT or DIVIDEND; quantity and unit_price for a BUY, SELL or GRANT; amount for a DIVIDEND, DEPOSIT or WITHDRAWAL; fee and notes are optional. Amounts are in the reporting currency unless the owner says otherwise in the preview. - Never set mark: the app sets it, and it refuses a batch that carries one. THE WHOLE BATCH IS ACCEPTED OR REFUSED. A line that is not an event, an unknown account, a SELL past the quantity held, or a batch the ledger could not replay refuses it in words naming the line ("line 3 (event_type): ...") and records nothing: fix that line and propose again. A line the ledger already holds is not an error; the owner sees it in the preview, unchecked. The answer is the proposal: `proposal_id`, its `title`, `count` of events, `status` (always ready here), `created_at`, `expires_at`, `preview_url` where the owner reviews it, and a `note` to relay. {_ABSENCE}
ParameterTypeDescription
events_json *string
title *string
propose_profile_factPropose a fact the owner stated about themself. THIS WRITES NO FACT: it records a proposal the owner confirms or ignores in SuiviBourse, and only what they confirm reaches `get_profile`. A proposal left unconfirmed expires after 7 days. Never tell the owner a proposed fact is noted; say it awaits their confirmation. `key` and `value`, one fact per call: - "income": {{"amount": <annual amount>}}, in the reporting currency. - "marginal_rate": the marginal tax rate as a fraction from 0 to 0.6. - "risk_tolerance": "prudent", "balanced" or "dynamic". - "project": a new project, {{"label": <one line>, "target_year": <year>, "amount": <optional>}}; "project:<id>" changes the project of that id, as `get_profile.projects.id` names it. The answer is the proposal: `proposal_id`, its `key`, its `status` (always ready here), `created_at`, `expires_at`, and a `note` to relay. A value outside these rules is refused in words naming the rule, and nothing is recorded. {_ABSENCE}
ParameterTypeDescription
key *string
value *any
simulate_saleWhat selling part or all of one holding would raise, net of the tax the owner's declared model projects on it. Pass `account`, a `list_accounts.id`; `symbol`, a `list_positions.symbol` held in that account; and `quantity`, the NUMBER OF UNITS to sell — not an amount of money. A refusal names its cause: an account nobody declared, an account whose taxation model this version refuses (repaired in the app), a symbol the account does not hold, a quantity above the holding or not above zero, a line with no price. {_SIMULATION} The answer names the `account` and the `symbol` sold, the `quantity` actually sold, at `price` — the price served as `list_positions.converted`, in `base_currency` — and what it comes to: `proceeds`, the `gain` over the weighted average cost of the units sold, `tax_now`, `if_withdrawn` and `net_proceeds` (`proceeds` minus `tax_now`). `position_after` is the holding left behind: its `position_after.quantity`, its `position_after.cost_basis` (a total, as on `list_positions`) and its `position_after.unit_cost`, null once nothing is left. {_SALE_READING} {_CURRENCY} {_ABSENCE}
ParameterTypeDescription
account *string
quantity *any
symbol *string

Security checks

6 checks have not been run yet.

Questions

About Suivi Bourse

How do I install Suivi Bourse?

No package has been published for this server, so install it from source: clone the repository and follow its README.

Is Suivi Bourse safe to use with an AI agent?

Its trust score is 58 out of 100 (fair). Conduid hasn't run static security checks on this repository yet, so review the source yourself before granting it credentials. It has no ConduID identity yet, so agent calls to it are not receipted.

Is Suivi Bourse still maintained?

Yes — the last commit was 14 hours ago. The repository has 81 stars and 23 forks.

What tools does Suivi Bourse provide?

Conduid read 11 tools from the source: get_benchmark_comparison, get_investment_rhythm, get_portfolio_history, get_portfolio_totals, get_profile, list_accounts, list_events, list_positions and 3 more. 5 of them publish their parameters, listed under Tools above.