X MCP 与 API 接入

团队应用鉴权:oauth

团队 X 账号管理:发推、点赞、转发、搜索推文、时间线、用户与粉丝、列表、书签与私信。

本地 X MCP 配置

每台设备存放明文密钥

  • 原始 X Token 被复制到本地配置文件
  • 每位成员在每台电脑都需要重复安装配置
  • 每次对话都要注入数十个工具 Schema 占满上下文
通过 Duang 金库接入 X

一次连接,随时一键吊销

  • 每团队独立信封加密保存凭证
  • 本地磁盘与大模型提示词中零明文密钥
  • 全团队共享同一个远程 MCP 端点
发给 Agent 对话直接发给 Claude Code、OpenClaw、OpenCode、Grok Bot、Antigravity、Hermes 或 Pi

set up https://duang.ai/SKILL.md

全部操作(212)

操作价格
GET api.x.com/2/account

Get Developer Account

自备 Key
GET api.x.com/2/account_activity/subscriptions/count

Get Subscription Count

自备 Key
DELETE api.x.com/2/activity/subscriptions

Delete X Activity Subscriptions by IDs

自备 Key
GET api.x.com/2/activity/subscriptions

Get X Activity Subscriptions

自备 Key
POST api.x.com/2/activity/subscriptions

Create X Activity Subscription

自备 Key
DELETE api.x.com/2/activity/subscriptions/{subscription_id}

Delete X Activity Subscription

自备 Key
PUT api.x.com/2/activity/subscriptions/{subscription_id}

Update X Activity Subscription

自备 Key
POST api.x.com/2/articles/{article_id}/publish

Publish Article

自备 Key
GET api.x.com/2/bots

Get Bots

自备 Key
DELETE api.x.com/2/bots/{id}

Delete Bot

自备 Key
PUT api.x.com/2/bots/{id}

Update Bot

自备 Key
DELETE api.x.com/2/bots/{id}/token

Revoke Bot Token

自备 Key
GET api.x.com/2/broadcasts

List Broadcasts

自备 Key
POST api.x.com/2/broadcasts

Go Live on a Source

自备 Key
GET api.x.com/2/broadcasts/categories

List Live Categories

自备 Key
GET api.x.com/2/broadcasts/chat/moderators

Get Chat Moderators

自备 Key
POST api.x.com/2/broadcasts/chat/moderators

Add a Chat Moderator

自备 Key
DELETE api.x.com/2/broadcasts/chat/moderators/{user_id}

Remove a Chat Moderator

自备 Key
GET api.x.com/2/broadcasts/chat/mutes

Get Muted Chat Users

自备 Key
POST api.x.com/2/broadcasts/chat/mutes

Mute or Time Out a User in Chat

自备 Key
DELETE api.x.com/2/broadcasts/chat/mutes/{user_id}

Unmute a User in Chat

自备 Key
GET api.x.com/2/broadcasts/scheduled

List Scheduled Broadcasts

自备 Key
POST api.x.com/2/broadcasts/scheduled

Create a Scheduled Broadcast

自备 Key
DELETE api.x.com/2/broadcasts/scheduled/{id}

Delete a Scheduled Broadcast

自备 Key
GET api.x.com/2/broadcasts/scheduled/{id}

Get a Scheduled Broadcast

自备 Key
PUT api.x.com/2/broadcasts/scheduled/{id}

Update a Scheduled Broadcast

自备 Key
POST api.x.com/2/broadcasts/scheduled/{id}/live

Go Live on a Scheduled Broadcast

自备 Key
DELETE api.x.com/2/broadcasts/{id}

Delete a Broadcast

自备 Key
GET api.x.com/2/broadcasts/{id}

Get a Broadcast

自备 Key
GET api.x.com/2/broadcasts/{id}/chat

Get Broadcast Chat History

自备 Key
POST api.x.com/2/broadcasts/{id}/chat

Send a Chat Message to a Live Broadcast

自备 Key
POST api.x.com/2/broadcasts/{id}/chat/mutes

Mute or Time Out a User in a Broadcast Chat

自备 Key
DELETE api.x.com/2/broadcasts/{id}/chat/mutes/{user_id}

Unmute a User in a Broadcast Chat

自备 Key
DELETE api.x.com/2/broadcasts/{id}/chat/{message_id}

Remove a Chat Message from a Live Broadcast

自备 Key
PUT api.x.com/2/broadcasts/{id}/state

End a Broadcast

自备 Key
GET api.x.com/2/region

Get the Ingest Region

自备 Key
GET api.x.com/2/sources

List Stream Sources

自备 Key
POST api.x.com/2/sources

Create a Stream Source

自备 Key
DELETE api.x.com/2/sources/{id}

Delete a Stream Source

自备 Key
GET api.x.com/2/sources/{id}

Get a Stream Source

自备 Key
PUT api.x.com/2/sources/{id}

Rename a Stream Source

自备 Key
GET api.x.com/2/sources/{id}/stream_key

Get a Stream Source's Stream Key

自备 Key
GET api.x.com/2/users/{id}/broadcasts

List a User's Broadcasts

自备 Key
POST api.x.com/2/users/{id}/broadcasts

Create a Broadcast on a User's Source

自备 Key
DELETE api.x.com/2/users/{id}/broadcasts/{broadcast_id}

Delete a User's Broadcast

自备 Key
GET api.x.com/2/users/{id}/broadcasts/{broadcast_id}

Get a User's Broadcast

自备 Key
PUT api.x.com/2/users/{id}/broadcasts/{broadcast_id}/state

Publish or End a User's Broadcast

自备 Key
GET api.x.com/2/users/{id}/sources

List a User's Stream Sources

自备 Key
POST api.x.com/2/users/{id}/sources

Create a Stream Source for a User

自备 Key
DELETE api.x.com/2/users/{id}/sources/{source_id}

Delete a User's Stream Source

自备 Key
GET api.x.com/2/users/{id}/sources/{source_id}

Get a User's Stream Source

自备 Key
PUT api.x.com/2/users/{id}/sources/{source_id}

Rename a User's Stream Source

自备 Key
POST api.x.com/2/calls

Create a Call

自备 Key
GET api.x.com/2/calls/scheduled

List Scheduled Calls

自备 Key
POST api.x.com/2/calls/scheduled

Schedule a Call

自备 Key
DELETE api.x.com/2/calls/scheduled/{id}

Cancel a Scheduled Call

自备 Key
GET api.x.com/2/calls/scheduled/{id}

Get a Scheduled Call

自备 Key
POST api.x.com/2/calls/scheduled/{id}/rsvp

Respond to a Scheduled Call

自备 Key
GET api.x.com/2/calls/{id}

Get a Call

自备 Key
POST api.x.com/2/calls/{id}/join

Join a Call

自备 Key
已展示 60 / 212 个操作,在上方输入关键词可检索全部。

常见问题

如何在 Claude Code 或 Cursor 中接入 X?

通过 Duang 远程 MCP 网关(https://api.duang.ai/mcp)一键连接,即可让 AI Agent 调用 X 全部 212 个操作,无需本地维护 MCP 插件或明文密钥。

通过 Duang 接入 X 需要额外付费吗?

团队应用接入永久 $0 平台费。凭证加密封存于团队金库,永不进入模型上下文。

我的 X 密钥会暴露给大模型吗?

不会。密钥仅在 Duang 服务端出站请求时解密注入,本地配置文件与大模型上下文中均不包含明文密钥。

相关团队应用