Ask your AI

Copy this and paste it into ChatGPT, Claude or another assistant to get an answer based on this site.

How do I connect Chatwork to an AI agent? Please use this URL as a reference:
https://agentok.jp/en/services/chatwork.md
Business Apps

How to connect Chatwork to AI agents

TL;DR

The short answer
VerdictOfficial, individuals OK Individuals can connect through an official route (MCP, connector or API) without a business contract or review
Who can use itIndividuals and businesses using Chatwork. On the Free plan (personal use) you can issue an API token with no admin application. On organization plans such as Standard (formerly Business) and Professional (formerly Enterprise), API use requires an application to the organization admin. (The Personal plan is a legacy plan closed to new signups; official docs still carry its old wording.)
Method公式MCP(ローカル/セルフホストHTTP)
PricingNo extra charge for the API or the official MCP server (your Chatwork plan fee is separate). API use needs no application on the Free plan, but requires an organization admin's application on organization plans. On the Free plan, past-message retrieval is limited to the last 40 days / latest 5,000 messages.
RiskThe API token never expires and reaches the whole account; if it leaks, anyone can read and post as that user. With the official MCP server running locally, the config file holding the token is effectively the security boundary. The tool set also includes high-blast-radius operations — leaving or deleting a room, changing members, issuing invitation links — and deleting a room irreversibly destroys its messages, tasks, and files. A misfired automated post lands directly in real business conversations.

Chatwork (operated by kubell) publishes an official MCP server, @chatwork/mcp-server, on npm — first released in March 2025, with the stable 1.0.0 in September 2026. It runs on an API token and exposes 31 tools: reading and posting messages, room management, tasks, files, and more. The underlying Chatwork API is REST, supporting both API-token auth and OAuth 2.0 scopes, and official iPaaS apps exist on Zapier, Yoom, and others.

AuthenticationAPI token (issued under Service integrations > API Token, sent in the x-chatworktoken header — never in the URL; it never expires and grants full account access), or OAuth 2.0 (authorization-code flow with 22 scopes to choose from; access tokens last 30 minutes, refresh tokens 14 days, and offline_access makes the refresh token indefinite).
Checked by the operator2026.12.05
How the operator checkedChecked against official documentation

For AI agents: Markdown ・ JSON

Official MCP and AI guides

Official MCP serverYes

株式会社kubell(Chatwork 運営会社)が npm パッケージ @chatwork/mcp-server として公開する公式 MCP サーバー(2025年3月に初期公開、2026-09-25 に安定版 1.0.0)。Chatwork API v2 を31ツールとして公開する。既定はローカルの stdio 実行。1.0.0 からは Streamable HTTP でのセルフホスト起動(--transport http、エンドポイントは POST /mcp、認証は Authorization: Bearer ヘッダー、既定はループバックのみ)にも対応するが、kubell がホストするマネージドなリモートサーバーはなく、OAuth にも対応していないため、ChatGPT のようなクラウド型クライアントからは直接つなげない。Node.js 20 以降が必要(公式 README の前提・CI 想定は Node.js 22)。npm レジストリのリポジトリは公式 GitHub(chatwork/chatwork-mcp-server)

https://github.com/chatwork/chatwork-mcp-server

Official guide for AI agentsYes

開発者ドキュメント(developer.chatwork.com)が llms.txt と各ページの Markdown 版を公式提供しており、コーディングエージェントに API 仕様を読ませやすい

https://developer.chatwork.com/llms.txt

Tools of the official MCP server

ToolTypeWhat it does
自分の情報・未読数・自分のタスク・コンタクトの取得Read
ルーム・メンバー・メッセージ・ファイル・招待リンクの取得Read
メッセージの送信・編集・削除と既読/未読マークWrite
ルームの作成・更新・退席/削除とメンバー変更Write
タスクの作成と完了状態の変更Write
招待リンクの作成・更新・削除Write
コンタクト承認依頼の承認・拒否Write

Connectors

Official connectors from AI services

Not supported: Claude, ChatGPT, Gemini, Microsoft Copilot

