Mmcp.market

Ghostfolio MCP server

by mhajder·io.github.mhajder/ghostfolio-mcp·v1.7.0

MCP server for Ghostfolio portfolio management and financial data access

B83/100grade B
What users say
No reviews yet
Be the first
Safety scan
B83/100

full report

Adoption
Growing

19 stars372 downloads/wk

Reviews

Write one

Nobody has reviewed Ghostfolio MCP yet.

If you have run it, two minutes of your experience saves the next person an afternoon.

Ghostfolio MCP tools (38, 10 write)

write = sends, deletes, buys or posts

Read from the package source without running it. The installed server may list more.

  • add_market_data_points

    Add one or more market data points for a specific asset.

  • add_to_watchlist

    Add a symbol to the user's watchlist.

  • create_accountwrite action

    Create a new account in your portfolio.

  • create_account_balancewrite action

    Set an account's balance for a specific date in its balance history.

  • create_activitywrite action

    Create a single new transaction/activity.

  • delete_accountwrite action

    Delete an existing account from your portfolio.

  • delete_account_balancewrite action

    Delete a single entry from an account's balance history.

  • delete_activitywrite action

    Delete a single activity/transaction by its ID.

  • delete_asset_profilewrite action

    Delete an asset profile.

  • export_portfolio

    Export portfolio activities/transactions data as JSON.

  • get_account_balances

    Get account balances for a specific account.

  • get_account_details

    Get details for a specific account.

  • get_accounts

    Get all accounts in your portfolio including account types and balances.

  • get_asset_profile

    Get asset profile information for a specific symbol.

  • get_benchmark_performance

    Compare portfolio performance against a benchmark symbol starting from a specific date.

  • get_benchmarks

    Get all configured benchmarks.

  • get_dividends

    Get dividend data grouped by time period showing dividend payments and yield.

  • get_dividends_for_import

    Fetch historical dividend data formatted for import for a specific symbol.

  • get_exchange_rate

    Get the exchange rate for a given currency symbol on a specific date.

  • get_health

    Get system health status.

  • get_historical_data

    Get historical data for a specific symbol on a specific date.

  • get_investments

    Get investment data grouped by time period showing cash flows and contributions.

  • get_market_data_for_asset

    Get market data for a specific asset.

  • get_orders

    Get all activities/orders from your portfolio, optionally filtered by account.

  • get_platforms

    Get available platforms.

  • get_portfolio_details

    Get comprehensive portfolio details including accounts, positions, and summary.

  • get_portfolio_holdings

    Get portfolio holdings and positions including allocations and asset breakdowns.

  • get_portfolio_performance

    Get portfolio performance data including returns, benchmarks, and performance metrics.

  • get_position

    Get position details for a specific symbol from a data source.

  • get_symbol_data

    Get symbol data for a specific asset from a data source.

  • get_user_info

    Get user information and settings.

  • get_watchlist

    Get all items in the user's watchlist.

  • import_transactions

    Import transactions into your portfolio. This is a write operation.

  • lookup_symbols

    Search for symbols using a query string.

  • remove_from_watchlistwrite action

    Remove a symbol from the user's watchlist.

  • transfer_account_balancewrite action

    Transfer cash balances between two accounts.

  • update_accountwrite action

    Update settings or details of an existing account.

  • upsert_asset_profile

Public scan report

scanner v0.1.5 · 2026-09-19 · same rubric, same numbers if you re-run it

no findings
  • Code scan25 source files scanned; 25 source files scanned25/25
  • Live reliabilityno gateway calls yet and no remote to proben/a
  • Tool poisoningtools not inspected (local package is not executed); not countedn/a
  • Auth qualitystatic API keys via environment variables6/15
  • Maintenancelast push 1 days ago15/15
  • Maintainer identityregistry namespace matches repository owner; GitHub account older than a year8/10
Overall 83/100. Components that don't apply are left out of the denominator. Any critical finding is an F.RubricAppeal a findingJSON

What the publisher says

From the Ghostfolio MCP repository's README, as published. We do not edit it. Read it on GitHub

Ghostfolio MCP Server

<!-- mcp-name: io.github.mhajder/ghostfolio-mcp -->

