连接器指南阅读约 5 分钟30 个 MCP 工具7 种语言

如何通过 MCP 将 Moss 连接到 Gemini

Moss 支出管理(德国和欧洲):来自公司卡、发票和报销的费用及其明细行和票据,钱包余额和银行交易,供应商、费用科目、增值税税率和成本中心。可以创建供应商和维度项;不能付款或审批任何内容。

HC作者:HelpCode 团队更新于 5 分钟阅读 在 GitHub 开源

无需信用卡 · 7 天试用 · 提供自托管方案

Moss

Moss

Moss spend management (Germany and Europe): expenses from cards, invoices and reimbursements with line items and receipts, wallet balances and bank transactions, suppliers, expense accounts, VAT rates, payment terms, cost centres and other dimensions, users and teams. Can create suppliers, dimensions and dimension items; it cannot pay or approve anything.

个工具

30

区域

DE

类别

财务

身份验证

OAuth 2.0

所需环境变量

MOSS_KEY_IDMOSS_SECRET_KEY
在 Cloud 上一键安装

7 天免费试用 · 无需信用卡

  • 7 天免费试用
    无需信用卡
  • 符合 GDPR,SOC 2 就绪
    数据驻留欧盟,审计日志
  • 在 GitHub 开源
    开源 · AGPL-3.0
  • 支持 ChatGPT、Claude、Gemini
    任何兼容 MCP 的客户端

跳过安装。2 分钟内即可运行。

在 cloud.anythingmcp.com 开始免费试用,一键添加 Moss,然后将你的 AI 客户端(Claude、ChatGPT、Copilot 或 Cursor)指向生成的 MCP 端点。无需 Docker,无需 git clone,无需任何工程经验。

开始免费试用

摘要

Moss 支出管理(德国和欧洲):来自公司卡、发票和报销的费用及其明细行和票据,钱包余额和银行交易,供应商、费用科目、增值税税率和成本中心。可以创建供应商和维度项;不能付款或审批任何内容。

试试这样问

Moss 的示例提示

点击任意提示即可复制,然后粘贴到 Claude、ChatGPT、Cursor、Gemini、Copilot 或 OpenClaw 中,在该连接器上运行。

Moss · 通过 MCP 实时
分享
Opus 4.7

Claude 是 AI,可能会出错。请核对回答。

💡 无需安装? 直接使用 cloud.anythingmcp.com。 登录、点击 Connectors → Moss、粘贴凭证、生成 MCP API key,即可完成。无 Docker、无 git clone、无本地服务器。

Moss + Gemini

Moss 支出管理(德国和欧洲):来自公司卡、发票和报销的费用及其明细行和票据,钱包余额和银行交易,供应商、费用科目、增值税税率和成本中心。可以创建供应商和维度项;不能付款或审批任何内容。

前提条件

完整的设置说明已内置在连接器中 (在 store 中选择连接器时可见)。所需环境变量:

MOSS_KEY_ID, MOSS_SECRET_KEY

步骤 1 — 获取凭证

设置大约需要 5 分钟。你需要一位 Moss 管理员,以及用于确认新密钥的 Moss 手机应用。

  1. 以管理员身份登录 Moss,打开 Settings、Company Settings、API Keys(也可能显示为 Settings、Platform、API Keys)。
  2. 点击 Generate API Key,并在 Moss 手机应用中确认。
  3. 把 Key ID(以 kid_ 开头)复制到 MOSS_KEY_ID,把 Secret Key(以 sk_ 开头)复制到 MOSS_SECRET_KEY。密钥只显示一次;丢失后请生成新密钥。
  4. 安装连接器并运行 moss_list_expenses:它会返回你最近的费用并确认密钥可用。

连接器在 Moss 的 /oauth2/token(客户端凭据)把密钥换成有效期一小时的令牌,并自动续期。由于创建和更新工具需要,它会申请包含 read 的 write 权限范围。如果 AI 只应读取,请关闭这些工具。

可读取的内容:费用(卡交易、发票和报销)及其明细行,净额、增值税和总额,每行的费用科目和增值税税率,状态、导出状态和供应商;附在费用上的文件(票据、发票 PDF),由 moss_search_files 列出,并由 moss_download_file 以附件形式交付;Moss 银行账户(钱包)及其资金类型、币种和状态,每个账户的余额和可用余额,以及某个记账日期范围内的银行交易(刷卡消费和退款、付款、取款、充值、还款,含记账日和起息日、交易对方和手续费);供应商及其银行信息、增值税号、付款条件和默认记账设置;带科目编号的费用科目;增值税税率;付款条件及其到期和折扣规则;成本中心、成本载体、项目等会计维度及其维度项;用户及其团队、上级和角色;团队和部门。

