Skip to main content
Glama

๐ŸŒพ Harvest MCP Server

npm version TypeScript MCP License: MIT Tests Buy Me A Coffee

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).

harvest-mcp-server MCP server

โœจ 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-server

Configuration

  1. 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)

  2. 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"
      }
    }
  }
}
  1. 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 filtering

  • get_time_entry - Get specific time entry details

  • create_time_entry - Create new time entry

  • update_time_entry - Update existing time entry

  • delete_time_entry - Delete time entry

  • start_timer - Start a timer for a task

  • stop_timer - Stop running timer

  • restart_timer - Restart a previous time entry

  • list_projects - List all projects with filtering

  • get_project - Get specific project details

  • create_project - Create new project

  • update_project - Update project details

  • delete_project - Delete project

  • list_project_task_assignments - List task assignments for project

  • create_project_task_assignment - Assign task to project

  • update_project_task_assignment - Update task assignment

  • delete_project_task_assignment - Remove task assignment

  • list_tasks - List all tasks

  • get_task - Get specific task details

  • create_task - Create new task

  • update_task - Update task details

  • delete_task - Delete task

  • list_clients - List all clients

  • get_client - Get specific client details

  • create_client - Create new client

  • update_client - Update client details

  • delete_client - Delete client

  • list_users - List all users in account

  • get_user - Get specific user details

  • get_current_user - Get current authenticated user

  • create_user - Create new user

  • update_user - Update user details

  • delete_user - Delete user

  • list_expenses - List expenses with filtering

  • get_expense - Get specific expense details

  • create_expense - Create new expense

  • update_expense - Update expense details

  • delete_expense - Delete expense

  • list_expense_categories - List all expense categories

  • list_invoices - List invoices with filtering

  • get_invoice - Get specific invoice details

  • create_invoice - Create new invoice

  • update_invoice - Update invoice details

  • delete_invoice - Delete invoice

  • list_estimates - List estimates with filtering

  • get_estimate - Get specific estimate details

  • create_estimate - Create new estimate

  • update_estimate - Update estimate details

  • delete_estimate - Delete estimate

  • get_time_report - Generate time reports with filtering

  • get_expense_report - Generate expense reports

  • get_project_budget_report - Get project budget analysis

  • get_uninvoiced_report - Get uninvoiced time and expenses

๐Ÿงช Development

Setup

git clone https://github.com/ianaleck/harvest-mcp-server.git
cd harvest-mcp-server
npm install

Environment Configuration

cp .env.example .env
# Edit .env with your Harvest API credentials

Testing

# 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:contract

Building

# 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:

๐Ÿค Contributing

We welcome contributions! Please see our Contributing Guidelines for details.

  1. Fork the repository

  2. Create a feature branch (git checkout -b feature/amazing-feature)

  3. Make your changes with tests

  4. Ensure all tests pass (npm test)

  5. Commit your changes (git commit -m 'Add amazing feature')

  6. Push to the branch (git push origin feature/amazing-feature)

  7. Open a Pull Request

๐Ÿ“„ License

This project is licensed under the MIT License - see the LICENSE file for details.

๐Ÿ™ Acknowledgments

๐Ÿ“ž Support


Made with โค๏ธ for the MCP community

โญ Star this project if you find it useful!

Available Tools

54 tools
create_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

    B3.4/5.0

    Scored across 54 tools

    Disambiguation5/5

    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.

    Naming Consistency5/5

    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.

    Tool Count1/5

    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.

    Completeness4/5

    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

    ActivityInactive
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers

    • -
      license
      Not graded
      quality
      Not graded
      maintenance
      Provides 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.
      -
    • A
      license
      B
      quality
      D
      maintenance
      A 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.
      17
      25 npm
      MIT