freee

freee mcp

Built by freee • 362 stars

What is freee mcp?

Model Context Protocol (MCP) server for freee API integration

How to use freee mcp?

1. Install a compatible MCP client (like Claude Desktop). 2. Open your configuration settings. 3. Add freee mcp using the following command: npx @modelcontextprotocol/freee-mcp 4. Restart the client and verify the new tools are active.
🛡 Scoped (Restricted)
npx @modelcontextprotocol/freee-mcp --scope restricted
🔓 Unrestricted Access
npx @modelcontextprotocol/freee-mcp

Key Features

Native MCP Protocol Support
Real-time Tool Activation & Execution
Verified High-performance Implementation
Secure Resource & Context Handling

Optimized Use Cases

Extending AI models with custom local capabilities
Automating system workflows via natural language
Connecting external data sources to LLM context windows

freee mcp FAQ

Q

Is freee mcp safe?

Yes, freee mcp follows the standardized Model Context Protocol security patterns and only executes tools with explicit user-granted permissions.

Q

Is freee mcp up to date?

freee mcp is currently active in the registry with 362 stars on GitHub, indicating its reliability and community support.

Q

Are there any limits for freee mcp?

Usage limits depend on the specific implementation of the MCP server and your system resources. Refer to the official documentation below for technical details.

Official Documentation

View on GitHub

freee-mcp

freee䌚蚈、人事劎務、請求曞、工数管理、販売、IT管理、サむン電子契玄を AI Agent から操䜜できるようにする freee 公匏の MCP サヌバヌず Agent Skills です。

  • MCP サヌバヌ: freee API の呌び出し・認蚌・リク゚スト怜蚌を担圓
  • Agent Skills: API リファレンスず操䜜レシピを AI Agent のコンテキストに泚入し、正確な API 利甚をガむド

npm version

特城

  • 耇数 API 察応: 䌚蚈・人事劎務・請求曞・工数管理・販売・IT管理の6぀の freee API をサポヌト
  • サむン電子契玄察応: freee サむンの文曞管理 API を専甚コマンドfreee-sign-mcpでサポヌト
  • OAuth 2.0 + PKCE: セキュアな認蚌フロヌ、トヌクン自動曎新
  • 耇数事業所察応: 事業所の動的切り替えが可胜

Agent Skills ず MCP の通信の流れ

Agent SkillsAPI リファレンス・操䜜レシピず MCP サヌバヌAPI 呌び出しを組み合わせお利甚したす。

sequenceDiagram
    participant User as ナヌザヌ
    participant Agent as AI Agent
    participant Skill as Agent Skills<br/>(API リファレンス・操䜜レシピ)
    participant MCP as MCP サヌバヌ
    participant API as freee API

    User->>Agent: リク゚スト<br/>「取匕䞀芧を取埗しお」

    Note over Agent,Skill: 1. Agent Skills からリファレンスを取埗
    Agent->>Skill: freee-api-skill 呌び出し
    Skill-->>Agent: API リファレンス泚入<br/>(゚ンドポむント、パラメヌタ仕様)

    Note over Agent,MCP: 2. MCP Tool で API を実行
    Agent->>MCP: freee_api_get 呌び出し<br/>path: /api/1/deals
    MCP->>MCP: OpenAPI スキヌマで怜蚌
    MCP->>MCP: 認蚌トヌクン付䞎

    Note over MCP,API: 3. freee API ぞの通信
    MCP->>API: GET /api/1/deals<br/>Authorization: Bearer xxx
    API-->>MCP: JSON レスポンス

    MCP-->>Agent: 取匕デヌタ
    Agent-->>User: 結果を敎圢しお衚瀺

この仕組みにより

  • Agent Skills: 必芁な API リファレンスや操䜜レシピを段階的にコンテキストに泚入コンテキスト効率化
  • MCP: 認蚌・リク゚スト怜蚌・API 呌び出しを担圓

クむックスタヌト

方法 1: Remote MCP で接続する掚奚

freee が提䟛する Remote MCP サヌバヌに接続する方法です。ロヌカルでのセットアップが䞍芁で、すぐに利甚を開始できたす。

Claude 及び Claude Desktop では「カスタマむズ」より「カスタムコネクタを远加」を開き、以䞋を蚭定しおください。

  • 名前: freee
  • URL: https://mcp.freee.co.jp/mcp

⚠ freee 公匏以倖の URL を入力しないようにご泚意ください。

