Skip to content

Environment variables ​

Store credentials in a .env file (gitignored). Copy .env.example from the repository as a starting point.

stdio transport ​

VariableRequiredDescription
FIREFLY_URLYesBase URL of your Firefly III instance. No trailing slash.
FIREFLY_TOKENYesPersonal Access Token from Firefly III Options → Remote access and tokens → Create new token.

HTTP transport ​

VariableRequiredDescription
FIREFLY_URLYesBase URL of your Firefly III instance. No trailing slash.
FIREFLY_OAUTH_CLIENT_IDNoOAuth client ID from Firefly III Options → Remote access and tokens → Create New Client. Omit to run in PAT-only mode instead of OAuth.
MCP_BASE_URLRequired when not on loopback, and only if FIREFLY_OAUTH_CLIENT_ID is setPublic base URL of this server. Used to build OAuth redirect URIs. Not used in PAT-only mode.
MCP_ALLOWED_REDIRECT_PREFIXESNoComma-separated list of extra OAuth redirect_uri prefixes to accept. Loopback addresses and Claude's hosted callbacks (https://claude.ai/api/mcp/auth_callback and the claude.com equivalent) are always allowed — you only need this for other clients. Ignored in PAT-only mode. Each entry is compared in canonical (parsed) form: the redirect URI must have the same origin, and its normalized URL must start with the entry's, so https://example.com admits any path on that origin, https://app.example.com/cb admits only paths under /cb, and spelling (https://Example.com, an explicit :443, an IDN) does not change what matches. An entry ending in : right after the host (e.g. http://192.168.1.10:) admits that scheme and host on any port. Entries that do not parse as URLs admit nothing.

In HTTP mode, FIREFLY_TOKEN is not used. The Bearer token is resolved per-request from the Authorization header instead — either set by the MCP client after completing the OAuth flow, or supplied directly as your Firefly III Personal Access Token when FIREFLY_OAUTH_CLIENT_ID is omitted. See npm + HTTP/OAuth and npm + HTTP/PAT.

Tool filtering (both transports) ​

VariableEquivalent CLI flagDescription
MCP_PRESET--preset <name>Named tool subset. See Tool filtering. Mutually exclusive with MCP_GROUPS.
MCP_GROUPS--groups <list>Comma-separated group names. Mutually exclusive with MCP_PRESET.
MCP_READ_ONLY--read-onlySet to true or 1 (case-insensitive) to restrict to read-only tools. false, 0 or empty leave it off; any other value stops the server with an error, so a typo can't silently leave write access on.

The CLI flag always takes precedence over its environment variable equivalent.

Debug ​

VariableDescription
FIREFLY_DEBUGSet to true or 1 to emit verbose autocomplete tracing to stderr. Off by default.

Released under the MIT License.