# karbon-mcp-server [Health: Active]

**Category:** 💻 Developer Tools  
**Repository:** https://github.com/Mad-Man-Dan/karbon-mcp-server  
**GitHub Stars:** 0  
**npm Downloads (last month):** 348  
**Views:** 1  
**Installs:** 0  
**Upvotes:** 0  
**Directory Page:** https://allmcps.com/mcp/karbon-mcp-server

## Description
Unofficial MCP server for Karbon practice management: contacts, work, time, invoices, payments.

## Tools
Capabilities this server exposes over MCP:

- **list_contacts** — List or search person contacts in Karbon. Supports OData filtering, e.g. filter: "contains(FullName,'Smith')" or "ContactType eq 'Client'".
- **get_contact** — Get a single person contact by ContactKey — or by your own UserDefinedIdentifier — optionally expanding related data (BusinessCards, AccountingDetail, ClientTeam). Provide exactly one of contactKey or userDefinedIdentifier.
- **create_contact** — Create a new person contact in Karbon.
- **update_contact** — Update fields on an existing person contact (partial update via PATCH). Only include the fields you want to change.
- **list_organizations** — List or search organization contacts in Karbon. Supports OData filtering, e.g. filter: "contains(FullName,'Acme')".
- **get_organization** — Get a single organization by OrganizationKey — or by your own UserDefinedIdentifier — optionally expanding related data (BusinessCards, AccountingDetail, ClientTeam, Contacts). Provide exactly one of organizationKey or userDefinedIdentifier.
- **create_organization** — Create a new organization contact in Karbon.
- **update_organization** — Update fields on an existing organization (partial update via PATCH). Only include the fields you want to change.
- **list_client_groups** — List or search client groups in Karbon. Supports OData filtering, e.g. filter: "contains(FullName,'Smith Family')" or "UserDefinedIdentifier eq 'ABC123'".
- **get_client_group** — Get a single client group by ClientGroupKey — or by your own UserDefinedIdentifier — optionally expanding related data (BusinessCard, ClientTeam). Includes the group's members (contacts and organizations). Provide exactly one of clientGroupKey or userDefinedIdentifier.
- **create_client_group** — Create a new client group in Karbon. Members are existing contacts and/or organizations.
- **update_client_group** — Update fields on an existing client group (partial update via PATCH). Only include the fields you want to change.
- **list_work_items** — List or search work items (jobs/engagements) in Karbon. Useful filters: "PrimaryStatus eq 'InProgress'", "AssigneeEmailAddress eq 'user@firm.com'", "DueDate lt 2026-08-01". PrimaryStatus values: Planned, ReadyToStart, InProgress, Waiting, Completed.
- **get_work_item** — Get a single work item by WorkItemKey.
- **get_estimate_summary** — Get the estimate summary for a work item (read-only): budgeted vs. actual time and value. Useful for 'are we over budget on this job' questions — pair with list_time_entries for detail.
- **create_work_item** — Create a new work item in Karbon. WorkType and status values are tenant-specific — call get_tenant_settings first if unsure.
- **update_work_item** — Update fields on an existing work item (partial update via PATCH). Only include the fields you want to change.
- **get_note** — Get a single note by its NoteID.
- **get_comment** — Get a single comment by its CommentKey. Comments appear on work item and client timelines alongside notes.
- **create_note** — Create a note in Karbon, optionally linked to work items, contacts, organizations, or client groups via timelines. Notes linked to a work item also appear on the client's timeline.
- **list_timesheets** — List timesheets (read-only). Useful filters: "StartDate ge 2026-07-01", "UserKey eq '...'".
- **get_timesheet** — Get a single timesheet by TimesheetKey, optionally expanding TimeEntries.
- **list_time_entries** — List individual time entries (read-only). Useful for reporting on time logged against clients or work items.
- **get_time_entry** — Get a single individual time entry by its IndividualTimeEntryKey (read-only).
- **list_invoices** — List invoices in Karbon (read-only). Supports OData filtering, e.g. filter: "InvoiceStatus eq 'AwaitingPayment'" or "TotalAmountDue gt 0". Statuses: Approved, AwaitingPayment, Paid, Exported, Voided.
- **get_invoice** — Get a single invoice by InvoiceKey (read-only), optionally expanding related data (LineItems, Payments, Data).
- **list_payments** — List payments recorded against invoices in Karbon (read-only). Supports pagination only — the Payments endpoint does not accept OData filters.
- **get_payment** — Get a single payment by PaymentKey (read-only).
- **list_teams** — List teams in Karbon (read-only). Supports OData filtering, e.g. filter: "contains(Name,'Tax')".
- **get_team** — Get a single team by TeamKey, including its members (users and sub-teams).
- **add_team_members** — Add one or more users to a team by their UserKeys (find them with list_users). Users already on the team are skipped. Team membership can affect work visibility and assignment — confirm with the user before changing it.
- **remove_team_member** — Remove a user from a team by their UserKey. Team membership can affect work visibility and assignment — confirm with the user before changing it.
- **list_entity_files** — List the files attached to a work item, contact, or organization — name, size, mime type, created date, and a DownloadUrl usable with download_file. Download links expire 15 minutes after this call.
- **download_file** — Download a Karbon file to a local path on the machine running this MCP server. Get the DownloadUrl from list_entity_files first — download links expire after 15 minutes, so re-list if the download fails with an auth error. Ask the user where to save before writing outside a temp directory, and never overwrite a file the user didn't ask you to replace.
- **upload_file** — Upload a file to Karbon and attach it to a work item, contact, organization, or client group (at least one key is required). SIZE LIMITS: keep uploads small — Karbon rejects oversized uploads, and this server reads the whole file into memory. Prefer filePath (a path on the machine running this MCP server) whenever possible; only use contentBase64 for small files (roughly under 1 MB), because base64 inflates data ~33% and large payloads can exceed the AI client's message limits or be truncated mid-transfer. If a file seems large (tens of MB or more), tell the user to upload it through Karbon's own UI instead. SECURITY: only upload files the user explicitly pointed you to. Never upload configuration files, credential stores, environment files, keys, or anything the user has not named — uploading puts the file's contents in the Karbon tenant.
- **get_work_schedule** — Get a recurring work schedule by WorkScheduleKey — the recurrence rules that automatically generate work items.
- **create_work_schedule** — Create a recurring work schedule from an existing work item. The schedule will automatically generate new work items on the recurrence you set — confirm the recurrence details with the user before calling. Note: RecurrenceFrequency cannot be changed after creation.
- **update_work_schedule** — Update a work schedule (partial via PATCH). The API only supports changing the end date and the assignee here. Note: changing AssigneeUserKey reassigns every not-yet-started work item the schedule has generated — confirm with the user first.
- **get_business_card** — Get a single business card by BusinessCardKey. Business cards hold the contact details (email, phone, address, websites) of a contact, organization, or client group. Find the key by expanding BusinessCards on get_contact / get_organization / get_client_group.
- **update_business_card** — Update a business card (full replace via PUT) — this is how you change a contact's, organization's, or client group's email addresses, phone numbers, and addresses. Fetch the card first with get_business_card and send back the complete card with your changes, since omitted fields are cleared.
- **list_custom_fields** — List all custom field definitions for the Karbon tenant — field names, types (Text, Number, Date, Boolean, Colleague, ListSingleSelect, ListMultipleSelect), list options, and which entities they apply to.
- **get_custom_field_values** — Get the custom field values set on a specific entity (contact, organization, or client group) by its entity key.
- **set_custom_field_values** — Set custom field values on an entity (contact, organization, or client group). Use list_custom_fields for the available definitions and get_custom_field_values to see what's currently set. Values are always passed as an array of strings, even for single values.
- **create_custom_field** — Create a new custom field definition for the whole Karbon tenant. This changes the firm's shared configuration, not just one record — state the field name, type, and visibility to the user and get their explicit confirmation before calling.
- **delete_custom_field** — DESTRUCTIVE AND IRREVERSIBLE: deleting a custom field definition permanently removes the field AND every value stored in it across all contacts, organizations, and client groups in the tenant. Never call this without first telling the user exactly which field will be deleted (by name, via list_custom_fields) and receiving their explicit confirmation for that specific field.
- **list_users** — List Karbon users (team members) on this account.
- **get_user** — Get a single Karbon user by their UserId.
- **get_tenant_settings** — Get this Karbon account's configuration: valid work statuses (secondary statuses), work types, and contact types. Call this before creating or updating work items or contacts with tenant-specific values.
- **list_work_templates** — List work templates available on this account. Use a WorkTemplateKey with create_work_item to create templated work.
- **get_work_template** — Get a single work template by WorkTemplateKey, including its task and section structure.