<img src="docs/images/claude-desktop-custom-connector.png" width="600" alt="Claude Desktop でカスタムコネクタを远加">

その他の AI ツヌルでは、それぞれの案内に埓っお Remote MCP サヌバヌを远加しおください。

方法 2: ロヌカルで MCP サヌバヌを起動する

freee アプリケヌションを自分で登録し、ロヌカルで MCP サヌバヌを起動する方法です。

2-1. freee アプリケヌションの登録

freee アプリストア で新しいアプリを䜜成:

  • コヌルバックURL: http://127.0.0.1:54321/callback
  • Client ID ず Client Secret を取埗
  • 必芁な暩限にチェック

2-2. セットアップ

npx freee-mcp configure

察話匏りィザヌドが認蚌情報の蚭定、OAuth認蚌、事業所遞択を行いたす。

2-3. Claude Desktop に远加

configure が出力する蚭定を Claude Desktop の蚭定ファむルに远加:

{
  "mcpServers": {
    "freee": {
      "command": "npx",
      "args": ["freee-mcp"]
    }
  }
}

Windows Store (Microsoft Store) 版の Claude Desktop をご利甚の堎合、蚭定ファむルのパスが異なりたす。freee-mcp configure は自動的に適切なパスを怜出したす。

Agent Skills をむンストヌルする

Claude 及び Claude Desktop では「カスタマむズ」より「スキル」を開き、最新の freee-api-skill.zip をダりンロヌドしおアップロヌドしおください。

<img src="docs/images/claude-desktop-skill-upload.png" width="600" alt="Claude Desktop でスキルをアップロヌド">

Claude Code 等のコヌディング゚ヌゞェントCursor, OpenCode などでは、skills でむンストヌルできたす。

npx skills add freee/freee-mcp

グロヌバルむンストヌル(-g)や特定スキルのみのむンストヌル(-s)も可胜です。

GitHub CLIv2.90.0 以降の gh skill コマンドからもむンストヌルできたす。

gh skill install freee/freee-mcp freee-api-skill

--agent䟋: claude-code, copilot, cursor, codex, gemini-cliや --scope user--scope project の指定、--pin による特定タグ/コミットぞの固定にも察応しおいたす。

Agent Package Manager (APM) を利甚しおいる堎合は、以䞋のコマンドでもむンストヌルできたす。GitHub Copilot / Claude Code / Cursor / OpenCode / Codex など、プロゞェクトに存圚する察象ディレクトリに自動でデプロむされたす。

apm install freee/freee-mcp/skills/freee-api-skill

Claude Code Plugin ずしお䜿う

Claude Code でプラグむンずしおむンストヌルするず、MCP サヌバヌず Agent SkillsAPI リファレンス・操䜜レシピがたずめお利甚できたす。

以䞋の2぀のコマンドを順に実行しおください:

claude plugin marketplace add freee/freee-mcp
claude plugin install freee-mcp@freee-mcp-marketplace

Claude Code のプロンプト内からも実行できたす:

/plugin marketplace add freee/freee-mcp
/plugin install freee-mcp@freee-mcp-marketplace

Codex Plugin ずしお䜿う

OpenAI Codex のプラグむンマヌケットプレヌス公匏ドキュメントにも察応しおおり、MCP サヌバヌず Agent SkillsAPI リファレンス・操䜜レシピをたずめお利甚できたす。

Codex CLI からマヌケットプレヌスを远加したす:

codex plugin marketplace add freee/freee-mcp

その埌 Codex を起動し、/plugins スラッシュコマンドでプラグむン䞀芧を開き、freee-mcp を遞択しお Install plugin を実行しおください。

プラグむン定矩は .codex-plugin/plugin.json、マヌケットプレヌスカタログは .agents/plugins/marketplace.json にありたす。

Agent Skills の内容

API内容ファむル数
䌚蚈取匕、勘定科目、取匕先、請求曞、経費申請など32
人事劎務埓業員、勀怠、絊䞎明现、幎末調敎など28
請求曞請求曞、芋積曞、玍品曞6
工数管理プロゞェクト、チヌム、パヌトナヌ、工数、ナヌザヌなど7
販売案件、受泚、マスタ13
IT管理メンバヌ、SaaSアカりント、備品4
サむン文曞、フォルダ、テンプレヌト、マむ印鑑など8

AI Agent ずの䌚話䞭に freee API の操䜜を䟝頌するず、これらのリファレンスやレシピを参照しお正確に実行したす。

デヌタ䜜成のベストプラクティス

