F

Freshbooks MCP

by chrischall · io.github.chrischall/freshbooks-mcp

MCP server for FreshBooks, providing tools to browse and manage invoices, clients, estimates, payments, expenses, projects, and time entries. Handles OAuth2 authorization and token rotation, enabling Claude to interact with FreshBooks accounting via natural language.

npm 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-chrischall-freshbooks-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@chrischall/freshbooks-mcp"
      ],
      "env": {
        "FRESHBOOKS_CLIENT_ID": "<VALUE>",
        "FRESHBOOKS_CLIENT_SECRET": "<YOUR_VALUE>",
        "FRESHBOOKS_REFRESH_TOKEN": "<YOUR_VALUE>",
        "FRESHBOOKS_REDIRECT_URI": "https://localhost",
        "FRESHBOOKS_TOKEN_STORE": "~/.freshbooks-mcp/session.json",
        "FRESHBOOKS_BUSINESS_ID": "<VALUE>",
        "FRESHBOOKS_ACCOUNT_ID": "<VALUE>",
        "FRESHBOOKS_REQUEST_TIMEOUT_MS": "<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-chrischall-freshbooks-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@chrischall/freshbooks-mcp"
      ],
      "env": {
        "FRESHBOOKS_CLIENT_ID": "<VALUE>",
        "FRESHBOOKS_CLIENT_SECRET": "<YOUR_VALUE>",
        "FRESHBOOKS_REFRESH_TOKEN": "<YOUR_VALUE>",
        "FRESHBOOKS_REDIRECT_URI": "https://localhost",
        "FRESHBOOKS_TOKEN_STORE": "~/.freshbooks-mcp/session.json",
        "FRESHBOOKS_BUSINESS_ID": "<VALUE>",
        "FRESHBOOKS_ACCOUNT_ID": "<VALUE>",
        "FRESHBOOKS_REQUEST_TIMEOUT_MS": "<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-chrischall-freshbooks-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@chrischall/freshbooks-mcp"
      ],
      "env": {
        "FRESHBOOKS_CLIENT_ID": "<VALUE>",
        "FRESHBOOKS_CLIENT_SECRET": "<YOUR_VALUE>",
        "FRESHBOOKS_REFRESH_TOKEN": "<YOUR_VALUE>",
        "FRESHBOOKS_REDIRECT_URI": "https://localhost",
        "FRESHBOOKS_TOKEN_STORE": "~/.freshbooks-mcp/session.json",
        "FRESHBOOKS_BUSINESS_ID": "<VALUE>",
        "FRESHBOOKS_ACCOUNT_ID": "<VALUE>",
        "FRESHBOOKS_REQUEST_TIMEOUT_MS": "<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-chrischall-freshbooks-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@chrischall/freshbooks-mcp"
      ],
      "env": {
        "FRESHBOOKS_CLIENT_ID": "<VALUE>",
        "FRESHBOOKS_CLIENT_SECRET": "<YOUR_VALUE>",
        "FRESHBOOKS_REFRESH_TOKEN": "<YOUR_VALUE>",
        "FRESHBOOKS_REDIRECT_URI": "https://localhost",
        "FRESHBOOKS_TOKEN_STORE": "~/.freshbooks-mcp/session.json",
        "FRESHBOOKS_BUSINESS_ID": "<VALUE>",
        "FRESHBOOKS_ACCOUNT_ID": "<VALUE>",
        "FRESHBOOKS_REQUEST_TIMEOUT_MS": "<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-chrischall-freshbooks-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@chrischall/freshbooks-mcp"
      ],
      "env": {
        "FRESHBOOKS_CLIENT_ID": "<VALUE>",
        "FRESHBOOKS_CLIENT_SECRET": "<YOUR_VALUE>",
        "FRESHBOOKS_REFRESH_TOKEN": "<YOUR_VALUE>",
        "FRESHBOOKS_REDIRECT_URI": "https://localhost",
        "FRESHBOOKS_TOKEN_STORE": "~/.freshbooks-mcp/session.json",
        "FRESHBOOKS_BUSINESS_ID": "<VALUE>",
        "FRESHBOOKS_ACCOUNT_ID": "<VALUE>",
        "FRESHBOOKS_REQUEST_TIMEOUT_MS": "<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-chrischall-freshbooks-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@chrischall/freshbooks-mcp"
      ],
      "env": {
        "FRESHBOOKS_CLIENT_ID": "<VALUE>",
        "FRESHBOOKS_CLIENT_SECRET": "<YOUR_VALUE>",
        "FRESHBOOKS_REFRESH_TOKEN": "<YOUR_VALUE>",
        "FRESHBOOKS_REDIRECT_URI": "https://localhost",
        "FRESHBOOKS_TOKEN_STORE": "~/.freshbooks-mcp/session.json",
        "FRESHBOOKS_BUSINESS_ID": "<VALUE>",
        "FRESHBOOKS_ACCOUNT_ID": "<VALUE>",
        "FRESHBOOKS_REQUEST_TIMEOUT_MS": "<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
FRESHBOOKS_CLIENT_ID Yes The client ID of your FreshBooks app.
FRESHBOOKS_CLIENT_SECRET secret Yes The client secret of your FreshBooks app.
FRESHBOOKS_REFRESH_TOKEN secret Yes The refresh token obtained from the one-time bootstrap.
FRESHBOOKS_REDIRECT_URI No The redirect URI registered for your app. Must match exactly. Default: https://localhost
FRESHBOOKS_TOKEN_STORE No File path to store rotated refresh tokens. Default: ~/.freshbooks-mcp/session.json
FRESHBOOKS_BUSINESS_ID No The integer businessId to work in when the authenticated identity belongs to several businesses. Without it, reads use the first business FreshBooks lists and writes are refused rather than landing in the wrong books.
FRESHBOOKS_ACCOUNT_ID No Overrides the account id normally resolved from /auth/api/v1/users/me. Set it explicitly when the authenticated identity belongs to no business membership and resolution fails, or, together with FRESHBOOKS_BUSINESS_ID, when FreshBooks reports no account_id for the chosen business (accounting writes are refused until the pairing is confirmed this way).
FRESHBOOKS_REQUEST_TIMEOUT_MS No Per-request deadline for API calls, in milliseconds (default 30000)

Similar servers