M

Mercury Multiorg MCP

by dkaleganov · io.github.dkaleganov/mercury-multiorg-mcp

An unofficial, read-only MCP server for Mercury business banking. It holds one read-only API token per organization, so a single AI session can work across several Mercury organizations; Mercury's own connector binds one organization per connection.

pypi Local · stdio GlamaOfficial MCP Registry High confidence

Install

Add to ~/Library/Application Support/Claude/claude_desktop_config.json

Windows / Linux path
Windows: %APPDATA%\Claude\claude_desktop_config.json
Linux: ~/.config/Claude/claude_desktop_config.json
{
  "mcpServers": {
    "io-github-dkaleganov-mercury-multiorg-mcp": {
      "command": "uvx",
      "args": [
        "mercury-multiorg-mcp"
      ],
      "env": {
        "MERCURY_TOKEN_ACME_MAIN": "<YOUR_VALUE>",
        "MERCURY_ENTITIES_FILE": "<VALUE>",
        "MERCURY_API_BASE": "https://api.mercury.com",
        "MERCURY_ALLOW_DOCUMENTS": "0",
        "MERCURY_TOKEN_<KEY>": "<VALUE>"
      }
    }
  }
}

Restart Claude Desktop to activate the new server.

Add to .cursor/mcp.json (project) or ~/.cursor/mcp.json (global)

Windows / Linux path
Windows: .cursor\mcp.json (project) or %USERPROFILE%\.cursor\mcp.json (global)
Linux: .cursor/mcp.json (project) or ~/.cursor/mcp.json (global)
{
  "mcpServers": {
    "io-github-dkaleganov-mercury-multiorg-mcp": {
      "command": "uvx",
      "args": [
        "mercury-multiorg-mcp"
      ],
      "env": {
        "MERCURY_TOKEN_ACME_MAIN": "<YOUR_VALUE>",
        "MERCURY_ENTITIES_FILE": "<VALUE>",
        "MERCURY_API_BASE": "https://api.mercury.com",
        "MERCURY_ALLOW_DOCUMENTS": "0",
        "MERCURY_TOKEN_<KEY>": "<VALUE>"
      }
    }
  }
}

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
Windows: .mcp.json (project) or %USERPROFILE%\.claude.json (global)
Linux: .mcp.json (project) or ~/.claude.json (global)
{
  "mcpServers": {
    "io-github-dkaleganov-mercury-multiorg-mcp": {
      "command": "uvx",
      "args": [
        "mercury-multiorg-mcp"
      ],
      "env": {
        "MERCURY_TOKEN_ACME_MAIN": "<YOUR_VALUE>",
        "MERCURY_ENTITIES_FILE": "<VALUE>",
        "MERCURY_API_BASE": "https://api.mercury.com",
        "MERCURY_ALLOW_DOCUMENTS": "0",
        "MERCURY_TOKEN_<KEY>": "<VALUE>"
      }
    }
  }
}

The server will be available in the next Claude Code session.

Add to .vscode/mcp.json

Windows / Linux path
Windows: .vscode\mcp.json
Linux: .vscode/mcp.json
{
  "servers": {
    "io-github-dkaleganov-mercury-multiorg-mcp": {
      "command": "uvx",
      "args": [
        "mercury-multiorg-mcp"
      ],
      "env": {
        "MERCURY_TOKEN_ACME_MAIN": "<YOUR_VALUE>",
        "MERCURY_ENTITIES_FILE": "<VALUE>",
        "MERCURY_API_BASE": "https://api.mercury.com",
        "MERCURY_ALLOW_DOCUMENTS": "0",
        "MERCURY_TOKEN_<KEY>": "<VALUE>"
      }
    }
  }
}

Reload the VS Code window to activate.

Add to ~/.codeium/windsurf/mcp_config.json

Windows / Linux path
Windows: %USERPROFILE%\.codeium\windsurf\mcp_config.json
Linux: ~/.codeium/windsurf/mcp_config.json
{
  "mcpServers": {
    "io-github-dkaleganov-mercury-multiorg-mcp": {
      "command": "uvx",
      "args": [
        "mercury-multiorg-mcp"
      ],
      "env": {
        "MERCURY_TOKEN_ACME_MAIN": "<YOUR_VALUE>",
        "MERCURY_ENTITIES_FILE": "<VALUE>",
        "MERCURY_API_BASE": "https://api.mercury.com",
        "MERCURY_ALLOW_DOCUMENTS": "0",
        "MERCURY_TOKEN_<KEY>": "<VALUE>"
      }
    }
  }
}

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
Windows: %APPDATA%\Code\User\globalStorage\saoudrizwan.claude-dev\settings\cline_mcp_settings.json
Linux: ~/.config/Code/User/globalStorage/saoudrizwan.claude-dev/settings/cline_mcp_settings.json
{
  "mcpServers": {
    "io-github-dkaleganov-mercury-multiorg-mcp": {
      "command": "uvx",
      "args": [
        "mercury-multiorg-mcp"
      ],
      "env": {
        "MERCURY_TOKEN_ACME_MAIN": "<YOUR_VALUE>",
        "MERCURY_ENTITIES_FILE": "<VALUE>",
        "MERCURY_API_BASE": "https://api.mercury.com",
        "MERCURY_ALLOW_DOCUMENTS": "0",
        "MERCURY_TOKEN_<KEY>": "<VALUE>"
      }
    }
  }
}

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.

NameRequiredDescription
MERCURY_TOKEN_ACME_MAIN secret No Example only. Each organization needs one read-only Mercury API token in the environment variable named by its token_env in your registry. Names are yours to choose but must match MERCURY_TOKEN_[A-Z0-9_]+ (for example MERCURY_TOKEN_<ENTITY_KEY>); set one per organization and rename this example to match.
MERCURY_ENTITIES_FILE Yes Path to the entity registry YAML file (the `--entities` flag wins over this env var). Required; there is no implicit default. The registry lists your orgs (`key`, `display_name`, `token_env`) and must live in a private location outside the repo.
MERCURY_API_BASE No Mercury API host. Allowed values are `https://api.mercury.com`, `https://api-sandbox.mercury.com`, or plain `http://` on `localhost`/`127.0.0.1` for mocks; any other host requires the `--allow-custom-api-base` command-line flag (never settable from an environment variable). Default: https://api.mercury.com
MERCURY_ALLOW_DOCUMENTS No Set to `1` to register the two unredacted PDF tools (`get_statement_pdf` and `get_invoice_pdf`), equivalent to the `--allow-documents` flag. Off by default: 24 tools without it, 26 with it. Leave it off unless the session really needs unredacted documents. Default: 0
MERCURY_TOKEN_<KEY> No One read-only Mercury API token per org, exported under the env var name given by that org's `token_env` in the registry. The name must start with `MERCURY_TOKEN_`. Configure a separate variable for every entity you list (e.g. `MERCURY_TOKEN_ACME_MAIN`). Tokens may alternatively be supplied via a dotenv file passed with `--env-file <path>`; existing process environment variables win.

Similar servers