home / mcp / mcp chatwork server
Provides MCP access to Chatwork for reading rooms/messages and performing actions like sending messages and managing tasks.
Configuration
View docs{
"mcpServers": {
"vfa-khuongdv-mcp-chatwork": {
"command": "node",
"args": [
"/path/to/mcp-chatwork/dist/index.js"
],
"env": {
"CHATWORK_API_TOKEN": "your_chatwork_api_token"
}
}
}
}The MCP Chatwork Server lets you connect Chatwork with your MCP clients, letting AI agents read chats, fetch messages, send replies, manage tasks, and perform common room actions directly from Chatwork.
You run a local or remote MCP client that supports MCP servers, then point it at the Chatwork MCP server to access rooms, messages, and actions. With this server you can list rooms you participate in, read messages, send messages, get room members, create and manage tasks, delete messages, and leave rooms. Use the available tools to perform these actions from your AI workflows.
Prerequisites you must have before installing: - Node.js v18 or higher - A Chatwork API Token
# 1) Clone the server repository
git clone [email protected]:vfa-khuongdv/mcp-chatwork.git
cd mcp-chatwork
# 2) Install dependencies
npm install
# 3) Build the server
npm run buildConfigure your environment with your Chatwork API token and start testing or running in your MCP client as described below.
export CHATWORK_API_TOKEN="your_token"
npm startIf you prefer to connect via a client-specific configuration, you can reference one of the following runtime configurations.
{
"mcpServers": {
"chatwork": {
"command": "node",
"args": ["/path/to/mcp-chatwork/dist/index.js"],
"env": {
"CHATWORK_API_TOKEN": "your_chatwork_api_token"
}
}
}
}{
"mcpServers": {
"chatwork": {
"command": "npx",
"args": ["-y", "@duongkhuong/mcp-chatwork"],
"env": {
"CHATWORK_API_TOKEN": "your_chatwork_api_token"
}
}
}
}The server requires you to set the Chatwork API token for authentication.
Environment variable to set: - CHATWORK_API_TOKEN: Your Chatwork API token.
Keep your API token secret and avoid embedding it in public configurations. Restrict access to the MCP client and server endpoints as appropriate for your environment.
Returns a list of Chatwork rooms the user is participating in, including details such as room ID and name.
Fetches messages from a specified room. Supports an option to force retrieving the latest messages.
Sends a message to a specified room on behalf of the agent.
Retrieves the list of members for a given room.
Creates a task within a Chatwork room and assigns it to one or more users with an optional due date.
Lists tasks assigned to the current bot account, with optional filtering by who assigned and by status.
Deletes a specific message from a room using the message ID.
Marks a task in a room as completed.
Leaves the agent from a specified room.