harvest-mcp-server
The Harvest MCP Server provides comprehensive integration with the Harvest time tracking API, enabling AI assistants like Claude to manage time tracking, projects, clients, finances, and reporting through 40+ tools via natural language commands.
โฑ๏ธ Time Tracking
List, get, create, update, and delete time entries with rich filtering (by user, client, project, task, date range, billing status)
Start, stop, and restart timers in real-time
๐๏ธ Project Management
List, get, create, update, and delete projects with full configuration (budget, billing, rates, timelines)
Manage task assignments on projects
๐ Task Management
List, get, create, update, and delete tasks with billing defaults and hourly rates
๐ข Client Management
List, get, create, update, and delete clients with address, contact, and currency support
๐ฅ User Management
List, get, create, update, and delete users with role and permission control
Get the current authenticated user's profile
๐ธ Expense Tracking
List, get, create, update, and delete expenses with category and billing details
Manage expense categories
๐งพ Invoice Management
List, get, create, update, and delete invoices with tax, discount, and payment term support
Filter by state (draft, open, paid, closed)
๐ Estimate Management
List, get, create, update, and delete estimates with tax, discount, and currency support
Filter by state (draft, sent, accepted, declined)
๐ Reporting
Time reports โ filter and group by user, client, project, task, or date
Expense reports โ filter and group by user, client, project, category, or date
Project budget reports โ track spending vs. budget, filter by over-budget projects
Uninvoiced reports โ identify billable time and expenses not yet invoiced
๐ข Company Info
Retrieve company settings, billing configuration, and feature flags
Additional features include pagination support, date/status filtering, rate limiting compliance, and comprehensive input validation.
๐พ Harvest MCP Server
Unofficial Model Context Protocol (MCP) server for seamless integration with the Harvest time tracking API
โ ๏ธ Disclaimer: This is an unofficial, third-party integration with the Harvest API. This project is not affiliated with, endorsed by, or sponsored by Harvest or Forecast (the company behind Harvest).
โจ Features
๐ Complete Harvest API v2 Coverage - 40+ tools covering all major endpoints
๐ก๏ธ Type-Safe - Full TypeScript support with Zod validation
โก High Performance - Built with async/await and proper rate limiting
๐งช Thoroughly Tested - Comprehensive unit, integration, and contract tests
๐ Rich Logging - Structured logging for debugging and monitoring
๐ Auto-Retry - Intelligent retry logic with exponential backoff
๐ MCP Compliant - Works with Claude Desktop and other MCP clients
Related MCP server: Harvest MCP Server
๐ Quick Start
Prerequisites
Node.js 18+
Harvest account with API access
MCP-compatible client (like Claude Desktop)
Installation
# Install globally
npm install -g @ianaleck/harvest-mcp-server
# Or install locally
npm install @ianaleck/harvest-mcp-serverConfiguration
Get your Harvest API credentials:
Go to Harvest โ Settings โ Developers โ Personal Access Tokens
Create a new token
Note your Account ID (visible in URL or settings)
Configure your MCP client (e.g., Claude Desktop):
{
"mcpServers": {
"harvest": {
"command": "npx",
"args": ["-y", "@ianaleck/harvest-mcp-server"],
"env": {
"HARVEST_ACCESS_TOKEN": "your_harvest_personal_access_token",
"HARVEST_ACCOUNT_ID": "your_harvest_account_id"
}
}
}
}Start using with Claude!
๐ฏ What You Can Do
Once connected, you can ask Claude to help with:
โฑ๏ธ Time Tracking
"Show me all my time entries for this week"
"Start a timer for the 'Development' task on the 'Website Project'"
"How many hours did I work on Project X last month?"
๐ Project Management
"List all active projects for client Acme Corp"
"Create a new project called 'Mobile App' for client TechStart"
"Show me project budget vs actual time spent"
๐ฅ Team Management
"Who are all the users in our Harvest account?"
"Show me John's time entries for last week"
๐ฐ Financial Tracking
"Generate an expense report for Q4"
"Show me all unpaid invoices"
"What's our total billable hours this month?"
๐ ๏ธ Available Tools
get_company- Get company information and settings
list_time_entries- List time entries with filteringget_time_entry- Get specific time entry detailscreate_time_entry- Create new time entryupdate_time_entry- Update existing time entrydelete_time_entry- Delete time entrystart_timer- Start a timer for a taskstop_timer- Stop running timerrestart_timer- Restart a previous time entry
list_projects- List all projects with filteringget_project- Get specific project detailscreate_project- Create new projectupdate_project- Update project detailsdelete_project- Delete projectlist_project_task_assignments- List task assignments for projectcreate_project_task_assignment- Assign task to projectupdate_project_task_assignment- Update task assignmentdelete_project_task_assignment- Remove task assignment
list_tasks- List all tasksget_task- Get specific task detailscreate_task- Create new taskupdate_task- Update task detailsdelete_task- Delete task
list_clients- List all clientsget_client- Get specific client detailscreate_client- Create new clientupdate_client- Update client detailsdelete_client- Delete client
list_users- List all users in accountget_user- Get specific user detailsget_current_user- Get current authenticated usercreate_user- Create new userupdate_user- Update user detailsdelete_user- Delete user
list_expenses- List expenses with filteringget_expense- Get specific expense detailscreate_expense- Create new expenseupdate_expense- Update expense detailsdelete_expense- Delete expenselist_expense_categories- List all expense categories
list_invoices- List invoices with filteringget_invoice- Get specific invoice detailscreate_invoice- Create new invoiceupdate_invoice- Update invoice detailsdelete_invoice- Delete invoice
list_estimates- List estimates with filteringget_estimate- Get specific estimate detailscreate_estimate- Create new estimateupdate_estimate- Update estimate detailsdelete_estimate- Delete estimate
get_time_report- Generate time reports with filteringget_expense_report- Generate expense reportsget_project_budget_report- Get project budget analysisget_uninvoiced_report- Get uninvoiced time and expenses
๐งช Development
Setup
git clone https://github.com/ianaleck/harvest-mcp-server.git
cd harvest-mcp-server
npm installEnvironment Configuration
cp .env.example .env
# Edit .env with your Harvest API credentialsTesting
# Run all tests
npm test
# Run with coverage
npm run test:coverage
# Run specific test suites
npm run test:unit
npm run test:integration
npm run test:contractBuilding
# Build for production
npm run build
# Start development server
npm run dev๐ API Requirements
This server requires a Harvest account with API access. Users must comply with:
Harvest API Rate Limits (100 requests per 15 seconds)
๐ค Contributing
We welcome contributions! Please see our Contributing Guidelines for details.
Fork the repository
Create a feature branch (
git checkout -b feature/amazing-feature)Make your changes with tests
Ensure all tests pass (
npm test)Commit your changes (
git commit -m 'Add amazing feature')Push to the branch (
git push origin feature/amazing-feature)Open a Pull Request
๐ License
This project is licensed under the MIT License - see the LICENSE file for details.
๐ Acknowledgments
Harvest for providing an excellent time tracking API
Model Context Protocol team for the MCP specification
Anthropic for Claude and the MCP SDK
๐ Support
๐ Bug Reports: GitHub Issues
๐ก Feature Requests: GitHub Discussions
๐ Documentation: MCP Documentation
Made with โค๏ธ for the MCP community
โญ Star this project if you find it useful!
Available Tools
54 toolscreate_clientB
Create a new client for project management and billing. Requires client name and supports address and currency configuration.
Inputs: name (required), address, currency, is_active.
create_estimateB
Create a new estimate for a client with optional line items and terms. Supports custom pricing, taxes, and discounts.
Inputs: client_id (required), tax, tax2, notes, +5 more.
create_expenseC
Create a new expense entry for a project with category and cost details. Supports receipt attachment and billable status.
Inputs: project_id (required), spent_date (required), total_cost (required), expense_category_id (required), +4 more.
create_invoiceC
Create a new invoice for a client with optional line items and billing details. Supports custom terms, taxes, and payment configurations.
Inputs: client_id (required), tax, tax2, notes, +7 more.
create_projectA
Create a new project for a client. Requires project name and client ID. Supports extensive configuration including budget settings, billing preferences, and project timeline.
Inputs: name (required), client_id (required), fee, code, +16 more.
create_project_task_assignmentA
Assign a task to a project, making it available for time tracking on that project. Allows setting project-specific rates and budgets.
Inputs: task_id (required), project_id (required), budget, billable, +2 more.
create_taskC
Create a new task that can be assigned to projects for time tracking. Tasks define what type of work is being performed.
Inputs: name (required), is_active, is_default, billable_by_default, +1 more.
create_time_entryA
Create a new time entry. Requires project_id, task_id, and spent_date. Must provide either hours OR both started_time and ended_time.
Inputs: task_id (required), project_id (required), spent_date (required), hours, +4 more.
create_userB
Create a new user with specified roles and permissions. Supports team member management and access control.
Inputs: email (required), last_name (required), first_name (required), is_admin, +12 more.
delete_clientA
Delete (archive) a client. This action archives the client rather than permanently deleting it, preserving historical project and billing data.
Inputs: client_id (required).
delete_estimateA
Delete an estimate permanently. This action cannot be undone.
Inputs: estimate_id (required).
delete_expenseA
Delete an expense permanently. This action cannot be undone.
Inputs: expense_id (required).
delete_invoiceA
Delete an invoice permanently. This action cannot be undone and will remove all associated billing data.
Inputs: invoice_id (required).
delete_projectA
Delete (archive) a project. This action archives the project rather than permanently deleting it, preserving historical data while making it inactive.
Inputs: project_id (required).
delete_project_task_assignmentA
Remove a task assignment from a project, making the task unavailable for time tracking on that project.
Inputs: project_id (required), task_assignment_id (required).
delete_taskA
Delete (archive) a task. This action archives the task rather than permanently deleting it, preserving historical data while making it inactive.
Inputs: task_id (required).
delete_time_entryA
Delete a time entry permanently. This action cannot be undone.
Inputs: time_entry_id (required).
delete_userA
Delete (archive) a user. This action archives the user rather than permanently deleting them, preserving time tracking history.
Inputs: user_id (required).
get_clientA
Retrieve a specific client by its ID. Returns complete client details including contact information and billing configuration.
Inputs: client_id (required).
get_companyA
Retrieve company information and settings for the authenticated account. Returns comprehensive company details including billing configuration, time tracking preferences, and enabled features.
Inputs: no named parameters.
get_current_userA
Retrieve the currently authenticated user's profile and permissions.
Inputs: no named parameters.
get_estimateA
Retrieve a specific estimate by ID with complete details including line items, terms, and client information.
Inputs: estimate_id (required).
get_expenseA
Retrieve a specific expense by ID with complete details including receipts and billing information.
Inputs: expense_id (required).
get_expense_reportA
Generate comprehensive expense reports with filtering by date range, users, clients, projects, and categories. Supports grouping and billing status filtering.
Inputs: to (required), from (required), user_id, billable, +6 more.
get_invoiceA
Retrieve a specific invoice by ID with complete details including line items, payments, and billing information.
Inputs: invoice_id (required).
get_projectA
Retrieve a specific project by its ID. Returns complete project details including client information, budget settings, billing configuration, and project dates.
Inputs: project_id (required).
get_project_budget_reportB
Generate project budget reports showing spending vs budgets across projects. Helps track project profitability and budget utilization.
Inputs: client_id, is_active, over_budget.
get_taskA
Retrieve a specific task by its ID. Returns complete task details including default billing settings and activity status.
Inputs: task_id (required).
get_time_entryA
Retrieve a specific time entry by its ID. Returns complete time entry details including project, task, user, and timing information.
Inputs: time_entry_id (required).
get_time_reportC
Generate comprehensive time tracking reports with filtering by date range, users, clients, projects, and tasks. Supports grouping and billable status filtering.
Inputs: to (required), from (required), task_id, user_id, +7 more.
get_uninvoiced_reportB
Generate reports of uninvoiced time and expenses within a date range. Essential for identifying billable work that hasn't been invoiced yet.
Inputs: to (required), from (required), client_id, project_id.
get_userA
Retrieve a specific user by ID. Returns complete user profile including roles, permissions, and billing rates.
Inputs: user_id (required).
list_clientsA
Retrieve a list of clients with optional filtering by active status and updated date. Returns paginated results with client details including billing information.
Inputs: page, per_page, is_active, updated_since.
list_estimatesA
Retrieve estimates with filtering by client, state, and date ranges. Returns paginated results with estimate details.
Inputs: to, from, page, state, +3 more.
list_expense_categoriesC
Retrieve available expense categories for expense classification and organization.
Inputs: page, per_page, is_active, updated_since.
list_expensesA
Retrieve expenses with filtering by user, client, project, billing status, and date ranges. Returns paginated results with expense details.
Inputs: to, from, page, user_id, +6 more.
list_invoicesA
Retrieve invoices with optional filtering by client, project, state, and date ranges. Returns paginated results with complete invoice details.
Inputs: to, from, page, state, +4 more.
list_projectsA
Retrieve a list of projects with optional filtering by client, active status, and updated date. Returns paginated results with comprehensive project details.
Inputs: page, per_page, client_id, is_active, +1 more.
list_project_task_assignmentsA
Retrieve task assignments for a specific project. Shows which tasks are available for time tracking on the project and their specific settings.
Inputs: project_id (required), page, per_page, is_active, +1 more.
list_tasksB
Retrieve a list of tasks with optional filtering. Tasks are the building blocks for time tracking and can be assigned to projects.
Inputs: page, per_page, is_active, updated_since.
list_time_entriesA
Retrieve a list of time entries with optional filtering. Supports filtering by user, client, project, task, billing status, date ranges, and more. Returns paginated results.
Inputs: to, from, page, task_id, +7 more.
list_usersA
Retrieve a list of users with optional filtering by active status and updated date. Returns paginated results with user profiles and permissions.
Inputs: page, per_page, is_active, updated_since.
restart_timerA
Restart a previously stopped timer, creating a new running time entry based on an existing entry.
Inputs: id (required).
start_timerB
Start a timer for a new time entry. Creates a running time entry that tracks time automatically.
Inputs: task_id (required), project_id (required), spent_date (required), notes, +1 more.
stop_timerA
Stop a running timer and finalize the time entry with calculated hours.
Inputs: id (required).
update_clientA
Update an existing client. Can modify name, active status, address, and currency. Only provided fields will be updated.
Inputs: id (required), name, address, currency, +1 more.
update_estimateA
Update an existing estimate including subject, terms, taxes, and other details. Only provided fields will be updated.
Inputs: id (required), tax, tax2, notes, +6 more.
update_expenseA
Update an existing expense including project, category, cost, and billing details. Only provided fields will be updated.
Inputs: id (required), notes, units, user_id, +5 more.
update_invoiceB
Update an existing invoice including subject, dates, terms, taxes, and other billing details. Only provided fields will be updated.
Inputs: id (required), tax, tax2, notes, +8 more.
update_projectB
Update an existing project. Can modify any project settings including name, billing configuration, budget settings, and project timeline. Only provided fields will be updated.
Inputs: id (required), fee, code, name, +16 more.
update_project_task_assignmentA
Update an existing project task assignment including rates, budget, and active status. Only provided fields will be updated.
Inputs: id (required), project_id (required), budget, billable, +2 more.
update_taskA
Update an existing task. Can modify task name, billing settings, and activity status. Only provided fields will be updated.
Inputs: id (required), name, is_active, is_default, +2 more.
update_time_entryA
Update an existing time entry. Can modify project, task, hours, notes, and other fields. Only provided fields will be updated.
Inputs: id (required), hours, notes, task_id, +5 more.
update_userA
Update an existing user's profile, permissions, and rates. Only provided fields will be updated.
Inputs: id (required), email, is_admin, timezone, +13 more.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelogโฆ
TDQS
Scored across 54 tools
Each tool targets a distinct resource and action (e.g., create_client, create_invoice, create_project). Even similar actions like start_timer/stop_timer/restart_timer are clearly differentiated. No ambiguity between tools.
All tools follow a consistent verb_noun pattern in snake_case (e.g., create_client, list_projects, get_time_entry). Report and timer tools also follow this pattern (get_time_report, start_timer). No mixing of conventions.
With 54 tools, this is far beyond the typical well-scoped range (3-15). Even for a comprehensive Harvest API, this many tools overwhelm agents and increases the risk of misselection. Extreme mismatch.
The tool set covers core CRUD operations for clients, projects, tasks, time entries, expenses, estimates, invoices, and users, plus reporting. Minor gaps exist (e.g., expense categories only have list, no create/update/delete; no invoice payment tools), but the surface is largely complete for the domain.
Maintenance
Related MCP Connectors
timesheet.io MCP server - manage timers, projects, tasks and reports
Toggl 2.0 MCP server for tasks, projects, time entries, and workspace operations.
MCP server for MOCO business software: time tracking, projects, budgets, and invoicing via API
Manage Timequip projects, tasks, comments, members, and dashboards through MCP.
Related MCP Servers
- -licenseNot gradedqualityNot gradedmaintenanceProvides MCP integration for Harvest's time tracking, project management, and invoicing functionality, enabling natural language interaction with Harvest API through tools for managing clients, time entries, projects, tasks, and users.-
- AlicenseBqualityDmaintenanceA Model Context Protocol server that integrates with the Harvest API v2, enabling time tracking management including listing, creating, updating, and deleting time entries, as well as managing projects, tasks, users and generating reports.1725 npmMIT
- AlicenseNot gradedqualityDmaintenanceMCP server for SolidTime โ the open-source time tracking app. Enables start/stop timers, manage time entries, projects, clients, tags, and tasks directly from MCP-compatible clients.3MIT
- AlicenseAqualityCmaintenanceAn MCP server that integrates Harvest time tracking and Forecast resource scheduling APIs, enabling AI agents to track time, manage projects, and handle assignments and scheduling.34MIT