Logo de QuickBooks Online MCP Server

QuickBooks Online MCP Server

Organização
intuit

The QuickBooks MCP Server lets AI assistants access QuickBooks data via a standard interface. It uses the Model Context Protocol to expose QBO features as callable tools, enabling developers to build AI apps that fetch real-time QBO data through MCP.

Publicado porintuit
Repositórioquickbooks-online-mcp-server
IdiomaTypeScript
Forks
243
Estrelas
397
Ferramentas disponíveis
0
Tipo de transportestdio
Categorias
LicençaApache-2.0
Links
  • Conecte ferramentas a fluxos de trabalho de IA

    QuickBooks Online MCP Server disponibiliza recursos MCP que podem ser usados por clientes e agentes de IA compatíveis.

  • Ferramentas disponíveis: 0

    Confira abaixo as ações que o cliente MCP pode executar, com nomes e descrições quando fornecidos pelo servidor.

  • Configuração pronta para copiar

    Use os exemplos de instalação para configurar este servidor no seu cliente MCP preferido.

  • Indicadores da comunidade de código aberto

    Estrelas: 397 e forks: 243 no repositório vinculado.

QuickBooks Online MCP Server

A comprehensive Model Context Protocol (MCP) server for QuickBooks Online

License: MIT Tools Entities Reports Coverage Tests

Quick Start | Available Tools | Authentication | Documentation


Overview

This MCP server provides complete QuickBooks Online API integration for Claude Code and other MCP-compatible clients. It includes full CRUD operations for 29 entity types and 11 financial reports, giving you comprehensive access to QuickBooks Online functionality.

Key Features

  • 145 Total Tools - Complete coverage of QuickBooks Online API
  • 29 Entity Types - Full CRUD operations (Create, Read, Update, Delete, Search)
  • 11 Financial Reports - Balance Sheet, P&L, Cash Flow, and more
  • OAuth 2.0 Authentication - Secure token-based authentication
  • TypeScript - Full type safety with Zod validation
  • Tested - Jest test suite with ESM support

Note: this is a local MCP server. It runs as a stdio subprocess on the developer's or partner's machine and authenticates to a QuickBooks Online company.

Before you start: This MCP server is easy to run once authenticated, but QuickBooks Online integration is gated by Intuit's OAuth app setup. You must register an app on the Intuit Developer Portal and complete a one-time, browser-based OAuth handshake. Sandbox supports http://localhost redirect URIs; production requires a public HTTPS callback for the initial authorization. After that initial handshake, the server runs locally without further browser interaction (until the 100-day refresh window lapses). See Authentication for full details.


Quick Start

Installation

bash
# Clone the repository
git clone https://github.com/your-username/mcp-quickbooks-online.git
cd mcp-quickbooks-online

# Install dependencies
npm install

# Build the project
npm run build

Configuration

Copy the template .env.example to .env in the root directory and fill in your values:

bash
cp .env.example .env
env
QUICKBOOKS_CLIENT_ID=your_client_id
QUICKBOOKS_CLIENT_SECRET=your_client_secret
QUICKBOOKS_ENVIRONMENT=sandbox
QUICKBOOKS_REFRESH_TOKEN=your_refresh_token
QUICKBOOKS_REALM_ID=your_realm_id

# Optional: restrict which tool categories are registered (default: all enabled)
# QUICKBOOKS_DISABLE_WRITE=true    # suppress create_* tools
# QUICKBOOKS_DISABLE_UPDATE=true   # suppress update_* tools
# QUICKBOOKS_DISABLE_DELETE=true   # suppress delete_* tools

.env is gitignored so your real credentials stay local.

Read-only or containerized installs: the server reads .env at startup and writes the rotated refresh token back to it on each refresh. When the installed module sits on a read-only filesystem (a container with a read-only root, an immutable/Nix install), set QUICKBOOKS_TOKEN_STORE_PATH to an absolute, writable path for both operations. A per-tenant host can also point each connection at its own isolated token file this way. Three things to know: it must be set in the host process env (e.g. the env block of your MCP server config) — setting it inside .env has no effect, because the path is resolved before .env is read; it must be an absolute path (the server refuses to start otherwise); and when set, the package's own .env is not read at all, so any file-based config (including credentials) must live in the file it points to.

Claude Code Integration

Add to your Claude Code MCP configuration:

