About Ghostfolio MCP
Ghostfolio MCP is an MCP server published by mhajder in the Content category: mCP server for Ghostfolio (open-source wealth management): portfolio performance, holdings, dividends and investments, accounts and balances, activities, benchmarks, watchlist, market data, symbol lookup, exchange rates and transaction import/export. Read-only mode and OIDC/OAuth auth. Conduid read 50 tools from its source: account, activities, add_market_data_points, add_to_watchlist, asset, benchmark and 44 more. It is published to PyPI as ghostfolio-mcp and runs with uvx.
The repository has 21 stars and 6 forks, is licensed AGPL-3.0, and its last commit was on 1 Dec 2026. The latest release is v1.7.0 (17 Sep 2026): Docker Images ghcr.io/mhajder/ghostfolio-mcp:v1.7.0 ghcr.io/mhajder/ghostfolio-mcpo:v1.7.0 What's Changed chore(deps): bump the uv-dependencies group across 1 directory… It follows v1.6.2 (2 Sep 2026), and the 5 most recent releases go back to v1.5.0 (14 Jul 2026). It passes 5 of the 6 static checks Conduid ran on the repository; it does not pass Scoped permissions. Its topics include ghostfolio, mc-tools and content.
Install
uvx ghostfolio-mcppip install ghostfolio-mcpgit clone https://github.com/mhajder/ghostfolio-mcpTools (50)
accountAccount management tools (create, delete, update, get accounts)activitiesActivity/transaction management tools (create, update, delete activities)add_market_data_pointsAdd one or more market data points for an asset (typically a `MANUAL` data source — Ghostfolio rejects writes for auto-fetched sources)| Parameter | Type | Description |
|---|---|---|
| data_source * | string | Data source for the symbol. Typically 'MANUAL' — Ghostfolio rejects market-data writes for auto-fetched sources like 'YAHOO' or 'COINGECKO' |
| market_data * | array | List of market data points. Each entry must include 'date' (ISO 8601, e.g. '2026-04-30T00:00:00.000Z') and 'marketPrice' (numeric value of the asset at that date) |
| symbol * | string | Symbol/ticker of the asset (e.g., 'TRUE-UNLISTED', 'PILLAR3A-FINPENSION-X') |
add_to_watchlistAdd a symbol to the user's watchlist| Parameter | Type | Description |
|---|---|---|
| data_source * | string | Data source for the symbol (e.g. 'YAHOO', 'COINGECKO', 'MANUAL') |
| symbol * | string | Symbol/ticker of the asset to add to the watchlist |
assetAsset profile toolsbenchmarkBenchmark toolscreate_accountCreate a new account in your portfolio| Parameter | Type | Description |
|---|---|---|
| balance | number | Initial balance for the account (defaults to 0) |
| comment | string | Optional comment or note for the account |
| currency * | string | Currency code for the account (e.g., 'USD', 'EUR', 'GBP') |
| name * | string | Name of the account (e.g., 'My Brokerage Account', 'Retirement Fund') |
| platform_id | string | Optional platform ID for the account (e.g., broker or exchange identifier) |
create_account_balanceSet an account's balance for a specific date in its balance history (defaults to today)| Parameter | Type | Description |
|---|---|---|
| account_id * | string | Account ID to record a balance entry for |
| balance * | number | Balance value to record for the given date |
| date | string | ISO-8601 date for this balance entry, e.g. '2026-08-27'. Defaults to today. |
create_activityCreate a single new transaction/activity in your portfolio (BUY, SELL, DIVIDEND, INTEREST, FEE, etc.), optionally with tags| Parameter | Type | Description |
|---|---|---|
| account_id * | string | The account ID where this activity will be recorded |
| comment | string | Optional comment |
| currency * | string | Currency code for the transaction |
| data_source * | string | Data source (e.g., 'YAHOO', 'COINGECKO', 'MANUAL') |
| date * | string | Date in ISO 8601 format (e.g. 2026-05-09T00:00:00.000Z) |
| fee | number | Optional fee amount |
| quantity * | number | Number of shares/units |
| symbol * | string | Symbol profile ID or actual ticker symbol |
| tags | array | Optional list of tag IDs to attach to this activity (from get_tags). Omit for no tags. |
| type * | string | Type of activity: BUY, SELL, DIVIDEND, INTEREST, FEE, LIABILITY |
| unit_price * | number | Price per unit |
delete_accountDelete an existing account from your portfolio (destructive operation)| Parameter | Type | Description |
|---|---|---|
| account_id * | string | Account ID to delete (e.g., 'cb547e5c-..') |
delete_account_balanceDelete a single entry from an account's balance history| Parameter | Type | Description |
|---|---|---|
| balance_id * | string | ID of the balance-history entry to delete, from get_account_balances (not the account ID) |
delete_activityDelete a single activity/transaction by its ID (destructive operation)| Parameter | Type | Description |
|---|---|---|
| activity_id * | string | The unique ID of the activity to delete |
delete_asset_profileDelete an asset profile (destructive operation; may delete associated activities and market data depending on backend rules)| Parameter | Type | Description |
|---|---|---|
| data_source * | string | Data source for the symbol. Typically 'MANUAL' — Ghostfolio rejects profile-data deletes for auto-fetched sources |
| symbol * | string | Symbol/ticker of the asset to delete |
exchange-rateCurrency exchange rate toolsexportData export toolsexport_portfolioExport portfolio activities/transactions data as JSON| Parameter | Type | Description |
|---|---|---|
| accounts | string | Optional comma-separated list of account IDs to filter by |
| activity_ids | string | Optional comma-separated list of activity IDs to filter by |
| activity_types | string | Optional comma-separated list of activity types to filter by (e.g., BUY, SELL, DIVIDEND) |
| asset_classes | string | Optional comma-separated list of asset classes to filter by |
| data_source | string | Optional data source to filter by (e.g. 'YAHOO', 'COINGECKO') |
| symbol | string | Optional symbol/ticker to filter by |
| tags | string | Optional comma-separated list of tags to filter by |
get_account_balancesGet account balances for a specific account| Parameter | Type | Description |
|---|---|---|
| account_id * | string | Account ID to get balances for |
get_account_detailsGet details for a specific account| Parameter | Type | Description |
|---|---|---|
| account_id * | string | Account ID to retrieve details for |
get_accountsGet all accounts in your portfolio including account types and balancesget_asset_profileGet asset profile information for a specific symbol| Parameter | Type | Description |
|---|---|---|
| data_source * | string | Data source for the symbol (e.g., 'YAHOO', 'COINGECKO', 'MANUAL') |
| symbol * | string | Symbol/ticker of the asset (e.g., 'AAPL', 'BTC-USD') |
get_benchmark_performanceCompare portfolio performance against a benchmark symbol starting from a specific date| Parameter | Type | Description |
|---|---|---|
| accounts | string | Optional comma-separated list of account IDs to filter by |
| asset_classes | string | Optional comma-separated list of asset classes to filter by |
| data_source * | string | Data source for the benchmark (e.g. 'YAHOO', 'COINGECKO') |
| date_range | string | Time range. Options: 1d, 1w, 1m, 3m, 6m, 1y, 2y, 5y, max |
| filter_data_source | string | Optional data source to filter by |
| filter_symbol | string | Optional symbol/ticker to filter by |
| start_date * | string | Start date in YYYY-MM-DD format for comparison |
| symbol * | string | Symbol/ticker of the benchmark (e.g. 'URTH', 'AAPL') |
| tags | string | Optional comma-separated list of tags to filter by |
| with_excluded_accounts | boolean | Whether to include excluded accounts in the calculations |
get_benchmarksGet all configured benchmarksget_dividendsGet dividend data grouped by time period showing dividend payments and yield| Parameter | Type | Description |
|---|---|---|
| date_range | string | Time range for dividend data. Options: 1d, 1w, 1m, 3m, 6m, 1y, 2y, 5y, max |
| group_by | string | Grouping period for dividend data. Options: day, week, month, quarter, year |
get_dividends_for_importFetch historical dividend data formatted for import for a specific symbol| Parameter | Type | Description |
|---|---|---|
| data_source * | string | Data source for the symbol (e.g. 'YAHOO', 'COINGECKO', 'MANUAL') |
| symbol * | string | Symbol/ticker of the asset to get dividends for |
get_exchange_rateGet the exchange rate for a given currency symbol on a specific date| Parameter | Type | Description |
|---|---|---|
| date * | string | Date in YYYY-MM-DD format to retrieve the rate for |
| symbol * | string | Currency symbol to get exchange rate for (e.g. 'USD', 'CHF', 'EUR') |
get_healthGet system health status of the Ghostfolio backend serviceget_historical_dataGet historical data for a specific symbol on a specific date| Parameter | Type | Description |
|---|---|---|
| data_source * | string | Data source for the symbol (e.g., 'YAHOO', 'COINGECKO', 'MANUAL') |
| date * | string | Date in YYYY-MM-DD format for historical data |
| symbol * | string | Symbol/ticker of the asset (e.g., 'AAPL', 'BTC-USD') |
get_investmentsGet investment data grouped by time period showing cash flows and contributions| Parameter | Type | Description |
|---|---|---|
| date_range | string | Time range for investment data. Options: 1d, 1w, 1m, 3m, 6m, 1y, 2y, 5y, max |
| group_by | string | Grouping period for investment data. Options: day, week, month, quarter, year |
get_market_data_for_assetGet market data for a specific asset| Parameter | Type | Description |
|---|---|---|
| data_source * | string | Data source for the symbol (e.g., 'YAHOO', 'COINGECKO', 'MANUAL') |
| symbol * | string | Symbol/ticker of the asset (e.g., 'AAPL', 'BTC-USD') |
get_ordersGet all activities/orders from your portfolio, optionally filtered by account| Parameter | Type | Description |
|---|---|---|
| account_id | string | Optional account ID to filter orders by specific account |
get_platformsGet list of available platforms (brokers, exchanges, etc.) for account trackingget_portfolio_detailsGet comprehensive portfolio details including accounts, positions, and summaryget_portfolio_holdingsGet portfolio holdings and positions including allocations and asset breakdowns| Parameter | Type | Description |
|---|---|---|
| date_range | string | Time range for holdings data. Options: 1d, 1w, 1m, 3m, 6m, 1y, 2y, 5y, max |
get_portfolio_performanceGet portfolio performance data including returns, benchmarks, and performance metrics| Parameter | Type | Description |
|---|---|---|
| date_range | string | Time range for performance data. Options: 1d, 1w, 1m, 3m, 6m, 1y, 2y, 5y, max |
get_positionGet position details for a specific symbol from a data source| Parameter | Type | Description |
|---|---|---|
| data_source * | string | Data source for the symbol (e.g., 'YAHOO', 'COINGECKO', 'MANUAL') |
| symbol * | string | Symbol/ticker of the asset (e.g., 'AAPL', 'BTC-USD') |
get_symbol_dataGet symbol data for a specific asset from a data source| Parameter | Type | Description |
|---|---|---|
| data_source * | string | Data source for the symbol (e.g., 'YAHOO', 'COINGECKO', 'MANUAL') |
| symbol * | string | Symbol/ticker of the asset (e.g., 'AAPL', 'BTC') |
get_user_infoGet user information and settingsget_watchlistGet all items in the user's watchlistimportData import toolsimport_transactionsImport transactions into your portfolio (bulk import operation)| Parameter | Type | Description |
|---|---|---|
| data * | object | Transaction data in the format expected by Ghostfolio API. Should contain an 'activities' list. Each activity must have: 'currency', 'dataSource', 'date' (ISO-8601, e.g. 2021-09-15T00:00:00.000Z), 'quantity', 'symbol', 'type' (BUY, SELL, etc), 'unitPrice', and usually 'fee' (can be 0). |
lookup_symbolsSearch for symbols using a query string| Parameter | Type | Description |
|---|---|---|
| include_indices | boolean | Include market indices in search results |
| query * | string | Search query for symbol lookup. Can be company name, ticker symbol, or partial match |
portfolioPortfolio analysis and performance toolsremove_from_watchlistRemove a symbol from the user's watchlist| Parameter | Type | Description |
|---|---|---|
| data_source * | string | Data source for the symbol (e.g. 'YAHOO', 'COINGECKO', 'MANUAL') |
| symbol * | string | Symbol/ticker of the asset to remove from the watchlist |
systemSystem health and platform information toolstransfer_account_balanceTransfer cash balances between two accounts| Parameter | Type | Description |
|---|---|---|
| account_id_from * | string | The source account ID to transfer cash from |
| account_id_to * | string | The target account ID to transfer cash to |
| balance * | number | The amount of cash to transfer |
update_accountUpdate settings or details of an existing account| Parameter | Type | Description |
|---|---|---|
| account_id * | string | Account ID to update |
| balance | number | Optional new balance for the account |
| comment | string | Optional new comment or note for the account |
| currency | string | Optional new currency code for the account (e.g., 'USD', 'EUR') |
| name | string | Optional new name of the account |
| platform_id | string | Optional new platform ID for the account |
update_activityUpdate an existing activity/transaction, including its tags; fields you don't pass keep their current values| Parameter | Type | Description |
|---|---|---|
| account_id | string | Optional new account ID. Pass an empty string to detach the activity from its account. |
| activity_id * | string | The unique ID of the activity to update |
| comment | string | Optional new comment |
| currency | string | Optional new currency code |
| data_source | string | Optional new data source (e.g., 'YAHOO', 'COINGECKO', 'MANUAL'). Changing it requires symbol and currency too. |
| date | string | Optional new date in ISO 8601 format (e.g. 2026-05-09T00:00:00.000Z) |
| fee | number | Optional new fee amount |
| quantity | number | Optional new number of shares/units |
| symbol | string | Optional new ticker symbol. Changing the asset (symbol or data_source) requires symbol, data_source and currency together. |
| tags | array | Optional new list of tag IDs (from get_tags) to replace this activity's tags. Omit to leave existing tags unchanged; pass an empty list to clear all tags. |
| type | string | Optional new type: BUY, SELL, DIVIDEND, INTEREST, FEE, LIABILITY |
| unit_price | number | Optional new price per unit |
upsert_asset_profileCreate-or-update an asset profile, including optional `countries` and `sectors` allocations (idempotent; tolerates Ghostfolio's HTTP 500 on the create step and relies on the subsequent PATCH as the source of truth)| Parameter | Type | Description |
|---|---|---|
| asset_class * | string | Asset class: 'EQUITY', 'FIXED_INCOME', 'REAL_ESTATE', 'COMMODITY', 'LIQUIDITY' (cash), or 'ALTERNATIVE_INVESTMENT'. Note: Ghostfolio's enum does not include 'CASH' — use 'LIQUIDITY' |
| asset_sub_class | string | Optional asset sub-class (e.g., 'MUTUALFUND', 'CASH', 'ETF') |
| countries | array | Optional country allocation. Entries must contain exactly 'code' (ISO 3166-1 alpha-2, e.g. 'US') and 'weight' (a fraction between 0 and 1, e.g. 0.6907) — any extra key, such as the 'continent' and 'name' that reads add, is rejected with HTTP 400. Omit to leave the stored value untouched; pass [] to reset (on 'MANUAL' this empties the list, on fetched sources it drops the override and the data provider's own countries apply again) |
| currency * | string | Currency code of the asset (e.g., 'USD', 'CHF', 'EUR') |
| data_source * | string | Data source for the symbol. Typically 'MANUAL' — Ghostfolio rejects profile-data writes for auto-fetched sources |
| name * | string | Human-readable name for the asset |
| sectors | array | Optional sector allocation. Entries must contain exactly 'name' and 'weight' (a fraction between 0 and 1, e.g. 0.2431); any extra key is rejected with HTTP 400. Omit to leave the stored value untouched; pass [] to reset (on 'MANUAL' this empties the list, on fetched sources it drops the override and the data provider's own sectors apply again) |
| symbol * | string | Symbol/ticker of the asset. Permanent — renaming orphans associated activities and market data |
userUser information toolswatchlistWatchlist management toolsSecurity checks
Static checks derived from the repository 10 days ago. Heuristics on the source, not an audit.
- ✓README presentThe repository's README runs to about 3.0K words.
- ✓License declaredThe repository declares the AGPL-3.0 license.
- ✓Tests presentA test suite exists in the repository.
- ✓Dependencies pinnedDependency versions are pinned by uv.lock.
- ✓No dynamic code executionScanned 22 source files and found no eval, dynamic Function or shell execution.
- !Scoped permissionsDoesn't declare a permission scope. Assume it can do anything its process can.
What the source scan found
- Transport
- stdio, Streamable HTTP and HTTP with SSEsrc/ghostfolio_mcp/server.py:234, src/ghostfolio_mcp/server.py:226, src/ghostfolio_mcp/server.py:211
- Starts other programs
- No calls that start other programs
- Outbound network calls
- No outbound network calls
- Writes or deletes files
- No file writes or deletes
- Lockfile
- uv.lock
Pattern matches on the source text of 22 files: places to read, not proof of what the code does at run time.
Releases
README
The repository's README runs to about 3.0K words, fetched a month ago. The original in the repository is authoritative.
Read full README