MCP ScannerCustom audit
All servers

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.

Packageghostfolio-mcp
Version1.8.2 in pyproject.toml
Publishermhajder community
MCP Registryio.github.mhajder/ghostfolio-mcp
Scanned2026-11-25
Scannerv1.3.0
Methodologyv1.2
Stars 22Forks 6Last push 2026-11-14
Python 100.0%by source files the scanner reads
Code safety10.0Exposure10.0Prompts10.0Supply chain7.0Secrets10.0Transparency10.0
Analysis confidence97%
How much of the server the scanner could read: tools analyzed, files parsed, limits hit.
Code Safetynothing published yet10.0/10

Paths from tool input into commands, SQL, files and URLs

Capability Exposure10.0/10Good

How much power the tools give an agent over the machine

Prompt Integritynothing published yet10.0/10

Hidden instructions and poisoning in text for the model

Supply Chain7.0/10Fair

Known vulnerabilities in the packages the server uses

Secrets & Credentialsnothing published yet10.0/10

How the server reads credentials and where they can go

Behavior Transparencynothing published yet10.0/10

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.

Hosts written in the code

The literal addresses the tools' requests name.

  • None: no request names a fixed host.
Addresses from settings

Constants or settings that start an address; the value comes from configuration.

  • None seen.
Secrets it reads

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 response
add_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 information
create_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 entry
create_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 status
delete_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 entry
delete_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 status
export_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 information
get_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 profile
get_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 value
get_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 information
get_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 period
get_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 information
get_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 date
get_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 period
get_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 symbol
get_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 pagination
get_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 platforms
get_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 summary
get_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 data
get_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 data
get_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 performance
get_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 information
get_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 settings
get_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 result
lookup_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 symbols
remove_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 status
update_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 activity
upsert_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 response

Text 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 information
get_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 value
create_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 information
delete_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 status
get_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 profile
update_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 status
transfer_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 entry
delete_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 entry
get_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 pagination
create_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 activity
delete_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 information
upsert_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 response
delete_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 status
get_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 result
get_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 symbol
add_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 response
get_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 summary
get_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 period
get_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 data
get_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 period
get_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 data
get_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 performance
get_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 information
get_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 date
lookup_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 symbols
get_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 information
get_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 platforms
get_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 settings
get_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:

FoundA published issue such as a risky tool or a CVE
PassedWe ran the check on this server and found nothing
After reviewChecked; we publish it once a person verifies it
Partly tracedRan, but the scanner could not follow every path to its end
FactWhat the code does, not a judgement either way
Not checkedThe scanner had nothing to read for it, or it needs the live server
Code Safety10.0
  • 8 checks: command injection, argument injection, path traversal, server-side request forgery, SQL injection, code execution, unsafe deserialization, template injection
    Checked on every scan. Results in this category are published only after a person has verified them.
Capability Exposure10.0
  • Runs programs the caller chooses
    No tool runs a command or program the caller supplies — 39 tool handlers traced
  • Executes caller-supplied code
    No tool evaluates code the caller supplies — 39 tool handlers traced
  • Reads or writes any file path
    No tool works on a file path the caller supplies without a root check — 39 tool handlers traced
  • Requests any address
    No tool sends a request to an address the caller supplies — 39 tool handlers traced
  • Runs caller-supplied SQL
    No tool executes a query the caller supplies — 39 tool handlers traced
  • Tools that start processes
    Not seen in the traced code of 39 capabilities; 39 more call code the scanner could not follow, where it may happen
  • Tools that touch files
    Not 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 network
    Not 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
Prompt Integrity10.0
  • 5 checks: tool poisoning, instruction override, hidden content, exfiltration requests, metadata integrity
    Checked on every scan. Results in this category are published only after a person has verified them.
Supply Chain7.0
  • Dependency manifests
    1 manifest: pyproject.toml
  • Lockfiles checked against OSV
    1 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 dependencies
    No production dependency with a known advisory
  • Known vulnerabilities in other dependencies
    No package used only for development, tests or examples has a known advisory
  • MCP SDK version
    fastmcp >=4.1.2,<5
Secrets & Credentials10.0
  • 3 checks: credential harvesting, undeclared credential access, credentials sent over the network
    Checked on every scan. Results in this category are published only after a person has verified them.
  • Tools that read credentials
    Not seen in the traced code of 39 capabilities; 39 more call code the scanner could not follow, where it may happen
  • Authentication declared
    Not checked: needs the live server's tools/list (a remote server declares how clients authenticate)
Behavior Transparency10.0
  • 3 checks: undeclared network access, undeclared file access, undeclared process execution
    Checked on every scan. Results in this category are published only after a person has verified them.
  • Tool descriptions present
    Every tool has a description the model and the user can read
  • Statically known names
    Every tool's name could be read from the code
  • Input schemas
    Not checked: needs the live server's tools/list (every tool declares an input schema)
  • Destructive tools annotated
    Not 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 runsOn your machine, started by your MCP client from this repository or its package
TransportStreamable HTTP, SSE, stdio
Sign-innot checked needs the live server
MCP SDKfastmcp >=4.1.2,<5
Servers in the code3 (Ghostfolio MCP Server, test)

The project's own security

Security policyyes SECURITY.md
Private reportingmentioned the policy names a private channel
Past advisoriesnone in the GitHub Advisory Database
Last push2026-11-14
Signed releasesnot checked yet

Where it is published

MCP Registryio.github.mhajder/ghostfolio-mcp
Listed in4 catalogs (github_search, glama, mcp_registry, mcp_toplist)
LicenseAGPL-3.0
Created2025-08-29
Topicsai 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.

Request a scan or an audit

Tell us about your server. We reply within 5 working days.

What do you need? *

We use these details only to answer you.