x-mcp
Read-only MCP server for Kan's FxTwitter API proxy, enabling public X/Twitter search and retrieval.
README
x-mcp
Read-only MCP server for public X/Twitter search and retrieval via twitter.2-38.com. Implemented as a TypeScript + Hono Cloudflare Worker.
日本語版は下にあります: 日本語
Remote MCP endpoint
https://x.mcp.2-38.com/mcp
Discovery metadata:
https://x.mcp.2-38.com/.well-known/mcp.json
This server exposes MCP tools that call the existing public proxy endpoints under:
https://twitter.2-38.com/api/fx/2/...
Example upstream call wrapped by search_posts:
https://twitter.2-38.com/api/fx/2/search?q=from%3Ajack&feed=latest&count=10
AI agent skill first
MCP tells an agent what tools exist, but a skill tells it when and how to use them. Before asking an AI agent to use this MCP, have it install or load the bundled skill:
https://raw.githubusercontent.com/kandotrun/x-mcp/main/skills/x-mcp/SKILL.md
Full copy/paste prompts are available here:
Short English prompt:
Install or load this x-mcp skill first:
https://raw.githubusercontent.com/kandotrun/x-mcp/main/skills/x-mcp/SKILL.md
Then configure MCP server `x` with:
https://x.mcp.2-38.com/mcp
Verify tools/list includes search_posts and call search_posts with
{ "q": "from:jack", "feed": "latest", "count": 2 }.
Use this instead of x_search/xurl for public read-only X/Twitter search and retrieval through twitter.2-38.com.
MCP configuration
Hermes Agent
hermes skills inspect https://raw.githubusercontent.com/kandotrun/x-mcp/main/skills/x-mcp/SKILL.md
hermes skills install https://raw.githubusercontent.com/kandotrun/x-mcp/main/skills/x-mcp/SKILL.md --category social-media -y
hermes mcp add x --url https://x.mcp.2-38.com/mcp
hermes mcp test x
Or add this to ~/.hermes/config.yaml and restart Hermes / start a new session:
mcp_servers:
x:
url: "https://x.mcp.2-38.com/mcp"
Hermes will expose tools with the mcp_x_ prefix, for example mcp_x_search_posts.
Generic MCP clients
{
"mcpServers": {
"x": {
"url": "https://x.mcp.2-38.com/mcp"
}
}
}
Use your client's HTTP / Streamable HTTP MCP transport setting if it requires an explicit transport type.
Tools
search_posts— call/2/searchget_post— call/2/status/:idget_profile— call/2/profile/:handleget_profile_statuses— call/2/profile/:handle/statusesget_profile_media— call/2/profile/:handle/mediaget_trends— call/2/trendstypeahead— call/2/typeaheadget_openapi— call/2/openapi.json
Smoke test
curl -sS https://x.mcp.2-38.com/health
curl -sS https://x.mcp.2-38.com/.well-known/mcp.json
For an MCP-level smoke test, call tools/list and then search_posts using your MCP client. A successful search_posts call with q=from:jack returns JSON text containing:
{
"upstreamUrl": "https://twitter.2-38.com/api/fx/2/search?q=from%3Ajack&feed=latest&count=2",
"status": 200
}
Local development
npm install
cp wrangler.example.jsonc wrangler.jsonc
npm run check
npx wrangler dev --config wrangler.jsonc
npm run check regenerates local Worker runtime types from wrangler.example.jsonc and runs TypeScript type checking.
MCP endpoint locally:
http://localhost:8787/mcp
Deploy
cp wrangler.example.jsonc wrangler.jsonc
# Fill account_id in wrangler.jsonc if needed.
npm run deploy
wrangler.jsonc is intentionally gitignored so account-specific deployment config stays local.
Security and scope
- Public, unauthenticated, read-only MCP endpoint.
- Do not include secrets, private data, or access tokens in search queries.
- Not for posting, liking, reposting, following, DMs, notifications, private accounts, or authenticated timelines.
- Upstream availability, rate limits, and response shape depend on
twitter.2-38.com.
日本語
twitter.2-38.com 経由で公開X/Twitter情報を read-only で検索・取得する MCP server です。実装は TypeScript + Hono の Cloudflare Worker です。
公開MCP endpoint
https://x.mcp.2-38.com/mcp
Discovery metadata:
https://x.mcp.2-38.com/.well-known/mcp.json
このMCPは、既存の公開proxy endpointを呼びます。
https://twitter.2-38.com/api/fx/2/...
search_posts が包む upstream 呼び出し例:
https://twitter.2-38.com/api/fx/2/search?q=from%3Ajack&feed=latest&count=10
まずAIエージェントにskillを入れる
MCPだけだと「どの場面で、どう使うべきか」がAIに伝わりにくいので、このrepoにはAIエージェント向けskillを同梱しています。
Skill URL:
https://raw.githubusercontent.com/kandotrun/x-mcp/main/skills/x-mcp/SKILL.md
コピペ用の導入プロンプトはこちらです。
短い日本語プロンプト:
まず以下の x-mcp skill をインストール、または読み込んでください。
https://raw.githubusercontent.com/kandotrun/x-mcp/main/skills/x-mcp/SKILL.md
その後、MCP server `x` を以下で設定してください。
https://x.mcp.2-38.com/mcp
`tools/list` に `search_posts` が出ることを確認し、
`search_posts` を { "q": "from:jack", "feed": "latest", "count": 2 } で試してください。
このMCPは twitter.2-38.com 経由の公開X/Twitter情報取得専用です。公開read-only用途では x_search/xurl ではなくこのMCPを使ってください。
MCP設定
Hermes Agent
hermes skills inspect https://raw.githubusercontent.com/kandotrun/x-mcp/main/skills/x-mcp/SKILL.md
hermes skills install https://raw.githubusercontent.com/kandotrun/x-mcp/main/skills/x-mcp/SKILL.md --category social-media -y
hermes mcp add x --url https://x.mcp.2-38.com/mcp
hermes mcp test x
CLIが使えない場合は、~/.hermes/config.yaml に次を追加してHermesを再起動、または新しいセッションを開始してください。
mcp_servers:
x:
url: "https://x.mcp.2-38.com/mcp"
Hermesでは mcp_x_search_posts のように mcp_x_ prefix付きでtoolが見えます。
汎用MCP client
{
"mcpServers": {
"x": {
"url": "https://x.mcp.2-38.com/mcp"
}
}
}
client側でtransport指定が必要な場合は、HTTP / Streamable HTTP MCP transportを選んでください。
Tools
search_posts—/2/searchを呼ぶget_post—/2/status/:idを呼ぶget_profile—/2/profile/:handleを呼ぶget_profile_statuses—/2/profile/:handle/statusesを呼ぶget_profile_media—/2/profile/:handle/mediaを呼ぶget_trends—/2/trendsを呼ぶtypeahead—/2/typeaheadを呼ぶget_openapi—/2/openapi.jsonを呼ぶ
Smoke test
curl -sS https://x.mcp.2-38.com/health
curl -sS https://x.mcp.2-38.com/.well-known/mcp.json
MCPレベルでは、clientから tools/list → search_posts を確認してください。q=from:jack の成功例では、返ってくるJSON textに次のような内容が含まれます。
{
"upstreamUrl": "https://twitter.2-38.com/api/fx/2/search?q=from%3Ajack&feed=latest&count=2",
"status": 200
}
ローカル開発
npm install
cp wrangler.example.jsonc wrangler.jsonc
npm run check
npx wrangler dev --config wrangler.jsonc
npm run check は wrangler.example.jsonc からローカルのWorker runtime型を再生成し、TypeScriptの型チェックを実行します。
ローカルMCP endpoint:
http://localhost:8787/mcp
デプロイ
cp wrangler.example.jsonc wrangler.jsonc
# 必要に応じて wrangler.jsonc の account_id を埋める
npm run deploy
wrangler.jsonc はアカウント固有の設定なのでgitignoreしています。
セキュリティと範囲
- 公開・認証なし・read-only のMCP endpointです。
- search query に secret / private data / access token を入れないでください。
- 投稿、いいね、RT、フォロー、DM、通知、private account、認証timelineには使えません。
- upstreamの可用性、rate limit、response shapeは
twitter.2-38.com側に依存します。
推荐服务器
Baidu Map
百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
Playwright MCP Server
一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。
Magic Component Platform (MCP)
一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。
Audiense Insights MCP Server
通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。
VeyraX
一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。
graphlit-mcp-server
模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。
Kagi MCP Server
一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。
e2b-mcp-server
使用 MCP 通过 e2b 运行代码。
Neon MCP Server
用于与 Neon 管理 API 和数据库交互的 MCP 服务器
Exa MCP Server
模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。