Set up Chatwork in Metorial for Claude, ChatGPT and Cursor
Share Chatwork with your team in Claude, ChatGPT and Cursor through Metorial: OAuth or API token sign-in, 20 tools (9 read-only).
To give your team Chatwork in Claude, ChatGPT, Cursor and other AI clients, an admin shares the Chatwork integration in a Metorial portal, and each person signs in to Chatwork with their own account. Agents can send, read, edit, and delete messages in chat rooms. The integration has 20 tools, 9 read-only, 9 write and 2 destructive, plus 1 trigger.
What you'll learn
- How an admin shares Chatwork in a portal and how each person connects
- The 22 OAuth scopes Chatwork can request, and what each one allows
- How to keep the 9 read-only tools and reject the other 11
Before you start
- A portal with at least one access group
- An account with Chatwork for each person who connects
- For the CLI steps: the Metorial CLI, signed in to your portal
Sign-in methods
| Method | Type | What a person provides |
|---|---|---|
| OAuth (default) | OAuth | Signs in to Chatwork |
| API Token | API token | token |
The portal and metorial setup use OAuth unless someone picks another method.
OAuth
People sign in to Chatwork and approve the scopes you allow. The integration can request:
| Scope | Name | What it allows |
|---|---|---|
users.profile.me:read | Read User Profile | Read your own profile information |
users.status.me:read | Read User Status | Read your unread/mention/task counts |
users.tasks.me:read | Read User Tasks | Read your assigned task list |
users.all:read | All User Data (Read) | Read all user data including profile, status, and tasks |
rooms.all:read_write | Rooms (Read & Write) | Full read and write access to chat rooms |
rooms.all:read | Rooms (Read) | Read room info, members, messages, tasks, and files |
rooms.all:write | Rooms (Write) | Write room info, members, messages, tasks, and files |
rooms:write | Create/Delete Rooms | Create and delete chat rooms |
rooms.info:read | Room Info (Read) | List and get room details |
rooms.info:write | Room Info (Write) | Update room information |
rooms.members:read | Room Members (Read) | Get room member lists |
rooms.members:write | Room Members (Write) | Add, remove, or change room member roles |
rooms.messages:read | Messages (Read) | Read messages in chat rooms |
rooms.messages:write | Messages (Write) | Post, edit, and delete messages; mark as read/unread |
rooms.tasks:read | Tasks (Read) | Read tasks in chat rooms |
rooms.tasks:write | Tasks (Write) | Create tasks in chat rooms |
rooms.files:read | Files (Read) | Read file information in chat rooms |
rooms.files:write | Files (Write) | Upload files to chat rooms |
contacts.all:read_write | Contacts (Read & Write) | Read and manage contacts and contact requests |
contacts.all:read | Contacts (Read) | Read contacts and incoming contact requests |
contacts.all:write | Contacts (Write) | Approve or reject incoming contact requests |
offline_access | Offline Access | Enables indefinite refresh token lifetime |
API Token
To connect, a person enters:
token: Chatwork API token from account settings
Use your own Chatwork OAuth app
With your own OAuth app, people see your company's name on the Chatwork consent screen, and the client ID and secret belong to you.
Start the credentials in Metorial
In the dashboard, select Settings, then Organization Settings. Under Integrations and MCP, select Provider Auth, then Create Auth Credentials. Choose Chatwork and copy the Redirect URI.
Register the app with Chatwork
Create an OAuth app or client in Chatwork and add the redirect URI from Metorial as its redirect or callback URL.
Finish in Metorial
Copy the app's client ID and client secret. Back in Metorial, enter a Name, the Client ID and the Client Secret, review Scopes, and select Create. Then pick these credentials for the Chatwork integration.
Admin: share Chatwork in a portal
In the dashboard
Open Shared Resources
Open Workforce, choose the portal, and select Shared Resources under Access.
Share a new integration
Select Share a Resource, then New Integration, and choose Chatwork. Under Auth Method, keep OAuth or pick another. For how members connect, choose Each person connects, so everyone signs in to Chatwork as themselves.
Limit the tools
Under Tool Filters, set the write and destructive groups to Reject if agents should only read from Chatwork.
Choose who gets it
Add the access groups that should see Chatwork. When a person asks for access from the portal, the request appears under Access Requests.
With the CLI
The CLI cannot create the per-user Chatwork integration. Once it exists, check which groups have it:
Employee: connect Chatwork
In the portal
Open Chatwork in the catalog
Sign in to your portal and open Chatwork. The status reads Available.
Authenticate
Under Quick setup, select Authenticate. A Chatwork sign-in tab opens. Sign in and approve the permissions listed.
Confirm
The status changes to Configured. If it later reads Needs reconnect, select Reconnect and sign in again.
With the CLI
catalog search prints the catalog item ID. metorial setup uses OAuth. To connect with API Token instead, find its ID with metorial catalog get <catalog-item-id> and add --auth-method <auth-method-id>.
Add it to your AI client
metorial install adds your Chatwork connection to a local MCP client such as Claude Code, Cursor or Codex. metorial list prints the integration ID and metorial client list the client identifiers.
For a client that takes a server URL, such as ChatGPT, metorial install custom <integration-id> creates an installation token and shows the endpoint details.
Make it read-only
Open the integration's Tool Filters and set the write and destructive groups to Reject. Agents keep the 9 read-only tools, such as get_room and get_task, and lose the 9 write tools, such as create_room or create_task, and the 2 destructive tools, such as delete_message or leave_or_delete_room.
Employees see the result on the integration's page in the portal under Tool access. For the full walkthrough, see Tool permissions.
Check it worked
metorial tools lists the 20 tools, minus any you rejected. get_profile takes no input.
To see every input a tool takes, run metorial schema <integration-id> <tool-key>.
Tools
Read-only tools (9)
get_tasks: Retrieves tasks either from a specific room or the authenticated user's personal task list across all rooms.get_messages: Retrieves messages from a chat room. NeedsroomId.get_message: Retrieves a message by its ID, including the sender, full body, and timestamps.get_room: Retrieves detailed information about a specific chat room including its name, description, type, member counts, and activity statistics. NeedsroomId.get_profile: Retrieves the authenticated user's profile information and account status.get_task: Retrieves a task by its ID, including its assignee, assigner, deadline, and originating message.list_rooms: Lists all chat rooms the authenticated user participates in.get_files: Lists files in a chat room or prepares a specific file for download. NeedsroomId.get_contacts: Retrieves the authenticated user's contact list.
Write tools (9)
edit_message: Edits an existing message in a chat room. NeedsroomId,messageIdandbody.update_room: Updates a chat room's name, description, or icon. NeedsroomId.manage_room_members: Updates the membership and roles of a chat room. NeedsroomIdandmembersAdminIds.create_task: Creates a task in a chat room and assigns it to one or more members. NeedsroomId,bodyandassigneeIds.update_task_status: Updates the completion status of a task in a chat room. NeedsroomId,taskIdandstatus.mark_messages: Marks messages as read or unread in a chat room. NeedsroomId,messageIdandaction.send_message: Sends a message to a chat room. NeedsroomIdandbody.create_room: Creates a new group chat room. NeedsnameandmembersAdminIds.handle_contact_request: Approves or declines an incoming contact request. NeedsrequestIdandaction.
Destructive tools (2)
delete_message: Deletes a message from a chat room. NeedsroomIdandmessageId.leave_or_delete_room: Leaves or permanently deletes a chat room. **Leaving** removes your tasks and files from the room. **Deleting** permanently removes all messages, tasks, and files for all members (irreversible). NeedsroomIdandaction.
Triggers
Chatwork has 1 trigger, which fire on events in Chatwork:
message_event: Triggers when a message is created, updated, or the user is mentioned in a chat room.
Next steps
- Claude Code, Cursor, Codex and ChatGPT: connect each client to your portal and use Chatwork there
- Create custom OAuth credentials: the Provider Auth screens in more detail
- Tool permissions: tool filters and what employees see
- Chatwork on metorial.com: the integration overview