Third-party integration services

  • Zapier

    Chatwork アプリがあり、アクションは Create Room / Create Task / Send Message の3件のみ(トリガーと検索はない)。自分の API トークンで接続し、無料プランでも使える。Zapier MCP 経由でエージェントからも実行できる

  • Make

    Chatwork アプリがあり、22モジュール。Webhook を使った Watch Events(インスタントトリガー)で Chatwork 側の出来事からも起動でき、ルーム作成、メッセージ投稿、タスク作成、コンタクト承認などがある。接続は Chatwork の認可画面(OAuth)で行う。Make の公式 MCP 経由でエージェントからモジュールを実行することもできる

  • IFTTT

    Chatwork のサービスがあり、アクションは Post a message / Post a task の2件のみ(トリガー・クエリはない)。他サービスで起きた出来事を Chatwork に通知する用途が中心で、Chatwork 公式のアプレットも公開されている

  • Pipedream

    Chatwork アプリがあり、OAuth で接続する(スコープは users.all:read と rooms.all:read_write)。ルーム作成やタスク作成のアクションと、タスク完了などを拾うソースがある。Pipedream のリモート MCP 経由でも実行できる

  • Composio

    Chatwork ツールキットがあり、API キー(API トークン)認証でルーム作成や未読メッセージの取得などができる。Composio の MCP としても提供される

  • Yoom

    Chatwork のマイアプリがあり、メッセージやファイルの送信、タスクの追加に加え、ルームへの投稿を起点にしたトリガーも使える。国産 SaaS 同士の連携テンプレートが豊富。接続は API トークン認証で、Yoom のサーバーにトークンを預ける形になる

Not supported: n8n, Power Automate

Unofficial MCP servers

Published by someone other than the provider. The provider does not guarantee how they work or how safe they are.

  • Chatwork MCP(mcp.ai)

    第三者がホストするリモート MCP サーバー。自分の API キー(API トークン)で接続し、30ツールをリモートから使える。公式 MCP はセルフホスト前提で、kubell がホストするマネージドなリモートサーバーはないため、クラウド型クライアントからそのまま使いたい場合の選択肢になるが、全権限の API トークンを第三者に預ける形になる

Security assessment

For each available connection method: who provides it, the permissions it requires, how the terms treat it, and the data path. Items we could not confirm are marked Unverified.

Official MCPOfficial MCP serverThe service provider
Permissions requiredRead and write

API トークンはスコープを持たず、そのアカウントの全機能(参加している全ルームのメッセージ読み書き、タスク、ファイル、コンタクト)にアクセスできる。対象は本人が参加しているルームに限られる

Terms of serviceNo issues

公式 API の MCP 化で、利用範囲内(Chatwork API利用規約の適用を受ける)

Source: relevant section of the terms

Data path手元のマシンで動き、Chatwork API と直接通信する。取得したメッセージ等は接続した LLM プロバイダーのクラウドへ送られ、会話履歴等に残りうる
Third-party integrationZapierOfficial from the integration service
Permissions requiredRead and write

Zapier に登録した API トークンの範囲(トークン自体は読み書き全権限。ただし Zapier 側のアクションはルーム作成・タスク作成・メッセージ送信の書き込み3件のみ)

Terms of serviceConditional

Chatwork 公式ドキュメントに iPaaS 連携の例として記載がある一方、全権限の API トークンを Zapier に預ける形になる。Chatwork API利用規約のトークン管理義務(第9条・第17条第10号)に照らし、自組織のポリシーで確認すること

Source: relevant section of the terms

Data pathZapier のサーバーを経由し、投稿内容は Zapier と Chatwork の両方に渡る。Zapier に API トークン自体も預ける形になる。MCP 経由で使う場合、取得データは接続先の LLM プロバイダーにも渡る
Third-party integrationMakeOfficial from the integration service
Permissions requiredRead and write

Make の接続に認可した Chatwork アカウントの範囲(参加しているルームのメッセージ・タスク・ファイル等)

Terms of serviceNo issues

公式 API(OAuth)の利用範囲内。接続方式によって API トークンの入力を求められる場合は、トークン預託の扱いになる

Source: relevant section of the terms

Data pathMake のサーバーを経由し、入出力データは Make と Chatwork の両方に渡る。MCP 経由で使う場合、取得データは接続先の LLM プロバイダーにも渡る
Third-party integrationIFTTTOfficial from the integration service
Permissions requiredRead and write

IFTTT に接続した Chatwork アカウントの範囲(IFTTT 側の操作はメッセージ投稿とタスク投稿のみ)

Terms of serviceNo issues

