Skip to main content
Glama
Twist MCP Server
by mikemc

Twist MCP 服务器(测试中)

用于与Twist工作区交互的 MCP 服务器。使用 Python 编写,使用Twist REST API 。目前仅用于测试目的。

安装

先决条件

  • Python 3.10+

  • UV 包管理器(安装指南)

  • Twist API 令牌

  • Twist 工作区 ID

获取 Twist API 令牌

  1. 登录您的Twist账户

  2. 访问Twist App 控制台

  3. 创建供个人使用的新应用程序

  4. 复制 OAuth 2 测试令牌;此令牌将授予 MCP 服务器对当前登录用户的完全访问权限。

未来版本将使用适当的 OAuth 身份验证。

使用 Claude Desktop 进行配置

将 Twist MCP 服务器添加到 claude_desktop_config.json 中的 MCP 服务器集合中:

{
  "mcpServers": {
    "twist": {
      "command": "uv",
      "args": [
        "--directory",
        "/absolute/path/to/twist-mcp-server",
        "run",
        "main.py"
      ],
      "env": {
        "TWIST_API_TOKEN": "your_twist_api_token",
        "TWIST_WORKSPACE_ID": "your_twist_workspace_id"
      }
    }
  }
}

Related MCP server: threads-mcp

可用工具

截至目前,以下工具可用:

  • 收件箱

    • twist_inbox_get :获取用户收件箱的内容

    • twist_inbox_archive_all :归档工作区中的所有线程(或给定时间戳之后的所有线程)

    • twist_inbox_archive :按 ID 归档特定主题

    • twist_inbox_unarchive :根据 ID 取消归档特定主题

    • twist_inbox_mark_all_read :将所有收件箱线程标记为已读

    • twist_inbox_get_count :获取收件箱线程数

  • 线程

    • twist_threads_getone :通过 ID 获取线程

    • twist_threads_get :获取频道中的所有线程

    • twist_threads_add :向频道添加新线程

    • twist_threads_update :更新现有线程

    • twist_threads_remove :删除线程

    • twist_threads_star :为线程加星标

    • twist_threads_unstar :取消线程的星标

    • twist_threads_pin :固定线程

    • twist_threads_unpin :取消固定线程

    • twist_threads_move_to_channel :将线程移动到不同的频道

    • twist_threads_get_unread :获取工作区中未读的线程

    • twist_threads_mark_read :将线程标记为已读

    • twist_threads_mark_unread :将线程标记为未读

    • twist_threads_mark_unread_for_others :将线程标记为其他人未读

    • twist_threads_mark_all_read :将工作区或频道中的所有线程标记为已读

    • twist_threads_clear_unread :清除工作区中未读的线程

    • twist_threads_mute :将线程静音几分钟

    • twist_threads_unmute :取消静音线程

执照

本项目遵循 MIT 许可证。详情请参阅许可证文件。

Available Tools

24 tools
twist_inbox_archiveB

Archives a thread.

Args: id: The ID of the thread to archive

Inputs: id (required).

twist_inbox_archive_allC

Archives all threads in a workspace.

Args: older_than_ts: Only archives threads that are the same or older than this timestamp

Inputs: older_than_ts.

twist_inbox_getA

Get the authenticated user's inbox.

Args: limit: Limits the number of threads returned (default is 30, maximum is 500) newer_than_ts: Limits threads to those newer when the specified Unix time older_than_ts: Limits threads to those older when the specified Unix time archive_filter: Filter threads based on their is_archived flag: 'all', 'archived', or 'active' (default) order_by: Order of threads: 'desc' (default) or 'asc', based on last_updated attribute exclude_thread_ids: Thread IDs to exclude from results

Inputs: limit, newer_than_ts, older_than_ts, archive_filter, +2 more.

twist_inbox_get_countB

Gets inbox count in a workspace for the authenticated user.

Inputs: no named parameters.

twist_inbox_mark_all_readB

Marks all inbox threads in the workspace as read.

Inputs: no named parameters.

twist_inbox_unarchiveC

Unarchives a thread.

Args: id: The ID of the thread to unarchive

Inputs: id (required).

twist_threads_addC

Adds a new thread to a channel.

Args: channel_id: The id of the channel title: The title of the new thread content: The content of the new thread actions: List of action buttons to the new thread attachments: List of attachments to the new thread direct_group_mentions: The groups that are directly mentioned direct_mentions: The users that are directly mentioned groups: The groups that will be notified recipients: An array of users that will be attached to the thread or "EVERYONE" send_as_integration: Displays the integration as the thread creator temp_id: The temporary id of the thread

Inputs: channel_id (required), title (required), content (required), actions, +7 more.

twist_threads_clear_unreadB

Clears unread threads in workspace.

Inputs: no named parameters.

twist_threads_getB

Gets all threads in a channel.