json
{
  "mcpServers": {
    "quickbooks": {
      "command": "node",
      "args": ["path/to/mcp-quickbooks-online/dist/index.js"],
      "env": {
        "QUICKBOOKS_CLIENT_ID": "your_client_id",
        "QUICKBOOKS_CLIENT_SECRET": "your_client_secret",
        "QUICKBOOKS_REFRESH_TOKEN": "your_refresh_token",
        "QUICKBOOKS_REALM_ID": "your_realm_id",
        "QUICKBOOKS_ENVIRONMENT": "sandbox",
        "QUICKBOOKS_DISABLE_WRITE": "false",
        "QUICKBOOKS_DISABLE_UPDATE": "false",
        "QUICKBOOKS_DISABLE_DELETE": "false"
      }
    }
  }
}

Set any of the DISABLE_* flags to "true" to prevent that category of tools from being registered. Read tools (get_*, search_*) are always available.


Available Tools

Entities

Complete CRUD operations are available for all entity types:

EntityCreateGetUpdateDeleteSearch
Customer✅✅✅✅✅
Invoice✅✅✅✅✅
Estimate✅✅✅✅✅
Bill✅✅✅✅✅
Vendor✅✅✅✅✅
Employee✅✅✅✅✅
Account✅✅✅-✅
Item✅✅✅✅✅
Journal Entry✅✅✅✅✅
Bill Payment✅✅✅✅✅
Purchase✅✅✅✅✅
Payment✅✅✅✅✅
Sales Receipt✅✅✅✅✅
Credit Memo✅✅✅✅✅
Refund Receipt✅✅✅✅✅
Purchase Order✅✅✅✅✅
Vendor Credit✅✅✅✅✅
Deposit✅✅✅✅✅
Transfer✅✅✅✅✅
Time Activity✅✅✅✅✅
Class✅✅✅-✅
Department✅✅✅-✅
Term✅✅✅-✅
Payment Method✅✅✅-✅
Tax Code-✅--✅
Tax Rate-✅--✅
Tax Agency-✅--✅
Company Info-✅✅--
Attachable✅✅✅✅✅

Reports

ReportTool NameDescription
Balance Sheetget_balance_sheetAssets, liabilities, and equity snapshot
Profit & Lossget_profit_and_lossIncome and expenses over a period
Cash Flowget_cash_flowCash inflows and outflows
Trial Balanceget_trial_balanceDebit and credit balances
General Ledgerget_general_ledgerComplete transaction history
Customer Salesget_customer_salesSales by customer
Aged Receivablesget_aged_receivablesOutstanding customer invoices
Aged Receivables Detailget_aged_receivables_detailDetailed aging breakdown
Customer Balanceget_customer_balanceCurrent customer balances
Aged Payablesget_aged_payablesOutstanding vendor bills
Vendor Expensesget_vendor_expensesExpenses by vendor

Tool Reference

