npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@standardbeagle/harvest-mcp

v0.3.0

Published

Model Context Protocol server for Harvest API integration

Downloads

10

Readme

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

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