Skip to main content
Glama
Harvest MCP Server

Harvest MCP Server

Harvest MCP Server

A Model Context Protocol (MCP) server that provides integration with the Harvest API v2.

Features

This MCP server provides tools for interacting with Harvest time tracking data:

Time Entry Management

  • List time entries with filters

  • Create new time entries

  • Update existing time entries

  • Delete time entries

Project & Task Management

  • List and view projects

  • List available tasks

User & Client Management

  • Get current user information

  • List all users

  • List all clients

Reporting

  • Generate time reports for date ranges

Assignments

  • List project assignments

  • List task assignments for projects

Related MCP server: TimeCamp MCP Server

Installation

# Clone the repository
git clone <repository-url>
cd harvest-mcp

# Install dependencies
npm install

# Build the project
npm run build

Configuration

  1. Copy the environment template:

cp .env.example .env
  1. Edit .env and add your Harvest credentials:

HARVEST_ACCOUNT_ID=your_account_id
HARVEST_ACCESS_TOKEN=your_access_token

To get your Harvest credentials:

  • Log in to your Harvest account

  • Go to Developers

  • Create a new personal access token

  • Note your Account ID

Development

# Run in development mode with hot reload
npm run dev

# Build the project
npm run build

# Run the built server
npm start

Testing

The project includes comprehensive tests to verify integration with the Harvest API:

# Run unit tests
npm test

# Run unit tests in watch mode
npm run test:watch

# Run integration tests (requires valid .env setup)
npm run test:integration

Integration Tests

The integration tests connect to your actual Harvest account and perform read-only operations to verify the MCP server works correctly. These tests:

  • Connect to the MCP server via stdio transport

  • Test all 14 available tools

  • Verify proper data structure responses

  • Test error handling for invalid inputs

  • Use actual Harvest API data (read-only operations only)

Requirements for integration tests:

  • Valid .env file with HARVEST_ACCOUNT_ID and HARVEST_ACCESS_TOKEN

  • Active Harvest account with some data (projects, time entries, etc.)

  • Network access to Harvest API

Using with Claude Desktop

Add the following to your Claude Desktop configuration file:

{
  "mcpServers": {
    "harvest": {
      "command": "node",
      "args": ["/path/to/harvest-mcp/dist/index.js"],
      "env": {
        "HARVEST_ACCOUNT_ID": "your_account_id",
        "HARVEST_ACCESS_TOKEN": "your_access_token"
      }
    }
  }
}

Available Tools

Tool

Description

harvest_list_time_entries

List time entries with optional filters

harvest_create_time_entry

Create a new time entry

harvest_update_time_entry

Update an existing time entry

harvest_delete_time_entry

Delete a time entry

harvest_restart_timer

Restart a stopped time entry timer

harvest_stop_timer

Stop a running time entry timer

harvest_list_projects

List all projects

harvest_get_project

Get details of a specific project

harvest_list_tasks

List all tasks

harvest_get_current_user

Get information about the authenticated user

harvest_list_users

List all users in the account

harvest_list_clients

List all clients

harvest_time_report

Get time report for a date range

harvest_list_project_assignments

List project assignments for the current user

harvest_list_task_assignments

List task assignments for a project

Tool Parameters

Time Entry Tools

harvest_list_time_entries

  • user_id (string): Filter by user ID

  • project_id (string): Filter by project ID

  • from (string): Start date (YYYY-MM-DD)

  • to (string): End date (YYYY-MM-DD)

  • page (number): Page number

  • per_page (number): Results per page (max 100)

harvest_create_time_entry

  • project_id (string, required): Project ID

  • task_id (string, required): Task ID

  • spent_date (string, required): Date of the entry (YYYY-MM-DD)

  • hours (number): Hours worked

  • notes (string): Notes for the time entry

License

MIT

Available Tools

17 tools
aboutA

Get detailed information about the Harvest MCP server and its tools. Call about without parameters for general info, or with {"tool": "tool_name"} for specific tool documentation.

Inputs: tool.

harvest_create_time_entryC

Create a new time entry. Use about {"tool": "harvest_create_time_entry"} for detailed parameters and examples.

Inputs: project_id (required), task_id (required), spent_date (required), hours, +1 more.

harvest_delete_time_entryC

Delete a time entry. Use about {"tool": "harvest_delete_time_entry"} for detailed usage and warnings.

