mcpField
M
MCP FreshBooks

MCP FreshBooks

本地服务
github.com/AlexlaGuardia金融数据330 周前更新

关于 MCP FreshBooks

MCP FreshBooks 将 FreshBooks 会计工作流接入 MCP 客户端,涵盖账单、费用、工时、报表及组合工作流,并支持 OAuth2 自动刷新令牌。

主要功能

  1. 01管理发票、客户、估算单和费用
  2. 02记录付款、工时条目和项目
  3. 03生成五类财务报表
  4. 04转换估算单并为未开票工时开票
  5. 05使用 OAuth2 认证并刷新令牌

适用场景

  1. 01查看逾期发票和未付金额
  2. 02将估算单转换为发票
  3. 03查找未开票工时并据此开票
  4. 04查看损益或税务汇总

MCP 相关

这是一个 MCP 服务,向 MCP 客户端提供 FreshBooks 会计操作和工作流工具。

配置

本地服务的配置在各客户端中通用,复制后粘贴到客户端的 MCP 配置文件即可。

暂未收录安装方式

我们还没有获取到这个服务的安装包或远程地址,请按项目 README 中的说明安装。

代码仓库

工具

还没有获取到工具列表

本地服务需要在你的电脑上运行后才能读取工具,维护者暂未提供工具列表。

详细介绍

mcp-freshbooks

面向 FreshBooks 的生产级 MCP 服务,提供 53 个工具,涵盖发票、客户、费用、付款、时间跟踪、项目、报价、财务报告和智能工作流。

功能

  • 53 个工具,涵盖完整的 FreshBooks 会计工作流
  • 智能工作流工具——将报价转换为发票、为未开票的工时开具发票、查找逾期客户、获取完整的客户摘要
  • 5 种财务报告——损益表、税务摘要、应收账款账龄、资产负债表、已收款项
  • OAuth2 身份验证,支持自动刷新令牌
  • 简洁的输出——摘要列表、格式化详情
  • 生产级错误处理和速率限制感知
  • 零成本——使用 FreshBooks 免费开发者计划

工具

类别工具数量
身份验证freshbooks_authenticate、freshbooks_authenticate_with_code、freshbooks_whoami3
发票list_invoices、get_invoice、create_invoice、update_invoice、send_invoice、delete_invoice6
定期发票list_recurring_invoices、create_recurring_invoice、update_recurring_invoice3
客户list_clients、get_client、create_client、update_client、delete_client5
报价list_estimates、get_estimate、create_estimate、update_estimate、send_estimate5
费用list_expenses、get_expense、create_expense、update_expense、delete_expense5
付款list_payments、get_payment、create_payment3
时间跟踪list_time_entries、get_time_entry、create_time_entry、update_time_entry、delete_time_entry5
项目list_projects、get_project、create_project、update_project4
报告get_profit_loss、get_tax_summary、get_accounts_aging、get_balance_sheet、get_payments_collected5
项目list_items、create_item2
类别list_expense_categories1
税费list_taxes1
工作流convert_estimate_to_invoice、get_overdue_invoices、get_unbilled_time、invoice_from_time、client_summary5

快速开始

1. 安装
pip install mcp-freshbooks

或从源代码安装:

git clone https://github.com/AlexlaGuardia/mcp-freshbooks.git
cd mcp-freshbooks
pip install .
2. 获取 FreshBooks API 凭据
  1. 在 freshbooks.com/pages/developer-signup 注册
  2. 在开发者门户中创建 OAuth 应用
  3. 将重定向 URI 设为 https://localhost:8555/callback
  4. 复制客户端 ID 和客户端密钥
3. 配置
export FRESHBOOKS_CLIENT_ID=your_client_id
export FRESHBOOKS_CLIENT_SECRET=your_client_secret
export FRESHBOOKS_REDIRECT_URI=https://localhost:8555/callback
4. 添加到 Claude Desktop

添加到 claude_desktop_config.json:

{
  "mcpServers": {
    "freshbooks": {
      "command": "mcp-freshbooks",
      "env": {
        "FRESHBOOKS_CLIENT_ID": "your_client_id",
        "FRESHBOOKS_CLIENT_SECRET": "your_client_secret",
        "FRESHBOOKS_REDIRECT_URI": "https://localhost:8555/callback"
      }
    }
  }
}
5. 身份验证

首次使用时,请使用 freshbooks_authenticate 工具。它会提供一个 URL,供你在浏览器中打开。授权后,令牌会保存到 ~/.mcp-freshbooks/tokens.json 并自动刷新。

使用示例

谁欠我钱?

Use get_overdue_invoices to see all past-due clients and total outstanding

将提案转换为发票:

Use convert_estimate_to_invoice to turn estimate 456 into a ready-to-send invoice

查找未开票的工作:

Use get_unbilled_time to find time entries not yet on any invoice

检查盈利能力:

Get the profit and loss report for Q1 2026

跟踪时间:

Create a 2-hour time entry for project 789 with note "API integration work"

架构

src/mcp_freshbooks/
├── server.py   # MCP server with 47 tool definitions
├── client.py   # FreshBooks API client (httpx async)
└── auth.py     # OAuth2 flow + token persistence

该服务使用 MCP Python SDK 和 FastMCP,以简洁地注册工具。所有 API 调用均通过异步客户端发起,并自动刷新令牌。

要求

  • Python 3.10+
  • FreshBooks 账户(免费试用账户可用于开发)
  • FreshBooks OAuth 应用凭据

许可证

MIT

评论

支持 Markdown

第一次接触 MCP?

从协议是什么,到在客户端里装上第一个服务,这几条回答覆盖了大多数入门问题。

一个开放协议,规定了 AI 应用如何以统一方式连接外部工具与数据源。客户端负责与模型对话,MCP 服务负责提供工具、资源和提示模板,两者通过标准消息通信,同一个服务可以被不同客户端复用。