Skip to main content
Glama

Harvest MCP Server

by taiste

Harvest MCP 服务器

此 MCP(模型上下文协议)服务器提供与 Harvest 时间跟踪和项目管理 API 的集成。它允许 Claude 和其他兼容 MCP 的 AI 助手与您的 Harvest 帐户进行交互,帮助您管理时间条目、项目、客户等。

特征

该服务器提供以下功能:

用户

  • 列出用户
  • 获取用户详细信息

时间条目

  • 列出带有过滤选项的时间条目
  • 创建新的时间条目
  • 启动/停止计时器
  • 查询时间条目详情

项目

  • 使用过滤选项列出项目
  • 检索详细项目信息

客户

  • 列出带有过滤选项的客户端
  • 检索详细的客户信息

任务

  • 使用过滤选项列出可用任务

设置说明

先决条件

  • Python 3.10 或更高版本
  • 具有 API 访问权限的 Harvest 帐户
  • Harvest API 密钥和帐户 ID

与 Claude Desktop 集成

  1. 创建或编辑您的 Claude Desktop 配置文件:
    • macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
    • Windows: %APPDATA%\Claude\claude_desktop_config.json
  2. 添加 Harvest MCP 服务器配置:
    { "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. 重新启动 Claude Desktop。
  4. 通过查找 Claude 界面中的锤子图标来验证集成。

示例查询

连接后,您可以通过以下查询向 Claude 询问您的 Harvest 数据:

  • “显示我上周的时间记录”
  • “列出我所有正在进行的项目”
  • “为项目 [project_id] 和任务 [task_id] 启动计时器”
  • “显示所有活跃客户”
  • “列出所有可用任务”

定制

您可以修改服务器代码以添加更多功能,或自定义现有工具以更好地适应您的工作流程。服务器使用 FastMCP,只需使用@mcp.tool()装饰器添加新函数即可轻松添加新工具。

故障排除

  • API 错误:确保您的 Harvest API 密钥和帐户 ID 正确并具有必要的权限。
  • 连接问题:验证您的 Claude Desktop 配置是否具有正确的服务器脚本路径。
  • 缺少依赖项:确保您已在 Python 环境中安装了所有必需的包。

安全说明

此服务器需要您的 Harvest API 凭证才能运行。请确保:

  • 确保 API 密钥的安全
  • 不要分享你的 claude_desktop_config.json 文件
  • 考虑使用具有有限权限的专用 API 密钥进行此集成
Install Server
A
security – no known vulnerabilities
A
license - permissive license
A
quality - confirmed to work

remote-capable server

The server can be hosted and run remotely because it primarily relies on remote services or has no dependency on the local environment.

与 Harvest 时间跟踪 API 集成,使 AI 助手能够通过自然语言命令管理时间条目、项目、客户和任务。

  1. 特征
    1. 用户
    2. 时间条目
    3. 项目
    4. 客户
    5. 任务
  2. 设置说明
    1. 先决条件
    2. 与 Claude Desktop 集成
  3. 示例查询
    1. 定制
      1. 故障排除
        1. 安全说明

          Related MCP Servers

          • -
            security
            A
            license
            -
            quality
            A lightweight, modular API service that provides useful tools like weather, date/time, calculator, search, email, and task management through a RESTful interface, designed for integration with AI agents and automated workflows.
            Last updated -
            Python
            MIT License
          • -
            security
            F
            license
            -
            quality
            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.
            Last updated -
            TypeScript
            • Apple
          • A
            security
            A
            license
            A
            quality
            Provides comprehensive integration with the Clockify time tracking API, enabling automated time entry management, project organization, task tracking, and reporting through a standardized interface.
            Last updated -
            28
            2
            1
            JavaScript
            MIT License

          View all related MCP servers

          MCP directory API

          We provide all the information about MCP servers via our MCP API.

          curl -X GET 'https://glama.ai/api/mcp/v1/servers/taiste/harvest-mcp-server'

          If you have feedback or need assistance with the MCP directory API, please join our Discord server