Inputs: id (required).

harvest_get_current_userB

Get information about the authenticated user. Use about {"tool": "harvest_get_current_user"} for detailed response format.

Inputs: no named parameters.

harvest_get_projectC

Get details of a specific project. Use about {"tool": "harvest_get_project"} for detailed usage examples.

Inputs: id (required).

harvest_list_clientsC

List all clients with filtering options. Use about {"tool": "harvest_list_clients"} for detailed parameters and examples.

Inputs: is_active, page, per_page.

harvest_list_project_assignmentsC

List project assignments for the current user. Use about {"tool": "harvest_list_project_assignments"} for detailed usage.

Inputs: page, per_page.

harvest_list_projectsC

List all projects with filtering options. Use about {"tool": "harvest_list_projects"} for detailed parameters and examples.

Inputs: is_active, client_id, page, per_page.

harvest_list_task_assignmentsC

List task assignments for a project. Use about {"tool": "harvest_list_task_assignments"} for detailed workflow and examples.

Inputs: project_id (required), is_active, page, per_page.

harvest_list_tasksC

List all tasks with filtering options. Use about {"tool": "harvest_list_tasks"} for detailed parameters and examples.

Inputs: is_active, page, per_page.

harvest_list_time_entriesB

List time entries with optional filters. Use about {"tool": "harvest_list_time_entries"} for detailed usage examples.

Inputs: user_id, project_id, from, to, +2 more.

harvest_list_usersC

List all users in the account with filtering. Use about {"tool": "harvest_list_users"} for detailed parameters and examples.

Inputs: is_active, page, per_page.

harvest_restart_timerC

Restart a stopped time entry timer. Use about {"tool": "harvest_restart_timer"} for detailed workflow and examples.

Inputs: id (required).

harvest_stop_timerC

Stop a running time entry timer. Use about {"tool": "harvest_stop_timer"} for detailed workflow and examples.

Inputs: id (required).

harvest_time_reportC

Generate detailed time reports for date ranges. Use about {"tool": "harvest_time_report"} for filtering options and examples.

Inputs: from (required), to (required), user_id, project_id, +1 more.

harvest_update_time_entryC

Update an existing time entry. Use about {"tool": "harvest_update_time_entry"} for detailed parameters and examples.

Inputs: id (required), project_id, task_id, spent_date, +2 more.

versionA

Get version information about the Harvest MCP server.

Inputs: no named parameters.

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 17 tools

    Disambiguation5/5

    Every tool has a clearly distinct purpose targeting specific Harvest API resources and actions. The naming convention makes it immediately clear which resource (clients, projects, tasks, time entries, users) and which operation (list, get, create, update, delete, restart, stop, report) each tool performs. There is no ambiguity or overlap between tools.

    Naming Consistency5/5

    All tools follow a perfectly consistent 'harvest_verb_noun' pattern (e.g., harvest_list_clients, harvest_create_time_entry). The two exceptions (about and version) are clearly meta-tools for server information and maintain readability. The naming convention is predictable and systematic throughout the toolset.

    Tool Count5/5

    With 17 tools, this server provides comprehensive coverage of Harvest's core time-tracking and project management functionality. Each tool serves a specific, necessary purpose in the domain (client/project/task/user management, time entry lifecycle, reporting). The count is well-scoped for the complexity of the Harvest API without being overwhelming.

    Completeness5/5

    The toolset provides complete CRUD/lifecycle coverage for time entries (create, list, update, delete, restart/stop timers, generate reports) and comprehensive read/list operations for all core resources (clients, projects, tasks, users, project/task assignments). There are no obvious gaps for time-tracking workflows, and the about/version tools provide necessary meta-information.

    Maintenance

    ActivityInactive
    ResponsivenessOutdated data

    Related MCP Connectors

    Related MCP Servers

    • F
      license
      Not graded
      quality
      Not graded
      maintenance
      A Model Context Protocol server that enables interaction with Shortcut (formerly Clubhouse) project management tool, allowing users to view and search projects, stories, epics, and objectives, as well as create new items through natural language.
      5
      -
    • F
      license
      Not graded
      quality
      F
      maintenance
      A Model Context Protocol server that provides time tracking integration with TimeCamp, allowing AI assistants to create, retrieve, update, and delete time entries through natural language commands.
      1
      -