筛选:费用可按类型(CARD_TRANSACTION、INVOICE、REIMBURSEMENT)、状态(例如 SUBMITTED、APPROVED、FLAGGED、REJECTED、REVIEWED、VERIFIED、COMPLETED)、导出状态(NOT_EXPORTED、READY_FOR_EXPORT、EXPORT_PENDING、EXPORTED、EXPORT_FAILED)、创建日期、费用日期或最后更新时间筛选,并可按状态、创建时间、本位币金额或费用时间排序。银行交易必须指定记账日期范围。只有同时传入明细行 id 时,才会列出明细行上的文件。

可写入的内容:moss_create_supplier、moss_create_dimension、moss_update_dimension、moss_create_dimension_item(例如新的成本中心)和 moss_update_dimension_item 会修改用于记账的主数据。它们在安装时即开启;AI 会先向你展示将要创建或修改的内容,等你同意,并传入 external_user_id(提出请求的人),以便 Moss 追溯更改。供应商和维度项可以设为 ACTIVE 或 DEACTIVATED;不提供删除。更新维度项时始终需要名称和状态,因此 AI 会为保持不变的内容发送当前值。创建超出默认数量的维度需要 Moss 的 Multiple Dimensions 模块。

安装时关闭:moss_update_supplier,因为它可能替换 Moss 支付该供应商发票所用的 IBAN。由管理员有意开启,开启后 AI 在调用前会展示旧值和新值。

金额和日期:金额是包含十进制字符串 amount 和 currency 的对象;homeAmount 以公司本位币计价。日期为 YYYY-MM-DD,时间戳为 UTC 的 ISO 8601。ID 为 UUID。

限制:列表每页最多返回 100 条(默认 50 条);只要 meta.pagination.hasMore 为 true,AI 就会请求下一 page。ID 筛选最多接受 100 个 ID。Moss 允许每个组织每分钟 180 次读取和 20 次写入。

常见错误:401 表示密钥已被撤销或无法签发令牌:请检查 MOSS_KEY_ID 和 MOSS_SECRET_KEY。402 表示未订购某个 Moss 模块,例如 Multiple Dimensions。403 表示令牌缺少权限范围。409 表示该记录由已启用的会计集成管理。422 表示引用的 ID(费用科目、增值税税率、付款条件、团队)不存在或已停用。429 表示已达到速率限制:请等待 Retry-After。

连接器不能付款、审批、导出或删除任何内容,也不会创建费用或上传票据:Moss Public API 没有提供这类调用。

步骤 2 — 安装 adapter

curl -fsSL https://raw.githubusercontent.com/HelpCode-ai/anythingmcp/main/docker-compose.quickstart.yml -o docker-compose.yml
printf 'JWT_SECRET=%s\nENCRYPTION_KEY=%s\n' "$(openssl rand -hex 32)" "$(openssl rand -hex 32)" > .env
docker compose up -d

步骤 3 — 在 Gemini 中添加连接器

