Twitter MCP server for AI agents

Live

OAUTH 2.0

SOCIAL MEDIA

Communication

Twitter MCP gives your agent access to Twitter's own MCP server: search and read Posts, look up users, manage Lists and Bookmarks, create Posts, work with Chat conversations, and schedule broadcasts and calls.

  • Per-user credentials: each call uses the actual user's token, never a shared bot.
  • Encrypted per-tenant vault: AES-256, resolved at request time, never in LLM context.
  • Scoped before every call: pre-call scope check, 90-day SIEM-exportable audit chain.
Twitter MCP
agent · Acme Q3
Run
How many Posts mentioned our launch in the last 7 days?
S
twittermcp_get_posts_counts_recent
118ms
Social listening agent
1,240 Posts matched your launch query in the last 7 days. Volume peaked on Tuesday.
Sources: Twitter Post counts, 7 days
twittermcp
7 days
18:29
Message Claude...

Tools your social media agent reaches for on Twitter MCP, scoped per user.

CALL ANY TOOL
100 tools for social media on Twitter MCP: search and read Posts, look up users, manage Lists and Bookmarks, create Posts, handle Chat conversations, and schedule broadcasts and calls.
twittermcp_accept_chat_message_request
Accept chat message request
Accepts the other user's pending message request in a 1:1 Chat conversation, which moves to the authenticated user's inbox. Without a pending request, including after a successful accept, the response is 404. Replying to a request does not accept it.
Parameters
Name
Type
Required
Description
id
string
Required
The other user's ID, or both user IDs joined by a hyphen.
twittermcp_add_chat_moderator
Add chat moderator
twittermcp_archive_chat_conversation
Archive chat conversation
twittermcp_article_create_draft
Article create draft
twittermcp_cancel_scheduled_call
Call cancel scheduled
twittermcp_chat_media_upload_append
Chat media upload append
twittermcp_create_scheduled_broadcast
Create scheduled broadcast
twittermcp_delete_scheduled_broadcast
Delete scheduled broadcast
twittermcp_follow_list
List follow
twittermcp_get_broadcast
Get broadcast
twittermcp_get_chat_conversations
Get chat conversations
twittermcp_get_communities_by_id
Get communities by id
twittermcp_get_news
Get news
twittermcp_get_posts_liking_users
Get posts liking users
twittermcp_get_scheduled_call
Call get scheduled
twittermcp_get_spaces_posts
Get spaces posts
twittermcp_get_users_bookmark_folders
Get users bookmark folders
twittermcp_get_users_by_username
Get users by username
twittermcp_get_users_me_followers
Get users me followers
twittermcp_get_users_pinned_lists
Get users pinned lists
twittermcp_list_scheduled_broadcasts
List scheduled broadcasts
twittermcp_mark_chat_conversation_read
Read mark chat conversation
twittermcp_mark_chat_conversation_unread
Mark chat conversation unread
twittermcp_pin_list
List pin
twittermcp_remove_chat_moderator
Remove chat moderator
twittermcp_search_communities
Search communities
twittermcp_search_posts_all
Search posts all
twittermcp_send_chat_message
Send chat message
twittermcp_unarchive_chat_conversation
Unarchive chat conversation
twittermcp_update_lists
Update lists

For more tools, view docs.

Build your Agent
Same auth pattern across LangChain, OpenAI, Anthropic, and Google ADK.
Python · LlamaIndex
import { ScalekitClient } from "@scalekit-sdk/node";
import { createReactAgent } from "@langchain/langgraph/prebuilt";

const sk = new ScalekitClient(env.SCALEKIT_ENV_URL, env.SCALEKIT_CLIENT_ID, env.SCALEKIT_CLIENT_SECRET);

// Twitter tools scoped to this user
const { tools } = await sk.tools.listScopedTools("user_123", {
  filter: { connectionNames: ["twittermcp"], toolNames: [
    "twittermcp_get_users_by_username",
    "twittermcp_get_users_posts",
    "twittermcp_search_posts_all"] },
  pageSize: 100,
});