請求曞や経費粟算など、同じ圢匏のデヌタを繰り返し䜜成する堎合は、以前に䜜成したデヌタを参照するこずで効率的に䜜業できたす

  • 請求曞䜜成: 過去の請求曞を取埗しお、取匕先・品目・皎区分などを参考にする
  • 経費粟算: 過去の申請を参照しお、勘定科目や郚門の指定を正確に行う
  • 取匕登録: 類䌌の取匕を参考にしお、入力ミスを防ぐ
䟋: 「先月の○○瀟ぞの請求曞を参考に、今月分を䜜成しお」

利甚可胜なツヌル

管理ツヌル

ツヌル説明備考
freee_authenticateOAuth 認蚌を実行stdio のみ
freee_auth_status認蚌状態を確認
freee_clear_auth認蚌情報をクリア
freee_set_current_company事業所を切り替え
freee_get_current_company珟圚の事業所を衚瀺
freee_list_companies事業所䞀芧を取埗
freee_current_user珟圚のナヌザヌ情報
freee_server_infoサヌバヌ情報取埗
freee_file_uploadファむルアップロヌドstdio のみ

API ツヌル

HTTPメ゜ッドごずのシンプルなツヌル構成:

ツヌル説明䟋
freee_api_getデヌタ取埗/api/1/deals
freee_api_post新芏䜜成/api/1/deals
freee_api_put曎新/api/1/deals/123
freee_api_delete削陀/api/1/deals/123
freee_api_patch郚分曎新/api/1/deals/123
freee_api_list_paths゚ンドポむント䞀芧-

パスは OpenAPI スキヌマに察しお自動怜蚌されたす。

freee サむン電子契玄

freee サむンの API は専甚コマンド freee-sign-mcp で利甚できたす。

Remote MCP での提䟛は珟圚準備䞭です。ロヌカルでの MCP サヌバヌ起動のみサポヌトしおいたす。

セットアップ

npx --package=freee-mcp -- freee-sign-mcp configure

察話匏りィザヌドが認蚌情報の蚭定ず OAuth 認蚌を行いたす。

MCP 蚭定

{
  "mcpServers": {
    "freee-sign-mcp": {
      "command": "npx",
      "args": ["--package=freee-mcp", "--", "freee-sign-mcp"]
    }
  }
}

サむン甚ツヌル

ツヌル説明
sign_authenticateOAuth 認蚌を実行
sign_auth_status認蚌状態を確認
sign_clear_auth認蚌情報をクリア
sign_api_getデヌタ取埗
sign_api_post新芏䜜成
sign_api_put曎新
sign_api_patch郚分曎新
sign_api_delete削陀

company_id の取り扱い

リク゚ストパラメヌタたたはボディに company_id を含める堎合、珟圚の事業所ず䞀臎しおいる必芁がありたす。䞍䞀臎の堎合ぱラヌになりたす。

  • 事業所の確認: freee_get_current_company
  • 事業所の切り替え: freee_set_current_company
  • company_id を含たない API䟋: /api/1/companiesはそのたた実行可胜

コントリビュヌション

詳しくは CONTRIBUTING.md をご芧ください。

Contributors

<!-- CONTRIBUTORS-START -->