ToolDescription
create_customerCreate a new customer
get_customerGet customer by ID
update_customerUpdate customer details
delete_customerDelete a customer
search_customersSearch customers with filters
ToolDescription
create_invoiceCreate a new invoice
get_invoiceGet invoice by ID
update_invoiceUpdate invoice details
delete_invoiceDelete/void an invoice
search_invoicesSearch invoices with filters
get_invoice_pdfDownload an invoice as a PDF (inline base64, or to disk when QBO_PDF_OUTPUT_DIR is set)
ToolDescription
create_paymentRecord a customer payment
get_paymentGet payment by ID
update_paymentUpdate payment details
delete_paymentVoid a payment
search_paymentsSearch payments with filters
ToolDescription
create_billCreate a new bill
get_billGet bill by ID
update_billUpdate bill details
delete_billDelete a bill
search_billsSearch bills with filters
create_vendorCreate a new vendor
get_vendorGet vendor by ID
update_vendorUpdate vendor details
delete_vendorDelete a vendor
search_vendorsSearch vendors with filters
create_bill_paymentCreate a bill payment
get_bill_paymentGet bill payment by ID
update_bill_paymentUpdate bill payment
delete_bill_paymentDelete a bill payment
search_bill_paymentsSearch bill payments
ToolDescription
create_sales_receiptCreate a sales receipt
get_sales_receiptGet sales receipt by ID
update_sales_receiptUpdate sales receipt
delete_sales_receiptVoid a sales receipt
search_sales_receiptsSearch sales receipts
create_credit_memoCreate a credit memo
get_credit_memoGet credit memo by ID
update_credit_memoUpdate credit memo
delete_credit_memoVoid a credit memo
search_credit_memosSearch credit memos
create_refund_receiptCreate a refund receipt
get_refund_receiptGet refund receipt by ID
update_refund_receiptUpdate refund receipt
delete_refund_receiptVoid a refund receipt
search_refund_receiptsSearch refund receipts
ToolDescription
create_depositCreate a bank deposit
get_depositGet deposit by ID
update_depositUpdate deposit details
delete_depositDelete a deposit
search_depositsSearch deposits
create_transferCreate an account transfer
get_transferGet transfer by ID
update_transferUpdate transfer details
delete_transferDelete a transfer
search_transfersSearch transfers
ToolDescription
create_purchase_orderCreate a purchase order
get_purchase_orderGet purchase order by ID
update_purchase_orderUpdate purchase order
delete_purchase_orderDelete a purchase order
search_purchase_ordersSearch purchase orders
create_vendor_creditCreate a vendor credit
get_vendor_creditGet vendor credit by ID
update_vendor_creditUpdate vendor credit
delete_vendor_creditDelete a vendor credit
search_vendor_creditsSearch vendor credits
ToolDescription
create_time_activityCreate a time activity
get_time_activityGet time activity by ID
update_time_activityUpdate time activity
delete_time_activityDelete a time activity
search_time_activitiesSearch time activities
ToolDescription
create_classCreate a class
get_classGet class by ID
update_classUpdate class details
search_classesSearch classes
create_departmentCreate a department
get_departmentGet department by ID
update_departmentUpdate department
search_departmentsSearch departments
ToolDescription
create_termCreate a payment term
get_termGet term by ID
update_termUpdate term details
search_termsSearch terms
create_payment_methodCreate a payment method
get_payment_methodGet payment method by ID
update_payment_methodUpdate payment method
search_payment_methodsSearch payment methods
get_preferencesGet company accounting and feature preferences
ToolDescription
get_tax_codeGet tax code by ID
search_tax_codesSearch tax codes
get_tax_rateGet tax rate by ID
search_tax_ratesSearch tax rates
get_tax_agencyGet tax agency by ID
search_tax_agenciesSearch tax agencies
ToolDescription
get_company_infoGet company information
update_company_infoUpdate company info
create_attachableCreate an attachment
get_attachableGet attachment by ID
update_attachableUpdate attachment
delete_attachableDelete an attachment
search_attachablesSearch attachments

Authentication

This server uses OAuth 2.0 to authenticate to a QuickBooks Online company. You'll set up an app on the Intuit Developer Portal and connect it to either a sandbox (for development) or your production QBO company.

Important: Sandbox vs Production

ModeWhen to useRedirect URI acceptedSetup difficulty
SandboxDevelopment, testing, demoshttp://localhost:8000/callback worksEasy
ProductionReal company dataLocalhost rejected — must be a public HTTPS URLHarder (see below)

If you only want to read your own company's data, you still need to set up an app — Intuit does not offer per-user API keys. There is no shortcut around the OAuth + app-creation flow.

Sandbox Setup (recommended for first run)

  1. Go to the Intuit Developer Portal and create a new app
  2. Open the app → Settings (left sidebar) → Redirect URIs → add: http://localhost:8000/callback
  3. Get your Client ID and Client Secret from the app's Keys & Credentials page (Development keys)
  4. Create or use a sandbox company under the Sandbox top-level menu item in the dev portal
  5. Set QUICKBOOKS_ENVIRONMENT=sandbox in your .env
  6. Run npm run auth to complete the OAuth handshake — your browser will open, you sign in to the sandbox company, tokens are saved to .env

Production Setup

The Intuit Developer Portal rejects http://localhost redirect URIs in production mode — every contributor hits this. Two known workarounds:

  1. ngrok tunnel (most common): run ngrok http 8000, then on your Intuit app go to Settings → Redirect URIs and add the generated https://<id>.ngrok-free.app/callback URL. Use that URL for the OAuth handshake, then revert to localhost afterwards.
  2. Deploy a small public callback handler (e.g., on a VPS or serverless function) that captures the auth code and hands it back to your local setup. More involved; only needed if you can't use ngrok.

