Repository avatar
Other Tools
v0.1.3
active

monobank-mcp

io.github.bateikoEd/monobank-mcp

Read-only Monobank Personal API: accounts, jars, statements, rates, net worth.

Documentation

monobank-mcp

A local Model Context Protocol server that lets Claude read your own Monobank accounts, jars, statements, currency rates and net worth. It is read-only: it cannot move money. It runs on your machine over stdio, and your personal token never leaves it.

Українська версія: README.uk.md. The English README is the source of truth.

What it does

monobank-mcp talks to the Monobank Personal API with your personal token and gives Claude four read-only tools. You ask Claude things like "what is my UAH balance", "list my jars", "what did I spend on groceries last week" or "what is the dollar rate", and Claude calls the tools for you.

It does not create payments, transfers or webhooks, and it never writes anything to disk. Results are cached in memory only, and the server respects Monobank's documented rate limits.

Tools

ToolNeeds a tokenWhat it returns
get_currency_ratesNoPublic Monobank exchange rates, cached for 300 seconds.
get_client_infoYesYour accounts and jars with balances. One Monobank request per 60 seconds, cached.
get_net_worthYesYour own funds per currency, converted to UAH with the public rates. Uses the cached client info and never requests a statement.
get_statementYesTransactions of one account or jar for at most 31 days and 1 hour per call, in Europe/Kyiv time, with pending marking and a continuation cursor. One request per 60 seconds.

Requirements

  • Node.js 22 or newer, if you start the server with npx.
  • Or Docker, if you start it from the container image.
  • A Monobank personal token (see below).

Get a Monobank token

Open https://api.monobank.ua/, sign in with the Monobank app and issue a personal token. You can revoke it and issue a new one on the same page at any time. The token grants read access to your financial data, so treat it like a password.

Claude Desktop

Add the server to Claude Desktop's config file (see "Config file location" below) with one of the two options. In both, the token goes in the env block and nowhere else.

Option A: npx

{
  "mcpServers": {
    "monobank": {
      "command": "npx",
      "args": ["-y", "@bateikoed/monobank-mcp@0.1.4"],
      "env": {
        "MONOBANK_TOKEN": "paste-your-token-here"
      }
    }
  }
}

Replace paste-your-token-here with your token. If Claude Desktop cannot find npx, see "PATH workaround".

Option B: Docker

{
  "mcpServers": {
    "monobank": {
      "command": "/usr/local/bin/docker",
      "args": [
        "run",
        "-i",
        "--rm",
        "-e",
        "MONOBANK_TOKEN",
        "ghcr.io/bateikoed/monobank-mcp:latest"
      ],
      "env": {
        "MONOBANK_TOKEN": "paste-your-token-here"
      }
    }
  }
}
  • -e MONOBANK_TOKEN names the variable only. Docker copies the value from the environment that Claude Desktop sets from the env block, so the token never appears in the arguments or in the process list, and it is not stored in the image. While the container runs, anyone who can run docker inspect on your machine can read it from the container environment, which is the same exposure as reading the Claude Desktop config file.
  • Run which docker in a terminal and use that absolute path as command (Claude Desktop often has a minimal PATH and cannot find a bare docker).
  • Pull the image once in a terminal before the first start:
docker pull ghcr.io/bateikoed/monobank-mcp:latest
  • Keep -i and never add -t: a terminal allocation corrupts the JSON-RPC stream on stdout.

Config file location

SystemPath
macOS~/Library/Application Support/Claude/claude_desktop_config.json
Windows%APPDATA%\Claude\claude_desktop_config.json
Linux~/.config/Claude/claude_desktop_config.json

After editing the file, fully quit and restart Claude Desktop (closing the window is not enough). On macOS the server logs are in ~/Library/Logs/Claude/ in files named mcp*.log.

Claude Code

Set MONOBANK_TOKEN in the environment that starts claude, for example from your shell profile or from your password manager's command line tool. Do not type the token into any command below.

Add the server with the single-quoted reference form:

claude mcp add monobank -e 'MONOBANK_TOKEN=${MONOBANK_TOKEN}' -- npx -y @bateikoed/monobank-mcp@0.1.4

Or, from the container image:

claude mcp add monobank -e 'MONOBANK_TOKEN=${MONOBANK_TOKEN}' -- docker run -i --rm -e MONOBANK_TOKEN ghcr.io/bateikoed/monobank-mcp:latest

