Kikobooks MCP Server README

The full upstream README, mirrored for reference. Install config, tool schemas, adoption signals and our own overview live on the Kikobooks MCP Server listing page.

KikoBooks MCP Server

Legacy / maintenance mode. Do not use this repository for new ChatGPT, Claude, Meta Muse, or customer deployments. Accountant Inc. is replacing the local npm/stdio/API-key path with the hosted KikoBooks Connector Platform. New development belongs in the KikoBooks app repository; this package remains temporarily available for existing local users and security/compatibility fixes only. It will be deprecated and archived after the hosted KikoBooks and Accountant.World connectors pass replacement gates. See DEPRECATION.md.

A Model Context Protocol (MCP) server for KikoBooks. This legacy server lets locally launched MCP clients interact with KikoBooks accounting data through natural language.

Building an agent on top of this server? Read SKILL.md — the operating guide (status-first connect, write-tier approval, read-back verification, never expose secrets).

Maintaining or extending it? See CONTRIBUTING.md for the facts that must stay accurate and the release steps.

Features

  • Chart of Accounts — Search, get, create, and update GL accounts
  • Customers — Full CRUD with soft delete for customer management
  • Invoices — Search, create, and manage AR invoices
  • Items — Manage products and services
  • Vendors — Full CRUD with soft delete for vendor management
  • Bills — Full CRUD with void for AP bills
  • Journal Entries — Search, create, post, and reverse GL journal entries
  • Bill Payments — Search, create, and void AP payments
  • Purchases / Expenses — Full CRUD with delete for expense transactions
  • Customer Payments — Search, create, and manage AR payments
  • Credit Memos — Search, create, and manage AR credit memos
  • Sales Receipts — Search, create, and manage sales receipts
  • CRM — Leads, deals, and pipeline (search/create/update), plus stage moves and customer promotion
  • Proposals — Search and copy proposals; convert accepted proposals to invoices or jobs
  • Workflow — Jobs (Projects/Engagements) and tasks; status updates and job-to-invoice billing
  • Lifecycle bridges — CRM deal → proposal → job → invoice, end to end
  • Reports — Trial balance, profit & loss, AR/AP aging, cash position, income/expense by category, business health (read-only)
  • Banking — Bank accounts, imported transactions, and reconciliation sessions, plus the reconciliation lifecycle (start, set statement balance, complete, cancel)
  • Deposits, Fixed Assets, Recurring Schedules, Statements — Search and get, plus deposit posting, fixed-asset depreciation and disposal, recurring-schedule controls, and statement sending
  • Connection & discovery — Connection status and per-org enabled-module discovery (no secrets exposed)

CRM, Proposals, and Workflow tools require the org to have the Sales / Workflow modules enabled (always on for accounting firms; opt-in for self-service businesses). Call get_enabled_modules first to check.

Prerequisites

  • Node.js 18 or higher
  • A KikoBooks or Accountant.World organization (start free)
  • An org API key: sign in, open Settings → API Keys (direct link), create a key, and copy it once. Keys can be scoped, set to expire, and revoked at any time.

Supported clients

Existing local stdio clients only. This package is no longer the supported customer onboarding path and is not intended for VS Code, ChatGPT, Claude web, or Meta Muse. Existing users may continue temporarily while the hosted KikoBooks Connector Platform is completed.

Setup

Most users don't need this. To use the published server, skip to Configuration — the npx command pulls it from npm automatically. The steps below are for local development / contributing.

  1. Install dependencies:
Terminal
npm install
  1. Create a .env file (copy from .env.example):
env
KIKOBOOKS_BASE_URL=https://ai.kikobooks.com
KIKOBOOKS_API_KEY=your_api_key_here
  1. Build:
Terminal
npm run build

Configuration

Claude Desktop

Add to your claude_desktop_config.json:

config.json
{
  "mcpServers": {
    "kikobooks": {
      "command": "npx",
      "args": ["-y", "@agentkiko/kikobooks-mcp-server@latest"],
      "env": {
        "KIKOBOOKS_BASE_URL": "https://ai.kikobooks.com",
        "KIKOBOOKS_API_KEY": "your_api_key_here"
      }
    }
  }
}

