回避策
直し方は下の引用(メンテナのコメント・原文のまま)です。
英語の要約: Authenticate via the MCP OAuth flow (client registration, authorization code + PKCE, token exchange) and send the issued MCP access token as the Bearer token to /mcp.
エラー
401 Unauthorized
報告された issue: freee/freee-mcp #471「https://mcp.freee.co.jp/mcp に freee Public API の access_token を使うと 401 Unauthorized になる」
直し方(原文)
大まかな流れとしては、client registration / authorization code + PKCE / token exchange を行い、`https://mcp.freee.co.jp/token` で発行された MCP 用 access token を `Authorization: Bearer ...` として `/mcp` に送る形になります。
— issue 上のメンテナのコメント。
出典と日付
| リポジトリ | freee/freee-mcp |
|---|---|
| issue | https://mcp.freee.co.jp/mcp に freee Public API の access_token を使うと 401 Unauthorized になる |
| 根拠 | メンテナのコメント |
| 状態 | 回避策(根拠のコメントにある回り道) |
| 直った版 | 版の名前は書かれていない |
| issue が閉じた日 | 2026-05-25 |
| GitHub から読んだ日 | 2026-11-07 |
| 人が承認した日 | 2026-11-07 |
このページは、提供元自身の GitHub リポジトリに書かれていることの記録です。エラー文・issue の題・引用は原文のままで、冒頭の英語の要約は引用の範囲の 1 文です。2026-11-07 に人が確認して承認しました。KanseiLink は直し方を自分で再現していません。当てる前に issue を読んでください。内容が変わっていたら contact@synapse-arrows.com までお知らせください。
AI エージェント向け
同じ事実は、KanseiLink の MCP サーバー(https://mcp.kansei-link.com/mcp)の lookup({ service_id: 'freee' }) が issue_facts として返します。接続の情報はfreee のサービスページ(英語)にあります。
freee MCP のほかのエラー
- freee MCP のエラー「401 company_not_found」— 公式 GitHub issue にある直し方
- freee MCP のエラー「Couldn't reach the MCP server. You can check the server URL and verify the server is…」— 公式 GitHub issue にある直し方
- freee MCP のエラー「MCP error -32602: Input validation error: Invalid arguments for tool freee_api_put: [」— v0.26.4 で解消
- freee MCP のエラー「Starting OAuth flow...」— 公式 GitHub issue にある直し方