MCP Chatwork Server
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@MCP Chatwork Server send a message to room 12345 saying the meeting starts in 10 minutes"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
MCP Chatwork Server
This is a Model Context Protocol (MCP) server for Chatwork. It allows AI agents to read context from Chatwork rooms and messages.
Features
List Rooms: Retrieve a list of rooms the user is participating in.
List Messages: Fetch messages from a specific room.
Send Message: Send a message to a specific room.
Get Room Members: Get the list of members in a room.
Create Task: Create a task in a room.
Get My Tasks: Get the list of tasks assigned to the current bot account.
Delete Message: Delete a message from a room.
Complete Task: Mark a task as done.
Leave Room: Leave a room.
Prerequisites
Node.js (v18 or higher)
A Chatwork API Token
Installation
Clone the repository:
git clone git@github.com:vfa-khuongdv/mcp-chatwork.git cd mcp-chatworkInstall dependencies:
npm installBuild the server:
npm run build
Configuration
The server requires the CHATWORK_API_TOKEN environment variable to be set.
Usage
With Claude Desktop (or other MCP Clients)
Add the following configuration to your MCP client settings (e.g., claude_desktop_config.json):
{
"mcpServers": {
"chatwork": {
"command": "node",
"args": ["/path/to/mcp-chatwork/dist/index.js"],
"env": {
"CHATWORK_API_TOKEN": "your_chatwork_api_token"
}
}
}
}or
{
"mcpServers": {
"chatwork": {
"command": "npx",
"args": ["-y", "@duongkhuong/mcp-chatwork"],
"env": {
"CHATWORK_API_TOKEN": "your_chatwork_api_token"
}
}
}
}Manual Testing
You can run the server directly via stdio (though it is designed to communicate with an MCP client):
export CHATWORK_API_TOKEN="your_token"
npm startTools
list_rooms
Returns a list of rooms with details like room ID, name, unread count, etc.
list_messages
Returns messages for a given room.
Arguments:
room_id(number): The ID of the room.force(boolean): Iftrue, fetches the latest 100 messages regardless of read status.
send_message
Allows the agent to send messages to a room.
Arguments:
room_id(number): The ID of the room.body(string): The message content.
get_room_members
Get the list of members in a room.
Arguments:
room_id(number): The ID of the room.
create_task
Assign a task to a user in a Chatwork room.
Arguments:
room_id(number): The ID of the room.body(string): The task description.to_ids(array of numbers): List of user IDs to assign the task to.limit(string, optional): Due date in unix time or "YYYY-MM-DD" format.
get_my_tasks
List tasks assigned to the current bot account.
Arguments:
assigned_by_account_id(number, optional): Filter by user ID who assigned the task.status(string, optional): Task status ("open", "done"). Defaults to "open".
delete_message
Delete a message from a room.
Arguments:
room_id(number): The ID of the room.message_id(string): The ID of the message to delete.
complete_task
Mark a task as done.
Arguments:
room_id(number): The ID of the room.task_id(string): The ID of the task.
leave_room
Leave a room.
Arguments:
room_id(number): The ID of the room.
License
MIT
Available Tools
9 toolscomplete_taskC
Mark a task as done.
Inputs: room_id (required), task_id (required).
create_taskB
Assign a task to a user in a Chatwork room.
Inputs: room_id (required), body (required), to_ids (required), limit.
delete_messageB
Delete a message from a room.
Inputs: room_id (required), message_id (required).
get_my_tasksB
List tasks assigned to the current bot account.
Inputs: assigned_by_account_id, status.
get_room_membersB
Get the list of members in a room.
Inputs: room_id (required).
leave_roomD
Leave a room.
Inputs: room_id (required).
list_messagesC
Retrieves the list of messages for a specified room.
Inputs: room_id (required), force.
list_roomsB
Retrieves a list of Chatwork rooms the user belongs to.
Inputs: no named parameters.
send_messageC
Allows the agent to send messages to a room.
Inputs: room_id (required), body (required).
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 9 tools
Each tool has a clearly distinct purpose: task creation/completion, message deletion, room membership, etc. No two tools could be confused for the same operation.
All tools follow a consistent verb_noun pattern in snake_case (e.g., complete_task, list_rooms). No mixing of conventions.
9 tools cover the core functionalities of a chat server (rooms, messages, tasks) without being excessive or sparse. The number is well-scoped.
The toolset covers essential CRUD operations for messages and tasks, plus room management. A minor gap is the lack of a tool to get details for a single room beyond members, but core workflows are complete.
Maintenance
Related MCP Connectors
Read and write your own Microsoft To Do, Google Tasks or Todoist tasks from any AI agent.
Messaging tools for AI agents: send messages, manage chats, groups and channels.
Manage Redbooth tasks, task lists, comments, tags and files from Claude and other AI assistants.
Post, read, hand off tasks, and ask decisions in a shared AI room.