const agent = createReactAgent({ llm, tools });
await agent.invoke({ messages: [{ role: "user", content: "Look up this account and summarize what it has posted about our launch" }] });
import OpenAI from "openai";
import { ScalekitClient } from "@scalekit-sdk/node";

const sk = new ScalekitClient(env.SCALEKIT_ENV_URL, env.SCALEKIT_CLIENT_ID, env.SCALEKIT_CLIENT_SECRET);
const openai = new OpenAI();

const { tools } = await sk.tools.listScopedTools("user_123", {
  filter: { connectionNames: ["twittermcp"] }, pageSize: 100,
});

const res = await openai.chat.completions.create({
  model: "gpt-5",
  messages: [{ role: "user", content: "Look up this account and summarize what it has posted about our launch" }],
  tools,
});

// Execute the tool call with the user's vaulted Twitter OAuth token
await sk.tools.executeTool(res.choices[0].message.tool_calls[0], "user_123");
import Anthropic from "@anthropic-ai/sdk";
import { ScalekitClient } from "@scalekit-sdk/node";

const sk = new ScalekitClient(env.SCALEKIT_ENV_URL, env.SCALEKIT_CLIENT_ID, env.SCALEKIT_CLIENT_SECRET);
const anthropic = new Anthropic();

const { tools } = await sk.tools.listScopedTools("user_123", {
  filter: { connectionNames: ["twittermcp"] }, pageSize: 100,
});

const msg = await anthropic.messages.create({
  model: "claude-sonnet-5",
  max_tokens: 1024,
  messages: [{ role: "user", content: "Look up this account and summarize what it has posted about our launch" }],
  tools,
});

// Tool call runs with the user's vaulted Twitter OAuth token
await sk.tools.executeTool(msg.content, "user_123");
import { Agent } from "@google/adk/agents";
import { ScalekitClient } from "@scalekit-sdk/node";

const sk = new ScalekitClient(env.SCALEKIT_ENV_URL, env.SCALEKIT_CLIENT_ID, env.SCALEKIT_CLIENT_SECRET);

const { tools } = await sk.tools.listScopedTools("user_123", {
  filter: { connectionNames: ["twittermcp"] }, pageSize: 100,
});

const agent = new Agent({
  name: "twitter_mcp_agent",
  model: "gemini-2.5-pro",
  instruction: "Twitter tools scoped to this user",
  tools,
});

await agent.run("Look up this account and summarize what it has posted about our launch");
Try these prompts
Copy any prompt into your agent. Each maps directly to a Twitter MCP tool. Click to copy, paste into your agent, done.
Search and read
Copy the prompt
Copied
Search the full archive for Posts about our product launch.
Copy the prompt
Copied
Show the latest Posts from this username.
Copy the prompt
Copied
What topics are trending in New York right now?
Users and lists
Copy the prompt
Copied
Look up this account by username.
Copy the prompt
Copied
List the members of our competitor watch List.
Copy the prompt
Copied
Add this user to our customer List.
Posting and bookmarks
Copy the prompt
Copied
Create a Post announcing the new connector.
Copy the prompt
Copied
Bookmark this Post in my Research folder.
Copy the prompt
Copied
Show Posts in my Bookmarks.
SEE HOW AUTH WORKS
Each user signs in to Twitter once, and Scalekit stores and refreshes their tokens. Credentials stay vaulted, every call is scope checked, and every action is logged.
1
Authorize
Your user connects
Twitter MCP
once. We tie it to their identity and the meetings they approved — no shared bot account, no org-wide access
Who:
user ‘A’
when:
Once per user
access:
Limited to user
2
Store
Their
Twitter MCP
token lives in a vault scoped to them. User A's meetings are never reachable by an agent acting for user B, even on the same connection
vault:
encrypted
scope:
per-user
tokens:
auto-refreshed
3
Resolve
When your agent calls a
Twitter MCP
tool, we fetch the right token server-side. It never touches your agent, never appears in the LLM context, never shows up in your logs
speed:
~40ms
check:
before every call
seen by:
nobody
4
Audit
Every
Twitter MCP
tool call is logged — who triggered it, which meeting was fetched, what came back. 90 days of history, tied to the user who authorized it
history:
90 days
export:
SIEM-ready
logged:
every call
Test other agents
See the same per-user auth pattern across other marketing and communication connectors.
GTM and RevOps Teams
Competitive intelligence briefing agent
Scans Gong calls for competitor mentions, matches each one to its Notion battlecard, and DMs every affected rep a single Slack digest per cycle. Every call runs as the PMM who owns the briefing, never a shared bot.
GTM and RevOps Teams
Outbound prospecting agent
Searches Apollo for prospects matching your ICP, scores and ranks them, drafts personalized outreach in Gmail, and logs every send to Google Sheets. Mail goes out as the rep, not from a shared inbox.
Test other agents
See the same per-user auth pattern across other marketing and communication connectors.
GTM
Competitive intelligence briefing agent
Scan Gong calls for competitor mentions, match each one to its Notion battlecard, and DM every affected rep a single Slack digest.
SALES
Outbound prospecting agent
Search Apollo for ICP matches, rank them, draft personalised Gmail outreach, and log every send to Google Sheets.
Why Scalekit
Secure your agent's access. Connectors ship in minutes
01.
Shared tokens break per-user analytics
A shared Twitter token looks fine in a demo. In production every Post, List change, and Chat action looks like one service account, and you cannot tell which user triggered it. Scalekit resolves the credential of the actual user who triggered the agent, never a shared bot.
// shared token
audit → bot_service_account