Claude Code (legacy)

Terminal
claude mcp add kikobooks \
  -e KIKOBOOKS_BASE_URL=https://ai.kikobooks.com \
  -e KIKOBOOKS_API_KEY=your_api_key_here \
  -- npx -y @agentkiko/kikobooks-mcp-server@latest

Cursor / Windsurf

Add the same mcpServers block shown for Claude Desktop to ~/.cursor/mcp.json (Cursor) or ~/.codeium/windsurf/mcp_config.json (Windsurf).

Read-only mode

Write, update, and delete tools load by default. To give an assistant analysis-only access, add these to the env block of any configuration above:

json
"KIKOBOOKS_DISABLE_WRITE": "true",
"KIKOBOOKS_DISABLE_UPDATE": "true",
"KIKOBOOKS_DISABLE_DELETE": "true"

Only get_*, search_*, and list_* tools are registered in this mode.

Local Development

For local development, point to the built output:

config.json
{
  "servers": {
    "kikobooks": {
      "command": "node",
      "args": ["/absolute/path/to/mcp-kiko/dist/index.js"],
      "env": {
        "KIKOBOOKS_BASE_URL": "https://ai.kikobooks.com",
        "KIKOBOOKS_API_KEY": "your_api_key_here"
      }
    }
  }
}

Available Tools (116 total)

Chart of Accounts

ToolDescription
search_accountsSearch accounts with filtering by category, type, and text
get_accountGet full account details by ID
create_accountCreate a new GL account
update_accountUpdate an existing account

Customers

ToolDescription
search_customersSearch customers with text search and pagination
get_customerGet full customer details by ID
create_customerCreate a new customer
update_customerUpdate an existing customer
delete_customerSoft delete (deactivate) a customer

Invoices

ToolDescription
search_invoicesSearch invoices with status, customer, date, and overdue filters
get_invoiceGet full invoice details including line items and payments
create_invoiceCreate a new invoice with line items
update_invoiceUpdate an existing invoice

Items (Products/Services)

ToolDescription
search_itemsSearch products and services
get_itemGet item details including pricing
create_itemCreate a new product or service
update_itemUpdate an existing item

Vendors

ToolDescription
search_vendorsSearch vendors with text search
get_vendorGet full vendor details
create_vendorCreate a new vendor
update_vendorUpdate an existing vendor
delete_vendorSoft delete (deactivate) a vendor

Bills (Accounts Payable)

ToolDescription
search_billsSearch bills with status, vendor, date, and overdue filters
get_billGet full bill details including line items
create_billCreate a new bill
update_billUpdate an existing bill
void_billVoid a posted bill (reverses accounting impact)

Journal Entries

ToolDescription
search_journal_entriesSearch entries with date, source, and posted filters
get_journal_entryGet full entry with debit/credit lines
create_journal_entryCreate a manual journal entry (debits must equal credits)
post_journal_entryPost a draft journal entry to the ledger
reverse_journal_entryReverse a posted journal entry

Bill Payments (Accounts Payable)

ToolDescription
search_bill_paymentsSearch bill payments with vendor and date filters
get_bill_paymentGet full bill payment details
create_bill_paymentCreate a new bill payment
void_bill_paymentVoid a bill payment (reverses accounting impact)

Purchases / Expenses

ToolDescription
search_purchasesSearch expense transactions with filters
get_purchaseGet full expense/purchase details
create_purchaseCreate a new expense/purchase
update_purchaseUpdate an existing expense/purchase
delete_purchaseDelete an expense/purchase

Customer Payments (AR)

ToolDescription
search_paymentsSearch AR payments with customer and date filters
get_paymentGet full payment details
create_paymentRecord a customer payment

Credit Memos (AR)

ToolDescription
search_credit_memosSearch credit memos with filters
get_credit_memoGet full credit memo details
create_credit_memoCreate a new credit memo

Sales Receipts

ToolDescription
search_sales_receiptsSearch sales receipts with filters
get_sales_receiptGet full sales receipt details
create_sales_receiptCreate a new sales receipt