Args: channel_id: The id of the channel as_ids: If enabled, only the ids of the threads are returned filter_by: A filter can be one of "attached_to_me" or "everyone". Default is "everyone" limit: Limits the number of threads returned (default is 20, maximum is 500) newer_than_ts: Limits threads to those newer when the specified Unix time older_than_ts: Limits threads to those older when the specified Unix time before_id: Limits threads to those with a lower than the specified id after_id: Limits threads to those with a higher than the specified id workspace_id: The id of the workspace is_pinned: If enabled, only pinned threads are returned is_starred: If enabled, only starred threads are returned order_by: The order of the threads returned. Either "desc" (default) or "asc" exclude_thread_ids: The thread ids that should be excluded from the results

Inputs: channel_id (required), as_ids, filter_by, limit, +9 more.

twist_threads_getoneB

Gets a thread object by id.

Args: id: The id of the thread

Inputs: id (required).

twist_threads_get_unreadB

Gets unread threads in a workspace for the authenticated user.

Inputs: no named parameters.

twist_threads_mark_all_readC

Marks all threads in the workspace or channel as read.

Args: workspace_id: The id of the workspace channel_id: The id of the channel

Inputs: workspace_id, channel_id.

twist_threads_mark_readB

Marks the thread as being read.

Args: id: The id of the thread obj_index: The index of the last known read message

Inputs: id (required), obj_index (required).

twist_threads_mark_unreadC

Marks the thread as being unread.

Args: id: The id of the thread obj_index: The index of the last unread message. A value of -1 marks the whole thread as unread

Inputs: id (required), obj_index (required).

twist_threads_mark_unread_for_othersB

Marks the thread as being unread for others.

Args: id: The id of the thread obj_index: The index of the last unread message. A value of -1 marks the whole thread as unread

Inputs: id (required), obj_index (required).

twist_threads_move_to_channelC

Moves the thread to a different channel.

Args: id: The id of the thread to_channel: The target channel's id

Inputs: id (required), to_channel (required).

twist_threads_muteC

Mutes a thread for a number of minutes.

Args: id: The id of the thread minutes: The number of minutes to mute the thread

Inputs: id (required), minutes (required).

twist_threads_pinC

Pins a thread.

Args: id: The id of the thread

Inputs: id (required).

twist_threads_removeC

Removes a thread.

Args: id: The id of the thread

Inputs: id (required).

twist_threads_starC

Stars a thread.

Args: id: The id of the thread

Inputs: id (required).

twist_threads_unmuteC

Unmutes a thread.

Args: id: The id of the thread

Inputs: id (required).

twist_threads_unpinC

Unpins a thread.

Args: id: The id of the thread

Inputs: id (required).

twist_threads_unstarB

Unstars a thread.

Args: id: The id of the thread

Inputs: id (required).

twist_threads_updateC

Updates an existing thread.

Args: id: The id of the thread actions: List of action buttons to the thread attachments: List of attachments to the thread content: The content of the thread direct_group_mentions: The groups that are directly mentioned direct_mentions: The users that are directly mentioned title: The title of the thread

Inputs: id (required), actions, attachments, content, +3 more.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    B3.4/5.0

    Scored across 24 tools

    Disambiguation5/5

    Every tool has a clearly distinct purpose with no ambiguity. Tools are organized into inbox and threads categories, each targeting specific actions like archive, get, mark read/unread, pin, star, etc., with no overlap in functionality.

    Naming Consistency5/5

    All tool names follow a consistent snake_case pattern with a clear prefix (twist_inbox_ or twist_threads_) followed by a verb_noun structure. This makes the tool set highly predictable and easy to navigate.

    Tool Count3/5

    With 24 tools, the count feels heavy for a messaging/thread management server. While the tools cover many operations, it borders on being excessive, potentially overwhelming for agents to manage efficiently.

    Completeness5/5

    The tool set provides comprehensive coverage for inbox and thread management, including CRUD operations (add, get, update, remove), lifecycle actions (archive, pin, star, mute), and state management (read/unread marks). No obvious gaps exist for the domain.

    Maintenance

    ActivityInactive
    ResponsivenessOutdated data

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      Not graded
      quality
      D
      maintenance
      An MCP server that enables management of Gmail messages, threads, labels, and drafts through OAuth2 authentication via the Dedalus framework. It allows users to perform operations like searching messages, sending emails, and organizing conversations using the Gmail API.
      1
      MIT
    • F
      license
      A
      quality
      D
      maintenance
      MCP server for the Threads API, enabling profile management, content reading, publishing, replies, and discovery through 26 tools.
      26
      -
    • A
      license
      Not graded
      quality
      B
      maintenance
      MCP server for a local-first messaging workspace that integrates Google Messages, WhatsApp, and Signal. It enables reading, sending, searching messages, and managing conversations through MCP tools.
      74
      -
    • A
      license
      A
      quality
      C
      maintenance
      An MCP server for Meta's Threads that acts as your own account, enabling reading profiles, posts, replies, timeline, search, and performing actions like posting, replying, liking, following, and scheduling, using a real logged-in browser session.
      24
      23 npm
      3
      MIT