qb-mcp
Provides integration with Intuit's QuickBooks Online platform, enabling AI agents to programmatically handle accounting tasks such as invoicing, payment recording, and financial reporting.
Allows management of QuickBooks Online workflows, including creating and listing invoices, tracking customers and payments, generating financial reports, and recording expenses.
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@qb-mcpShow me the profit and loss report for last quarter"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
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 |
|
Customers |
|
Payments |
|
Accounts |
|
Reports |
|
Expenses |
|
Items |
|
Vendors |
|
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 .envEdit .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_token5. Build
npm run build6. 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 buildSwitching 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
This server cannot be installed
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Latest Blog Posts
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/hendrikkieft/quickbooks-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server