Skip to main content
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:
  1. Authenticates your request using your API token
  2. Calls the corresponding Campfire API endpoint with your credentials
  3. Returns the response to the AI assistant
Your token is sent with every API tool call so results stay scoped to your organization.

Available Tools

The MCP server provides 12 tools that map directly to Campfire API endpoints:
  • 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
  • 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
  • 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
  • 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

1

Get Your API Token

Generate an API token from your Campfire account settings. Navigate to Settings > API Tokens and create a new token.
Save your token securely - it won’t be shown again after creation.
2

Configure Your AI Tool

Add the Campfire MCP server to your AI tool’s configuration:
Open the Command Palette (Cmd+Shift+P), select MCP: Open Settings, and add:
{
  "mcpServers": {
    "Campfire": {
      "url": "https://api.campfire.com/mcp",
      "headers": {
        "Authorization": "Token YOUR_API_TOKEN"
      }
    }
  }
}
Replace YOUR_API_TOKEN with your Campfire API token.
3

Restart Your AI Tool

Restart your AI tool to load the new MCP configuration.
4

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:
Get all accounts of type ASSET
Find accounts with "cash" in the name
Show me all bank accounts
Find transactions from the last 30 days
Show me all transactions for vendor ABC Corp
Get transactions for the Marketing department
Find all transactions over $1000 in December 2023
List all vendors with names containing "Tech"
Show me all departments
Get all entities in my organization
Find tags related to "Marketing"
Generate income statement for Q1 2024
Show me balance sheet for December 2023
Get cash flow statement for the last 6 months
Create a monthly income statement for 2023
Show me all budgets for our main entity
List all active contracts
Get accounts payable aging report
Show me AR aging as of today
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

Your API token provides full access to your Campfire data. Keep it secure and never share it publicly.
  • 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

If you receive authentication errors:
  • Verify your API token is correct
  • Check that your token hasn’t expired
  • Ensure the authorization header is properly configured in your MCP settings
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
Contact our support team at support@campfire.com for assistance with MCP configuration or troubleshooting.