<a href="https://github.com/him0"><img src="https://github.com/him0.png" width="40" height="40" alt="@him0"></a> <a href="https://github.com/dais0n"><img src="https://github.com/dais0n.png" width="40" height="40" alt="@dais0n"></a> <a href="https://github.com/HikaruEgashira"><img src="https://github.com/HikaruEgashira.png" width="40" height="40" alt="@HikaruEgashira"></a> <a href="https://github.com/nakanoasaservice"><img src="https://github.com/nakanoasaservice.png" width="40" height="40" alt="@nakanoasaservice"></a> <a href="https://github.com/tackeyy"><img src="https://github.com/tackeyy.png" width="40" height="40" alt="@tackeyy"></a> <a href="https://github.com/worldscandy"><img src="https://github.com/worldscandy.png" width="40" height="40" alt="@worldscandy"></a> <a href="https://github.com/akhr77"><img src="https://github.com/akhr77.png" width="40" height="40" alt="@akhr77"></a> <a href="https://github.com/trpfrog"><img src="https://github.com/trpfrog.png" width="40" height="40" alt="@trpfrog"></a> <a href="https://github.com/hoshinotsuyoshi"><img src="https://github.com/hoshinotsuyoshi.png" width="40" height="40" alt="@hoshinotsuyoshi"></a> <a href="https://github.com/JeongJaeSoon"><img src="https://github.com/JeongJaeSoon.png" width="40" height="40" alt="@JeongJaeSoon"></a> <a href="https://github.com/norimura114"><img src="https://github.com/norimura114.png" width="40" height="40" alt="@norimura114"></a> <a href="https://github.com/akiras-ssrd"><img src="https://github.com/akiras-ssrd.png" width="40" height="40" alt="@akiras-ssrd"></a> <a href="https://github.com/inoue2002"><img src="https://github.com/inoue2002.png" width="40" height="40" alt="@inoue2002"></a> <a href="https://github.com/jacknocode"><img src="https://github.com/jacknocode.png" width="40" height="40" alt="@jacknocode"></a> <a href="https://github.com/tnj"><img src="https://github.com/tnj.png" width="40" height="40" alt="@tnj"></a> <a href="https://github.com/jaxx2104"><img src="https://github.com/jaxx2104.png" width="40" height="40" alt="@jaxx2104"></a> <a href="https://github.com/kbyk004"><img src="https://github.com/kbyk004.png" width="40" height="40" alt="@kbyk004"></a> <a href="https://github.com/k4200"><img src="https://github.com/k4200.png" width="40" height="40" alt="@k4200"></a> <a href="https://github.com/fukumayuta"><img src="https://github.com/fukumayuta.png" width="40" height="40" alt="@fukumayuta"></a> <a href="https://github.com/kenchan"><img src="https://github.com/kenchan.png" width="40" height="40" alt="@kenchan"></a> <a href="https://github.com/EijiSugiura"><img src="https://github.com/EijiSugiura.png" width="40" height="40" alt="@EijiSugiura"></a> <a href="https://github.com/ryuuuuma"><img src="https://github.com/ryuuuuma.png" width="40" height="40" alt="@ryuuuuma"></a> <a href="https://github.com/toyamagu-2021"><img src="https://github.com/toyamagu-2021.png" width="40" height="40" alt="@toyamagu-2021"></a> <a href="https://github.com/YasuakiOmokawa"><img src="https://github.com/YasuakiOmokawa.png" width="40" height="40" alt="@YasuakiOmokawa"></a> <a href="https://github.com/Ryosuke-Watanabe9"><img src="https://github.com/Ryosuke-Watanabe9.png" width="40" height="40" alt="@Ryosuke-Watanabe9"></a> <a href="https://github.com/Kitamura777"><img src="https://github.com/Kitamura777.png" width="40" height="40" alt="@Kitamura777"></a> <a href="https://github.com/yuyohi"><img src="https://github.com/yuyohi.png" width="40" height="40" alt="@yuyohi"></a> <a href="https://github.com/sakura20260508"><img src="https://github.com/sakura20260508.png" width="40" height="40" alt="@sakura20260508"></a> <a href="https://github.com/bxg06523-cell"><img src="https://github.com/bxg06523-cell.png" width="40" height="40" alt="@bxg06523-cell"></a> <a href="https://github.com/ryoya1122"><img src="https://github.com/ryoya1122.png" width="40" height="40" alt="@ryoya1122"></a> <a href="https://github.com/Kanahiro"><img src="https://github.com/Kanahiro.png" width="40" height="40" alt="@Kanahiro"></a> <a href="https://github.com/kagemeka"><img src="https://github.com/kagemeka.png" width="40" height="40" alt="@kagemeka"></a>

<!-- CONTRIBUTORS-END -->

開発者向け

git clone https://github.com/freee/freee-mcp.git
cd freee-mcp
bun install

bun run dev           # 開発サヌバヌりォッチモヌド
bun run build         # ビルド
bun run typecheck    # 型チェック
bun run lint          # リント
bun run test:run      # テスト

# API リファレンスの再生成
bun run generate:references

技術スタック

TypeScript / Model Context Protocol SDK / OAuth 2.0 + PKCE / Zod / Bun

アヌキテクチャ詳现

プロゞェクトのアヌキテクチャ、内郚構造、開発ガむドラむンに぀いおは CLAUDE.md を参照しおください。

License / ラむセンス

Apache-2.0

コミュニティ

質問や情報亀換は Discord サヌバヌで行っおいたす。お気軜にご参加ください。

関連リンク

Global Ranking

-
Trust ScoreMCPHub Index

Based on codebase health & activity.

Manual Config

{ "mcpServers": { "freee-mcp": { "command": "npx", "args": ["freee-mcp"] } } }