Skip to main content

A simple MCP server for Harvest

Project description

MseeP.ai Security Assessment Badge

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
  • Retrieve detailed project information

Clients

  • List clients with filtering options
  • Retrieve detailed client information

Tasks

  • List available tasks with filtering options

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: %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]"

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.

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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

iflow_mcp_harvest_mcp-0.1.0.tar.gz (5.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

iflow_mcp_harvest_mcp-0.1.0-py3-none-any.whl (6.1 kB view details)

Uploaded Python 3

File details

Details for the file iflow_mcp_harvest_mcp-0.1.0.tar.gz.

File metadata

  • Download URL: iflow_mcp_harvest_mcp-0.1.0.tar.gz
  • Upload date:
  • Size: 5.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.9.10 {"installer":{"name":"uv","version":"0.9.10"},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for iflow_mcp_harvest_mcp-0.1.0.tar.gz
Algorithm Hash digest
SHA256 d065ac4c08dbece260b6914fad386132c0ca2058b644bbd7c53f77c9e42fe47d
MD5 7e0e6ae830856377090bc7951ba0696b
BLAKE2b-256 6347988e8d65738acf7ef8dae55acb75de4749851ef3df44c482fc8c49a20e40

See more details on using hashes here.

File details

Details for the file iflow_mcp_harvest_mcp-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: iflow_mcp_harvest_mcp-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 6.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.9.10 {"installer":{"name":"uv","version":"0.9.10"},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for iflow_mcp_harvest_mcp-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 8c1fbf583bcfc8c58e3cad9e040f0ad55c176805fc69d3423a176d18c3851357
MD5 a822c3004c59bc2d9b099b40911695d8
BLAKE2b-256 9ed35b0a0cf3a536f67e8cb192095f3ee38addb72fe1325f43739d578daf560d

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page