qb-mcp
An MCP server that enables AI agents to interact with QuickBooks Online accounts to manage invoices, customers, payments, and financial reports. It provides 20 tools to automate accounting workflows and retrieve financial data through natural language interfaces.
README
qb-mcp — QuickBooks Online MCP Server
A premium Model Context Protocol (MCP) server that lets AI agents (Claude, Cursor, Cline, etc.) interact with your QuickBooks Online account.
Features
20 tools covering the full QuickBooks Online workflow:
| Category | Tools |
|---|---|
| Invoices | list_invoices, create_invoice, get_invoice, send_invoice |
| Customers | list_customers, create_customer, get_customer |
| Payments | record_payment, list_payments |
| Accounts | list_accounts |
| Reports | get_profit_loss, get_balance_sheet |
| Expenses | create_expense, list_expenses |
| Items | list_items, create_item |
| Vendors | list_vendors, create_vendor |
| Bills | create_bill, list_bills |
Prerequisites
- Node.js 18 or later
- A QuickBooks Online account (sandbox or production)
- An Intuit Developer account with an OAuth 2.0 app
Setup
1. Create an Intuit Developer App
- Go to developer.intuit.com and sign in (or create an account).
- Navigate to Dashboard → Create an app.
- Select QuickBooks Online and Payments as the platform.
- Give your app a name (e.g., "MCP Server").
- Under Keys & credentials, note your Client ID and Client Secret.
- Add
http://localhost:3000/callbackas a Redirect URI. - Under Scopes, ensure
com.intuit.quickbooks.accountingis selected.
2. Get Your Sandbox Company ID
- In the Intuit Developer dashboard, go to Sandbox in the left sidebar.
- You'll see a sandbox company — note the Company ID (also called Realm ID).
- You can also find this in the URL when logged into QuickBooks Online:
https://app.qbo.intuit.com/app/homepage?companyId=XXXXXXXXX.
3. Get OAuth Tokens
For initial setup, you'll need to complete the OAuth 2.0 authorization flow to get your access and refresh tokens:
- Visit the Intuit OAuth Playground (or use the Postman collection).
- Select your app and the
com.intuit.quickbooks.accountingscope. - Authorize and connect to your sandbox company.
- Copy the Access Token and Refresh Token.
Note: Access tokens expire after 1 hour. The MCP server automatically refreshes them using the refresh token (valid for 100 days). After initial setup, tokens are stored in
~/.qb-mcp/tokens.json.
4. Install and Configure
# Clone and install
git clone <repo-url> qb-mcp
cd qb-mcp
npm install
# Configure environment
cp config/.env.example .env
Edit .env with your credentials:
QB_CLIENT_ID=your_client_id
QB_CLIENT_SECRET=your_client_secret
QB_REDIRECT_URI=http://localhost:3000/callback
QB_REALM_ID=your_company_id
QB_ENVIRONMENT=sandbox
QB_ACCESS_TOKEN=your_access_token
QB_REFRESH_TOKEN=your_refresh_token
5. Build
npm run build
6. Connect to Claude Desktop
Add this to your Claude Desktop config file:
macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
Windows: %APPDATA%\Claude\claude_desktop_config.json
{
"mcpServers": {
"quickbooks": {
"command": "node",
"args": ["/absolute/path/to/qb-mcp/dist/index.js"],
"env": {
"QB_CLIENT_ID": "your_client_id",
"QB_CLIENT_SECRET": "your_client_secret",
"QB_REALM_ID": "your_company_id",
"QB_ENVIRONMENT": "sandbox",
"QB_ACCESS_TOKEN": "your_access_token",
"QB_REFRESH_TOKEN": "your_refresh_token"
}
}
}
}
Alternatively, if you have a .env file in the project root, you can use:
{
"mcpServers": {
"quickbooks": {
"command": "node",
"args": ["/absolute/path/to/qb-mcp/dist/index.js"]
}
}
}
Restart Claude Desktop after updating the config. You should see the QuickBooks tools available in the tools menu.
Usage Examples
Once connected, you can ask your AI agent things like:
- "List all unpaid invoices"
- "Create an invoice for customer #42 with 2 hours of consulting at $150/hr"
- "Show me the profit and loss report for last quarter"
- "Record a $500 payment from customer #42 against invoice #1001"
- "List all vendors"
- "Create a bill from vendor #5 for $200 in office supplies"
Development
# Run in development mode (with tsx for hot-reload)
npm run dev
# Run tests
npm test
# Watch tests
npm run test:watch
# Type-check without building
npm run lint
# Build for production
npm run build
Switching to Production
- In your
.env, changeQB_ENVIRONMENT=production. - Complete the OAuth flow against your real QuickBooks company (not sandbox).
- Update
QB_REALM_IDto your production company ID. - Update your access and refresh tokens.
Important: Always test thoroughly in sandbox before connecting to production data.
License
MIT
Recommended Servers
playwright-mcp
A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.
Magic Component Platform (MCP)
An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.
Audiense Insights MCP Server
Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.
VeyraX MCP
Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.
graphlit-mcp-server
The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.
Kagi MCP Server
An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.
E2B
Using MCP to run code via e2b.
Neon Database
MCP server for interacting with Neon Management API and databases
Exa Search
A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.
Qdrant Server
This repository is an example of how to create a MCP server for Qdrant, a vector search engine.