This MCP server enables natural language time tracking in Harvest via Claude. It understands plain language inputs for logging time entries, handles leave requests automatically, and provides detailed time reports with intelligent date parsing.
Install the Claude desktop app
Clone the repository:
git clone https://github.com/adrian-dotco/harvest-mcp-server.git
cd harvest-mcp-server
Install dependencies and build:
npm install
npm run build
Run the setup script:
node build/setup.js
Follow the prompts to enter your:
Restart the Claude desktop app
To update to the latest version:
git pull
npm install
npm run build
The server provides several tools for interacting with Harvest through natural language commands.
Use the log_time
function with natural language descriptions:
Regular time entries:
"2 hours on Project X doing development work today"
"45 minutes on Project Y testing yesterday"
"3.5 hours on Project Z meetings last Friday"
Leave requests:
"I'm off sick today"
"I'm unwell today"
"Taking annual leave next week"
Use the get_time_report
function with various natural language queries:
Time period options:
"Show time report for last month"
"Get time summary for this week"
"Show hours from January 1st to January 31st"
"Report time for Q1"
"Show me yesterday's hours"
Report types:
By Project (default):
"Show time report for last month"
"Get project hours for this week"
By Client:
"Show time report by client for this month"
"Get hours by client for Q1"
By Task:
"Show time summary by task for January"
"Get task breakdown for last week"
By Team Member:
"Show team hours for last week"
"Get time report by user for this month"
View all available Harvest projects:
List my projects
View available tasks for a specific project:
Show tasks for Project X
Check your recent time entries:
Show my recent time entries
The server supports these environment variables:
HARVEST_ACCESS_TOKEN
: Your Harvest personal access tokenHARVEST_ACCOUNT_ID
: Your Harvest account IDSTANDARD_WORK_DAY_HOURS
: Default hours for a full work day (default: 7.5)TIMEZONE
: Your timezone (default: Australia/Perth)These can be set either through the setup script or manually in your environment.
There are two ways to add an MCP server to Cursor. The most common way is to add the server globally in the ~/.cursor/mcp.json
file so that it is available in all of your projects.
If you only need the server in a single project, you can add it to the project instead by creating or adding it to the .cursor/mcp.json
file.
To add a global MCP server go to Cursor Settings > MCP and click "Add new global MCP server".
When you click that button the ~/.cursor/mcp.json
file will be opened and you can add your server like this:
{
"mcpServers": {
"cursor-rules-mcp": {
"command": "npx",
"args": [
"-y",
"cursor-rules-mcp"
]
}
}
}
To add an MCP server to a project you can create a new .cursor/mcp.json
file or add it to the existing one. This will look exactly the same as the global MCP server example above.
Once the server is installed, you might need to head back to Settings > MCP and click the refresh button.
The Cursor agent will then be able to see the available tools the added MCP server has available and will call them when it needs to.
You can also explictly ask the agent to use the tool by mentioning the tool name and describing what the function does.