IFTTT が用意した公式連携の範囲内

Source: relevant section of the terms

Data pathIFTTT のサーバーを経由し、投稿内容は IFTTT と Chatwork の両方に渡る
Third-party integrationPipedreamOfficial from the integration service
Permissions requiredRead and write

Pipedream が要求する OAuth スコープの範囲(users.all:read、rooms.all:read_write)

Terms of serviceNo issues

公式 API(OAuth)の利用範囲内

Source: relevant section of the terms

Data pathPipedream のサーバーを経由し、入力データは Pipedream と Chatwork の両方に渡る。MCP 経由で使う場合、取得データは接続先の LLM プロバイダーにも渡る
Third-party integrationComposioOfficial from the integration service
Permissions requiredRead and write

Composio に登録した API トークンの範囲(そのアカウントの全機能)

Terms of serviceConditional

公式 API 自体は利用するが、全権限の API トークンを Composio に預ける形になる。Chatwork API利用規約のトークン管理義務(第9条・第17条第10号)に照らし、自組織のポリシーで確認すること

Source: relevant section of the terms

Data pathComposio のサーバーを経由し、入力データは Composio と Chatwork の両方に渡る。Composio に API トークン自体も預ける形になる。MCP 経由で使う場合、取得データは接続先の LLM プロバイダーにも渡る
Third-party integrationYoomOfficial from the integration service
Permissions requiredRead and write

Yoom に登録した API トークンの範囲(そのアカウントの全機能)

Terms of serviceConditional

公式 API 自体は利用するが、全権限の API トークンを Yoom に預ける形になる。Chatwork API利用規約のトークン管理義務(第9条・第17条第10号)に照らし、自組織のポリシーで確認すること

Source: relevant section of the terms

Data pathYoom のサーバーを経由し、投稿内容は Yoom と Chatwork の両方に渡る。Yoom に API トークン自体も預ける形になる
Unofficial MCPChatwork MCP(mcp.ai)Third party (unofficial)
Permissions requiredRead and write

渡した API トークンの範囲(スコープがなく、そのアカウントの全機能)

Terms of serviceConditional

Chatwork API利用規約は、APIトークン等を第三者に知られないよう管理する義務(第9条)と、第三者に利用させる行為の禁止(第17条第10号)を定めている。預託の可否は自組織のポリシーで判断すること

Source: relevant section of the terms

Data pathmcp.ai のサーバーを経由し、Chatwork のデータが mcp.ai と接続先の LLM プロバイダーに渡る

Data you can fetch within the terms of service

Chatwork API と Chatwork サービス全体(Chatwork API利用規約・Chatwork利用規約)

ScrapingProhibited

API の利用には Chatwork API利用規約が適用される。同規約は、APIトークン等を厳重に管理し第三者に知られないようにする義務(第9条)と、APIトークン等を第三者に利用させる行為の禁止(第17条第10号)、リバースエンジニアリング等の解析の禁止を定めている。規約に「スクレイピング」の直接の文言はないが、認証情報の第三者入力や解析、サーバーへの過度な負荷は主たる利用規約でも禁じられており、ブラウザ自動操作による取得は事実上禁止・非想定。自動化は公式 API / 公式 MCP の範囲で行う

Source: relevant section of the terms of service

Fetching with the agent's own browser

There is an official API or MCP server, so we do not recommend having an agent sign in and operate the site in a browser on your behalf.

Usage

How to connect

  1. Issue an API token under Service integrations > API Token (on organization plans, apply for API use with the admin first).
  2. Register the official MCP server @chatwork/mcp-server in your MCP client and set the token in the CHATWORK_API_TOKEN environment variable.
  3. For read-only use cases, consider an OAuth integration scoped down to rooms.messages:read and similar instead.
  4. Design throttling and retries around the rate limits (300 requests per 5 minutes overall; message posting and task creation combined are capped at 10 per 10 seconds per room).
  5. Decide where the token lives and how reissuing works (reissuing invalidates all previous tokens).

Setup examples

Paste these as they are. Replace the API key, domain and similar values with your own.

公式 MCP サーバーを追加する
claude mcp add chatwork -e CHATWORK_API_TOKEN=API_TOKEN -- npx -y @chatwork/mcp-server

公式 README のワンライナー。API_TOKEN は Chatwork の「サービス連携 > APIトークン」で発行したものに置き換える。Node.js 20 以降が必要(公式 README の前提・CI 想定は Node.js 22)

Official page checked: https://github.com/chatwork/chatwork-mcp-server

API でメッセージを投稿する
curl -X POST "https://api.chatwork.com/v2/rooms/ROOM_ID/messages" \
  -H "x-chatworktoken: API_TOKEN" \
  --data-urlencode "body=テスト投稿です" -d "self_unread=1"

API トークン認証の最小例。トークンは URL ではなくヘッダーで送る。self_unread=1 で自分にとっての未読として投稿する

Official page checked: https://developer.chatwork.com/reference/

Limiting the features

スコープで読み取りだけに絞る
読み取りだけなら、最小のスコープで認可する:
- rooms.messages:read(メッセージの読み取り)
- rooms.info:read(ルーム情報の読み取り)
API トークンにはスコープがなく全機能アクセスになるため、読み取り用途では OAuth を選ぶ

スコープは22種。offline_access を付けるとリフレッシュトークンが無期限になるため、常駐用途以外では付けない。offline_access は常駐用途向けの設定で、公式ドキュメントもセキュリティリスクを十分に考えて使うよう注意している

Official page checked: https://developer.chatwork.com/reference/

未読の要約と返信の下書き

Instruction to the agent

参加しているルームの未読メッセージを要約して、返信の下書きを作って

公式 MCP の未読数・メッセージ取得を使う。送信は下書きまでに留め、投稿は人が確認してからが安全

定例の自動投稿

Instruction to the agent

毎朝、その日の予定を指定のルームに投稿する仕組みを作って

API のメッセージ投稿をスケジューラから呼ぶ形。メッセージ投稿とタスク追加は合算で、同一ルームあたり10秒あたり10回の上限があるため、まとめ送りを設計に入れる

Pitfalls and tips

Pitfalls

  • The API token never expires and has full account access. Never hard-code it in files or code; if it may have leaked, reissue it immediately (reissuing invalidates all previous tokens).
  • The official MCP server is not documented on developer.chatwork.com; check the GitHub repository and npm for its spec and setup.
  • The official MCP server is self-hosted. Even over Streamable HTTP it binds to loopback by default and authenticates with a Bearer token (no OAuth), so cloud AI clients such as ChatGPT cannot connect to it directly.
  • On organization plans such as Standard (formerly Business), API use requires an admin application first — discovering this mid-development stalls the project.
  • The API only reaches rooms the connected account belongs to. It can neither post to nor read rooms it has not joined.
  • Message listing returns at most 100 items per call and, by default, only the delta since the previous fetch. Use force=1 to re-fetch the latest 100.
  • On the Free plan, messages older than the last 40 days / beyond the latest 5,000 cannot be retrieved, even via the API.
  • Chatwork webhooks treat anything but a 200 response within 10 seconds as a failure, are never retried, and are automatically disabled after repeated failures.

Tips

  • Start with reads on the official MCP server to get a feel for it with a single token.
  • Use the API token for always-on automated posting, and OAuth scopes for integrations driven by a person's consent — pick the auth method per use case.
  • Zapier's Chatwork app is actions-only (no triggers). To start from a Chatwork event, use webhooks or Yoom.
  • Issue the token from a dedicated integration account with minimal room membership, so a leak has a smaller blast radius.
  • To trigger an agent from Chatwork events (mentions, posts, edits), use webhooks (up to 5 per account, with signature verification). For simple notifications, calling the API from Google Apps Script or Dify is often enough.

Test environment and change history

How it was checkedChecked against official documentation
Clients triedNot yet tried with a real client

kubell 公式の MCP サーバー(npm / GitHub)と Chatwork の開発者ドキュメント、iPaaS 各社のページで確認。実機での接続はしていない(Chatwork アカウントを持っていないため)

Change history

  • 初版

Sources

Official and primary sources

Pages published by the service provider, the integration provider or the MCP author about their own product.

References (third-party write-ups)

Third-party blogs and roundups. We use them only to supplement facts confirmed in official sources.

Related articles

How to connect kintone to AI agents

Official, individuals OK

How to connect ChatGPT (OpenAI) to AI agents

Official, individuals OK

How to connect Discord to AI agents

Official, individuals OK

How to connect Google カレンダー to AI agents

Official, individuals OK