Install
Add to ~/Library/Application Support/Claude/claude_desktop_config.json
Windows / Linux path
%APPDATA%\Claude\claude_desktop_config.json~/.config/Claude/claude_desktop_config.json{
"mcpServers": {
"io-github-mhajder-ghostfolio-mcp": {
"command": "uvx",
"args": [
"ghostfolio-mcp"
],
"env": {
"GHOSTFOLIO_URL": "<VALUE>",
"GHOSTFOLIO_TOKEN": "<YOUR_VALUE>",
"GHOSTFOLIO_VERIFY_SSL": "true",
"GHOSTFOLIO_TIMEOUT": "30",
"READ_ONLY_MODE": "false",
"GHOSTFOLIO_DISABLED_TAGS": "",
"LOG_LEVEL": "INFO",
"RATE_LIMIT_ENABLED": "false",
"RATE_LIMIT_MAX_REQUESTS": "100",
"RATE_LIMIT_WINDOW_MINUTES": "1",
"TOOL_SEARCH_ENABLED": "false",
"TOOL_SEARCH_STRATEGY": "bm25",
"TOOL_SEARCH_MAX_RESULTS": "5",
"SENTRY_DSN": "<VALUE>",
"MCP_HTTP_HOST": "0.0.0.0",
"MCP_HTTP_PORT": "8000",
"MCP_TRANSPORT": "stdio",
"SENTRY_RELEASE": "<VALUE>",
"SENTRY_ENABLE_LOGS": "true",
"SENTRY_ENVIRONMENT": "<VALUE>",
"MCP_HTTP_BEARER_TOKEN": "<VALUE>",
"SENTRY_SEND_DEFAULT_PII": "true",
"SENTRY_PROFILE_LIFECYCLE": "trace",
"SENTRY_TRACES_SAMPLE_RATE": "1.0",
"SENTRY_PROFILE_SESSION_SAMPLE_RATE": "1.0"
}
}
}
}
Restart Claude Desktop to activate the new server.
Add to .cursor/mcp.json (project) or ~/.cursor/mcp.json (global)
Windows / Linux path
.cursor\mcp.json (project) or %USERPROFILE%\.cursor\mcp.json (global).cursor/mcp.json (project) or ~/.cursor/mcp.json (global){
"mcpServers": {
"io-github-mhajder-ghostfolio-mcp": {
"command": "uvx",
"args": [
"ghostfolio-mcp"
],
"env": {
"GHOSTFOLIO_URL": "<VALUE>",
"GHOSTFOLIO_TOKEN": "<YOUR_VALUE>",
"GHOSTFOLIO_VERIFY_SSL": "true",
"GHOSTFOLIO_TIMEOUT": "30",
"READ_ONLY_MODE": "false",
"GHOSTFOLIO_DISABLED_TAGS": "",
"LOG_LEVEL": "INFO",
"RATE_LIMIT_ENABLED": "false",
"RATE_LIMIT_MAX_REQUESTS": "100",
"RATE_LIMIT_WINDOW_MINUTES": "1",
"TOOL_SEARCH_ENABLED": "false",
"TOOL_SEARCH_STRATEGY": "bm25",
"TOOL_SEARCH_MAX_RESULTS": "5",
"SENTRY_DSN": "<VALUE>",
"MCP_HTTP_HOST": "0.0.0.0",
"MCP_HTTP_PORT": "8000",
"MCP_TRANSPORT": "stdio",
"SENTRY_RELEASE": "<VALUE>",
"SENTRY_ENABLE_LOGS": "true",
"SENTRY_ENVIRONMENT": "<VALUE>",
"MCP_HTTP_BEARER_TOKEN": "<VALUE>",
"SENTRY_SEND_DEFAULT_PII": "true",
"SENTRY_PROFILE_LIFECYCLE": "trace",
"SENTRY_TRACES_SAMPLE_RATE": "1.0",
"SENTRY_PROFILE_SESSION_SAMPLE_RATE": "1.0"
}
}
}
}
Cursor usually picks up config changes automatically; if the server does not appear, reload the window.
Add to .mcp.json (project) or ~/.claude.json (global)
Windows / Linux path
.mcp.json (project) or %USERPROFILE%\.claude.json (global).mcp.json (project) or ~/.claude.json (global){
"mcpServers": {
"io-github-mhajder-ghostfolio-mcp": {
"command": "uvx",
"args": [
"ghostfolio-mcp"
],
"env": {
"GHOSTFOLIO_URL": "<VALUE>",
"GHOSTFOLIO_TOKEN": "<YOUR_VALUE>",
"GHOSTFOLIO_VERIFY_SSL": "true",
"GHOSTFOLIO_TIMEOUT": "30",
"READ_ONLY_MODE": "false",
"GHOSTFOLIO_DISABLED_TAGS": "",
"LOG_LEVEL": "INFO",
"RATE_LIMIT_ENABLED": "false",
"RATE_LIMIT_MAX_REQUESTS": "100",
"RATE_LIMIT_WINDOW_MINUTES": "1",
"TOOL_SEARCH_ENABLED": "false",
"TOOL_SEARCH_STRATEGY": "bm25",
"TOOL_SEARCH_MAX_RESULTS": "5",
"SENTRY_DSN": "<VALUE>",
"MCP_HTTP_HOST": "0.0.0.0",
"MCP_HTTP_PORT": "8000",
"MCP_TRANSPORT": "stdio",
"SENTRY_RELEASE": "<VALUE>",
"SENTRY_ENABLE_LOGS": "true",
"SENTRY_ENVIRONMENT": "<VALUE>",
"MCP_HTTP_BEARER_TOKEN": "<VALUE>",
"SENTRY_SEND_DEFAULT_PII": "true",
"SENTRY_PROFILE_LIFECYCLE": "trace",
"SENTRY_TRACES_SAMPLE_RATE": "1.0",
"SENTRY_PROFILE_SESSION_SAMPLE_RATE": "1.0"
}
}
}
}
The server will be available in the next Claude Code session.
Add to .vscode/mcp.json
Windows / Linux path
.vscode\mcp.json.vscode/mcp.json{
"servers": {
"io-github-mhajder-ghostfolio-mcp": {
"command": "uvx",
"args": [
"ghostfolio-mcp"
],
"env": {
"GHOSTFOLIO_URL": "<VALUE>",
"GHOSTFOLIO_TOKEN": "<YOUR_VALUE>",
"GHOSTFOLIO_VERIFY_SSL": "true",
"GHOSTFOLIO_TIMEOUT": "30",
"READ_ONLY_MODE": "false",
"GHOSTFOLIO_DISABLED_TAGS": "",
"LOG_LEVEL": "INFO",
"RATE_LIMIT_ENABLED": "false",
"RATE_LIMIT_MAX_REQUESTS": "100",
"RATE_LIMIT_WINDOW_MINUTES": "1",
"TOOL_SEARCH_ENABLED": "false",
"TOOL_SEARCH_STRATEGY": "bm25",
"TOOL_SEARCH_MAX_RESULTS": "5",
"SENTRY_DSN": "<VALUE>",
"MCP_HTTP_HOST": "0.0.0.0",
"MCP_HTTP_PORT": "8000",
"MCP_TRANSPORT": "stdio",
"SENTRY_RELEASE": "<VALUE>",
"SENTRY_ENABLE_LOGS": "true",
"SENTRY_ENVIRONMENT": "<VALUE>",
"MCP_HTTP_BEARER_TOKEN": "<VALUE>",
"SENTRY_SEND_DEFAULT_PII": "true",
"SENTRY_PROFILE_LIFECYCLE": "trace",
"SENTRY_TRACES_SAMPLE_RATE": "1.0",
"SENTRY_PROFILE_SESSION_SAMPLE_RATE": "1.0"
}
}
}
}
Reload the VS Code window to activate.
Add to ~/.codeium/windsurf/mcp_config.json
Windows / Linux path
%USERPROFILE%\.codeium\windsurf\mcp_config.json~/.codeium/windsurf/mcp_config.json{
"mcpServers": {
"io-github-mhajder-ghostfolio-mcp": {
"command": "uvx",
"args": [
"ghostfolio-mcp"
],
"env": {
"GHOSTFOLIO_URL": "<VALUE>",
"GHOSTFOLIO_TOKEN": "<YOUR_VALUE>",
"GHOSTFOLIO_VERIFY_SSL": "true",
"GHOSTFOLIO_TIMEOUT": "30",
"READ_ONLY_MODE": "false",
"GHOSTFOLIO_DISABLED_TAGS": "",
"LOG_LEVEL": "INFO",
"RATE_LIMIT_ENABLED": "false",
"RATE_LIMIT_MAX_REQUESTS": "100",
"RATE_LIMIT_WINDOW_MINUTES": "1",
"TOOL_SEARCH_ENABLED": "false",
"TOOL_SEARCH_STRATEGY": "bm25",
"TOOL_SEARCH_MAX_RESULTS": "5",
"SENTRY_DSN": "<VALUE>",
"MCP_HTTP_HOST": "0.0.0.0",
"MCP_HTTP_PORT": "8000",
"MCP_TRANSPORT": "stdio",
"SENTRY_RELEASE": "<VALUE>",
"SENTRY_ENABLE_LOGS": "true",
"SENTRY_ENVIRONMENT": "<VALUE>",
"MCP_HTTP_BEARER_TOKEN": "<VALUE>",
"SENTRY_SEND_DEFAULT_PII": "true",
"SENTRY_PROFILE_LIFECYCLE": "trace",
"SENTRY_TRACES_SAMPLE_RATE": "1.0",
"SENTRY_PROFILE_SESSION_SAMPLE_RATE": "1.0"
}
}
}
}
Restart Windsurf (or refresh its MCP servers panel) to activate the new server.
Windsurf Next uses ~/.codeium/windsurf-next/mcp_config.json. Devin Desktop (the Windsurf rebrand) uses ~/.config/devin/mcp_config.json and imports the Windsurf file.
Add to ~/Library/Application Support/Code/User/globalStorage/saoudrizwan.claude-dev/settings/cline_mcp_settings.json
Windows / Linux path
%APPDATA%\Code\User\globalStorage\saoudrizwan.claude-dev\settings\cline_mcp_settings.json~/.config/Code/User/globalStorage/saoudrizwan.claude-dev/settings/cline_mcp_settings.json{
"mcpServers": {
"io-github-mhajder-ghostfolio-mcp": {
"command": "uvx",
"args": [
"ghostfolio-mcp"
],
"env": {
"GHOSTFOLIO_URL": "<VALUE>",
"GHOSTFOLIO_TOKEN": "<YOUR_VALUE>",
"GHOSTFOLIO_VERIFY_SSL": "true",
"GHOSTFOLIO_TIMEOUT": "30",
"READ_ONLY_MODE": "false",
"GHOSTFOLIO_DISABLED_TAGS": "",
"LOG_LEVEL": "INFO",
"RATE_LIMIT_ENABLED": "false",
"RATE_LIMIT_MAX_REQUESTS": "100",
"RATE_LIMIT_WINDOW_MINUTES": "1",
"TOOL_SEARCH_ENABLED": "false",
"TOOL_SEARCH_STRATEGY": "bm25",
"TOOL_SEARCH_MAX_RESULTS": "5",
"SENTRY_DSN": "<VALUE>",
"MCP_HTTP_HOST": "0.0.0.0",
"MCP_HTTP_PORT": "8000",
"MCP_TRANSPORT": "stdio",
"SENTRY_RELEASE": "<VALUE>",
"SENTRY_ENABLE_LOGS": "true",
"SENTRY_ENVIRONMENT": "<VALUE>",
"MCP_HTTP_BEARER_TOKEN": "<VALUE>",
"SENTRY_SEND_DEFAULT_PII": "true",
"SENTRY_PROFILE_LIFECYCLE": "trace",
"SENTRY_TRACES_SAMPLE_RATE": "1.0",
"SENTRY_PROFILE_SESSION_SAMPLE_RATE": "1.0"
}
}
}
}
Cline reloads cline_mcp_settings.json automatically; if the server does not appear, reload the VS Code window.
Open it from Cline's MCP Servers panel → Configure. Roo Code uses a different file and format.
Configuration
Environment variables this server reads. Secrets stay on your machine.
| Name | Required | Description |
|---|---|---|
| GHOSTFOLIO_URL | Yes | The URL of your Ghostfolio instance (e.g., https://domain.tld:3333) |
| GHOSTFOLIO_TOKEN secret | Yes | Your Ghostfolio API token |
| GHOSTFOLIO_VERIFY_SSL | No | Enable SSL certificate verification Default: true |
| GHOSTFOLIO_TIMEOUT | No | Connection timeout in seconds Default: 30 |
| READ_ONLY_MODE | No | Set to true to disable all write operations Default: false |
| GHOSTFOLIO_DISABLED_TAGS | No | Comma-separated list of tags to disable tools for (e.g., portfolio,symbol) |
| LOG_LEVEL | No | Logging level (e.g., DEBUG, INFO, WARNING, ERROR) Default: INFO |
| RATE_LIMIT_ENABLED | No | Set to true to enable rate limiting Default: false |
| RATE_LIMIT_MAX_REQUESTS | No | Maximum requests allowed per rate limit window Default: 100 |
| RATE_LIMIT_WINDOW_MINUTES | No | Rate limit window size in minutes Default: 1 |
| TOOL_SEARCH_ENABLED | No | Set to true to replace full tool listings with search_tools + call_tool Default: false |
| TOOL_SEARCH_STRATEGY | No | Search strategy: bm25 (natural language) or regex (pattern match) Default: bm25 |
| TOOL_SEARCH_MAX_RESULTS | No | Maximum number of tools returned by search_tools Default: 5 |
| SENTRY_DSN | No | Sentry DSN for error tracking and performance monitoring |
| MCP_HTTP_HOST | No | Host to bind the HTTP server (used when MCP_TRANSPORT=sse or http) Default: 0.0.0.0 |
| MCP_HTTP_PORT | No | Port to bind the HTTP server Default: 8000 |
| MCP_TRANSPORT | No | Transport type: stdio, sse, or http Default: stdio |
| SENTRY_RELEASE | No | Release version (auto-detected if not set) |
| SENTRY_ENABLE_LOGS | No | Enable log capture as breadcrumbs and events Default: true |
| SENTRY_ENVIRONMENT | No | Environment name (e.g., production, staging) |
| MCP_HTTP_BEARER_TOKEN | No | Optional bearer token for authentication on HTTP transports |
| SENTRY_SEND_DEFAULT_PII | No | Include personally identifiable information in Sentry events Default: true |
| SENTRY_PROFILE_LIFECYCLE | No | Profiling lifecycle mode: all, continuation, or trace Default: trace |
| SENTRY_TRACES_SAMPLE_RATE | No | Performance monitoring sample rate (0.0-1.0) Default: 1.0 |
| SENTRY_PROFILE_SESSION_SAMPLE_RATE | No | Continuous profiling sample rate (0.0-1.0) Default: 1.0 |