After completing the production OAuth handshake, the refresh token is what matters — once it's in .env, you no longer need the public redirect URL for day-to-day use. Refresh tokens auto-rotate; the server persists the new token on each refresh.

Once you have tokens

env
QUICKBOOKS_CLIENT_ID=your_client_id
QUICKBOOKS_CLIENT_SECRET=your_client_secret
QUICKBOOKS_REFRESH_TOKEN=your_refresh_token
QUICKBOOKS_REALM_ID=your_realm_id
QUICKBOOKS_ENVIRONMENT=sandbox  # or 'production'

Common pitfalls

  • .env loaded from the wrong directory. The server resolves .env relative to the compiled module, not your shell's CWD. If you launch via Claude Desktop, this matters — make sure you're on current main.
  • Redirect URI mismatch. The URI you register in the Intuit portal must match exactly — protocol, host, port, path. http://localhost:8000/callback .

Development

Building

bash
npm run build

Testing

bash
npm test

The test suite includes 396 tests with 100% code coverage across all metrics (statements, branches, functions, lines).

Project Structure

src/
├── clients/          # QuickBooks API client
├── handlers/         # Business logic handlers (87 files)
├── tools/           # MCP tool definitions
├── helpers/         # Utility functions
├── types/           # TypeScript types
└── index.ts         # Server entry point

tests/
├── unit/            # Unit tests (396 tests)
│   ├── handlers/    # Handler tests (15 test files)
│   └── helpers/     # Helper tests
└── mocks/           # Test mocks

docs/
├── ARCHITECTURE.md  # System architecture & design patterns
├── TESTING.md       # Testing guide & patterns
└── plans/           # Development plans

Documentation

DocumentDescription
CHANGELOG.mdVersion history and all changes
docs/ARCHITECTURE.mdSystem architecture, patterns, and design decisions
docs/TESTING.mdTesting strategy, ESM patterns, and coverage guide

Error Handling

If you encounter connection errors:

  1. Verify all environment variables are set correctly
  2. Check that tokens are valid and not expired
  3. Ensure the QuickBooks app has the correct redirect URIs
  4. For sandbox testing, use QUICKBOOKS_ENVIRONMENT=sandbox

Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

Tool naming convention

All tool names must follow the {verb}_{entity} convention using underscores. The verb prefix determines CRUD Restriction Mode behaviour:

PrefixCategorySuppressed by
create_WRITEQUICKBOOKS_DISABLE_WRITE=true
update_UPDATEQUICKBOOKS_DISABLE_UPDATE=true
delete_DELETEQUICKBOOKS_DISABLE_DELETE=true
get_, search_, read_READnever

New tools that do not follow this convention will not be correctly categorised and may appear or be suppressed unexpectedly.


License

MIT License - see LICENSE for details.


Acknowledgments

Instalação

TypingMind
Pré-requisitos:

Node.js 18+

{
  "mcpServers": {
    "your-username-mcp-quickbooks-online": {
      "command": "",
      "args": []
    }
  }
}

Use o MCP de QuickBooks Online MCP Server com vários modelos de IA

O TypingMind conecta as ferramentas MCP no nível do espaço de trabalho. Assim, após conectar QuickBooks Online MCP Server, é possível usá-lo com diferentes modelos de IA no TypingMind, em vez de configurá-lo separadamente para cada modelo. Este MCP é executado localmente no seu dispositivo por meio do conector MCP do TypingMind.

Guia de configuração para usar o conector local

Use esta opção quando o servidor MCP precisar acessar arquivos locais, aplicativos ou recursos privados no seu computador.

1

Abra as configurações de MCP

No TypingMind, acesse Configurações > Configurações avançadas > Model Context Protocol e selecione Configurar conector.

  1. Abra o TypingMind no navegador.
  2. Clique no ícone de Configurações.
  3. Acesse Configurações avançadas.
  4. Abra a seção Model Context Protocol.
  5. Clique em Configurar conector e selecione Este dispositivo.
Tela de configuração do conector MCP do TypingMind com a opção Este dispositivo selecionada
2

Execute o comando do conector

Selecione Este dispositivo, copie o comando do TypingMind e execute-o no Terminal. Mantenha o processo em execução enquanto usa o MCP.

  1. Copie o comando de configuração exibido pelo TypingMind.
  2. Abra o Terminal no macOS ou o Windows Terminal no Windows.
  3. Cole e execute o comando.
  4. Autorize a instalação do pacote se o Terminal pedir confirmação para continuar.
  5. Mantenha o processo em execução na janela do Terminal enquanto usa as ferramentas MCP.
