Ghostfolio MCP server
MCP server for Ghostfolio portfolio management and financial data access
19 stars372 downloads/wk
Reviews
Write oneNobody 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 postsRead from the package source without running it. The installed server may list more.
add_market_data_pointsAdd one or more market data points for a specific asset.
add_to_watchlistAdd a symbol to the user's watchlist.
create_accountwrite actionCreate a new account in your portfolio.
create_account_balancewrite actionSet an account's balance for a specific date in its balance history.
create_activitywrite actionCreate a single new transaction/activity.
delete_accountwrite actionDelete an existing account from your portfolio.
delete_account_balancewrite actionDelete a single entry from an account's balance history.
delete_activitywrite actionDelete a single activity/transaction by its ID.
delete_asset_profilewrite actionDelete an asset profile.
export_portfolioExport portfolio activities/transactions data as JSON.
get_account_balancesGet account balances for a specific account.
get_account_detailsGet details for a specific account.
get_accountsGet all accounts in your portfolio including account types and balances.
get_asset_profileGet asset profile information for a specific symbol.
get_benchmark_performanceCompare portfolio performance against a benchmark symbol starting from a specific date.
get_benchmarksGet all configured benchmarks.
get_dividendsGet dividend data grouped by time period showing dividend payments and yield.
get_dividends_for_importFetch historical dividend data formatted for import for a specific symbol.
get_exchange_rateGet the exchange rate for a given currency symbol on a specific date.
get_healthGet system health status.
get_historical_dataGet historical data for a specific symbol on a specific date.
get_investmentsGet investment data grouped by time period showing cash flows and contributions.
get_market_data_for_assetGet market data for a specific asset.
get_ordersGet all activities/orders from your portfolio, optionally filtered by account.
get_platformsGet available platforms.
get_portfolio_detailsGet comprehensive portfolio details including accounts, positions, and summary.
get_portfolio_holdingsGet portfolio holdings and positions including allocations and asset breakdowns.
get_portfolio_performanceGet portfolio performance data including returns, benchmarks, and performance metrics.
get_positionGet position details for a specific symbol from a data source.
get_symbol_dataGet symbol data for a specific asset from a data source.
get_user_infoGet user information and settings.
get_watchlistGet all items in the user's watchlist.
import_transactionsImport transactions into your portfolio. This is a write operation.
lookup_symbolsSearch for symbols using a query string.
remove_from_watchlistwrite actionRemove a symbol from the user's watchlist.
transfer_account_balancewrite actionTransfer cash balances between two accounts.
update_accountwrite actionUpdate 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
- 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
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-mcpRemember 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-tokenFor more details, visit: https://pypi.org/project/ghostfolio-mcp/
Install from Source
- Clone the repository:
git clone https://github.com/mhajder/ghostfolio-mcp.git
cd ghostfolio-mcp- Install dependencies:
# Using UV (recommended)
uv sync
# Or using pip
pip install -e .- Configure environment variables:
cp .env.example .env
# Edit .env with your Ghostfolio URL and token- Run the server:
# Using UV (recommended)
uv run ghostfolio-mcp
# Or using the installed command directly
ghostfolio-mcpDevelopment 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 installConfiguration
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-19downgradeA → Bscore 83
Install directly
claude mcp add ghostfolio-mcp -- uvx ghostfolio-mcp
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.