The single quotes matter. The shell passes the text ${MONOBANK_TOKEN} through unchanged, Claude Code stores only that reference in ~/.claude.json, and Claude Code reads the real value from its own environment each time it starts the server. So the token is never in a command line, in your shell history or in the config file. Never type the token value into the command: it would end up in all three.

Check the result:

claude mcp get monobank

The status should be Connected. A missing-variable warning means MONOBANK_TOKEN is not set in the environment where claude starts.

To share the setup with a team, put a project-scope .mcp.json in your project. It is safe to commit because it holds only the reference:

{
  "mcpServers": {
    "monobank": {
      "command": "npx",
      "args": ["-y", "@bateikoed/monobank-mcp@0.1.4"],
      "env": {
        "MONOBANK_TOKEN": "${MONOBANK_TOKEN}"
      }
    }
  }
}

Claude Code asks you to approve project servers the first time you use them.

PATH workaround

Claude Desktop started from the Dock or the Start menu may have a minimal PATH, so npx, node or docker is not found. Find the absolute paths in a terminal:

which npx
which node
which docker

Then use the absolute path of npx as command, and add the directory of node to PATH in the env block so the #!/usr/bin/env node line of the package can resolve node (this is common with nvm):

{
  "mcpServers": {
    "monobank": {
      "command": "/absolute/path/to/npx",
      "args": ["-y", "@bateikoed/monobank-mcp@0.1.4"],
      "env": {
        "PATH": "/absolute/path/to/node/bin:/usr/bin:/bin",
        "MONOBANK_TOKEN": "paste-your-token-here"
      }
    }
  }
}

For Docker, use the output of which docker as command, as in Option B.

Security

  • The token comes only from the MONOBANK_TOKEN environment variable. It is never a tool argument, and the server never writes it to logs or tool output.
  • Never paste your token into the chat with Claude. If a tool says the token is missing, fix the configuration instead.
  • Use your personal token, which is read-only, and revoke it at https://api.monobank.ua/ if you think it was exposed.
  • Keep the token out of committed files. The .mcp.json example above holds only the ${MONOBANK_TOKEN} reference.
  • The MCP Inspector stores the environment values of stdio servers in the OS keychain, or in an unencrypted ~/.mcp-inspector/secrets.json on machines without a keychain. Use a throwaway token for Inspector sessions.
  • To report a vulnerability, see SECURITY.md.

Troubleshooting

Missing token

If MONOBANK_TOKEN is not set, the server still starts and warns on stderr. get_currency_rates keeps working, and the other tools answer with a message that names MONOBANK_TOKEN. Add the token to the env block (Claude Desktop) and fully restart, or set it in the environment that starts claude (Claude Code). In Claude Code, a missing-variable warning in claude mcp list, or an invalid-token error right after setup, means the variable was not set where claude started.

Rate limit (HTTP 429)

Monobank allows one request per 60 seconds for client info and one per 60 seconds for statements. When a tool reports a rate limit with retryAfterSeconds, wait that long and do not retry in a loop. Cached answers are served without a new request.

EBADENGINE on an old Node

npx prints EBADENGINE when your Node.js is older than 22. Run node --version, upgrade to Node 22 or newer, or use the Docker option instead.

Command not found (PATH)

If the server does not start and the log says npx, node or docker was not found, follow "PATH workaround" above and fully restart Claude Desktop.

Docker not found

Use the absolute path from which docker as command, make sure Docker Desktop is running, and pull the image once in a terminal with docker pull, because docker run does not download it again when it is already present.

Updating

For npx, change the version after the @ in the args and restart the client. For Docker, pull the image again, because docker run does not refresh :latest by itself:

docker pull ghcr.io/bateikoed/monobank-mcp:latest

Development

npm ci
npm test
npm run build
npm run smoke
npm run pack-check
node scripts/container-check.mjs monobank-mcp:ci
node scripts/smoke.mjs -- docker run -i --rm monobank-mcp:ci

Run the commands with MONOBANK_TOKEN unset: the tests must not need a real token.

License

MIT. See LICENSE.

NPM
@bateikoed/monobank-mcp
Install Command
npm install @bateikoed/monobank-mcp
Runtime: npx
OCI
ghcr.io/bateikoed/monobank-mcp:0.1.3
Install Command
docker pull ghcr.io/bateikoed/monobank-mcp:0.1.3:undefined
Runtime: docker