3

Adicione QuickBooks Online MCP Server como servidor

Quando o status do conector for Pronto, clique em Editar servidores e cole a configuração do servidor MCP.

  1. Aguarde até que o status do conector mostre Pronto.
  2. Clique em Editar servidores.
  3. Cole a configuração do servidor MCP de QuickBooks Online MCP Server.
  4. Salve a lista de servidores.
  5. Se quiser confirmar que o conector ainda está pronto para uso, atualize a página.
Configurações de MCP do TypingMind mostrando um servidor ativo e o botão Editar servidores
{
  "mcpServers": {
    "your-username-mcp-quickbooks-online": {
      "command": "npx",
      "args": [
        "-y",
        "@qboapi/qbo-mcp-server"
      ]
    }
  }
}
4

Use a conexão com diferentes modelos

Salve a lista de servidores, abra Plugins, ative as ferramentas MCP de QuickBooks Online MCP Server, selecione qualquer modelo de IA compatível no TypingMind e use as ferramentas no chat ou atribua-as a um agente de IA.

  1. Abra a página Plugins no TypingMind.
  2. Ative as ferramentas MCP de QuickBooks Online MCP Server.
  3. Inicie um chat e escolha o modelo de IA que deseja usar.
  4. Use as ferramentas MCP no chat ou atribua-as a um agente de IA.
  5. Mude para outro modelo de IA sempre que necessário, sem reconectar o MCP.
Chat do TypingMind usando ferramentas MCP ativadas com um modelo de IA selecionado
Pode usar QuickBooks Online MCP Server para me ajudar nesta tarefa?
QuickBooks Online MCP Server
Claro. Já li.
Veja o que encontrei usando QuickBooks Online MCP Server.

Perguntas frequentes

Para que serve o servidor MCP QuickBooks Online MCP Server?

QuickBooks Online MCP Server é um servidor MCP que permite que aplicativos de IA compatíveis se conectem a ferramentas externas e informações de contexto. No TypingMind, basta adicionar esse servidor MCP uma vez para disponibilizar suas ferramentas no seu espaço de trabalho com IA.

Posso usar o MCP QuickBooks Online MCP Server com vários modelos de IA no TypingMind?

Sim. O TypingMind conecta as ferramentas MCP no nível do espaço de trabalho, permitindo usar QuickBooks Online MCP Server com diferentes modelos de IA, como Claude, ChatGPT, Gemini ou outros modelos configurados no TypingMind, sem configurar o servidor MCP separadamente para cada modelo.

Por que usar o MCP QuickBooks Online MCP Server com o TypingMind?

O TypingMind é uma das melhores interfaces de chat com LLMs porque reúne vários modelos de IA, prompts, plugins, agentes de IA, chaves de API e ferramentas MCP em um só espaço de trabalho. Com QuickBooks Online MCP Server conectado, é possível usar suas ferramentas MCP nos seus modelos preferidos e manter seu fluxo de trabalho de chat organizado no TypingMind.

Como conecto o MCP QuickBooks Online MCP Server ao TypingMind?

QuickBooks Online MCP Server funciona por meio do conector MCP local do TypingMind. Essa é a melhor opção quando o servidor MCP precisa acessar arquivos locais, apps de desktop, ferramentas de linha de comando ou recursos privados no seu computador.

Quais ferramentas o MCP QuickBooks Online MCP Server oferece no TypingMind?

QuickBooks Online MCP Server disponibiliza recursos MCP que podem ser ativados na página Plugins do TypingMind e usados no chat ou atribuídos a agentes de IA.

Preciso compartilhar minhas chaves de API com o TypingMind para usar o MCP QuickBooks Online MCP Server?

Não. O TypingMind prioriza o uso local e permite manter seus provedores de modelos, chaves de API, prompts e configuração MCP sob seu controle. Se QuickBooks Online MCP Server exigir autenticação, adicione os cabeçalhos, as configurações OAuth ou a configuração local exigidos por esse servidor MCP ao criar a conexão.

Servidores MCP relacionados

Ver lista completa

Crie seu próprio espaço de trabalho com IA agora

Inscreva-se na nossa newsletter para receber avisos sobre novos recursos e futuros sorteios 👇