## Claude Desktop Quick Installation
Install path detected from listing signals. Uses `npx` (confidence: high):

```json
"mcpServers": {
  "karbon-mcp-server": {
    "command": "npx",
    "args": ["-y","karbon-mcp-server"]
  }
}
```

## Documentation & README

# Karbon MCP Server

> 🚧 **Early release** — this project is brand new and we're actively making updates over the next few days. Things may change quickly; pin a version if you need stability, and check back soon.

An unofficial [Model Context Protocol](https://modelcontextprotocol.io) server for [Karbon](https://karbonhq.com) practice management. Connect Claude Code, Claude Desktop, GitHub Copilot, or any MCP-compatible client to your Karbon instance and work with contacts, work items, time, invoices, payments, files, and more using natural language.

> **Disclaimer:** This is a community project and is not affiliated with or endorsed by Karbon. Use at your own risk.

[![Install in VS Code](https://img.shields.io/badge/VS_Code-Install_Karbon_MCP-0098FF?logo=githubcopilot&logoColor=white)](https://insiders.vscode.dev/redirect/mcp/install?name=karbon&config=%7B%22command%22%3A%22npx%22%2C%22args%22%3A%5B%22-y%22%2C%22karbon-mcp-server%22%5D%2C%22env%22%3A%7B%22KARBON_BEARER_TOKEN%22%3A%22YOUR_BEARER_TOKEN%22%2C%22KARBON_ACCESS_KEY%22%3A%22YOUR_ACCESS_KEY%22%7D%7D)
[![Install in VS Code Insiders](https://img.shields.io/badge/VS_Code_Insiders-Install_Karbon_MCP-24bfa5?logo=githubcopilot&logoColor=white)](https://insiders.vscode.dev/redirect/mcp/install?name=karbon&config=%7B%22command%22%3A%22npx%22%2C%22args%22%3A%5B%22-y%22%2C%22karbon-mcp-server%22%5D%2C%22env%22%3A%7B%22KARBON_BEARER_TOKEN%22%3A%22YOUR_BEARER_TOKEN%22%2C%22KARBON_ACCESS_KEY%22%3A%22YOUR_ACCESS_KEY%22%7D%7D&quality=insiders)
[![Install in Cursor](https://img.shields.io/badge/Cursor-Install_Karbon_MCP-111111?logo=cursor&logoColor=white)](https://cursor.com/install-mcp?name=karbon&config=eyJjb21tYW5kIjoibnB4IiwiYXJncyI6WyIteSIsImthcmJvbi1tY3Atc2VydmVyIl0sImVudiI6eyJLQVJCT05fQkVBUkVSX1RPS0VOIjoiWU9VUl9CRUFSRVJfVE9LRU4iLCJLQVJCT05fQUNDRVNTX0tFWSI6IllPVVJfQUNDRVNTX0tFWSJ9fQ%3D%3D)

## Features

| Area | Tools |
| --- | --- |
| Contacts | `list_contacts`, `get_contact`, `create_contact`, `update_contact` |
| Organizations | `list_organizations`, `get_organization`, `create_organization`, `update_organization` |
| Client groups | `list_client_groups`, `get_client_group`, `create_client_group`, `update_client_group` |
| Work items | `list_work_items`, `get_work_item`, `get_estimate_summary`, `create_work_item`, `update_work_item` |
| Notes & comments | `get_note`, `create_note`, `get_comment` |
| Timesheets | `list_timesheets`, `get_timesheet`, `list_time_entries`, `get_time_entry` (read-only) |
| Invoices | `list_invoices`, `get_invoice` (read-only) |
| Payments | `list_payments`, `get_payment`; plus `create_manual_payment`, `delete_manual_payment`, `reverse_manual_payment` behind `KARBON_ALLOW_PAYMENT_WRITES=true` |
| Business cards | `get_business_card`, `update_business_card` — contact details (email, phone, address) |
| Custom fields | `list_custom_fields`, `get_custom_field_values`, `set_custom_field_values`, `create_custom_field`, `delete_custom_field` |
| Files | `list_entity_files`, `download_file`, `upload_file` |
| Teams | `list_teams`, `get_team`, `add_team_members`, `remove_team_member` |
| Work schedules | `get_work_schedule`, `create_work_schedule`, `update_work_schedule` |
| Users | `list_users`, `get_user` |
| Account | `get_tenant_settings`, `list_work_templates`, `get_work_template` |

`get_contact`, `get_organization`, and `get_client_group` can also look records up by your own `UserDefinedIdentifier` instead of the Karbon key — handy if you sync IDs from your tax software.

All list tools support OData filtering (`$filter`), ordering (`$orderby`), and pagination (`$top`/`$skip`) — so you can ask things like *"show my in-progress work items due this month"* and the AI can express that as a precise query.

## Prerequisites

- Node.js 18+
- Karbon API credentials. In Karbon go to **Settings → Connected Apps → API Applications** and copy your **Bearer Token** and **Access Key**. ([Karbon help article](https://help.karbonhq.com/en/articles/4324748-how-do-i-find-my-karbon-api-access-key))

## Setup

> **Step-by-step walkthroughs** for Claude Desktop, claude.ai/Cowork, and ChatGPT (written for non-developers) are in [docs/client-guides.md](https://github.com/Mad-Man-Dan/karbon-mcp-server/blob/HEAD/docs/client-guides.md).

### Claude Desktop: one-click bundle

Download `karbon-mcp-server.mcpb` from the [latest release](https://github.com/Mad-Man-Dan/karbon-mcp-server/releases/latest) and double-click it. Claude Desktop opens a form for your two Karbon keys (stored securely by your OS) plus a read-only toggle — no terminal needed. [Walkthrough](https://github.com/Mad-Man-Dan/karbon-mcp-server/blob/HEAD/docs/client-guides.md#claude-desktop).

### One-line install (nothing to download first)

No Node.js? These check for it (installing via winget/Homebrew where possible), then run the setup wizard straight from npm — no repo clone, no manual download:

```powershell
# Windows (PowerShell)
irm https://raw.githubusercontent.com/Mad-Man-Dan/karbon-mcp-server/main/scripts/install.ps1 | iex
```

```sh
# macOS / Linux
curl -fsSL https://raw.githubusercontent.com/Mad-Man-Dan/karbon-mcp-server/main/scripts/install.sh | bash
```

### Quickest with Node.js installed: automatic setup

```sh
npx -y karbon-mcp-server setup
```

Setup asks a few quick questions — **project or user-level install**, your **API keys** (skippable), and whether to enable **read-only mode** — then does everything else automatically:

- **This project** (the default): writes `.mcp.json` (Claude Code), plus `.vscode/mcp.json` and `.cursor/mcp.json` if those folders exist in the project.
- **User account**: detects which MCP clients are installed on your machine — Claude Code, Codex, Claude Desktop, VS Code, Cursor — and adds the server to each (for Claude Code and Codex it uses their own `mcp add` CLI).

It then offers to take your two Karbon keys (Enter skips either one):

- Input is **masked** — you see a `*` per character, then a first-4/last-4 preview (like `1a2b****5c6d`, the same style Karbon's site uses) so you can confirm what was entered, with a gentle warning if the format looks off (the Bearer Token is a GUID; the Access Key starts with `ey...`).
- Keys are written **only to your MCP client's local config file** on your machine — the same file a manual setup would use. They are never sent anywhere else.
- If you skip, placeholder values are written and setup tells you exactly which file(s) to edit later.

It backs up every existing config file before touching it, merges rather than overwrites, and never replaces real credentials with placeholders (re-running and skipping the prompts keeps your existing keys). If you go project-level, gitignore the config files — your keys live in them in plain text.

Options:

```sh
npx -y karbon-mcp-server setup --scope project          # skip the question
npx -y karbon-mcp-server setup --scope user
npx -y karbon-mcp-server setup --read-only              # disable all write tools
npx -y karbon-mcp-server setup --client vscode,cursor   # only these clients
                    # ids: claude-code, codex, claude-desktop, vscode, cursor
npx -y karbon-mcp-server setup --print                  # just print the JSON
```

### One-click installs

The **Install in VS Code / Cursor** badges above create the server entry for you with placeholder credentials. After installing, replace `YOUR_BEARER_TOKEN` and `YOUR_ACCESS_KEY` with your real keys — in VS Code via the Command Palette → **MCP: Open User Configuration**, in Cursor by editing `~/.cursor/mcp.json`.

If you run the server before replacing the placeholders, it starts fine and every tool responds with setup instructions instead of failing cryptically — so you can even ask your AI assistant "why isn't Karbon working?" and it will tell you what to do.

Prefer to configure things by hand? Each client is below.

### Claude Code

```sh
claude mcp add karbon \
  --env KARBON_BEARER_TOKEN=your-bearer-token \
  --env KARBON_ACCESS_KEY=your-access-key \
  -- npx -y karbon-mcp-server
```

### Claude Desktop

Add to `claude_desktop_config.json`:

```json
{
  "mcpServers": {
    "karbon": {
      "command": "npx",
      "args": ["-y", "karbon-mcp-server"],
      "env": {
        "KARBON_BEARER_TOKEN": "your-bearer-token",
        "KARBON_ACCESS_KEY": "your-access-key"
      }
    }
  }
}
```

### VS Code (GitHub Copilot)

Add to `.vscode/mcp.json` in your workspace (or your user `mcp.json`):

```json
{
  "servers": {
    "karbon": {
      "command": "npx",
      "args": ["-y", "karbon-mcp-server"],
      "env": {
        "KARBON_BEARER_TOKEN": "your-bearer-token",
        "KARBON_ACCESS_KEY": "your-access-key"
      }
    }
  }
}
```

### Cursor

Add to `~/.cursor/mcp.json` (or use the install badge above):

```json
{
  "mcpServers": {
    "karbon": {
      "command": "npx",
      "args": ["-y", "karbon-mcp-server"],
      "env": {
        "KARBON_BEARER_TOKEN": "your-bearer-token",
        "KARBON_ACCESS_KEY": "your-access-key"
      }
    }
  }
}
```

### Codex (OpenAI Codex CLI)

```sh
codex mcp add karbon \
  --env KARBON_BEARER_TOKEN=your-bearer-token \
  --env KARBON_ACCESS_KEY=your-access-key \
  -- npx -y karbon-mcp-server
```

Or add to `~/.codex/config.toml`:

```toml
[mcp_servers.karbon]
command = "npx"
args = ["-y", "karbon-mcp-server"]

[mcp_servers.karbon.env]
KARBON_BEARER_TOKEN = "your-bearer-token"
KARBON_ACCESS_KEY = "your-access-key"
```

### ChatGPT, claude.ai chat & Claude Cowork (remote connectors)

These clients can't launch local servers — they only connect to a **remote MCP server over HTTPS**. This package includes a streamable-HTTP mode for exactly that, so a firm can self-host it and keep their Karbon keys in their own infrastructure:

```sh
KARBON_BEARER_TOKEN=... KARBON_ACCESS_KEY=... KARBON_HTTP_SECRET=some-long-random-string \
  npx -y karbon-mcp-server --http --port 8787
```

This serves the MCP endpoint at `/mcp/<your-secret>` (plus a `/health` check). Expose it over HTTPS however you like — the quickest free option is a [Cloudflare Tunnel](https://developers.cloudflare.com/cloudflare-one/connections/connect-networks/):

```sh
cloudflared tunnel --url http://localhost:8787
```

Then add the URL (e.g. `https://your-tunnel.trycloudflare.com/mcp/your-secret`) as:

- **claude.ai / Cowork**: Settings → Connectors → **Add custom connector** (Pro/Max/Team/Enterprise plans)
- **ChatGPT**: Settings → Connectors (requires developer mode for full tool access)

> **Security notes:** anyone with the full URL has the same Karbon access as your API keys, so use a long random `KARBON_HTTP_SECRET`, always front it with HTTPS, and consider `KARBON_READ_ONLY=true` for remote use. There is deliberately no shared/hosted instance of this server — your keys should only ever live on infrastructure you control.

## Configuration

| Environment variable | Required | Description |
| --- | --- | --- |
| `KARBON_BEARER_TOKEN` | Yes | Bearer token from Karbon Connected Apps |
| `KARBON_ACCESS_KEY` | Yes | Access key (JWT) from Karbon Connected Apps |
| `KARBON_READ_ONLY` | No | Set to `true` to disable all create/update tools |
| `KARBON_ALLOW_PAYMENT_WRITES` | No | Set to `true` to enable the payment write tools (create/delete/reverse manual payments). Off by default |
| `KARBON_API_BASE_URL` | No | Override the API base URL (default `https://api.karbonhq.com/v3`) |
| `KARBON_HTTP_SECRET` | No | HTTP mode only: secret path segment for the endpoint (`/mcp/<secret>`) |
| `PORT` | No | HTTP mode only: port to listen on (default 8787; `--port` wins) |

### Read-only mode

If you want a guarantee that the AI can never modify your Karbon data, set `KARBON_READ_ONLY=true` (or pass `--read-only`). Write tools are not registered at all in this mode, so the AI never sees them. This also disables `download_file` — it doesn't change Karbon, but it writes to the local disk, and read-only means no writes anywhere. The setup wizard asks about this.

**Changing it later:** setup always writes the toggle explicitly (`"KARBON_READ_ONLY": "true"` or `"false"`), so the switch is right there in your config file — flip the value and restart the client. Write tools appear or disappear accordingly (in read-only mode they aren't registered at all, so the AI never sees them). Alternatively, re-run setup and skip the key prompts (press Enter) — your saved keys are kept, and your new read-only answer is applied. One caveat: entries managed by the `claude` / `codex` CLIs aren't touched by a re-run — for those, run `claude mcp remove karbon` (or `codex mcp remove karbon`) first, then re-run setup.

### Payment writes (extra opt-in)

Recording, deleting, or reversing payments touches financial records, so those three tools sit behind their own switch — even with writes otherwise enabled they are not registered until you set `KARBON_ALLOW_PAYMENT_WRITES=true` (or pass `--allow-payment-writes`). Setup writes the toggle as `"false"` so it's easy to find and flip in your config file; re-running setup never resets a value you changed by hand. Read-only mode always wins: if `KARBON_READ_ONLY=true`, payment writes stay off regardless.

### A note on credentials

Whether you type your keys into the setup wizard or paste them into a config file by hand, they end up in exactly one place: your own MCP client's local config file — the same file a fully manual setup would use. Nothing in this project transmits your keys anywhere else. Like every stdio MCP server, the keys live in that file in plain text, so treat it like a password: it grants the same access to your Karbon account as your keys do. If a key is ever exposed, regenerate it in Karbon under Settings → Connected Apps.

## Example prompts

- "Find the contact record for Jane Smith and show her business card details."
- "Update Jane Smith's email address and phone number."
- "List all in-progress work items assigned to me, ordered by due date."
- "Are we over budget on the Hendersons' tax return?"
- "Which invoices are still awaiting payment, and for how much?"
- "Create a work item for Acme Corp's 2025 tax return, assigned to alex@firm.com, starting next Monday."
- "Add a note to the Smith work item summarizing today's client call."
- "How many hours were logged against client work last week?"
- "What files are attached to the Miller onboarding work item?"

## Development

```sh
git clone https://github.com/Mad-Man-Dan/karbon-mcp-server.git
cd karbon-mcp-server
npm install
npm test        # builds, then runs the smoke tests (tool matrix across flag combos)
```

Releases are automated: pushing a `v*` tag runs CI, publishes to npm via [trusted publishing](https://docs.npmjs.com/trusted-publishers) (OIDC — no tokens), and updates the [MCP Registry](https://registry.modelcontextprotocol.io) listing.

Test locally with the [MCP Inspector](https://github.com/modelcontextprotocol/inspector):

```sh
npx @modelcontextprotocol/inspector \
  -e KARBON_BEARER_TOKEN=... -e KARBON_ACCESS_KEY=... \
  node dist/index.js
```

The Karbon API is documented at [developers.karbonhq.com](https://developers.karbonhq.com/) with an OpenAPI spec at [karbonhq/karbon-api-reference](https://github.com/karbonhq/karbon-api-reference).

## Contributing

Contributions welcome — open an issue or PR.

## License

[MIT](https://github.com/Mad-Man-Dan/karbon-mcp-server/blob/HEAD/LICENSE)

