remote-capable server
The server can be hosted and run remotely because it primarily relies on remote services or has no dependency on the local environment.
Integrations
Twitter MCP 服务器
MCP(模型上下文协议)服务器,提供使用 agent-twitter-client 库与 Twitter 交互的工具。
特征
- getTweet :通过 ID 检索推文
- sendTweet :向 Twitter 发布一条新推文
先决条件
- Node.js(v14 或更高版本)
- npm 或 yarn
- Twitter 帐户凭证
安装
- 克隆此存储库
- 安装依赖项:
Copy
- 使用您的 Twitter 凭据在根目录中创建一个
.env
文件:
Copy
用法
运行服务器
您可以使用 FastMCP CLI 工具运行服务器:
Copy
使用工具
获取推文
通过 ID 检索推文。
参数:
tweetId
(string): 要检索的推文的 ID
例子:
Copy
发送推文
在 Twitter 上发布一条新推文。
参数:
text
(字符串):要发送的推文的文本内容
例子:
Copy
发展
该服务器使用以下方式构建:
- FastMCP - 用于构建 MCP 服务器的 TypeScript 框架
- agent-twitter-client - Twitter 客户端库
要构建 TypeScript 代码:
Copy
执照
麻省理工学院
This server cannot be installed
提供与 Twitter 交互的工具,通过 ID 检索推文并使用 agent-twitter-client 库发布新推文。