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": {
"ru-invoicebox-mcp-server": {
"command": "npx",
"args": [
"-y",
"@invoicebox/mcp-server"
],
"env": {
"INVOICEBOX_API_TOKEN": "<YOUR_VALUE>",
"INVOICEBOX_MERCHANT_ID": "<VALUE>",
"INVOICEBOX_ENV": "demo",
"INVOICEBOX_TOOLSETS": "read",
"INVOICEBOX_STATE_DIR": ".state",
"INVOICEBOX_LIMITS": "<VALUE>",
"INVOICEBOX_HTTP_HOST": "127.0.0.1",
"INVOICEBOX_HTTP_PORT": "<VALUE>",
"INVOICEBOX_LOG_LEVEL": "<VALUE>",
"INVOICEBOX_RATE_LIMIT": "60/30",
"INVOICEBOX_SENTRY_DSN": "<VALUE>",
"INVOICEBOX_TOKEN_FILE": "<VALUE>",
"INVOICEBOX_GRAYLOG_URL": "<VALUE>",
"INVOICEBOX_COUNTERPARTY_ID": "<VALUE>",
"INVOICEBOX_CONFIRM_THRESHOLD": "100000",
"INVOICEBOX_HTTP_MAX_SESSIONS": "200",
"INVOICEBOX_HTTP_ALLOWED_HOSTS": "<VALUE>",
"INVOICEBOX_HTTP_ALLOWED_ORIGINS": "<VALUE>",
"INVOICEBOX_HTTP_SESSION_IDLE_MS": "1800000"
}
}
}
}
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": {
"ru-invoicebox-mcp-server": {
"command": "npx",
"args": [
"-y",
"@invoicebox/mcp-server"
],
"env": {
"INVOICEBOX_API_TOKEN": "<YOUR_VALUE>",
"INVOICEBOX_MERCHANT_ID": "<VALUE>",
"INVOICEBOX_ENV": "demo",
"INVOICEBOX_TOOLSETS": "read",
"INVOICEBOX_STATE_DIR": ".state",
"INVOICEBOX_LIMITS": "<VALUE>",
"INVOICEBOX_HTTP_HOST": "127.0.0.1",
"INVOICEBOX_HTTP_PORT": "<VALUE>",
"INVOICEBOX_LOG_LEVEL": "<VALUE>",
"INVOICEBOX_RATE_LIMIT": "60/30",
"INVOICEBOX_SENTRY_DSN": "<VALUE>",
"INVOICEBOX_TOKEN_FILE": "<VALUE>",
"INVOICEBOX_GRAYLOG_URL": "<VALUE>",
"INVOICEBOX_COUNTERPARTY_ID": "<VALUE>",
"INVOICEBOX_CONFIRM_THRESHOLD": "100000",
"INVOICEBOX_HTTP_MAX_SESSIONS": "200",
"INVOICEBOX_HTTP_ALLOWED_HOSTS": "<VALUE>",
"INVOICEBOX_HTTP_ALLOWED_ORIGINS": "<VALUE>",
"INVOICEBOX_HTTP_SESSION_IDLE_MS": "1800000"
}
}
}
}
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": {
"ru-invoicebox-mcp-server": {
"command": "npx",
"args": [
"-y",
"@invoicebox/mcp-server"
],
"env": {
"INVOICEBOX_API_TOKEN": "<YOUR_VALUE>",
"INVOICEBOX_MERCHANT_ID": "<VALUE>",
"INVOICEBOX_ENV": "demo",
"INVOICEBOX_TOOLSETS": "read",
"INVOICEBOX_STATE_DIR": ".state",
"INVOICEBOX_LIMITS": "<VALUE>",
"INVOICEBOX_HTTP_HOST": "127.0.0.1",
"INVOICEBOX_HTTP_PORT": "<VALUE>",
"INVOICEBOX_LOG_LEVEL": "<VALUE>",
"INVOICEBOX_RATE_LIMIT": "60/30",
"INVOICEBOX_SENTRY_DSN": "<VALUE>",
"INVOICEBOX_TOKEN_FILE": "<VALUE>",
"INVOICEBOX_GRAYLOG_URL": "<VALUE>",
"INVOICEBOX_COUNTERPARTY_ID": "<VALUE>",
"INVOICEBOX_CONFIRM_THRESHOLD": "100000",
"INVOICEBOX_HTTP_MAX_SESSIONS": "200",
"INVOICEBOX_HTTP_ALLOWED_HOSTS": "<VALUE>",
"INVOICEBOX_HTTP_ALLOWED_ORIGINS": "<VALUE>",
"INVOICEBOX_HTTP_SESSION_IDLE_MS": "1800000"
}
}
}
}
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": {
"ru-invoicebox-mcp-server": {
"command": "npx",
"args": [
"-y",
"@invoicebox/mcp-server"
],
"env": {
"INVOICEBOX_API_TOKEN": "<YOUR_VALUE>",
"INVOICEBOX_MERCHANT_ID": "<VALUE>",
"INVOICEBOX_ENV": "demo",
"INVOICEBOX_TOOLSETS": "read",
"INVOICEBOX_STATE_DIR": ".state",
"INVOICEBOX_LIMITS": "<VALUE>",
"INVOICEBOX_HTTP_HOST": "127.0.0.1",
"INVOICEBOX_HTTP_PORT": "<VALUE>",
"INVOICEBOX_LOG_LEVEL": "<VALUE>",
"INVOICEBOX_RATE_LIMIT": "60/30",
"INVOICEBOX_SENTRY_DSN": "<VALUE>",
"INVOICEBOX_TOKEN_FILE": "<VALUE>",
"INVOICEBOX_GRAYLOG_URL": "<VALUE>",
"INVOICEBOX_COUNTERPARTY_ID": "<VALUE>",
"INVOICEBOX_CONFIRM_THRESHOLD": "100000",
"INVOICEBOX_HTTP_MAX_SESSIONS": "200",
"INVOICEBOX_HTTP_ALLOWED_HOSTS": "<VALUE>",
"INVOICEBOX_HTTP_ALLOWED_ORIGINS": "<VALUE>",
"INVOICEBOX_HTTP_SESSION_IDLE_MS": "1800000"
}
}
}
}
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": {
"ru-invoicebox-mcp-server": {
"command": "npx",
"args": [
"-y",
"@invoicebox/mcp-server"
],
"env": {
"INVOICEBOX_API_TOKEN": "<YOUR_VALUE>",
"INVOICEBOX_MERCHANT_ID": "<VALUE>",
"INVOICEBOX_ENV": "demo",
"INVOICEBOX_TOOLSETS": "read",
"INVOICEBOX_STATE_DIR": ".state",
"INVOICEBOX_LIMITS": "<VALUE>",
"INVOICEBOX_HTTP_HOST": "127.0.0.1",
"INVOICEBOX_HTTP_PORT": "<VALUE>",
"INVOICEBOX_LOG_LEVEL": "<VALUE>",
"INVOICEBOX_RATE_LIMIT": "60/30",
"INVOICEBOX_SENTRY_DSN": "<VALUE>",
"INVOICEBOX_TOKEN_FILE": "<VALUE>",
"INVOICEBOX_GRAYLOG_URL": "<VALUE>",
"INVOICEBOX_COUNTERPARTY_ID": "<VALUE>",
"INVOICEBOX_CONFIRM_THRESHOLD": "100000",
"INVOICEBOX_HTTP_MAX_SESSIONS": "200",
"INVOICEBOX_HTTP_ALLOWED_HOSTS": "<VALUE>",
"INVOICEBOX_HTTP_ALLOWED_ORIGINS": "<VALUE>",
"INVOICEBOX_HTTP_SESSION_IDLE_MS": "1800000"
}
}
}
}
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": {
"ru-invoicebox-mcp-server": {
"command": "npx",
"args": [
"-y",
"@invoicebox/mcp-server"
],
"env": {
"INVOICEBOX_API_TOKEN": "<YOUR_VALUE>",
"INVOICEBOX_MERCHANT_ID": "<VALUE>",
"INVOICEBOX_ENV": "demo",
"INVOICEBOX_TOOLSETS": "read",
"INVOICEBOX_STATE_DIR": ".state",
"INVOICEBOX_LIMITS": "<VALUE>",
"INVOICEBOX_HTTP_HOST": "127.0.0.1",
"INVOICEBOX_HTTP_PORT": "<VALUE>",
"INVOICEBOX_LOG_LEVEL": "<VALUE>",
"INVOICEBOX_RATE_LIMIT": "60/30",
"INVOICEBOX_SENTRY_DSN": "<VALUE>",
"INVOICEBOX_TOKEN_FILE": "<VALUE>",
"INVOICEBOX_GRAYLOG_URL": "<VALUE>",
"INVOICEBOX_COUNTERPARTY_ID": "<VALUE>",
"INVOICEBOX_CONFIRM_THRESHOLD": "100000",
"INVOICEBOX_HTTP_MAX_SESSIONS": "200",
"INVOICEBOX_HTTP_ALLOWED_HOSTS": "<VALUE>",
"INVOICEBOX_HTTP_ALLOWED_ORIGINS": "<VALUE>",
"INVOICEBOX_HTTP_SESSION_IDLE_MS": "1800000"
}
}
}
}
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 |
|---|---|---|
| INVOICEBOX_API_TOKEN secret | Yes | API token from the personal cabinet (Integration/API tab). Required if no token file is present. |
| INVOICEBOX_MERCHANT_ID | Yes | Merchant identifier, required for merchant operations. |
| INVOICEBOX_ENV | Yes | Environment: 'demo' or 'production'. Required. Default: demo |
| INVOICEBOX_TOOLSETS | No | Toolsets to enable: 'read' (default), 'write', 'refund'. Default: read |
| INVOICEBOX_STATE_DIR | No | Directory for journal and duplicate protection. If not set, lives only within the process. Default: .state |
| INVOICEBOX_LIMITS | No | Daily limits, JSON string. |
| INVOICEBOX_HTTP_HOST | No | HTTP bind address. Default: 127.0.0.1 |
| INVOICEBOX_HTTP_PORT | No | If set, use Streamable HTTP transport on this port; otherwise stdio. |
| INVOICEBOX_LOG_LEVEL | No | Log level: error, warn, info, debug. |
| INVOICEBOX_RATE_LIMIT | No | Custom rate limiter, format 'requests/seconds'. Default: 60/30 |
| INVOICEBOX_SENTRY_DSN | No | Sentry DSN, off by default. |
| INVOICEBOX_TOKEN_FILE | No | Custom path to token file. |
| INVOICEBOX_GRAYLOG_URL | No | External Graylog receiver URL, off by default. |
| INVOICEBOX_COUNTERPARTY_ID | No | Organization identifier, required for organization operations. |
| INVOICEBOX_CONFIRM_THRESHOLD | No | Amount threshold in kopecks for separate confirmation. Default: 100000 |
| INVOICEBOX_HTTP_MAX_SESSIONS | No | Maximum number of sessions. Default: 200 |
| INVOICEBOX_HTTP_ALLOWED_HOSTS | No | Whitelist of Host headers, off by default. |
| INVOICEBOX_HTTP_ALLOWED_ORIGINS | No | Whitelist of Origin headers, off by default. |
| INVOICEBOX_HTTP_SESSION_IDLE_MS | No | Session idle timeout in milliseconds. Default: 1800000 |