Skip to main content
Glama
Harvest MCP Server

Harvest MCP Server

by taiste

Harvest MCP Server

This MCP (Model Context Protocol) server provides integration with the Harvest time tracking and project management API. It allows Claude and other MCP-compatible AI assistants to interact with your Harvest account, helping you manage time entries, projects, clients, and more.

Features

The server provides the following functionality:

Users

  • List users

  • Get user details

Time Entries

  • List time entries with filtering options

  • Create new time entries

  • Start/stop timers

  • Query time entry details

  • Get unsubmitted timesheets (time entries not yet submitted for approval)

Projects

  • List projects with filtering options (by client, is_active, updated_since, page, per_page)

  • Retrieve detailed project information

  • Create new projects

  • Update existing projects (also used to archive: pass is_active=False)

  • Delete projects (destructive — also deletes the project's time entries and expenses, though invoices are retained; archiving is recommended instead)

Task Assignments

  • List task assignments (account-wide or scoped to a project)

  • Retrieve detailed task assignment information

  • Create new task assignments (link a task to a project)

  • Update existing task assignments

  • Delete task assignments (only when no time entries are logged against them)

User Assignments

  • List user assignments (account-wide or scoped to a project)

  • Retrieve detailed user assignment information

  • Create new user assignments (link a user to a project)

  • Update existing user assignments

  • Delete user assignments (only when no time entries or expenses are logged against them)

Clients

  • List clients with filtering options

  • Retrieve detailed client information

Tasks

  • List available tasks with filtering options

Estimates

  • List estimates with filtering options (by client, state, date range, updated_since)

  • Retrieve detailed estimate information

  • Look up an estimate by its user-facing number (e.g. "79")

  • List messages associated with an estimate

  • Create new estimates with line items

  • Update existing estimates (add/update/delete line items via _destroy)

  • Change estimate state (send, accept, decline, re-open) without sending email

  • Send estimate messages (emails the estimate to recipients)

  • Delete estimates

Related MCP server: Harvest MCP Server

Setup Instructions

Prerequisites

  • Python 3.10 or higher

  • Harvest account with API access

  • Harvest API key and Account ID

Integrating with Claude Desktop

  1. Create or edit your Claude Desktop configuration file:

    • macOS: ~/Library/Application Support/Claude/claude_desktop_config.json

    • Windows (MSIX installs — the default from claude.ai/download): %LOCALAPPDATA%\Packages\Claude_pzs8sxrjxfjjc\LocalCache\Roaming\Claude\claude_desktop_config.json

    • Windows (older/non-MSIX installs): %APPDATA%\Claude\claude_desktop_config.json

  2. Add the Harvest MCP server configuration:

     {
         "mcpServers": {
             "harvest": {
                 "command": "uv",
                 "args": [
                   "run",
                   "--directory",
                   "change_directory",
                   "harvest-mcp-server.py"
                 ],
                 "env": {
                     "HARVEST_ACCOUNT_ID": "account_id",
                     "HARVEST_API_KEY": "api_key"
                 }
             }
         }
     }
  3. Restart Claude Desktop.

  4. Verify the integration by looking for the hammer icon in Claude's interface.

Example Queries

Once connected, you can ask Claude about your Harvest data with queries like:

  • "Show me my time entries from last week"

  • "List all my active projects"

  • "Start a timer for project [project_id] and task [task_id]"

  • "Show me all active clients"

  • "List all available tasks"

  • "Get my unsubmitted timesheets from this month"

  • "Show me unsubmitted time entries for user [user_id]"

  • "Show me all accepted estimates from this quarter"

  • "Find the estimate numbered [number]"

  • "Create a draft estimate for client [client_id] with these line items..."

  • "Mark estimate [id] as sent"

  • "Email estimate [id] to client@example.com"

  • "Create a new project called [name] for client [client_id], billed by Project, no budget"

  • "Archive project [project_id]"

  • "Assign task [task_id] to project [project_id] as billable"

  • "Make user [user_id] a project manager on project [project_id]"

  • "List everyone assigned to project [project_id]"

Customization

You can modify the server code to add more functionality or customize the existing tools to better suit your workflow. The server uses FastMCP, which makes it easy to add new tools by simply adding new functions with the @mcp.tool() decorator.

Troubleshooting

  • API Errors: Make sure your Harvest API key and Account ID are correct and have the necessary permissions.

  • Connection Issues: Verify that your Claude Desktop configuration has the correct path to the server script.

  • Missing Dependencies: Ensure you've installed all required packages in your Python environment.

Read-Only Mode

You can run the server in read-only mode by setting the HARVEST_READ_ONLY environment variable to true. This disables all write operations (creating time entries, starting/stopping timers, creating/updating/deleting estimates, changing estimate state, sending estimate messages, and creating/updating/deleting projects, task assignments, and user assignments) while keeping all read operations available.

{
    "mcpServers": {
        "harvest": {
            "command": "uv",
            "args": [
              "run",
              "--directory",
              "change_directory",
              "harvest-mcp-server.py"
            ],
            "env": {
                "HARVEST_ACCOUNT_ID": "account_id",
                "HARVEST_API_KEY": "api_key",
                "HARVEST_READ_ONLY": "true"
            }
        }
    }
}

When read-only mode is enabled, any attempt to call a write tool will return an error message explaining that the server is in read-only mode and how to enable write access.

Security Notes

This server requires your Harvest API credentials to function. Make sure to:

  • Keep your API key secure

  • Do not share your claude_desktop_config.json file

  • Consider using a dedicated API key with limited permissions for this integration

Available Tools

11 tools
create_time_entryC

Create a new time entry.

Args:
    project_id: The ID of the project to associate with the time entry
    task_id: The ID of the task to associate with the time entry
    spent_date: The date when the time was spent (YYYY-MM-DD)
    hours: The number of hours spent
    notes: Optional notes about the time entry

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

get_client_detailsC

Get detailed information about a specific client.

Args:
    client_id: The ID of the client to retrieve

Inputs: client_id (required).

get_project_detailsC

Get detailed information about a specific project.

Args:
    project_id: The ID of the project to retrieve

Inputs: project_id (required).

get_user_detailsB

Retrieve details for a specific user.

Args:
    user_id: The ID of the user to retrieve

Inputs: user_id (required).

list_clientsB

List clients with optional filtering.

Args:
    is_active: Pass true to only return active clients and false to return inactive clients

Inputs: is_active.

list_projectsB

List projects with optional filtering.

Args:
    client_id: Filter by client ID
    is_active: Pass true to only return active projects and false to return inactive projects

Inputs: client_id, is_active.

list_tasksB

List all tasks with optional filtering.

Args:
    is_active: Pass true to only return active tasks and false to return inactive tasks

Inputs: is_active.

list_time_entriesB

List time entries with optional filtering.

Args:
    user_id: Filter by user ID
    from_date: Only return time entries with a spent_date on or after the given date (YYYY-MM-DD)
    to_date: Only return time entries with a spent_date on or before the given date (YYYY-MM-DD)
    is_running: Pass true to only return running time entries and false to return non-running time entries

Inputs: from_date, is_running, to_date, user_id.

list_usersA

List all users in your Harvest account.

Args:
    is_active: Pass true to only return active users and false to return inactive users
    page: The page number for pagination
    per_page: The number of records to return per page (1-2000)

Inputs: is_active, page, per_page.

start_timerC

Start a new timer.

Args:
    project_id: The ID of the project to associate with the time entry
    task_id: The ID of the task to associate with the time entry
    notes: Optional notes about the time entry

Inputs: project_id (required), task_id (required), notes.

stop_timerB

Stop a running timer.

Args:
    time_entry_id: The ID of the running time entry to stop

Inputs: time_entry_id (required).

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    A3.5/5.0

    Scored across 11 tools

    Disambiguation5/5

    Every tool has a clearly distinct purpose targeting specific resources and actions. For example, create_time_entry vs. start_timer vs. stop_timer handle different aspects of time tracking, while list_* tools retrieve collections and get_* tools fetch individual details. No tools appear to overlap or cause confusion.

    Naming Consistency5/5

    All tools follow a consistent verb_noun pattern with snake_case throughout. The naming is highly predictable: list_* for collections, get_* for details, create_* for creation, and start_/stop_ for timer actions. There are no deviations in style or convention.

    Tool Count5/5

    With 11 tools, this server is well-scoped for time tracking and project management. Each tool earns its place by covering essential operations like CRUD for time entries, listing resources, and timer control. The count is neither too sparse nor bloated for the domain.

    Completeness4/5

    The tool surface provides strong coverage for core time tracking workflows, including creating/listing time entries, managing timers, and accessing clients, projects, tasks, and users. A minor gap exists in missing update/delete operations for time entries and other resources, but agents can work around this with the available tools.

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