// scalekit
audit → user_abc ✓
02.
Authentication is not authorization
03.
Multi-tenancy is architectural
04.
Twitter today. Ten connectors tomorrow.
“Our agents act across Salesforce, Gong, Google Drive, and more, on behalf of every customer. Scalekit behind the scenes meant we can keep adding tools without ever rebuilding how credentials or tool calling work.”
Venu Madhav Kattagoni
Head of Engineering / Von
FAQs
Frequently Asked Questions
Does the agent access Twitter as the user or through a shared service account?
As the user. Each user signs in to Twitter once, and Scalekit stores and refreshes their tokens. Posts, List changes, and Chat actions the agent takes are attributed to that user in your audit trail, not a shared service account.
Where is the Twitter OAuth token stored?
In Scalekit's managed AES-256 token vault, namespaced per tenant. Refresh is automatic. Revocation is a single dashboard action. Credentials never appear in prompts, logs, or LLM context.
Can I limit what the agent does in Twitter?
Yes. Filter by tool name in listScopedTools to expose only what you want, for example the search and get tools without twittermcp_create_posts or twittermcp_delete_scheduled_broadcast. Scalekit also enforces scope checks before every API call.
What happens when a user revokes Twitter access?
The connection is invalidated on the next tool call. Subsequent requests for that user fail closed with a clear error. Other users in the tenant remain unaffected. The event is logged for audit.
Can the agent send Chat messages?
Yes, if you expose twittermcp_send_chat_message. It sends a message or reaction to a Chat conversation and expects an end-to-end encrypted event built with the Chat XDK. Leave it out of toolNames to keep the agent to reading and search.
Start in your coding agent
Up and running in one command
Install the Scalekit skill in your editor of choice. Connector, auth, tools, prompt, all wired up
Claude Code REPL
/plugin marketplace add scalekit-inc/claude-code-authstack
/plugin install agentkit@scalekit-auth-stack
Cursor Code REPL
# ~/.cursor/mcp.json
{
""mcpServers"": {
""twittermcp"": {
""url"": ""https://mcp.scalekit.com/twittermcp"",
""headers"": { ""Authorization"": ""Bearer $SCALEKIT_TOKEN"" }
}
}
}
Codex Code REPL
# ~/.codex/config.toml
[mcp_servers.twittermcp]
url = ""https://mcp.scalekit.com/twittermcp""
auth_env = ""SCALEKIT_TOKEN""
Copilot Code REPL
# .vscode/mcp.json
{
""servers"": {
""twittermcp"": {
""url"": ""https://mcp.scalekit.com/twittermcp"",
""type"": ""http""
}
}
}