你的服务器 URL: 在 AnythingMCP 中打开 MCP Servers → 此连接器所在的服务器,复制它的 URL(https://cloud.anythingmcp.com/mcp/…)。本指南中出现 YOUR_SERVER_ID 的地方都用它替换。

Gemini CLI 从 ~/.gemini/settings.json(Windows 上为 %USERPROFILE%\.gemini\settings.json)读取 MCP 服务器。添加:

{
  "mcpServers": {
    "anythingmcp": {
      "httpUrl": "https://cloud.anythingmcp.com/mcp/YOUR_SERVER_ID",
      "headers": { "X-API-Key": "YOUR_MCP_API_KEY" }
    }
  }
}
  1. 在 AnythingMCP 的 MCP Servers → 你的服务器 → API keys 中创建 MCP API 密钥,并用它替换 YOUR_MCP_API_KEY。
  2. 保存文件并重启 gemini。
  3. 在 Gemini CLI 中运行 /mcp(或在终端运行 gemini mcp list),anythingmcp 应显示为已连接。
  4. 开始输入提示,Gemini CLI 现在可以调用 Moss 的工具。

可用工具

ToolWhat it does
moss_list_expensesList expenses (card transactions, invoices and reimbursements) with their line items, amounts in original and home currency, status, export…
moss_search_filesList the files (receipts, invoice PDFs) attached directly to the given expenses: id, name, original name, size and upload time
moss_download_fileDownload one file attached to an expense (receipt or invoice, usually a PDF or image) by its id from moss_search_files
moss_list_expense_accountsList expense accounts (the accounting sub-categories booked on expense lines): id, name, account number and status
moss_get_expense_accountGet one expense account by id: name, account number and status
moss_list_dimensionsList the accounting dimensions of the organisation (e.g. cost centre, cost carrier, project; at most 50): id, name, ERP name and id, status
moss_get_dimensionGet one accounting dimension by id: name, ERP name, ERP id and status
moss_list_dimension_itemsList the items (values) of one dimension, e.g. the cost centres: id, name, code and status
moss_get_dimension_itemGet one dimension item (e.g. a cost centre) by id: name, code and status
moss_list_suppliersList suppliers: id, name, supplier number (code), status, currency, VAT id, bank details, default payment method, payment term and default…
moss_get_supplierGet one supplier by id (e.g. the supplierId of an expense) with bank details, VAT id and defaults
moss_list_payment_termsList payment terms: id, number, description, status and the due date rules (days, discounts)
moss_get_payment_termGet one payment term by id, e.g. the paymentTermId of a supplier
moss_list_tax_ratesList VAT rates: id, name, code, rate and status
moss_get_tax_rateGet one VAT rate by id (taxRateId of an expense line): name, code, rate and status
moss_list_usersList the users of the organisation: id, name, e-mail, team, manager, roles and status. createdBy of an expense is a user id
moss_get_userGet one user by id: name, e-mail, team, manager, roles and status
moss_list_teamsList teams: id, name, department and status
moss_get_teamGet one team by id (teamId of a user or default team of a supplier): name, department and status
moss_list_departmentsList the departments of the organisation: id and name
moss_get_departmentGet one department by id (the department of a team) with its name
moss_list_bank_accountsList the Moss bank accounts (wallets) of the organisation: id, funding type (CREDIT or DEBIT), currency and status (ACTIVE or CLOSED)
moss_get_bank_account_balanceGet the current balance of one Moss bank account: balance (ledger) and availableBalance (what can still be spent, lower when transactions…
moss_search_bank_transactionsSearch the money movements of Moss wallets by booking date: card purchases and refunds, payouts, withdrawals, top-ups and repayments, with…
moss_create_supplierCreate a supplier in Moss with name, supplier number, currency, VAT id, bank details, default payment method, payment term and default…
moss_update_supplierChange fields of an existing supplier; only the fields you send change
moss_create_dimensionCreate an accounting dimension (e.g
moss_update_dimensionRename a dimension in Moss and set its name in the accounting system
moss_create_dimension_itemAdd an item to a dimension, e.g. a new cost centre or project with its name and code
moss_update_dimension_itemRename a dimension item, change its code, or activate or deactivate it

示例提示

  • “列出上个月仍为 NOT_EXPORTED 的卡交易,包括金额、供应商和费用科目。”
  • “我们每个 Moss 钱包现在的可用余额是多少?”
  • “给我看 10 月 14 日那笔 249.90 EUR 的 Moss 费用所附的票据。”
  • “按供应商和增值税税率汇总我们第三季度的发票。”
  • “在我们的成本中心维度中创建成本中心 4300 Marketing Events。创建前先给我看要创建的内容。”

FAQ

Gemini CLI 从哪里读取 MCP 服务器? 用户级配置位于 ~/.gemini/settings.json,项目级配置位于项目内的 .gemini/settings.json。gemini mcp list 会列出每个服务器及其连接状态。

下一步

这份指南对你有帮助吗?

你的 Moss 智能体只差一次点击。

安装连接器,粘贴密钥,向 Gemini 提问。免费试用 7 天,无需信用卡。

相关指南

连接器

如何通过 MCP 将 Moss 连接到 Microsoft Copilot

Moss 支出管理(德国和欧洲):来自公司卡、发票和报销的费用及其明细行和票据,钱包余额和银行交易,供应商、费用科目、增值税税率和成本中心。可以创建供应商和维度项;不能付款或审批任何内容。

连接器

如何通过 MCP 将 Moss 连接到 ChatGPT

Moss 支出管理(德国和欧洲):来自公司卡、发票和报销的费用及其明细行和票据,钱包余额和银行交易,供应商、费用科目、增值税税率和成本中心。可以创建供应商和维度项;不能付款或审批任何内容。

连接器

如何通过 MCP 将 Moss 连接到 Claude

Moss 支出管理(德国和欧洲):来自公司卡、发票和报销的费用及其明细行和票据,钱包余额和银行交易,供应商、费用科目、增值税税率和成本中心。可以创建供应商和维度项;不能付款或审批任何内容。

连接器

如何通过 MCP 将 Moss 连接到 Cursor

Moss 支出管理(德国和欧洲):来自公司卡、发票和报销的费用及其明细行和票据,钱包余额和银行交易,供应商、费用科目、增值税税率和成本中心。可以创建供应商和维度项;不能付款或审批任何内容。

连接器

如何通过 MCP 将 Moss 连接到 Meta Muse

Moss 支出管理(德国和欧洲):来自公司卡、发票和报销的费用及其明细行和票据,钱包余额和银行交易,供应商、费用科目、增值税税率和成本中心。可以创建供应商和维度项;不能付款或审批任何内容。

连接器

Moss 接入 MCP:在任意 AI 智能体中查看费用、票据、钱包和供应商

Moss 支出管理(德国和欧洲):来自公司卡、发票和报销的费用及其明细行和票据,钱包余额和银行交易,供应商、费用科目、增值税税率和成本中心。可以创建供应商和维度项;不能付款或审批任何内容。