Skip to main content
Glama
mf-accounting-voucher-mcp

mf-accounting-voucher-mcp

by solara-co-jp

mf-accounting-voucher-mcp

머니포워드 클라우드 회계의 공식 MCP 서버가 미지원하는 기능을 보완하는 로컬 MCP 서버입니다. REST API v3를 직접 호출하며, 공식 MCP(리모트)와 병용합니다.

제공 도구

도구명

기능

API 엔드포인트

post_vouchers

증빙 파일(PDF·이미지)을 분개에 첨부

POST /api/v3/vouchers

delete_voucher

증빙 첨부 해제

DELETE /api/v3/vouchers

delete_journal

분개 삭제(취소 불가)

DELETE /api/v3/journals/{id}

참고: 연계 내역의 '대상 외' 처리(対象外)는 REST API에 존재하지 않으므로 제공하지 않습니다. 증빙 파일 다운로드도 마찬가지로 API 미지원입니다. 공식 MCP가 이미 제공하는 기능(getJournals 등)은 재구현하지 않습니다.

증빙 파일의 바이너리는 LLM을 경유하지 않습니다. 이 서버(Node 프로세스)가 로컬 파일 경로를 받아 읽고 base64로 변환하여 API로 전송합니다.

Related MCP server: money-forward-mcp-community

셋업

1. 앱 포털에서 앱 등록

머니포워드 앱 포털에서 앱을 생성하고 다음을 설정합니다.

  • 리다이렉트 URI: http://127.0.0.1:53682/callback

  • 스코프:

    • mfc/accounting/voucher.write(증빙 등록, 삭제)

    • mfc/accounting/journal.write(분개 등록, 갱신, 삭제)

발급된 클라이언트 ID / 클라이언트 시크릿을 기록해 둡니다.

2. 설치 및 빌드

pnpm install && pnpm run build

3. 환경 변수 설정

export MF_CLIENT_ID="(クライアントID)"
export MF_CLIENT_SECRET="(クライアントシークレット)"

변수

기본값

용도

MF_CLIENT_ID / MF_CLIENT_SECRET

없음(필수)

앱 포털에서 발급

MF_REDIRECT_PORT

53682

콜백용 로컬 포트

MF_REDIRECT_URI

http://127.0.0.1:{PORT}/callback

리다이렉트 URI

MF_TOKEN_PATH

~/.mf-accounting-voucher-mcp/tokens.json

토큰 저장 위치

MF_MAX_FILE_MB

20

파일 1개 상한(로컬 측 안전장치)

MF_ALLOWED_EXT

.pdf,.jpg,.jpeg,.png

허용 확장자(쉼표 구분으로 덮어쓰기 가능)

4. 최초 인가

pnpm run auth

브라우저가 열리므로 머니포워드에 로그인하여 인가합니다. 토큰은 ~/.mf-accounting-voucher-mcp/tokens.json(mode 600)에 저장되며, 이후에는 자동으로 리프레시됩니다.

Claude Desktop / Cowork 등록

한 번 등록하면 클라이언트 기동 시 MCP 서버는 자동으로 실행됩니다. 일상적으로 수동 기동할 필요가 없습니다.

권장: 키체인 이용(시크릿을 설정 파일에 쓰지 않음)

최초 1회만 인증 정보를 macOS 키체인에 등록합니다:

security add-generic-password -s mf-accounting-voucher-mcp -a client_id -w '(クライアントID)' -U
security add-generic-password -s mf-accounting-voucher-mcp -a client_secret -w '(クライアントシークレット)' -U

claude_desktop_config.json의 mcpServers에는 기동 스크립트를 등록합니다(경로는 실제 설치 위치로 바꿔 주세요):

{
  "mcpServers": {
    "mf-accounting-voucher-mcp": {
      "command": "/path/to/mf-accounting-voucher-mcp/scripts/mf-accounting-voucher-mcp.sh",
      "args": []
    }
  }
}

최초 OAuth 인가도 스크립트 경유로 실행할 수 있습니다(환경 변수 설정 불필요):

scripts/mf-accounting-voucher-mcp.sh auth

대안: 환경 변수를 설정 파일에 직접 작성

{
  "mcpServers": {
    "mf-accounting-voucher-mcp": {
      "command": "node",
      "args": ["/path/to/mf-accounting-voucher-mcp/dist/index.js"],
      "env": {
        "MF_CLIENT_ID": "(クライアントID)",
        "MF_CLIENT_SECRET": "(クライアントシークレット)"
      }
    }
  }
}

이 방법은 시크릿이 설정 파일에 평문으로 남는다는 점에 주의하세요.

사용 예

「この領収書(/Users/xxx/Downloads/receipt.pdf)を仕訳 XXXX に添付して」
→ post_vouchers が呼ばれ、添付結果(voucher_file_ids)が返る

「仕訳 XXXX の証憑 a60cd25d-... の添付を解除して」
→ delete_voucher

「仕訳 XXXX を削除して」
→ delete_journal(実行前に仕訳内容の提示と明示的な確認が入る)

첨부 결과는 공식 MCP의 getJournalById로 대상 분개를 조회하여 voucher_file_ids에 반영되었는지로 검증할 수 있습니다.

