Skip to content

https://mcp.freee.co.jp/mcp に freee Public API の access_token を使うと 401 Unauthorized になる #471

@kytkhrz

Description

@kytkhrz

Description / 概要

freee-mcp の hosted MCP endpoint (https://mcp.freee.co.jp/mcp) に対して、freee Public API で取得した access_token を Bearer token として使用するとツール一覧取得で 401 Unauthorized になる。

Steps to Reproduce / 再現手順

  1. freee OAuth application を作成([参考URL](https://developer.freee.co.jp/startguide/starting-api))
  2. freee Public API 用の access_token を取得
  3. GET https://api.freee.co.jp/api/1/users/me で 200 OK を確認
  4. 独自 MCP クライアント(Python/httpx ベース)から https://mcp.freee.co.jp/mcp に対してツール一覧取得リクエストを送信(取得した access_token を Bearer token として使用)

Expected Behavior / 期待される動作

ツール一覧が正常に取得できる。

Actual Behavior / 実際の動作

401 Unauthorized が返る。

Error Messages / エラーメッセージ

401 Unauthorized

Environment / 環境

  • freee-mcp version:
  • MCP client (e.g., Claude Desktop, Claude Code): 独自実装(Python/httpx ベース)
  • Node.js version:
  • OS:

質問:

  1. https://mcp.freee.co.jp/mcp は、freee Public API の access_token をそのまま Bearer token として利用可能でしょうか?
  2. それとも hosted MCP 用に別の OAuth / MCP auth flow が必要でしょうか?

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions