# Chatwork — how to use (mcp.ai)

Connect your Chatwork account and use 30 tools for team chat straight from your AI agent. Connect with your own API key. Chatwork is a team communication platform featuring group chats, file sharing, and task management, aiming to enhance collaboration and productivity for businesses.

## Option A — via MCP (recommended)
Remote MCP endpoint (HTTP, streamable): `https://api.mcp.ai/p_chatwork?ms=1787291460000`
Add it as a custom/remote MCP connector in your client (Claude, Cursor, VS Code…), then authenticate when prompted. Once connected, ask the agent to use the server's tools (e.g. `chatwork_create_room`).

## Option B — via direct REST API
Base URL: `https://api.mcp.ai/api/chatwork`
Auth: `Authorization: Bearer sk_live_…` — create a workspace API key at https://mcp.ai/settings/api-keys
Discover endpoints: `GET https://api.mcp.ai/api/chatwork/_endpoints`

### Endpoints
- `POST https://api.mcp.ai/api/chatwork/create/room` — Tool to create a new group chat room in Chatwork. Use when you need to set up a new collaborative space for team communication. This action allows you to specify room administrators, members with diff
  - body: { link?: integer, name: string, link_code?: string, description?: string, icon_preset?: string, members_admin_ids: string, members_member_ids?: string, link_need_acceptance?: integer, members_readonly_ids?: string }
- `POST https://api.mcp.ai/api/chatwork/create/room/link` — Tool to create an invitation link for a Chatwork room. Returns a URL that can be shared for others to join the room. Use when you need to generate a shareable link for room access. Returns 400 error i
  - body: { code: string, room_id: integer, description?: string, need_acceptance?: integer }
- `POST https://api.mcp.ai/api/chatwork/create/task` — Tool to create a new task in a Chatwork room. Use when you need to assign tasks to users in a specific chat room. Requires the task description, assignee account IDs, and optionally a deadline timesta
  - body: { body: string, limit?: integer, to_ids: string, room_id: integer, limit_type?: string }
- `POST https://api.mcp.ai/api/chatwork/delete/message` — This tool allows you to delete a specific message from a Chatwork room by calling the DELETE endpoint at https://api.chatwork.com/v2/rooms/{room_id}/messages/{message_id}. It requires authentication u
  - body: { room_id: string, message_id: string }
- `POST https://api.mcp.ai/api/chatwork/delete/room` — Tool to leave or delete a Chatwork room. When leaving, your tasks and files in the room are deleted. When deleting, all messages, tasks, and files in the room are permanently deleted. Use with caution
  - body: { room_id: string, action_type: string }
- `POST https://api.mcp.ai/api/chatwork/delete/room/link` — Delete the invitation link for a Chatwork room. Use when you need to disable or remove the invite link for a chat room. Returns a 400 error if the invitation link is already disabled.
  - body: { room_id: integer }
- `POST https://api.mcp.ai/api/chatwork/get/chatwork/contacts` — This tool retrieves a list of all contacts from Chatwork. It is a fundamental tool that fetches all contact information such as account_id, room_id, name, chatwork_id, organization details, department
- `POST https://api.mcp.ai/api/chatwork/get/file2` — Tool to get information about a specific file in a chat room. Use when you need to retrieve file metadata including filename, size, upload time, and optionally a download URL.
  - body: { file_id: integer, room_id: integer, create_download_url?: integer }
- `POST https://api.mcp.ai/api/chatwork/get/incoming/requests` — Tool to retrieve pending contact approval requests received by the authenticated user. Use when you need to check incoming connection requests from other users (up to 100 items).
- `POST https://api.mcp.ai/api/chatwork/get/me` — Tool to retrieve the authenticated user's profile information including account details, organization, contact information, and avatar URL. Use when you need to get the current user's complete profile
- `POST https://api.mcp.ai/api/chatwork/get/message` — Tool to retrieve information about a specific message in a Chatwork room. Use when you need to get details about a particular message, including its content, sender, and timestamps.
  - body: { room_id: string, message_id: string }
- `POST https://api.mcp.ai/api/chatwork/get/my/status` — This tool retrieves the current status of the authenticated user, including unread message counts and task status. It provides a quick overview of unread messages, mentions, and tasks, making it valua
- `POST https://api.mcp.ai/api/chatwork/get/my/tasks` — Tool to retrieve the authenticated user's task list from Chatwork (up to 100 items). Use when you need to fetch tasks assigned to the user, with optional filtering by assigner or completion status.
  - body: { status?: string, assigned_by_account_id?: integer }
- `POST https://api.mcp.ai/api/chatwork/get/room` — Retrieves detailed information about a specific Chatwork room using the API endpoint GET /rooms/{room_id}. Returns comprehensive room details including name, icon, type, role, message/file/task counts
  - body: { room_id: integer }
- `POST https://api.mcp.ai/api/chatwork/get/room/files` — Tool to get list of files in a chat room (up to 100 files). Use when you need to retrieve file information from a Chatwork room, optionally filtered by uploader.
  - body: { room_id: integer, account_id?: integer }
- `POST https://api.mcp.ai/api/chatwork/get/room/link` — Retrieves the invitation link for a specified Chatwork room using the API endpoint GET /rooms/{room_id}/link. Returns link information including the URL, public/private status, whether admin acceptanc
  - body: { room_id: integer }
- `POST https://api.mcp.ai/api/chatwork/get/room/members` — Retrieves a complete list of all members in a specified Chatwork room using the API endpoint GET /rooms/{room_id}/members. Returns detailed member information including account IDs, roles (admin/membe
  - body: { room_id: integer }
- `POST https://api.mcp.ai/api/chatwork/get/room/messages2` — Tool to retrieve messages from a Chatwork room (up to 100 messages). Use when you need to fetch chat history from a specific room. By default (force=0), returns only messages since the last retrieval.
  - body: { force?: integer, room_id: integer }
- `POST https://api.mcp.ai/api/chatwork/get/room/tasks` — Retrieves a list of tasks from a Chatwork room. Returns up to 100 tasks. Use optional filters to narrow results by assignee, assigner, or completion status. Returns an empty list if there are no match
  - body: { status?: string, room_id: integer, account_id?: integer, assigned_by_account_id?: integer }
- `POST https://api.mcp.ai/api/chatwork/get/rooms2` — Tool to retrieve a list of all chat rooms the authenticated user belongs to. Use when you need to get information about all accessible rooms including group chats, direct messages, and personal chats.
- `POST https://api.mcp.ai/api/chatwork/get/task` — Retrieves detailed information about a specific task in a Chatwork room using the API endpoint GET /rooms/{room_id}/tasks/{task_id}. Returns task details including assignee, creator, body, deadline, a
  - body: { room_id: integer, task_id: integer }
- `POST https://api.mcp.ai/api/chatwork/mark/messages/read` — Tool to mark messages as read in a Chatwork room. Use when you need to update the read status of messages up to a specific message ID. All messages up to and including the specified message will be ma
  - body: { room_id: integer, message_id: string }
- `POST https://api.mcp.ai/api/chatwork/mark/messages/unread` — Tool to mark messages as unread in a Chatwork room. Use when you need to mark a specific message and all subsequent messages as unread. This is useful for re-flagging important messages that need atte
  - body: { room_id: integer, message_id: string }
- `POST https://api.mcp.ai/api/chatwork/post/message` — Tool to post a new message to a Chatwork room. Use when you need to send a message to a specific chat room. Supports marking the message as unread for the sender via the self_unread parameter.
  - body: { body: string, room_id: string, self_unread?: integer }
- `POST https://api.mcp.ai/api/chatwork/update/message` — Tool to update an existing message in a Chatwork room. Use when you need to modify the content of a previously sent message. Requires appropriate permissions to edit messages in the room.
  - body: { body: string, room_id: string, message_id: string }
- `POST https://api.mcp.ai/api/chatwork/update/room` — Tool to update chat room information (name, icon, description). Use when you need to modify existing chat room settings. At least one field (name, icon_preset, or description) must be provided.
  - body: { name?: string, room_id: integer, description?: string, icon_preset?: string }
- `POST https://api.mcp.ai/api/chatwork/update/room/link` — Tool to update the invitation link settings for a Chatwork room. Use when you need to modify the link code, description, or acceptance settings for a room's invitation link. Returns 400 if the invitat
  - body: { code?: string, room_id: string, description?: string, need_acceptance?: integer }
- `POST https://api.mcp.ai/api/chatwork/update/room/members` — Updates the complete member list of a Chatwork room with bulk assignment of member roles (admin, member, readonly). This is a bulk update operation that replaces the entire member list - any existing 
  - body: { room_id: integer, members_admin_ids: string, members_member_ids?: string, members_readonly_ids?: string }
- `POST https://api.mcp.ai/api/chatwork/update/task/status` — Tool to update the completion status of a task in a Chatwork room. Use when you need to mark a task as done or reopen a completed task. Requires appropriate permissions to modify tasks in the specifie
  - body: { status: string, room_id: integer, task_id: integer }
- `POST https://api.mcp.ai/api/chatwork/upload/file` — This tool allows users to upload files to a specific Chatwork room. It enables file sharing functionality within the Chatwork platform by providing an endpoint to upload files (along with an optional 
  - body: { file: object, message?: string, room_id: string }

## Example prompts
- "What can I do in Chatwork?"
- "Show me a summary of my Chatwork account"

## More
- Page: https://mcp.ai/chatwork
- Agent spec (llms.txt): https://mcp.ai/chatwork/llms.txt
- Postman collection: https://mcp.ai/chatwork/postman.json
