Ghostfolio MCP

v1.9.0
io.github.mhajder/ghostfolio-mcp Checked 6 hours ago Published 3 days ago

MCP server for Ghostfolio portfolio management and financial data access

Values you need

VariableWhat it is
GHOSTFOLIO_URLrequired Ghostfolio base URL (e.g., https://domain.tld:3333)
GHOSTFOLIO_TOKENrequired secret Ghostfolio API token for authentication
GHOSTFOLIO_VERIFY_SSLoptional Verify SSL certificates (true/false) Default: true
GHOSTFOLIO_TIMEOUToptional Request timeout in seconds Default: 30
READ_ONLY_MODEoptional Enable read-only mode to restrict write operations Default: false
GHOSTFOLIO_DISABLED_TAGSoptional Comma-separated list of tags to disable tools for
LOG_LEVELoptional Logging level (DEBUG, INFO, WARNING, ERROR, CRITICAL) Default: INFO
RATE_LIMIT_ENABLEDoptional Enable rate limiting Default: false
RATE_LIMIT_MAX_REQUESTSoptional Maximum requests per rate limit window Default: 60
RATE_LIMIT_WINDOW_MINUTESoptional Rate limit window in minutes Default: 1
TOOL_SEARCH_ENABLEDoptional Enable FastMCP tool search transform Default: false
TOOL_SEARCH_STRATEGYoptional Tool search strategy (bm25 or regex) Default: bm25
TOOL_SEARCH_MAX_RESULTSoptional Maximum tool search results returned by search_tools Default: 5
MCP_HTTP_PORToptional 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.0
Add 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

  1. Ask the user for: GHOSTFOLIO_URL, GHOSTFOLIO_TOKEN. Never invent or guess these values; secrets go into the client config, not into chat logs.
  2. 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).
  3. Restart or reload the client so it starts the server.
  4. 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, ….
  5. 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