This MCP server integrates MCP Clients with Twist's team messaging and collaboration platform, allowing you to manage channels, threads, and messages through a unified interface. You'll need a Twist bearer token to get started, as this server connects directly to their REST API.
nvm use
if you have nvm installed)Make sure you have a bearer token from Twist and your workspace ID ready, then follow these steps:
Download and install the Claude Desktop application
Locate your Claude configuration file:
~/Library/Application Support/Claude/claude_desktop_config.json
%APPDATA%\Claude\claude_desktop_config.json
Modify your claude_desktop_config.json
file to add the following:
{
"mcpServers": {
"twist": {
"command": "npx",
"args": ["-y", "twist-mcp-server"],
"env": {
"TWIST_BEARER_TOKEN": "Bearer your-token-here",
"TWIST_WORKSPACE_ID": "your-workspace-id"
}
}
}
}
Variable | Description | Required | Example |
---|---|---|---|
TWIST_BEARER_TOKEN |
Your Twist bearer token | Yes | Bearer tk_abc123... |
TWIST_WORKSPACE_ID |
Your Twist workspace ID | Yes | 12345 |
Tool Name | Description |
---|---|
get_channels |
Get a list of all channels in the workspace |
get_channel |
Get detailed information about a specific channel by ID |
get_threads |
Get a list of threads in a channel with optional filtering |
get_thread |
Get detailed information about a specific thread including messages |
create_thread |
Create a new thread in a channel with a title and initial content |
add_message_to_thread |
Add a new message to an existing thread |
get_channels
first to discover available channels in your workspaceUser: "Show me all channels in my Twist workspace"
Assistant: I'll get the list of channels in your workspace.
[Uses get_channels tool]
I found 5 channels in your workspace:
1. #general (ID: ch_123) - General discussions
2. #engineering (ID: ch_456) - Engineering team channel
3. #product (ID: ch_789) - Product discussions
...
User: "Create a thread in the engineering channel about the new API design"
Assistant: I'll create a new thread in the #engineering channel.
[Uses create_thread tool with channel_id: ch_456]
I've created a new thread titled "API Design Discussion - v2.0" in the #engineering channel. The thread ID is th_999.
User: "Add a message to thread th_999 with the latest API documentation link"
Assistant: I'll add that message to the thread.
[Uses add_message_to_thread tool]
I've added your message with the API documentation link to the thread.
To add this MCP server to Claude Code, run this command in your terminal:
claude mcp add-json "twist" '{"command":"npx","args":["-y","twist-mcp-server"],"env":{"TWIST_BEARER_TOKEN":"Bearer your-token-here","TWIST_WORKSPACE_ID":"your-workspace-id"}}'
See the official Claude Code MCP documentation for more details.
There are two ways to add an MCP server to Cursor. The most common way is to add the server globally in the ~/.cursor/mcp.json
file so that it is available in all of your projects.
If you only need the server in a single project, you can add it to the project instead by creating or adding it to the .cursor/mcp.json
file.
To add a global MCP server go to Cursor Settings > Tools & Integrations and click "New MCP Server".
When you click that button the ~/.cursor/mcp.json
file will be opened and you can add your server like this:
{
"mcpServers": {
"twist": {
"command": "npx",
"args": [
"-y",
"twist-mcp-server"
],
"env": {
"TWIST_BEARER_TOKEN": "Bearer your-token-here",
"TWIST_WORKSPACE_ID": "your-workspace-id"
}
}
}
}
To add an MCP server to a project you can create a new .cursor/mcp.json
file or add it to the existing one. This will look exactly the same as the global MCP server example above.
Once the server is installed, you might need to head back to Settings > MCP and click the refresh button.
The Cursor agent will then be able to see the available tools the added MCP server has available and will call them when it needs to.
You can also explicitly ask the agent to use the tool by mentioning the tool name and describing what the function does.
To add this MCP server to Claude Desktop:
1. Find your configuration file:
~/Library/Application Support/Claude/claude_desktop_config.json
%APPDATA%\Claude\claude_desktop_config.json
~/.config/Claude/claude_desktop_config.json
2. Add this to your configuration file:
{
"mcpServers": {
"twist": {
"command": "npx",
"args": [
"-y",
"twist-mcp-server"
],
"env": {
"TWIST_BEARER_TOKEN": "Bearer your-token-here",
"TWIST_WORKSPACE_ID": "your-workspace-id"
}
}
}
}
3. Restart Claude Desktop for the changes to take effect