CRM (requires the Sales module)

ToolDescription
search_leadsSearch CRM leads
get_leadGet a lead by ID
create_leadCreate a new lead
search_dealsSearch CRM deals (pipeline opportunities)
get_dealGet a deal by ID
create_dealCreate a new deal from a lead
update_dealUpdate an existing deal
get_pipelineGet the pipeline with stages and per-stage deal counts
move_deal_stageMove a deal to another pipeline stage
promote_deal_to_customerPromote a deal's customer (gate before proposal/job)

Proposals (requires the Sales module)

ToolDescription
search_proposalsSearch proposals by customer, status, date
get_proposalGet full proposal details
copy_proposalDuplicate a proposal into a new draft
generate_invoice_from_proposalCreate a DRAFT invoice from a signed proposal (bridge)
create_job_from_proposalCreate a job with tasks from an accepted proposal (bridge)

Workflow (requires the Workflow module)

ToolDescription
search_jobsSearch jobs (Projects for CB / Engagements for CA)
get_jobGet full job details
list_job_tasksList the tasks for a job
update_job_statusUpdate a job's status
update_task_statusUpdate a task's status (e.g. mark complete)
generate_invoice_from_jobCreate a DRAFT invoice from a job's timesheets + expenses (bridge)

Connection & Discovery

ToolDescription
get_connection_statusReport connected / unauthenticated / disconnected — never returns secrets
get_enabled_modulesList which modules (Sales, Workflow) the org has enabled

Reports (read-only)

ToolDescription
get_trial_balanceTrial balance (debit/credit per GL account) as of a date
get_profit_and_lossMonthly profit & loss (income statement) trend
get_ar_agingAR aging brackets (current, 1-30, 31-60, 61-90, 90+)
get_ap_agingAP aging brackets (current, 1-30, 31-60, 61-90, 90+)
get_cash_positionCash across GL + bank accounts as of a date
get_expense_by_categoryExpense breakdown by category
get_income_by_categoryIncome breakdown by category
get_business_healthComposite business-health indicators

Banking & Reconciliation (read)

ToolDescription
search_bank_accountsSearch bank accounts with paging and filters
get_bank_accountGet a bank account by ID
search_bank_transactionsSearch imported bank transactions (append-only evidence)
get_bank_transactionGet a bank transaction by ID
search_reconciliation_sessionsSearch reconciliation sessions
get_reconciliation_summaryReconciliation summary across accounts

Deposits, Fixed Assets, Recurring, Statements (read)

ToolDescription
search_deposits / get_depositBank deposits and allocated payments
search_fixed_assets / get_fixed_assetCapitalized assets and depreciation settings
search_recurring_schedules / get_recurring_scheduleRecurring invoice schedules
search_statements / get_statementCustomer AR statements
get_organization_detailsConnected org profile and settings

Deposits / Fixed Assets / Recurring / Statements / Reconciliation (write)

Mutating — require a read-write API key and are hidden when KIKOBOOKS_DISABLE_WRITE is set.

ToolDescription
create_deposit / update_deposit / delete_deposit / void_deposit / post_depositFull deposit lifecycle (draft → post / void)
create_fixed_asset / update_fixed_asset / dispose_fixed_assetFixed-asset register and disposal
run_depreciationPost depreciation for a fiscal year + period
delete_recurring_schedule / pause_recurring_schedule / resume_recurring_schedule / activate_recurring_schedule / generate_recurring_invoiceRecurring schedule lifecycle
delete_statement / send_statementCustomer statement delete and send
start_reconciliation / complete_reconciliation / cancel_reconciliation / set_statement_balanceBank reconciliation session lifecycle

Not yet exposed (deferred): create_recurring_schedule, create_statement, and per-transaction bank match/categorize — their request bodies are large nested templates that warrant dedicated design rather than a best-effort mapping.

Scope tiers

Read tools (get_*, search_*, list_*) always load. Mutating tools load by default and are grouped into scope tiers that can be suppressed at startup (set the flag to true or 1):

