Cover image
Try Now
2025-02-23

自然语言时间进入收获的MCP服务器

3 years

Works with Finder

1

Github Watches

2

Github Forks

0

Github Stars

Harvest Natural Language Time Entry MCP Server

An MCP server that lets you log Harvest time entries using natural language, including special handling for leave requests. This server makes time tracking more intuitive by understanding natural language inputs and automatically handling common scenarios like leave requests.

Features

  • 🗣️ Natural language time entry parsing
  • 🏖️ Special leave request handling (e.g., "I'm off sick today")
  • ⏰ Configurable work day hours
  • 🌍 Timezone support
  • 🎯 Automatic project and task matching
  • 📅 Smart date parsing (today, yesterday, etc.)

Prerequisites

  • Node.js installed
  • A Harvest account
  • Personal access token from Harvest Developer Tools
  • Account ID (shown on the same page as your token)

Installation

Installation

  1. Install the Claude desktop app

  2. Clone this repository:

git clone https://github.com/adrian-dotco/harvest-mcp-server.git
cd harvest-mcp-server
  1. Install dependencies and build:
npm install
npm run build
  1. Run the setup script:
node build/setup.js
  1. Follow the prompts to enter your:

  2. Restart Claude desktop app

That's it! You can now use natural language time tracking in Claude.

Staying Updated

To update to the latest version:

git pull
npm install
npm run build

The setup script will have configured Claude to use your local build of the server, so any updates you pull will be automatically available after rebuilding.

Usage

The server provides several tools for interacting with Harvest:

log_time

Log time entries using natural language. Examples:

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 (automatically uses standard work day hours):

"I'm off sick today"
"I'm unwell today"
"Taking annual leave next week"

get_time_report

Get time reports using natural language queries. Examples:

  1. 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"
  1. 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"
    
  1. Report Details: Each report includes:
  • Total hours worked
  • Billable vs non-billable hours
  • Billable amounts (if you have permission)
  • Project/client/task/user details based on report type

list_projects

List all available Harvest projects:

List my projects

list_tasks

List available tasks for a specific project:

Show tasks for Project X

list_entries

View recent time entries:

Show my recent time entries

Configuration

The server supports these environment variables:

  • HARVEST_ACCESS_TOKEN: Your Harvest personal access token
  • HARVEST_ACCOUNT_ID: Your Harvest account ID
  • STANDARD_WORK_DAY_HOURS: Default hours for a full work day (default: 7.5)
  • TIMEZONE: Your timezone (default: Australia/Perth)

Development

The server is built using:

  • TypeScript
  • MCP SDK
  • chrono-node for natural language date parsing
  • Harvest API v2

To contribute:

  1. Fork the repository
  2. Create a feature branch
  3. Submit a pull request

License

MIT License - see LICENSE for details

相关推荐

  • NiKole Maxwell
  • I craft unique cereal names, stories, and ridiculously cute Cereal Baby images.

  • Bora Yalcin
  • Evaluator for marketplace product descriptions, checks for relevancy and keyword stuffing.

  • Joshua Armstrong
  • Confidential guide on numerology and astrology, based of GG33 Public information

  • https://suefel.com
  • Latest advice and best practices for custom GPT development.

  • Callycode Limited
  • A geek-themed horoscope generator blending Bitcoin prices, tech jargon, and astrological whimsy.

  • Alexandru Strujac
  • Efficient thumbnail creator for YouTube videos

  • Emmet Halm
  • Converts Figma frames into front-end code for various mobile frameworks.

  • Khalid kalib
  • Write professional emails

  • Elijah Ng Shi Yi
  • Advanced software engineer GPT that excels through nailing the basics.

  • Beniyam Berhanu
  • Therapist adept at identifying core issues and offering practical advice with images.

  • https://maiplestudio.com
  • Find Exhibitors, Speakers and more

  • apappascs
  • 发现市场上最全面,最新的MCP服务器集合。该存储库充当集中式枢纽,提供了广泛的开源和专有MCP服务器目录,并提供功能,文档链接和贡献者。

  • ShrimpingIt
  • MCP系列GPIO Expander的基于Micropython I2C的操作,源自ADAFRUIT_MCP230XX

  • OffchainLabs
  • 进行以太坊的实施

  • huahuayu
  • 统一的API网关,用于将多个Etherscan样区块链Explorer API与对AI助手的模型上下文协议(MCP)支持。

  • deemkeen
  • 用电源组合控制您的MBOT2:MQTT+MCP+LLM

    Reviews

    4 (1)
    Avatar
    user_5iJxqI58
    2025-04-15

    As a devoted user of the Workers MCP Image Generation Service & Hello World, I am thoroughly impressed with its efficiency and versatility. The service, crafted by glyfo, offers seamless integration and stellar performance, making image generation tasks a breeze. Whether you're a developer or a designer, this tool is indispensable. Highly recommended!