mhajder/ghostfolio-mcp
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.
36130303ca02ghostfolio-mcp1.8.2 in pyproject.tomlio.github.mhajder/ghostfolio-mcpPaths from tool input into commands, SQL, files and URLs
How much power the tools give an agent over the machine
Hidden instructions and poisoning in text for the model
Known vulnerabilities in the packages the server uses
How the server reads credentials and where they can go
Whether the tools do only what their descriptions say
Top risks in plain words
- INFONo published risk: no tool declared to run commands, files, addresses or queries of the caller's choice, no known vulnerability in a production package, no advisory. Code findings appear here only after a person has verified them.
How to use it safely
Practical steps from what we found in this server. They lower the risk; they do not replace a review of the code.
- Keep confirmations on
Leave your MCP client's confirmation prompt on for tools that change files, run commands or send data.
What its tools can do on your machine
The server offers 39 tools. When an AI agent calls them, this is what their code can do on the machine where the server runs, as traced in the source. Tools that call code the scanner could not follow may do more.
None of the tools reaches any of these in the code the scanner could trace.
Where its requests and secrets go
Read from the names along each tool's calls, not from a run: what the code says, not every address it may reach at run time.
The literal addresses the tools' requests name.
- None: no request names a fixed host.
Constants or settings that start an address; the value comes from configuration.
- None seen.
Credential-like environment variables. Give the server a key with the least access it needs.
- None: no credential-like variable is read by the tools.
Text it brings in from outside
No tool was seen returning text from outside the server to the model.
Tool annotations
39 of 39 tools declare annotations. readOnlyHint 24, destructiveHint 7, idempotentHint 31.
Each declaration matches what the traced code does.
Tools, prompts and resources (39: 39 tools)
Open a row for its full description. Chips show what its code can reach, and which risky capability its own description declares.
add_market_data_pointstool Add one or more market data points for a specific asset.
Add one or more market data points for a specific asset.
Posts to the market-data endpoint for the given data source and
symbol. Same (symbol, date) overwrites the existing point; passing
the same input twice yields the same end state.
Args:
data_source: Data source (typically 'MANUAL')
symbol: Symbol/ticker of the asset
market_data: List of {date, marketPrice} entries
Returns:
Dictionary containing the upstream responseadd_to_watchlisttool Add a symbol to the user's watchlist.
Add a symbol to the user's watchlist.
Args:
data_source: Data source (e.g., 'YAHOO', 'COINGECKO')
symbol: Symbol/ticker of the asset
Returns:
Dictionary containing the updated watchlist item information.create_accounttool Create a new account in your portfolio.
Create a new account in your portfolio.
Creates a new account with the specified name, currency, and optional balance.
This is useful for organizing your investments across different
account types or platforms.
Note: current Ghostfolio versions have no boolean "excluded" flag on an
account - exclusion from analysis is done by tagging the account, which
is outside this tool's scope.
Args:
name: Account name (required)
currency: Account currency (required, e.g., 'USD', 'EUR')
balance: Initial balance for the account (defaults to 0)
comment: Optional comment or note for the account
platform_id: Optional platform ID for the account
Returns:
Dictionary containing the created account informationcreate_account_balancetool Set an account's balance for a specific date in its balance history.
Set an account's balance for a specific date in its balance history.
This writes directly to the balance-history series that
get_account_balances returns and that get_portfolio_holdings derives
its cash figure from - it is not the same as the account's summary
balance field. Calling this again for the same account and date
updates that entry instead of duplicating it, so setting today's
balance is just this call with `date` omitted.
The balance is recorded in the account's own currency; Ghostfolio's
API does not accept a separate currency for this endpoint.
Args:
account_id: Account ID to record a balance entry for
balance: Balance value for the given date
date: Optional ISO-8601 date (defaults to today)
Returns:
Dictionary containing the created/updated balance-history entrycreate_activitytool Create a single new transaction/activity.
Create a single new transaction/activity.
delete_accounttool Delete an existing account from your portfolio.destructive (declared)
Delete an existing account from your portfolio.
Deletes an account specified by its ID. Be careful, this might delete
associated transactions depending on backend rules!
Args:
account_id: Account ID to delete
Returns:
Dictionary containing the deletion statusdelete_account_balancetool Delete a single entry from an account's balance history.destructive (declared)
Delete a single entry from an account's balance history.
Args:
balance_id: ID of the balance-history entry to delete
Returns:
Dictionary containing the deleted balance-history entrydelete_activitytool Delete a single activity/transaction by its ID.destructive (declared)
Delete a single activity/transaction by its ID.
delete_asset_profiletool Delete an asset profile.destructive (declared)
Delete an asset profile.
Removes the profile-data record for the given data source and symbol.
Be careful, this might delete associated activities and market data
depending on backend rules!
Args:
data_source: Data source (typically 'MANUAL')
symbol: Symbol/ticker of the asset to delete
Returns:
Dictionary containing the deletion statusexport_portfoliotool Export portfolio activities/transactions data as JSON.read-only (declared)
Export portfolio activities/transactions data as JSON.
Retrieves portfolio transactions with optional query filters.
Args:
accounts: Comma-separated list of account IDs
activity_ids: Comma-separated list of activity IDs
activity_types: Comma-separated list of activity types (BUY, SELL, etc.)
asset_classes: Comma-separated list of asset classes
data_source: Filter by data source
symbol: Filter by symbol/ticker
tags: Comma-separated list of tags
Returns:
Dictionary containing the exported activities list.get_account_balancestool Get account balances for a specific account.read-only (declared)
Get account balances for a specific account.
Retrieves balance information for a specific account including
current balance, currency, and balance history.
Args:
account_id: Account ID to get balances for
Returns:
Dictionary containing account balance informationget_account_detailstool Get details for a specific account.read-only (declared)
Get details for a specific account.
Args:
account_id: The unique ID of the account to fetch
Returns:
Dictionary containing the detailed account profileget_accountstool Get all accounts in your portfolio including account types and balances.read-only (declared)
Get all accounts in your portfolio including account types and balances.
Retrieves a list of all accounts in your portfolio including account
types, balances, and account-specific information.
Returns:
Dictionary containing account information including accounts list and total valueget_asset_profiletool Get asset profile information for a specific symbol.read-only (declared)
Get asset profile information for a specific symbol.
Retrieves detailed profile information about an asset including
company information, sector, industry, and other metadata.
Args:
data_source: Data source (e.g., 'YAHOO', 'COINGECKO', 'MANUAL')
symbol: Symbol/ticker of the asset
Returns:
Dictionary containing asset profile informationget_benchmark_performancetool Compare portfolio performance against a benchmark symbol starting from a specific date.read-only (declared)
Compare portfolio performance against a benchmark symbol starting from a specific date.
Args:
data_source: Benchmark data source (e.g. 'YAHOO')
symbol: Benchmark symbol (e.g. 'URTH')
start_date: Comparison start date (YYYY-MM-DD)
date_range: Time range (e.g., 'max')
accounts: Comma-separated account IDs
asset_classes: Comma-separated asset classes
filter_data_source: Filter data source
filter_symbol: Filter symbol
tags: Comma-separated tags
with_excluded_accounts: Include excluded accounts
Returns:
Dictionary containing benchmark comparison performance data.get_benchmarkstool Get all configured benchmarks.read-only (declared)
Get all configured benchmarks.
Returns:
Dictionary containing the list of benchmarks.get_dividendstool Get dividend data grouped by time period showing dividend payments and yield.read-only (declared)
Get dividend data grouped by time period showing dividend payments and yield.
Retrieves dividend income data grouped by the specified time period,
showing dividend payments, yield, and income patterns over time.
Args:
group_by: Grouping period: day, week, month, quarter, year
date_range: Time range for dividend data. Options: 1d, 1w, 1m, 3m, 6m, 1y, 2y, 5y, max
Returns:
Dictionary containing dividend data grouped by the specified periodget_dividends_for_importtool Fetch historical dividend data formatted for import for a specific symbol.read-only (declared)
Fetch historical dividend data formatted for import for a specific symbol.
Args:
data_source: Data source (e.g. 'YAHOO', 'COINGECKO')
symbol: Symbol/ticker of the asset
Returns:
Dictionary containing list of dividend transactions formatted for import.get_exchange_ratetool Get the exchange rate for a given currency symbol on a specific date.read-only (declared)
Get the exchange rate for a given currency symbol on a specific date.
Args:
symbol: Currency code (e.g. 'USD', 'EUR')
date: Date in YYYY-MM-DD format
Returns:
Dictionary containing the exchange rate value.get_healthtool Get system health status.read-only (declared)
Get system health status.
Retrieves the health status of the Ghostfolio backend service.
This is useful to verify if the server is up and running correctly.
Returns:
Dictionary containing health status informationget_historical_datatool Get historical data for a specific symbol on a specific date.read-only (declared)
Get historical data for a specific symbol on a specific date.
Retrieves historical market data for a symbol on a specific date,
including price and volume information.
Args:
data_source: Data source (e.g., 'YAHOO', 'COINGECKO', 'MANUAL')
symbol: Symbol/ticker of the asset
date: Date in YYYY-MM-DD format
Returns:
Dictionary containing historical data for the specified dateget_investmentstool Get investment data grouped by time period showing cash flows and contributions.read-only (declared)
Get investment data grouped by time period showing cash flows and contributions.
Retrieves investment activity data grouped by the specified time period,
showing cash flows, contributions, and investment patterns over time.
Args:
group_by: Grouping period: day, week, month, quarter, year
date_range: Time range for investment data. Options: 1d, 1w, 1m, 3m, 6m, 1y, 2y, 5y, max
Returns:
Dictionary containing investment data grouped by the specified periodget_market_data_for_assettool Get market data for a specific asset.read-only (declared)
Get market data for a specific asset.
Retrieves current market data for a specific symbol including price,
volume, market cap, and other relevant market information.
Args:
data_source: Data source (e.g., 'YAHOO', 'COINGECKO', 'MANUAL')
symbol: Symbol/ticker of the asset
Returns:
Dictionary containing market data for the specified symbolget_orderstool Get all activities/orders from your portfolio, optionally filtered by account.read-only (declared)
Get all activities/orders from your portfolio, optionally filtered by account.
Retrieves a list of all buy/sell orders in your portfolio, optionally
filtered by a specific account.
Args:
account_id: Optional account ID to filter orders by specific account
Returns:
Dictionary containing order data with activities and paginationget_platformstool Get available platforms.read-only (declared)
Get available platforms.
Retrieves a list of all available platforms (brokers, exchanges, etc.)
that can be used when tracking accounts or transactions.
Returns:
Dictionary containing available platformsget_portfolio_detailstool Get comprehensive portfolio details including accounts, positions, and summary.read-only (declared)
Get comprehensive portfolio details including accounts, positions, and summary.
Retrieves a complete overview of your portfolio including account
information, current positions, performance summary, and portfolio metrics.
Returns:
Dictionary containing complete portfolio information including accounts, positions, and summaryget_portfolio_holdingstool Get portfolio holdings and positions including allocations and asset breakdowns.read-only (declared)
Get portfolio holdings and positions including allocations and asset breakdowns.
Retrieves current portfolio holdings including positions, allocations,
and asset breakdowns for the specified time period.
Args:
date_range: Time range for holdings data. Options: 1d, 1w, 1m, 3m, 6m, 1y, 2y, 5y, max
Returns:
Dictionary containing holdings, accounts, allocations, and range dataget_portfolio_performancetool Get portfolio performance data including returns, benchmarks, and performance metrics.read-only (declared)
Get portfolio performance data including returns, benchmarks, and performance metrics.
Retrieves comprehensive performance metrics for your portfolio including
returns, benchmarks, and performance comparisons over the specified time period.
Args:
date_range: Time range for performance data. Options: 1d, 1w, 1m, 3m, 6m, 1y, 2y, 5y, max
Returns:
Dictionary containing performance metrics, returns, benchmarks, and range dataget_positiontool Get position details for a specific symbol from a data source.read-only (declared)
Get position details for a specific symbol from a data source.
Retrieves detailed information about a specific position including
current value, quantity, performance, and market data.
Args:
data_source: Data source (e.g., 'YAHOO', 'COINGECKO', 'MANUAL')
symbol: Symbol/ticker of the asset
Returns:
Dictionary containing position details including symbol, quantity, value, and performanceget_symbol_datatool Get symbol data for a specific asset from a data source.read-only (declared)
Get symbol data for a specific asset from a data source.
Retrieves detailed information about a specific symbol including
current price, market data, and asset information.
Args:
data_source: Data source (e.g., 'YAHOO', 'COINGECKO', 'MANUAL')
symbol: Symbol/ticker of the asset
Returns:
Dictionary containing symbol data including price and market informationget_user_infotool Get user information and settings.read-only (declared)
Get user information and settings.
Retrieves information about the current user including settings,
preferences, and account details.
Returns:
Dictionary containing user information and settingsget_watchlisttool Get all items in the user's watchlist.read-only (declared)
Get all items in the user's watchlist.
Retrieves list of all watchlisted symbols.
Returns:
Dictionary containing the watchlist items.import_transactionstool Import transactions into your portfolio. This is a write operation.
Import transactions into your portfolio. This is a write operation.
Imports a batch of transactions (buy/sell orders) into your Ghostfolio
portfolio. This is useful for bulk importing historical data or
transactions from other platforms.
Args:
data: Transaction data. Must contain an 'activities' list with transaction objects including currency, dataSource, date (ISO-8601), fee, quantity, symbol, type, unitPrice.
Returns:
Dictionary containing import resultlookup_symbolstool Search for symbols using a query string.read-only (declared)
Search for symbols using a query string.
Search for financial symbols, stocks, ETFs, and other assets using
a text query. Optionally include market indices in the results.
Args:
query: Search query for symbol lookup
include_indices: Include market indices in search results
Returns:
Dictionary containing search results with matching symbolsremove_from_watchlisttool Remove a symbol from the user's watchlist.destructive (declared)
Remove a symbol from the user's watchlist.
Args:
data_source: Data source (e.g., 'YAHOO', 'COINGECKO')
symbol: Symbol/ticker of the asset to remove
Returns:
Dictionary containing the deletion status.transfer_account_balancetool Transfer cash balances between two accounts.
Transfer cash balances between two accounts.
Args:
account_id_from: Source account ID
account_id_to: Target account ID
balance: Amount to transfer
Returns:
Dictionary containing the status/result of the transfer.update_accounttool Update settings or details of an existing account.destructive (declared)
Update settings or details of an existing account.
Ghostfolio's update endpoint replaces the whole account record, so
`name`, `currency` and `platform_id` are required on every request even
when they are not changing. Any left unset here are backfilled from the
account's current state with a GET before the PUT, so you only need to
pass the fields you actually want to change. If `name` or `currency`
can't be backfilled (e.g. the account doesn't exist), the update stops
before the PUT and names them.
Setting `balance` here applies it as *today's* entry in the account's
balance history (the same series `get_account_balances` returns and
`get_portfolio_holdings` derives its cash figure from) - it is not a
separate stale field. Use create_account_balance to set the balance
for a specific past date instead of today.
Args:
account_id: The unique ID of the account to update
name: Optional new account name
currency: Optional new account currency
balance: Optional new cash balance, recorded as today's balance-history entry
comment: Optional new note/comment
platform_id: Optional new platform ID
Returns:
Dictionary containing the updated account statusupdate_activitytool Update an existing activity/transaction.destructive (declared)
Update an existing activity/transaction.
Ghostfolio's update endpoint replaces the whole activity record, so
`type`, `symbol`, `date`, `quantity`, `unitPrice`, `currency`,
`dataSource` and `fee` are required on every request even when they
are not changing. Any left unset here (including `tags`, `account_id`
and `comment`) are backfilled from the activity's current state with a
GET before the PUT, so you only need to pass the fields you actually
want to change. If a required field can't be backfilled (Ghostfolio
redacts `quantity` and `fee` in restricted views), pass it explicitly.
A restricted view also redacts `comment`, and Ghostfolio clears the
comment whenever the update carries none, so in that case `comment`
is required too (pass an empty string to clear it).
Ghostfolio identifies the asset by `dataSource` and `symbol` together,
and the current `currency` belongs to that asset. So changing either
`symbol` or `data_source` requires passing `symbol`, `data_source` and
`currency` together; backfilling the rest from the old asset would
attach the activity to the wrong asset profile or price it in the
wrong currency. Ghostfolio ignores an asset change (without an error)
when the resulting activity is a FEE, INTEREST or LIABILITY, or a BUY
on the MANUAL data source; delete and re-create the activity instead.
The GET and PUT are separate requests, so an edit made to the same
activity in between (e.g. in the Ghostfolio UI) is overwritten for
every field not passed here.
Args:
activity_id: The unique ID of the activity to update
type: Optional new activity type
symbol: Optional new symbol (changing it requires data_source and currency)
date: Optional new date
quantity: Optional new quantity
unit_price: Optional new price per unit
currency: Optional new currency code
data_source: Optional new data source (changing it requires symbol and currency)
account_id: Optional new account ID; an empty string detaches the account
fee: Optional new fee amount
comment: Optional new comment
tags: Optional new list of tag IDs (replaces existing tags; omit to keep them)
Returns:
Dictionary containing the updated activityupsert_asset_profiletool Create-or-update an asset profile.
Create-or-update an asset profile.
POSTs an empty profile-data record (idempotent — Ghostfolio answers
HTTP 400 "already exists" when the profile is already there, and
HTTP 500 on some first-time-create paths while still persisting the
record, so this tolerates both). Then PATCHes metadata (name,
currency, asset class, optional sub-class, optional country and
sector allocations). PATCH is the source of truth — if the profile
doesn't exist after the POST, PATCH will surface the error. Calling
twice with the same input yields the same end state.
Args:
data_source: Data source (typically 'MANUAL')
symbol: Symbol/ticker of the asset
name: Human-readable name
currency: Currency code
asset_class: One of the Ghostfolio enum values
asset_sub_class: Optional sub-class
countries: Optional list of {code, weight} entries
sectors: Optional list of {name, weight} entries
Returns:
Dictionary containing the final profile state from the PATCH responseText the model reads (39)
Every tool, prompt and resource description as written in the code: the model sees all of it, the user usually does not.
get_account_balances tool
Get account balances for a specific account.
Retrieves balance information for a specific account including
current balance, currency, and balance history.
Args:
account_id: Account ID to get balances for
Returns:
Dictionary containing account balance informationget_accounts tool
Get all accounts in your portfolio including account types and balances.
Retrieves a list of all accounts in your portfolio including account
types, balances, and account-specific information.
Returns:
Dictionary containing account information including accounts list and total valuecreate_account tool
Create a new account in your portfolio.
Creates a new account with the specified name, currency, and optional balance.
This is useful for organizing your investments across different
account types or platforms.
Note: current Ghostfolio versions have no boolean "excluded" flag on an
account - exclusion from analysis is done by tagging the account, which
is outside this tool's scope.
Args:
name: Account name (required)
currency: Account currency (required, e.g., 'USD', 'EUR')
balance: Initial balance for the account (defaults to 0)
comment: Optional comment or note for the account
platform_id: Optional platform ID for the account
Returns:
Dictionary containing the created account informationdelete_account tool
Delete an existing account from your portfolio.
Deletes an account specified by its ID. Be careful, this might delete
associated transactions depending on backend rules!
Args:
account_id: Account ID to delete
Returns:
Dictionary containing the deletion statusget_account_details tool
Get details for a specific account.
Args:
account_id: The unique ID of the account to fetch
Returns:
Dictionary containing the detailed account profileupdate_account tool
Update settings or details of an existing account.
Ghostfolio's update endpoint replaces the whole account record, so
`name`, `currency` and `platform_id` are required on every request even
when they are not changing. Any left unset here are backfilled from the
account's current state with a GET before the PUT, so you only need to
pass the fields you actually want to change. If `name` or `currency`
can't be backfilled (e.g. the account doesn't exist), the update stops
before the PUT and names them.
Setting `balance` here applies it as *today's* entry in the account's
balance history (the same series `get_account_balances` returns and
`get_portfolio_holdings` derives its cash figure from) - it is not a
separate stale field. Use create_account_balance to set the balance
for a specific past date instead of today.
Args:
account_id: The unique ID of the account to update
name: Optional new account name
currency: Optional new account currency
balance: Optional new cash balance, recorded as today's balance-history entry
comment: Optional new note/comment
platform_id: Optional new platform ID
Returns:
Dictionary containing the updated account statustransfer_account_balance tool
Transfer cash balances between two accounts.
Args:
account_id_from: Source account ID
account_id_to: Target account ID
balance: Amount to transfer
Returns:
Dictionary containing the status/result of the transfer.create_account_balance tool
Set an account's balance for a specific date in its balance history.
This writes directly to the balance-history series that
get_account_balances returns and that get_portfolio_holdings derives
its cash figure from - it is not the same as the account's summary
balance field. Calling this again for the same account and date
updates that entry instead of duplicating it, so setting today's
balance is just this call with `date` omitted.
The balance is recorded in the account's own currency; Ghostfolio's
API does not accept a separate currency for this endpoint.
Args:
account_id: Account ID to record a balance entry for
balance: Balance value for the given date
date: Optional ISO-8601 date (defaults to today)
Returns:
Dictionary containing the created/updated balance-history entrydelete_account_balance tool
Delete a single entry from an account's balance history.
Args:
balance_id: ID of the balance-history entry to delete
Returns:
Dictionary containing the deleted balance-history entryget_orders tool
Get all activities/orders from your portfolio, optionally filtered by account.
Retrieves a list of all buy/sell orders in your portfolio, optionally
filtered by a specific account.
Args:
account_id: Optional account ID to filter orders by specific account
Returns:
Dictionary containing order data with activities and paginationcreate_activity tool
Create a single new transaction/activity.
update_activity tool
Update an existing activity/transaction.
Ghostfolio's update endpoint replaces the whole activity record, so
`type`, `symbol`, `date`, `quantity`, `unitPrice`, `currency`,
`dataSource` and `fee` are required on every request even when they
are not changing. Any left unset here (including `tags`, `account_id`
and `comment`) are backfilled from the activity's current state with a
GET before the PUT, so you only need to pass the fields you actually
want to change. If a required field can't be backfilled (Ghostfolio
redacts `quantity` and `fee` in restricted views), pass it explicitly.
A restricted view also redacts `comment`, and Ghostfolio clears the
comment whenever the update carries none, so in that case `comment`
is required too (pass an empty string to clear it).
Ghostfolio identifies the asset by `dataSource` and `symbol` together,
and the current `currency` belongs to that asset. So changing either
`symbol` or `data_source` requires passing `symbol`, `data_source` and
`currency` together; backfilling the rest from the old asset would
attach the activity to the wrong asset profile or price it in the
wrong currency. Ghostfolio ignores an asset change (without an error)
when the resulting activity is a FEE, INTEREST or LIABILITY, or a BUY
on the MANUAL data source; delete and re-create the activity instead.
The GET and PUT are separate requests, so an edit made to the same
activity in between (e.g. in the Ghostfolio UI) is overwritten for
every field not passed here.
Args:
activity_id: The unique ID of the activity to update
type: Optional new activity type
symbol: Optional new symbol (changing it requires data_source and currency)
date: Optional new date
quantity: Optional new quantity
unit_price: Optional new price per unit
currency: Optional new currency code
data_source: Optional new data source (changing it requires symbol and currency)
account_id: Optional new account ID; an empty string detaches the account
fee: Optional new fee amount
comment: Optional new comment
tags: Optional new list of tag IDs (replaces existing tags; omit to keep them)
Returns:
Dictionary containing the updated activitydelete_activity tool
Delete a single activity/transaction by its ID.
get_asset_profile tool
Get asset profile information for a specific symbol.
Retrieves detailed profile information about an asset including
company information, sector, industry, and other metadata.
Args:
data_source: Data source (e.g., 'YAHOO', 'COINGECKO', 'MANUAL')
symbol: Symbol/ticker of the asset
Returns:
Dictionary containing asset profile informationupsert_asset_profile tool
Create-or-update an asset profile.
POSTs an empty profile-data record (idempotent — Ghostfolio answers
HTTP 400 "already exists" when the profile is already there, and
HTTP 500 on some first-time-create paths while still persisting the
record, so this tolerates both). Then PATCHes metadata (name,
currency, asset class, optional sub-class, optional country and
sector allocations). PATCH is the source of truth — if the profile
doesn't exist after the POST, PATCH will surface the error. Calling
twice with the same input yields the same end state.
Args:
data_source: Data source (typically 'MANUAL')
symbol: Symbol/ticker of the asset
name: Human-readable name
currency: Currency code
asset_class: One of the Ghostfolio enum values
asset_sub_class: Optional sub-class
countries: Optional list of {code, weight} entries
sectors: Optional list of {name, weight} entries
Returns:
Dictionary containing the final profile state from the PATCH responsedelete_asset_profile tool
Delete an asset profile.
Removes the profile-data record for the given data source and symbol.
Be careful, this might delete associated activities and market data
depending on backend rules!
Args:
data_source: Data source (typically 'MANUAL')
symbol: Symbol/ticker of the asset to delete
Returns:
Dictionary containing the deletion statusget_benchmarks tool
Get all configured benchmarks.
Returns:
Dictionary containing the list of benchmarks.get_benchmark_performance tool
Compare portfolio performance against a benchmark symbol starting from a specific date.
Args:
data_source: Benchmark data source (e.g. 'YAHOO')
symbol: Benchmark symbol (e.g. 'URTH')
start_date: Comparison start date (YYYY-MM-DD)
date_range: Time range (e.g., 'max')
accounts: Comma-separated account IDs
asset_classes: Comma-separated asset classes
filter_data_source: Filter data source
filter_symbol: Filter symbol
tags: Comma-separated tags
with_excluded_accounts: Include excluded accounts
Returns:
Dictionary containing benchmark comparison performance data.get_exchange_rate tool
Get the exchange rate for a given currency symbol on a specific date.
Args:
symbol: Currency code (e.g. 'USD', 'EUR')
date: Date in YYYY-MM-DD format
Returns:
Dictionary containing the exchange rate value.export_portfolio tool
Export portfolio activities/transactions data as JSON.
Retrieves portfolio transactions with optional query filters.
Args:
accounts: Comma-separated list of account IDs
activity_ids: Comma-separated list of activity IDs
activity_types: Comma-separated list of activity types (BUY, SELL, etc.)
asset_classes: Comma-separated list of asset classes
data_source: Filter by data source
symbol: Filter by symbol/ticker
tags: Comma-separated list of tags
Returns:
Dictionary containing the exported activities list.import_transactions tool
Import transactions into your portfolio. This is a write operation.
Imports a batch of transactions (buy/sell orders) into your Ghostfolio
portfolio. This is useful for bulk importing historical data or
transactions from other platforms.
Args:
data: Transaction data. Must contain an 'activities' list with transaction objects including currency, dataSource, date (ISO-8601), fee, quantity, symbol, type, unitPrice.
Returns:
Dictionary containing import resultget_dividends_for_import tool
Fetch historical dividend data formatted for import for a specific symbol.
Args:
data_source: Data source (e.g. 'YAHOO', 'COINGECKO')
symbol: Symbol/ticker of the asset
Returns:
Dictionary containing list of dividend transactions formatted for import.get_market_data_for_asset tool
Get market data for a specific asset.
Retrieves current market data for a specific symbol including price,
volume, market cap, and other relevant market information.
Args:
data_source: Data source (e.g., 'YAHOO', 'COINGECKO', 'MANUAL')
symbol: Symbol/ticker of the asset
Returns:
Dictionary containing market data for the specified symboladd_market_data_points tool
Add one or more market data points for a specific asset.
Posts to the market-data endpoint for the given data source and
symbol. Same (symbol, date) overwrites the existing point; passing
the same input twice yields the same end state.
Args:
data_source: Data source (typically 'MANUAL')
symbol: Symbol/ticker of the asset
market_data: List of {date, marketPrice} entries
Returns:
Dictionary containing the upstream responseget_portfolio_details tool
Get comprehensive portfolio details including accounts, positions, and summary.
Retrieves a complete overview of your portfolio including account
information, current positions, performance summary, and portfolio metrics.
Returns:
Dictionary containing complete portfolio information including accounts, positions, and summaryget_dividends tool
Get dividend data grouped by time period showing dividend payments and yield.
Retrieves dividend income data grouped by the specified time period,
showing dividend payments, yield, and income patterns over time.
Args:
group_by: Grouping period: day, week, month, quarter, year
date_range: Time range for dividend data. Options: 1d, 1w, 1m, 3m, 6m, 1y, 2y, 5y, max
Returns:
Dictionary containing dividend data grouped by the specified periodget_portfolio_holdings tool
Get portfolio holdings and positions including allocations and asset breakdowns.
Retrieves current portfolio holdings including positions, allocations,
and asset breakdowns for the specified time period.
Args:
date_range: Time range for holdings data. Options: 1d, 1w, 1m, 3m, 6m, 1y, 2y, 5y, max
Returns:
Dictionary containing holdings, accounts, allocations, and range dataget_investments tool
Get investment data grouped by time period showing cash flows and contributions.
Retrieves investment activity data grouped by the specified time period,
showing cash flows, contributions, and investment patterns over time.
Args:
group_by: Grouping period: day, week, month, quarter, year
date_range: Time range for investment data. Options: 1d, 1w, 1m, 3m, 6m, 1y, 2y, 5y, max
Returns:
Dictionary containing investment data grouped by the specified periodget_portfolio_performance tool
Get portfolio performance data including returns, benchmarks, and performance metrics.
Retrieves comprehensive performance metrics for your portfolio including
returns, benchmarks, and performance comparisons over the specified time period.
Args:
date_range: Time range for performance data. Options: 1d, 1w, 1m, 3m, 6m, 1y, 2y, 5y, max
Returns:
Dictionary containing performance metrics, returns, benchmarks, and range dataget_position tool
Get position details for a specific symbol from a data source.
Retrieves detailed information about a specific position including
current value, quantity, performance, and market data.
Args:
data_source: Data source (e.g., 'YAHOO', 'COINGECKO', 'MANUAL')
symbol: Symbol/ticker of the asset
Returns:
Dictionary containing position details including symbol, quantity, value, and performanceget_symbol_data tool
Get symbol data for a specific asset from a data source.
Retrieves detailed information about a specific symbol including
current price, market data, and asset information.
Args:
data_source: Data source (e.g., 'YAHOO', 'COINGECKO', 'MANUAL')
symbol: Symbol/ticker of the asset
Returns:
Dictionary containing symbol data including price and market informationget_historical_data tool
Get historical data for a specific symbol on a specific date.
Retrieves historical market data for a symbol on a specific date,
including price and volume information.
Args:
data_source: Data source (e.g., 'YAHOO', 'COINGECKO', 'MANUAL')
symbol: Symbol/ticker of the asset
date: Date in YYYY-MM-DD format
Returns:
Dictionary containing historical data for the specified datelookup_symbols tool
Search for symbols using a query string.
Search for financial symbols, stocks, ETFs, and other assets using
a text query. Optionally include market indices in the results.
Args:
query: Search query for symbol lookup
include_indices: Include market indices in search results
Returns:
Dictionary containing search results with matching symbolsget_health tool
Get system health status.
Retrieves the health status of the Ghostfolio backend service.
This is useful to verify if the server is up and running correctly.
Returns:
Dictionary containing health status informationget_platforms tool
Get available platforms.
Retrieves a list of all available platforms (brokers, exchanges, etc.)
that can be used when tracking accounts or transactions.
Returns:
Dictionary containing available platformsget_user_info tool
Get user information and settings.
Retrieves information about the current user including settings,
preferences, and account details.
Returns:
Dictionary containing user information and settingsget_watchlist tool
Get all items in the user's watchlist.
Retrieves list of all watchlisted symbols.
Returns:
Dictionary containing the watchlist items.add_to_watchlist tool
Add a symbol to the user's watchlist.
Args:
data_source: Data source (e.g., 'YAHOO', 'COINGECKO')
symbol: Symbol/ticker of the asset
Returns:
Dictionary containing the updated watchlist item information.remove_from_watchlist tool
Remove a symbol from the user's watchlist.
Args:
data_source: Data source (e.g., 'YAHOO', 'COINGECKO')
symbol: Symbol/ticker of the asset to remove
Returns:
Dictionary containing the deletion status.What we checked
The same checks run on every server. Each line below has one of these marks:
- 8 checks: command injection, argument injection, path traversal, server-side request forgery, SQL injection, code execution, unsafe deserialization, template injectionChecked on every scan. Results in this category are published only after a person has verified them.
- Runs programs the caller choosesNo tool runs a command or program the caller supplies — 39 tool handlers traced
- Executes caller-supplied codeNo tool evaluates code the caller supplies — 39 tool handlers traced
- Reads or writes any file pathNo tool works on a file path the caller supplies without a root check — 39 tool handlers traced
- Requests any addressNo tool sends a request to an address the caller supplies — 39 tool handlers traced
- Runs caller-supplied SQLNo tool executes a query the caller supplies — 39 tool handlers traced
- Tools that start processesNot seen in the traced code of 39 capabilities; 39 more call code the scanner could not follow, where it may happen
- Tools that touch filesNot seen in the traced code of 39 capabilities; 39 more call code the scanner could not follow, where it may happen
- Tools that call the networkNot seen in the traced code of 39 capabilities; 39 more call code the scanner could not follow, where it may happen
Where the code is: 39 handlers in 13 files at commit 36130303ca02
src/ghostfolio_mcp/tools/accounts.pyget_account_balances, get_accounts, create_account, delete_account, get_account_details, update_account, transfer_account_balance, create_account_balance, delete_account_balancesrc/ghostfolio_mcp/tools/activities.pyget_orders, create_activity, update_activity, delete_activitysrc/ghostfolio_mcp/tools/assets.pyget_asset_profile, upsert_asset_profile, delete_asset_profilesrc/ghostfolio_mcp/tools/benchmarks.pyget_benchmarks, get_benchmark_performancesrc/ghostfolio_mcp/tools/exchange_rates.pyget_exchange_ratesrc/ghostfolio_mcp/tools/export.pyexport_portfoliosrc/ghostfolio_mcp/tools/imports.pyimport_transactions, get_dividends_for_importsrc/ghostfolio_mcp/tools/market_data.pyget_market_data_for_asset, add_market_data_pointssrc/ghostfolio_mcp/tools/portfolio.pyget_portfolio_details, get_dividends, get_portfolio_holdings, get_investments, get_portfolio_performance, get_positionsrc/ghostfolio_mcp/tools/symbols.pyget_symbol_data, get_historical_data, lookup_symbolssrc/ghostfolio_mcp/tools/system.pyget_health, get_platformssrc/ghostfolio_mcp/tools/user.pyget_user_infosrc/ghostfolio_mcp/tools/watchlist.pyget_watchlist, add_to_watchlist, remove_from_watchlist
- 5 checks: tool poisoning, instruction override, hidden content, exfiltration requests, metadata integrityChecked on every scan. Results in this category are published only after a person has verified them.
- Dependency manifests1 manifest: pyproject.toml
- Lockfiles checked against OSV1 file resolved and checked against the OSV database; 1 not resolved: pyproject.toml: dependency ranges declared here were not resolved against a lockfile and were not checked
- Known vulnerabilities in production dependenciesNo production dependency with a known advisory
- Known vulnerabilities in other dependenciesNo package used only for development, tests or examples has a known advisory
- MCP SDK versionfastmcp >=4.1.2,<5
- 3 checks: credential harvesting, undeclared credential access, credentials sent over the networkChecked on every scan. Results in this category are published only after a person has verified them.
- Tools that read credentialsNot seen in the traced code of 39 capabilities; 39 more call code the scanner could not follow, where it may happen
- Authentication declaredNot checked: needs the live server's tools/list (a remote server declares how clients authenticate)
- 3 checks: undeclared network access, undeclared file access, undeclared process executionChecked on every scan. Results in this category are published only after a person has verified them.
- Tool descriptions presentEvery tool has a description the model and the user can read
- Statically known namesEvery tool's name could be read from the code
- Input schemasNot checked: needs the live server's tools/list (every tool declares an input schema)
- Destructive tools annotatedNot checked: needs the live server's tools/list (tools that write, delete or run commands carry destructivehint)
Dependencies with known vulnerabilities (0 in production)
Dependency ranges were not resolved against a lockfile, so the score is capped at 7.
No known vulnerabilities in the production dependencies that could be checked.
Past security advisories
Vulnerabilities published for this server itself, from the GitHub Advisory Database.
No security advisories have been published for this server in the GitHub Advisory Database.
How it runs
| Where it runs | On your machine, started by your MCP client from this repository or its package |
|---|---|
| Transport | Streamable HTTP, SSE, stdio |
| Sign-in | not checked needs the live server |
| MCP SDK | fastmcp >=4.1.2,<5 |
| Servers in the code | 3 (Ghostfolio MCP Server, test) |
The project's own security
| Security policy | yes SECURITY.md |
|---|---|
| Private reporting | mentioned the policy names a private channel |
| Past advisories | none in the GitHub Advisory Database |
| Last push | 2026-11-14 |
| Signed releases | not checked yet |
Where it is published
| MCP Registry | io.github.mhajder/ghostfolio-mcp |
|---|---|
| Listed in | 4 catalogs (github_search, glama, mcp_registry, mcp_toplist) |
| License | AGPL-3.0 |
| Created | 2025-08-29 |
| Topics | ai ai-agents docker fastmcp finance ghostfolio investing llm mcp mcp-server |
Attack map
How the server is built and where its risky tools lead: servers, their tools, what the tools' code can do, and the traced route from a declared risky tool's argument to the operation it reaches. Click a node for details.