Twitter MCP 服务器
MCP(模型上下文协议)服务器,提供使用 agent-twitter-client 库与 Twitter 交互的工具。
特征
getTweet :通过 ID 检索推文
sendTweet :向 Twitter 发布一条新推文
先决条件
Node.js(v14 或更高版本)
npm 或 yarn
Twitter 帐户凭证
安装
克隆此存储库
安装依赖项:
使用您的 Twitter 凭据在根目录中创建一个
.env文件:
用法
运行服务器
您可以使用 FastMCP CLI 工具运行服务器:
使用工具
获取推文
通过 ID 检索推文。
参数:
tweetId(string): 要检索的推文的 ID
例子:
发送推文
在 Twitter 上发布一条新推文。
参数:
text(字符串):要发送的推文的文本内容
例子:
发展
该服务器使用以下方式构建:
FastMCP - 用于构建 MCP 服务器的 TypeScript 框架
agent-twitter-client - Twitter 客户端库
要构建 TypeScript 代码:
执照
麻省理工学院
This server cannot be installed
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.
提供与 Twitter 交互的工具,通过 ID 检索推文并使用 agent-twitter-client 库发布新推文。
Related Resources
Related MCP Servers
- Asecurity-licenseAqualityEnables interaction with Twitter through a Model Context Protocol, allowing large language models to post tweets, search for tweets, and reply to tweets.Last updated -53221MIT License
- -security-license-qualityProvides AI agents with comprehensive Twitter functionality through the Model Context Protocol standard, enabling reading tweets, posting content, managing interactions, and accessing timeline data with robust error handling.Last updated -117
- -security-license-qualityA Python-based tool that streamlines social media tasks by enabling users to post tweets, track username changes, fetch recent tweets, and send direct messages on Twitter.Last updated -
- -security-license-qualityProvides social media functionality for AI agents, enabling them to login with unique handles, read filtered posts, and create posts or replies within team-based discussions.Last updated -5