Env flagSuppresses
KIKOBOOKS_DISABLE_WRITEcreate_*, post_*, reverse_*, move_*, promote_*, copy_*, generate_*, send_*, approve_*, dispose_*, run_*, pause_*, resume_*, activate_*, start_*, complete_*, cancel_*, set_*
KIKOBOOKS_DISABLE_UPDATEupdate_*
KIKOBOOKS_DISABLE_DELETEdelete_*, void_*

Security

  • The API key is exchanged for short-lived JWTs. It is never written to disk, logged, or returned to the model.
  • Every call goes through the same permission-checked KikoBooks API your team uses, scoped to the key's organization.
  • Posted ledger entries cannot be edited or deleted through any tool; corrections are reversals or credit memos.
  • MCP clients ask you to confirm tool calls before they run. Review each write before you approve it.
  • Report vulnerabilities to info@accountant.world with the subject "Security vulnerability report".

Privacy and terms

  • This package sends no telemetry. It runs on your machine and talks only to the KIKOBOOKS_BASE_URL you configure.
  • Nothing is written to disk unless you set KIKOBOOKS_TOKEN_STORE_PATH; then only the short-lived session tokens are saved there (owner-only permissions on macOS and Linux), never the API key.
  • Your MCP client and the AI model it uses (for example, Claude or GitHub Copilot) see the tool results you request. Their providers' terms and privacy policies govern that data.
  • Using KikoBooks through this server is covered by the KikoBooks Terms of Service and Privacy Policy. KikoBooks is offered to U.S. businesses only.

Authentication

The server supports two authentication methods:

API Key (Recommended)

Set KIKOBOOKS_API_KEY — the server automatically exchanges it for JWT tokens and handles refresh.

Direct Token

Set KIKOBOOKS_ACCESS_TOKEN (and optionally KIKOBOOKS_REFRESH_TOKEN) if you manage tokens externally.

Environment Variables

VariableRequiredDescription
KIKOBOOKS_BASE_URLYesKikoBooks API base URL
KIKOBOOKS_API_KEYYes*Org API key for authentication
KIKOBOOKS_ACCESS_TOKENAlt*Direct JWT access token
KIKOBOOKS_REFRESH_TOKENNoJWT refresh token
KIKOBOOKS_TOKEN_STORE_PATHNoAbsolute path to persist the rotated JWT between runs (API key is never written)
KIKOBOOKS_DISABLE_WRITENoSuppress create/post/action and bridge tools
KIKOBOOKS_DISABLE_UPDATENoSuppress update tools
KIKOBOOKS_DISABLE_DELETENoSuppress delete/void tools

* Either KIKOBOOKS_API_KEY or KIKOBOOKS_ACCESS_TOKEN is required.

Development

bash
# Install dependencies
npm install

# Build
npm run build

# Watch mode
npm run watch

# Lint
npm run lint

Architecture

Code
src/
├── index.ts                 # Entry point
├── config.ts                # Env config (base URL, key, token-store path, scope flags)
├── clients/
│   ├── kikobooks-client.ts   # HTTP client with JWT auth + auto-refresh (get/post/put/delete)
│   └── token-store.ts        # Optional file-backed JWT cache (API key never persisted)
├── server/
│   └── kikobooks-mcp-server.ts  # MCP server singleton
├── tools/                   # Tool definitions grouped by verb, registered via tool-factory
│   ├── tool-factory.ts       # Registers all tools + applies scope-tier gating
│   ├── search/  get/  create/  update/  delete/  action/
│   └── ... (116 tools)
├── handlers/                # Business logic (calls the API client)
├── helpers/                 # register-tool, format-error, get-package-version
└── types/                   # tool-definition, tool-response

Roadmap

See ROADMAP.md for the full implementation plan:

  • Phase 1 ✅ Core Bookkeeping (12 accounting entities)
  • Phase 2 ✅ Practice Management (CRM, Proposals, Workflow) + lifecycle bridges
  • Phase 3 ✅ Banking & Reconciliation
  • Phase 4 ✅ Reports & Analytics

License

MIT — see LICENSE

Links