# FreshBooks — how to use (mcp.ai)

FreshBooks is a cloud-based accounting software service designed for small and medium-sized businesses, offering features like invoicing, expense tracking, and time management.

## Option A — via MCP (recommended)
Remote MCP endpoint (HTTP, streamable): `https://api.mcp.ai/p_freshbooks?ms=1781542680000`
Add it as a custom/remote MCP connector in your client (Claude, Cursor, VS Code…), then authenticate when prompted. Once connected, ask the agent to use the server's tools (e.g. `freshbooks_list_businesses`).

## Option B — via direct REST API
Base URL: `https://api.mcp.ai/api/freshbooks`
Auth: `Authorization: Bearer sk_live_…` — create a workspace API key at https://mcp.ai/settings/api-keys
Discover endpoints: `GET https://api.mcp.ai/api/freshbooks/_endpoints`

### Endpoints
- `POST https://api.mcp.ai/api/freshbooks/list/businesses` — Tool to list all businesses associated with the authenticated user.
- `POST https://api.mcp.ai/api/freshbooks/list/projects` — Tool to list all projects for a business. use after confirming the business id.
  - body: { active?: boolean, sort_by?: string, complete?: boolean, skip_group?: boolean, business_id: integer, updated_since?: string, include_logged_duration?: boolean }

## More
- Page: https://mcp.ai/freshbooks
- Agent spec (llms.txt): https://mcp.ai/freshbooks/llms.txt
- Postman collection: https://mcp.ai/freshbooks/postman.json
