Tripletex MCP Server
An MCP (Model Context Protocol) server for the Tripletex accounting API. Enables AI assistants to log hours, manage timesheets, and handle invoices through natural language.
Features
- Time tracking — log hours, start/stop timers, search entries
- Projects & activities — look up projects and activities by name
- Timesheet approval — complete, approve, and reopen weekly/monthly timesheets
- Invoices — search outgoing and incoming invoices
- Supplier invoice approval — approve or reject supplier invoices
Setup
1. Get your Tripletex API tokens
You need two tokens from Tripletex:
- Consumer token — provided after API 2.0 registration
- Employee token — created by an admin in Tripletex under user settings > "API access"
The server automatically creates a session token on first use (valid 1 day).
2. Install
git clone https://github.com/your-org/tripletex-mcp.git
cd tripletex-mcp
npm install
npm run build
3. Configure your MCP client
Add to your Claude Desktop config (~/Library/Application Support/Claude/claude_desktop_config.json):
{
"mcpServers": {
"tripletex": {
"command": "node",
"args": ["/path/to/tripletex-mcp/dist/index.js"],
"env": {
"TRIPLETEX_CONSUMER_TOKEN": "<your-consumer-token>",
"TRIPLETEX_EMPLOYEE_TOKEN": "<your-employee-token>"
}
}
}
}
Environment variables
| Variable | Required | Description |
|---|---|---|
TRIPLETEX_CONSUMER_TOKEN |
Yes | API consumer token |
TRIPLETEX_EMPLOYEE_TOKEN |
Yes | Employee token |
TRIPLETEX_COMPANY_ID |
No | Company ID (default: 0 = own company) |
TRIPLETEX_API_URL |
No | API base URL (default: https://tripletex.no/v2) |
Tools
Authentication
whoami— Get information about the currently authenticated user
Projects & Activities
search_projects— Search for projects by name or other filterssearch_activities— Search for activities (e.g. development, meetings, vacation)
Time Tracking
search_timesheet_entries— Search timesheet entries for a date rangeget_timesheet_entry— Get a single timesheet entry by IDcreate_timesheet_entry— Log hours for a project/activity/dateupdate_timesheet_entry— Update an existing timesheet entrydelete_timesheet_entry— Delete a timesheet entryget_total_hours— Get total hours for a date rangeget_recent_projects— Get recently used projectsget_recent_activities— Get recently used activities for a project
Time Clock
start_time_clock— Start a real-time timerstop_time_clock— Stop a running timerget_current_time_clock— Get the currently running timer
Timesheet Approval
search_timesheet_weeks— Search weekly timesheet statusapprove_timesheet_week— Approve a timesheet weekcomplete_timesheet_week— Mark a week as completereopen_timesheet_week— Reopen a completed/approved weekget_timesheet_month— Get monthly timesheet statusapprove_timesheet_month— Approve a timesheet monthcomplete_timesheet_month— Mark a month as completereopen_timesheet_month— Reopen a completed/approved month
Invoices
search_invoices— Search outgoing (customer) invoicesget_invoice— Get a single outgoing invoice by IDsearch_supplier_invoices— Search incoming (supplier) invoicesget_supplier_invoice— Get a single supplier invoice by IDget_supplier_invoices_for_approval— Get invoices pending approvalapprove_supplier_invoice— Approve a supplier invoiceapprove_supplier_invoices— Approve multiple supplier invoicesreject_supplier_invoice— Reject a supplier invoice (comment required)reject_supplier_invoices— Reject multiple supplier invoices (comment required)
Development
npm install
npm run build
License
ISC