PostHog MCP Server
Official PostHog MCP Server for product analytics, feature flags, experiments, and more.
Safety-first X (Twitter) API v2 MCP server: 41 typed tools across 12 packages, policy-gated.
使っているAIアプリを選んで、設定をコピーしてください。
チェック 3/3 合格 · あなたのパソコンで動きます
まず:どの AI を使っていますか?
使っているアプリを選ぶと、下に手順が表示されます。
Claude につなげますが、先に準備が必要です
X MCP AI のキーが必要です(提供元のサイトで作成) · 先にパソコンへ Node.js を入れてください(1 回だけ) · パソコン版 Claude アプリ(Windows または Mac)のみ。Web やスマホでは使えません
提供元のサイトで登録し、次の手順で使う API キーを作ります。料金や無料プランは提供元のサイトで確認してください。
キーの取り方は下の提供元 README にあります
SettingsDeveloperEdit Config
コマンドを確認中 · 確認が通るとコピーボタンが出ます
キーはアプリの入力欄にだけ貼り付け、チャットに貼ったり人に送ったりしないでください
X MCP AI を使って、私に何ができるか教えて、1 つやってみせて✓ Claude が X MCP AI を使っていると言うか、回答に X MCP AI のツール名が出れば接続成功です
メニュー名は 2026年11月11日 に Anthropic のヘルプページで確認 · アプリのバージョンにより画面が少し違うことがあります
ChatGPT はまだ X MCP AI につなげません
X MCP AI はパソコンに入れて使うものですが、ChatGPT は Web 上で動くサーバーにしかつなげません
A · X MCP AI につなげるアプリを使う
B · マーケティング・SNS の中で ChatGPT につなげる別のサーバー
同じカテゴリでよく使われているものから、キーなしでアドレスだけでつなげるものを選びました
Claude Code につなげますが、先に準備が必要です
X MCP AI のキーが必要です(提供元のサイトで作成) · 先にパソコンへ Node.js を入れてください(1 回だけ)
提供元のサイトで登録し、次の手順で使う API キーを作ります。料金や無料プランは提供元のサイトで確認してください。
キーの取り方は下の提供元 README にあります
Mac:Command+スペースで Terminal と入力 · Windows:PowerShell を開く
コマンドを確認中 · 確認が通るとコピーボタンが出ます
Enter の前に「your-value」を自分のキーに書き換えてください
キーはアプリの入力欄にだけ貼り付け、チャットに貼ったり人に送ったりしないでください
X MCP AI が一覧にあり、接続済みと表示されれば OK です
X MCP AI を使って、私に何ができるか教えて、1 つやってみせて✓ Claude Code が X MCP AI を使っていると言うか、回答に X MCP AI のツール名が出れば接続成功です
メニュー名は 2026年11月11日 に Anthropic のヘルプページで確認 · アプリのバージョンにより画面が少し違うことがあります
Cursor につなげますが、先に準備が必要です
X MCP AI のキーが必要です(提供元のサイトで作成) · 先にパソコンへ Node.js を入れてください(1 回だけ)
提供元のサイトで登録し、次の手順で使う API キーを作ります。料金や無料プランは提供元のサイトで確認してください。
キーの取り方は下の提供元 README にあります
コマンドを確認中 · 確認が通るとコピーボタンが出ます
X MCP AI の設定で X_MCP_AUTH_MODE, X_MCP_CLIENT_ID, X_MCP_CLIENT_SECRET, X_MCP_BEARER_TOKEN, X_MCP_TOKEN_FILE, X_MCP_TOKEN_KEYCHAIN, X_MCP_POLICY, X_MCP_POLICY_ALLOW, X_MCP_POLICY_DENY, X_MCP_HIDE_DENIED, X_MCP_MEDIA_DIR, X_MCP_AVAILABILITY, X_MCP_PROFILES_FILE, X_MCP_PROFILE, X_MCP_TIMEOUT_MS, X_MCP_LOG_LEVEL, X_MCP_CREDIT_BUDGET, X_MCP_BUDGET_MODE が空です。自分のキーを入れて保存します
キーはアプリの入力欄にだけ貼り付け、チャットに貼ったり人に送ったりしないでください
X MCP AI を使って、私に何ができるか教えて、1 つやってみせて✓ Cursor が X MCP AI を使っていると言うか、回答に X MCP AI のツール名が出れば接続成功です
メニュー名は 2026年11月11日 に Cursor のヘルプページで確認 · アプリのバージョンにより画面が少し違うことがあります
VS Code につなげますが、先に準備が必要です
X MCP AI のキーが必要です(提供元のサイトで作成) · 先にパソコンへ Node.js を入れてください(1 回だけ)
提供元のサイトで登録し、次の手順で使う API キーを作ります。料金や無料プランは提供元のサイトで確認してください。
キーの取り方は下の提供元 README にあります
コマンドを確認中 · 確認が通るとコピーボタンが出ます
X MCP AI の設定で X_MCP_AUTH_MODE, X_MCP_CLIENT_ID, X_MCP_CLIENT_SECRET, X_MCP_BEARER_TOKEN, X_MCP_TOKEN_FILE, X_MCP_TOKEN_KEYCHAIN, X_MCP_POLICY, X_MCP_POLICY_ALLOW, X_MCP_POLICY_DENY, X_MCP_HIDE_DENIED, X_MCP_MEDIA_DIR, X_MCP_AVAILABILITY, X_MCP_PROFILES_FILE, X_MCP_PROFILE, X_MCP_TIMEOUT_MS, X_MCP_LOG_LEVEL, X_MCP_CREDIT_BUDGET, X_MCP_BUDGET_MODE が空です。自分のキーを入れて保存します
キーはアプリの入力欄にだけ貼り付け、チャットに貼ったり人に送ったりしないでください
X MCP AI を使って、私に何ができるか教えて、1 つやってみせて✓ VS Code が X MCP AI を使っていると言うか、回答に X MCP AI のツール名が出れば接続成功です
メニュー名は 2026年11月11日 に VS Code のヘルプページで確認 · アプリのバージョンにより画面が少し違うことがあります
Windsurf、Zed、Gemini CLI など MCP を使える他のアプリは追加方法がそれぞれ違います。アプリ一覧で確認してください
JSON 設定は下の「開発者向け」にあります
Claude Code
コマンドを確認中 · 確認が通るとコピーボタンが出ます
Claude Desktop (claude_desktop_config.json)
コマンドを確認中 · 確認が通るとコピーボタンが出ます
Cursor (~/.cursor/mcp.json)
コマンドを確認中 · 確認が通るとコピーボタンが出ます
VS Code (mcp.json)
コマンドを確認中 · 確認が通るとコピーボタンが出ます
X_MCP_AUTH_MODE envX_MCP_CLIENT_ID envX_MCP_CLIENT_SECRET 秘密 envX_MCP_BEARER_TOKEN 秘密 envX_MCP_TOKEN_FILE envX_MCP_TOKEN_KEYCHAIN envX_MCP_POLICY envX_MCP_POLICY_ALLOW envX_MCP_POLICY_DENY envX_MCP_HIDE_DENIED envX_MCP_MEDIA_DIR envX_MCP_AVAILABILITY envX_MCP_PROFILES_FILE envX_MCP_PROFILE envX_MCP_TIMEOUT_MS envX_MCP_LOG_LEVEL envX_MCP_CREDIT_BUDGET envX_MCP_BUDGET_MODE envこの設定は、作者のレジストリ登録情報から作成しています。READMEと違う場合は、READMEに従ってください。
このサーバーのつなぎ方と、各アプリの公式ドキュメントに基づきます。2026年11月10日に確認。
パソコン上で動かせるアプリ
ClaudeGooseLM StudioMsty StudioCherry StudioCursorVS Code + GitHub CopilotVisual StudioWindsurf (Devin Desktop)ZedKiroClineContinueJetBrains AI AssistantClaude CodeCodex CLIGemini CLIOpenCodenodecodeWarpLibreChatRaycast
パソコンで動くサーバーです。インストールすると、ツール一覧がAIアプリに表示されます。
誰でも見られる情報をチェックしており、コードは読んでいません。当てはまらない項目は数に入れていません。 · 2026年11月13日にチェック
レジストリ名は、リポジトリを所有するGitHubアカウント IvanBBaev で確認済みです
コードの最終更新:42 日前
MITを使用
これはパソコンで動くため、インターネット上のエンドポイントはありません
パソコンで動き、代わりにローカルの設定を使います
パソコンで動くサーバーです。ツール一覧を読み取れるのは、インターネット上のエンドポイントがある場合だけです
質問、コツの共有、使えないことの報告ができます。「役に立った」の多い順です。
まだレビューはありません
レジストリでこのカテゴリにある有効なすべてのサーバーと比較しています。スターは、公開者がリポジトリの所有者である場合だけ数えます。
当てはまる基本チェック3項目のうち3項目に合格しました。コードは読んでいません。キーやトークンを追加する前に、サーバーがどんなアクセスを求めているかを確認し、必要な権限だけを持つキーを使ってください。
入力が必要なもの:X_MCP_CLIENT_SECRET, X_MCP_BEARER_TOKEN
あなたのパソコンで動きます。必要なときにAIアプリが起動し、データは作者のサーバーを通りません(サーバー自体がオンラインサービスを呼び出す場合を除きます)。
GitHubリポジトリの最終更新は42 日前、最新バージョン(0.8.0)がレジストリに届いたのは2 か月前です。
Claude Desktop、Claude Code、Cursor、VS CodeなどのMCP対応アプリで使えます。パソコンにNode.jsも必要です。
同じカテゴリには:PostHog MCP Server, Openshorts, Google Ads + Meta Ads + SEO/GEO MCP
同じカテゴリで、ほかの作者が作ったサーバー。スターの多い順。
カードの見方:↓ 週あたりのダウンロードi★ GitHubスターi3つの柱:レビュー · チェック · 利用状況i更新=最新バージョンをレジストリに公開した日i
Official PostHog MCP Server for product analytics, feature flags, experiments, and more.
Turn long videos into viral vertical shorts and publish them to TikTok, Instagram and YouTube.
Google Ads, Meta Ads, Google Analytics (GA4) & Search Console MCP server by Ryze AI
作者のリポジトリから書かれたとおりにコピーしたものです。PopNx MCPは内容を確認・推奨していません。HTML、画像、スクリプトは取り除いています。リンクはこのサイトの外へ移動します。
An MCP server that exposes the X (Twitter) API v2 to MCP clients — Claude Code, Claude Desktop, VS Code, Cursor, or any MCP-compatible agent — as a curated set of typed tools, gated by a two-axis policy model and aware of the 2026 pay-per-use pricing so an agent can never quietly overspend.
**Status: pre-1.0, under active development, published on npm as
x-mcp-ai** (currently0.8.0, published from
CI with npm provenance). Pin an exact version while the project is on
0.x
(Setup). 41 tools across 12 packages are registered today; the full designed
surface lives in
docs/03-tool-catalog.mdand has landed
in full. The public API is unstable until
1.0.0.
Contents: Quick demo · Features · Requirements · Setup · Configure credentials · Cost · Run / debug · Develop · Tools · Resources · Prompts · Project structure · Security notes · Data handling · Documentation · Support · Trademark
Once the server is wired into your MCP client, you drive it in natural language and the model picks the tool. Three representative asks:
// 1. Read (default read-only preset — no writes possible)
// "What are people saying about the Model Context Protocol this week?" { "tool": "x_search_recent", "arguments": { "query": "\"model context protocol\" -is:retweet lang:en", "max_results": 25 } }
// 2. Engage (requires the `engage` preset or an explicit write:engagement allow)
// "Like that launch post for me." { "tool": "x_like_set", "arguments": { "post_id": "1899…", "action": "like" } }
// 3. Publish (requires the `publish` preset or write:content)
// "Post: 'Shipping x-mcp-ai today.' — mind the cost." // Every result carries cost_usd + session_total_usd; a URL in the text raises the price 13×. { "tool": "x_post_create", "arguments": { "text": "Shipping x-mcp-ai today." } }
operation:domain) with five presets — read-only (default), engage, publish, manage, full. Writes are opt-in; deny beats allow beats preset, per cell. Direct-message cells are double-locked: read:dm/write:dm are in no preset, not even full.cost_usd and the running session_total_usd; an operator-set X_MCP_CREDIT_BUDGET with X_MCP_BUDGET_MODE=hard refuses calls that would exceed it, and the model cannot raise the cap.Authorization header, redirects never followed on token-bearing requests, 0600 token file written with O_NOFOLLOW/O_EXCL, untrusted-content marking on returned text, and media upload default-deny outside a realpath-contained X_MCP_MEDIA_DIR.retryable and fix: "agent" | "operator", so the model retries what is retryable and escalates what is not.outputSchema and returns structuredContent alongside the text block..nvmrc).The recommended install is the published package, pinned to an exact version while the project is on 0.x — nothing to clone or build:
npx -y x-mcp-ai@0.8.0 doctor # sanity check; makes no billable calls
Then point your MCP client at it:
// claude_desktop_config.json (Claude Desktop) / .mcp.json (Claude Code) / .cursor/mcp.json
{ "mcpServers": { "x": { "command": "npx", "args": ["-y", "x-mcp-ai@0.8.0"], "env": { "X_MCP_AUTH_MODE": "oauth2", "X_MCP_CLIENT_ID": "your-oauth2-client-id", "X_MCP_POLICY": "read-only", "X_MCP_CREDIT_BUDGET": "5.00", "X_MCP_BUDGET_MODE": "hard" } } } }
Running from a local checkout instead? Use "command": "node" with "args": ["/abs/path/to/x-mcp/build/src/index.js"] and the same env map.
Claude Code from the CLI:
claude mcp add x --env X_MCP_POLICY=read-only -- npx -y x-mcp-ai@0.8.0
Per-client instructions — Claude Desktop, Claude Code, VS Code (.vscode/mcp.json), Cursor and MCP Inspector — are in docs/10-operator-guide.md §4, together with the authorize flow and ready-made env recipes.
Still fully supported — build the entry point and spawn it with node instead of npx:
git clone https://github.com/IvanBBaev/x-mcp.git
cd x-mcp npm ci npm run build # tsc → build/src/index.js node build/src/index.js doctor # sanity check; makes no billable calls
The server never prompts interactively; all configuration comes from environment variables (canonical table: docs/02-architecture.md §4; a starting point: .env.example).
Auth modes (X_MCP_AUTH_MODE):
oauth2 *(default)* — OAuth 2.0 with PKCE. Run the one-time authorization flow with the authorize subcommand; tokens land in X_MCP_TOKEN_FILE and are refreshed automatically.app-only — application-only bearer token (X_MCP_BEARER_TOKEN); read endpoints only, no user context.X_MCP_AUTH_MODE=oauth2 X_MCP_CLIENT_ID=… node build/src/index.js authorize
| Variable | Default | Secret | Purpose | ||||
|---|---|---|---|---|---|---|---|
X_MCP_AUTH_MODE | oauth2 | oauth2 \ | app-only. | ||||
X_MCP_CLIENT_ID | OAuth 2.0 client ID (required for authorize and refresh). | ||||||
X_MCP_CLIENT_SECRET | ✅ | OAuth 2.0 client secret (confidential clients only). | |||||
X_MCP_BEARER_TOKEN | ✅ | App-only bearer token; valid only with app-only. | |||||
X_MCP_TOKEN_FILE | OS-resolved | Path to the rotating OAuth 2.0 token store (~ expanded). | |||||
X_MCP_TOKEN_KEYCHAIN | 0 | 1 → store tokens in the OS keychain (macOS security, Linux secret-tool). Mutually exclusive with X_MCP_TOKEN_FILE. | |||||
X_MCP_POLICY | read-only | Preset: read-only \ | engage \ | publish \ | manage \ | full. | |
X_MCP_POLICY_ALLOW | Comma-separated operation:domain cells to add. | ||||||
X_MCP_POLICY_DENY | Comma-separated cells to remove (wins over allow and preset). | ||||||
X_MCP_HIDE_DENIED | 0 | 1 → drop denied tools from registration entirely. | |||||
X_MCP_CREDIT_BUDGET | Session spend cap, USD (e.g. 5.00). Unset = no cap. | ||||||
X_MCP_BUDGET_MODE | warn | warn \ | hard. | ||||
X_MCP_AVAILABILITY | Comma-separated availability classes to enable (pilot, premium-user, enterprise). | ||||||
X_MCP_MEDIA_DIR | Directory uploads must realpath inside (media default-deny). | ||||||
X_MCP_PROFILES_FILE | Multi-account profiles file. | ||||||
X_MCP_PROFILE | Active profile name (required with a profiles file). | ||||||
X_MCP_BASE_URL | https://api.x.com | API base URL; must be https:// and *.x.com. | |||||
X_MCP_ALLOW_INSECURE_BASE_URL | 0 | 1 → permit a non-x.com base URL (testing only). | |||||
X_MCP_TIMEOUT_MS | 30000 | Per-request timeout, milliseconds. | |||||
X_MCP_LOG_LEVEL | info | silent \ | error \ | info \ | debug. |
Any other X_MCP_* variable is ignored with a startup warning — that is the typo detector. Every fatal configuration error names the variable at fault.
Every tool maps to one policy cell — an operation:domain pair. Operations escalate read → write → destructive; domains are content, user, account, engagement, social-graph, moderation, dm. A preset unlocks a set of the 12 valid cells; X_MCP_POLICY_ALLOW adds cells, X_MCP_POLICY_DENY removes them, and deny > allow > preset.
| Preset | Grants | Callable tools |
|---|---|---|
read-only *(default)* | all read:* cells except read:dm | 21 |
engage | read-only + write:engagement | 26 |
publish | engage + write:content, write:moderation | 32 |
manage | publish + destructive:content | 34 |
full | every non-DM cell — adds write:social-graph, destructive:social-graph | 37 |
DM cells are never in a preset — not even `full`.
read:dmandwrite:dmmust be
granted explicitly via
X_MCP_POLICY_ALLOW(all 41 tools callable). Their unlock hint is
deliberately withheld from policy errors, as it is for every other sensitive cell.
Denied tools stay registered but annotated
(disabled by policy )unless
X_MCP_HIDE_DENIED=1.
Note that manage grants destructive content operations only — follow/mute/block need full or an explicit write:social-graph / destructive:social-graph allow.
Pay-per-use is the only pricing model. X retired the Free/Basic/Pro subscription tiers
for new developers on 2026-02-06; every read and write draws down prepaid credits.
Since 2026-04-16, a post whose text contains a **URL costs $0.20 instead of $0.015 —
13×**. Set
X_MCP_CREDIT_BUDGETbefore pointing an agent at a real account.
Indicative rates (verified 2026-07-22): post reads ~$0.005 each, user lookups and follower/following reads ~$0.010, own-data reads ~$0.001, DM events ~$0.010, post create $0.015 (or $0.20 with a URL), DM send $0.015, list create $0.010, engagement writes currently $0. X also caps post reads at 2,000,000 per month. The authoritative table is docs/01-api-landscape.md §3; the operator's view is docs/10-operator-guide.md §5.
The budget is per process, advisory, resets on restart, and is model-immutable — there is no per-call override and no tool that raises it.
MCP clients spawn the server for you. To run it by hand:
X_MCP_POLICY=read-only node build/src/index.js serve
| Command | What it does |
|---|---|
serve *(default)* | Start the MCP server over stdio. Running with no subcommand also serves. |
|