MCP (Model Context Protocol) allows you to access Campfire’s APIs through AI tools like Cursor, VS Code, Claude Desktop, and others.
What is MCP?
The Model Context Protocol (MCP) is an open standard that enables AI applications to securely connect to external data sources and tools. Campfire exposes an MCP server so you can:- Query your accounting data through AI assistants
- Generate reports using natural language
- Analyze financial trends with AI-powered insights
- Automate accounting workflows through AI tools
How the MCP Server Works
The MCP server provides AI tools that map directly to Campfire API endpoints. When an AI assistant uses a tool, the MCP server:- Authenticates your request using your API token
- Calls the corresponding Campfire API endpoint with your credentials
- Returns the response to the AI assistant
Available Tools
The MCP server provides 12 tools that map directly to Campfire API endpoints:Core Accounting
Core Accounting
- Chart of Accounts: Retrieve chart of accounts with optional filtering by type, subtype, or search query
- Transactions: Search and filter general ledger transactions with support for entity, account, vendor, department, tag, and date range filters
Company Data
Company Data
- Entities: Retrieve chart entities (parent companies, subsidiaries, locations)
- Vendors: Retrieve vendor/payee directory with contact details and status
- Departments: Retrieve department hierarchy (cost centers, business units)
- Tags: Retrieve transaction tags (custom dimensions) used for analytics
Financial Reports
Financial Reports
- Income Statement: Generate profit & loss statements for specified periods with configurable cadence (monthly, quarterly, yearly)
- Balance Sheet: Generate balance sheet showing assets, liabilities, and equity
- Cash Flow Statement: Generate cash flow by operating, investing, and financing activities
Budgeting & Revenue
Budgeting & Revenue
- Budgets: Retrieve budget records with entity and time-period metadata
- Contracts: Retrieve revenue recognition contracts with performance obligations
- Aging Report: Generate AP/AR aging reports with age bucket breakdowns
All tools return data scoped to your organization based on your authentication token.
How the tools are used
Your AI tool maps your question to the right Campfire API using the OpenAPI schema. You ask in natural language; the AI translates your request into the appropriate endpoint and parameters (filters, date ranges, pagination). Results are scoped to the organization tied to your API token. For full request parameters (filters, date formats, pagination), see the API reference for each endpoint.Getting Started
Get Your API Token
Generate an API token from your Campfire account settings. Navigate to Settings > API Tokens and create a new token.
Configure Your AI Tool
Add the Campfire MCP server to your AI tool’s configuration:
- Cursor
- Claude Desktop
- VS Code
Open the Command Palette (Cmd+Shift+P), select MCP: Open Settings, and add:Replace
YOUR_API_TOKEN with your Campfire API token.Start Querying
You can now ask your AI assistant questions about your Campfire data:
- “Show me the income statement for Q1 2024”
- “Find all transactions from vendor ABC Corp in the last month”
- “What are my top 10 expense accounts by amount?”
- “List all departments in my organization”
- “Show me all active contracts”
Example Queries
Here are some example queries you can try with your AI tool:Chart of Accounts
Chart of Accounts
Transactions
Transactions
Company Data
Company Data
Financial Reports
Financial Reports
Budgets, Contracts & Aging
Budgets, Contracts & Aging
The AI assistant will translate your natural language queries into the appropriate API calls with the correct parameters. Results are automatically scoped to your organization.
Security & Privacy
- Authentication: All requests require a valid API token
- Data scope: Results are scoped to the organization associated with your API token
- Data privacy: Your data is only accessed when you explicitly request it through the AI tool
- Secure storage: AI tools securely store your token locally for future requests
Troubleshooting
401 Unauthorized
401 Unauthorized
Tools not appearing
Tools not appearing
If Campfire tools don’t show up in your AI assistant:
- Restart your AI tool completely
- Verify the MCP server URL is correct in your configuration
- Check that your API token is valid
Need help?
Need help?
Contact our support team at support@campfire.com for assistance with MCP configuration or troubleshooting.