주의

  • MF의 파일 종류·크기·매수에 대한 정확한 제한은 공식 스펙 /specs/vouchers를 참조하세요(본 서버의 상한은 로컬 측 안전장치입니다)

  • 사업자(오피스) 전환은 pnpm run auth 재실행으로 수행합니다

  • delete_journal은 취소할 수 없습니다. 호출 측(LLM)은 사용자의 명시적 확인을 받은 후 실행하도록 설계되어 있습니다

Available Tools

3 tools
delete_journalA

マネーフォワード クラウド会計の仕訳を削除する。この操作は元に戻せません。実行前に必ずユーザーの明示的な確認を取り、対象仕訳の内容(取引No・日付・金額・摘要)を提示してから呼び出すこと。

Inputs: id (required).

delete_voucherA

マネーフォワード クラウド会計の仕訳から証憑ファイルの添付を解除する(添付解除。ファイル自体の削除ではなく仕訳との紐付けを外す操作)。

Inputs: journal_id (required), voucher_file_id (required).

post_vouchersA

マネーフォワード クラウド会計の仕訳に証憑ファイル(PDF・画像)を添付する。ファイルはローカルの絶対パスで指定し、サーバー側で読み込んでbase64送信する(ファイル内容はLLMを経由しない)。

Inputs: file_paths (required), journal_id (required).

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    A3.6/5.0

    Scored across 3 tools

    Disambiguation3/5

    post_vouchers与delete_voucher都涉及証憑添付,前者是添付、后者是解除添付,边界清晰;但delete_voucher和delete_journal都含'delete'前缀,容易混淆,且语义上一个删除附件、一个删除仕訳本身,描述虽说明但名称上不够鲜明。整体可区分但有轻微重叠。

    Naming Consistency3/5

    工具名采用动词+名词的snake_case(post_vouchers, delete_voucher, delete_journal),但动词风格不一致:post是动作,delete重复使用,且voucher与journal概念不同但都涉及删除,名词部分略显混乱。整体模式可识别但不够统一。

    Tool Count3/5

    3个工具属于偏少但可接受的范围。对于会计凭证管理,可能预期有获取/查询工具,但当前仅有写入和删除操作,功能面较窄,工具数接近最低阈值。

    Completeness2/5

    缺少核心的获取/查询功能(如获取凭证列表、获取仕訳详情),也缺少更新操作。用户无法查看已存在的凭证或仕訳,仅能添加和删除,导致操作闭环不完整,代理将面临无法验证或修订的困境。

    Maintenance

    ActivityInactive
    ResponsivenessNo recent community issues

    Related MCP Connectors

    • Secure remote MCP for supported accounting workflows in authorized Money S3 companies.

      https://money-mcp.uctomost.sk/mcp
    • e-Boekhouden MCP server for ChatGPT, Claude and any AI agent: create invoice, book mutation, add relation, list open items and export ledger in your own e-Boekhouden account. Cotlet works in the account through your Cloud Browser, a real Chrome where you sign in to e-Boekhouden yourself; Cotlet does not store your password and you need no e-Boekhouden API key. About the official e-Boekhouden API: Yes. e-Boekhouden has a REST API with an OpenAPI description (checked 14 Oct 2026). Setup and FAQ: https://cotlet.dev/integrations/e-boekhouden-api-mcp-server

    • Headless API-first double-entry accounting & bookkeeping engine. 84 MCP tools over HTTP.

      https://api.craneledger.ai/mcp
    • Bokio MCP server for ChatGPT, Claude and any AI agent: create invoice, send invoice, upload receipt, create journal entry and list unpaid invoices in your own Bokio account. Cotlet works in the account through your Cloud Browser, a real Chrome where you sign in to Bokio yourself; Cotlet does not store your password and you need no Bokio API key. About the official Bokio API: Yes, Bokio has a public REST API for invoices, customers, journal entries, uploads and supplier invoices (checked 14 Oct 2026), but it depends on your price plan and on the kind of integration: a private integration token works for one company only, and a tool that serves several companies must be registered as a public integration with OAuth 2.0. Bokio publishes no MCP server of its own. Setup and FAQ: https://cotlet.dev/integrations/bokio-api-mcp-server

      https://cotlet.dev/mcp/v1/bokio

    Related MCP Servers

    • A
      license
      B
      quality
      D
      maintenance
      Enables Claude Desktop to interact with freee accounting API for expense registration, transaction management, and receipt image processing.
      15
      1
      MIT
    • A
      license
      A
      quality
      C
      maintenance
      Unofficial, community-maintained stdio MCP server for Money Forward ME that uses cookie-based authentication to retrieve accounts and assets from manual entry accounts.
      14
      37 npm
      9
      MIT
    • A
      license
      B
      quality
      C
      maintenance
      An unofficial MCP server for Money Forward Cloud Accounting that extends the official beta MCP by enabling simultaneous connections to multiple businesses, attaching receipts and invoices to journal entries, and fully deleting journal entries.
      29
      MIT
    • A
      license
      C
      quality
      C
      maintenance
      Enables AI assistants to operate MoneyForward Cloud Invoice, Expense, and Accounting through their public APIs, exposing 56 tools for issuing invoices, filing expenses with receipt images, and posting journal entries.
      56
      14 npm
      MIT