Ghostfolio MCP Server is a Python-based Model Context Protocol (MCP) server designed to provide advanced, programmable access to Ghostfolio portfolio management and financial data. It exposes a modern API for querying, analyzing, and managing your investment portfolio through Ghostfolio's comprehensive features. The server supports both read and write operations, robust security features, and is suitable for integration with automation tools, financial dashboards, and custom portfolio management applications.

Features

Core Features

  • Query portfolio performance, holdings, and positions with flexible time ranges
  • Retrieve comprehensive investment data including dividends, returns, and allocations
  • Access detailed market data, asset profiles, and historical price information
  • Monitor portfolio metrics, benchmarks, and performance comparisons
  • Track orders, transactions, and account balances across multiple accounts
  • Search and lookup financial symbols, stocks, ETFs, and other assets
  • Get user information, settings, and account details

Management Operations

  • Create and manage investment accounts with different currencies and platforms
  • Create, delete, and manage individual transactions and activities
  • Import transactions and historical data from other platforms
  • Configure read-only mode to restrict all write operations for safe monitoring
  • Support for bulk transaction imports and portfolio data management
  • Monitor system health and platform availability

Advanced Capabilities

  • Rate limiting and API security features
  • Real-time portfolio monitoring and performance tracking
  • Comprehensive logging and audit trails
  • SSL/TLS support and configurable timeouts
  • Extensible with custom middlewares and tag-based tool filtering
  • Optional tool-search transform for large tool catalogs
  • Bearer token or OIDC/OAuth authentication for HTTP transports

Installation

Prerequisites

  • Python 3.11 or higher
  • Access to a Ghostfolio instance
  • Valid Ghostfolio API token

Quick Install from PyPI

The easiest way to get started is to install from PyPI:

# Using UV (recommended)
uvx ghostfolio-mcp

# Or using pip
pip install ghostfolio-mcp

Remember to configure the environment variables for your Ghostfolio instance before running the server:

# Create environment configuration
export GHOSTFOLIO_URL=https://domain.tld:3333
export GHOSTFOLIO_TOKEN=your-ghostfolio-token

For more details, visit: https://pypi.org/project/ghostfolio-mcp/

Install from Source

  1. Clone the repository:
git clone https://github.com/mhajder/ghostfolio-mcp.git
cd ghostfolio-mcp
  1. Install dependencies:
# Using UV (recommended)
uv sync

# Or using pip
pip install -e .
  1. Configure environment variables:
cp .env.example .env
# Edit .env with your Ghostfolio URL and token
  1. Run the server:
# Using UV (recommended)
uv run ghostfolio-mcp

# Or using the installed command directly
ghostfolio-mcp

Development Setup

For development with additional tools:

# Clone and install with development dependencies
git clone https://github.com/mhajder/ghostfolio-mcp.git
cd ghostfolio-mcp
uv sync --group dev

# Run tests
uv run pytest

# Run with coverage
uv run pytest --cov=src/

# Run linting and formatting
uv run ruff check .
uv run ruff format .

# Run type checking
uv run ty check .

# Setup prek hooks
uv run prek install

Configuration

Environment Variables

# Ghostfolio Connection Details
GHOSTFOLIO_URL=https://domain.tld:3333
GHOSTFOLIO_TOKEN=your-ghostfolio-token

# SSL Configuration
GHOSTFOLIO_VERIFY_SSL=true
GHOSTFOLIO_TIMEOUT=30

# Read-Only Mode
# Set READ_ONLY_MODE true to disable all write operations (put, post, delete)
READ_ONLY_MODE=false

# Disabled Tags
# Comma-separated list of tags to disable tools for (empty by default)

Shortened. The full README is on GitHub.

Nothing above is checked by us. What we check is on the safety report.

Grade history

  • 2026-09-19downgradeABscore 83

Install directly

claude mcp add ghostfolio-mcp -- uvx ghostfolio-mcp
Add to Cursor

Ghostfolio MCP: common questions

Is Ghostfolio MCP server safe?
Mostly: it is graded B (83/100). Read the Ghostfolio MCP safety report
How do I install Ghostfolio MCP?
It runs on your machine. Copy the Claude Code, Claude Desktop or Cursor config from the install section.
Does Ghostfolio MCP need an API key?
Yes. The registry entry asks for GHOSTFOLIO_TOKEN.
Is Ghostfolio MCP maintained?
The last commit was 2 days ago (2026-09-18). The latest release is v1.7.0.

More from mhajder