Ghostfolio MCP
v1.9.0MCP server for Ghostfolio portfolio management and financial data access
Values you need
| Variable | What it is | |
|---|---|---|
GHOSTFOLIO_URL | required | Ghostfolio base URL (e.g., https://domain.tld:3333) |
GHOSTFOLIO_TOKEN | required secret | Ghostfolio API token for authentication |
GHOSTFOLIO_VERIFY_SSL | optional | Verify SSL certificates (true/false) Default: true |
GHOSTFOLIO_TIMEOUT | optional | Request timeout in seconds Default: 30 |
READ_ONLY_MODE | optional | Enable read-only mode to restrict write operations Default: false |
GHOSTFOLIO_DISABLED_TAGS | optional | Comma-separated list of tags to disable tools for |
LOG_LEVEL | optional | Logging level (DEBUG, INFO, WARNING, ERROR, CRITICAL) Default: INFO |
RATE_LIMIT_ENABLED | optional | Enable rate limiting Default: false |
RATE_LIMIT_MAX_REQUESTS | optional | Maximum requests per rate limit window Default: 60 |
RATE_LIMIT_WINDOW_MINUTES | optional | Rate limit window in minutes Default: 1 |
TOOL_SEARCH_ENABLED | optional | Enable FastMCP tool search transform Default: false |
TOOL_SEARCH_STRATEGY | optional | Tool search strategy (bm25 or regex) Default: bm25 |
TOOL_SEARCH_MAX_RESULTS | optional | Maximum tool search results returned by search_tools Default: 5 |
MCP_HTTP_PORT | optional | Port for HTTP server (default: 8000) Default: 8000 |
PyPI (uvx) discovery passed
Requires uv (https://docs.astral.sh/uv/)
Run in a terminal
claude mcp add ghostfolio-mcp -e 'GHOSTFOLIO_TOKEN=<GHOSTFOLIO_TOKEN>' -e 'GHOSTFOLIO_URL=<GHOSTFOLIO_URL>' -- uvx ghostfolio-mcp==1.9.0Add to
claude_desktop_config.json{
"mcpServers": {
"ghostfolio-mcp": {
"args": [
"ghostfolio-mcp==1.9.0"
],
"command": "uvx",
"env": {
"GHOSTFOLIO_TOKEN": "<GHOSTFOLIO_TOKEN>",
"GHOSTFOLIO_URL": "<GHOSTFOLIO_URL>"
}
}
}
}Add to
~/.cursor/mcp.json{
"mcpServers": {
"ghostfolio-mcp": {
"args": [
"ghostfolio-mcp==1.9.0"
],
"command": "uvx",
"env": {
"GHOSTFOLIO_TOKEN": "<GHOSTFOLIO_TOKEN>",
"GHOSTFOLIO_URL": "<GHOSTFOLIO_URL>"
}
}
}
}Add to
.vscode/mcp.json{
"inputs": [
{
"description": "GHOSTFOLIO_TOKEN",
"id": "ghostfolio-token",
"password": true,
"type": "promptString"
},
{
"description": "GHOSTFOLIO_URL",
"id": "ghostfolio-url",
"password": true,
"type": "promptString"
}
],
"servers": {
"ghostfolio-mcp": {
"args": [
"ghostfolio-mcp==1.9.0"
],
"command": "uvx",
"env": {
"GHOSTFOLIO_TOKEN": "${input:ghostfolio-token}",
"GHOSTFOLIO_URL": "${input:ghostfolio-url}"
},
"type": "stdio"
}
}
}Add to
~/.codex/config.toml[mcp_servers.ghostfolio-mcp]
command = "uvx"
args = ["ghostfolio-mcp==1.9.0"]
env = { "GHOSTFOLIO_TOKEN" = "<GHOSTFOLIO_TOKEN>", "GHOSTFOLIO_URL" = "<GHOSTFOLIO_URL>" }For AI agents
- Ask the user for: GHOSTFOLIO_URL, GHOSTFOLIO_TOKEN. Never invent or guess these values; secrets go into the client config, not into chat logs.
- Pick the user's MCP client and apply the matching config from the first install method (it is the one verified by the smoke test when available).
- Restart or reload the client so it starts the server.
- Verify: the server should expose these tools: get_account_balances, get_accounts, create_account, delete_account, get_account_details, update_account, transfer_account_balance, create_account_balance, ….
- If it fails, check that the required runtime is installed (uv (https://docs.astral.sh/uv/)) and that the values above are set.
Machine-readable: install.md · manifest.json