Twitter for AI agents

Twitter, now X, is a social network for short public posts, and here an agent posts, reads, and manages content and direct messages for a connected account. Connect it once through Arc0, and your agent, or Claude, ChatGPT and Cursor, can use it through one MCP endpoint, limited to what each user approved.

Social mediaOAuth 2.0MCP + RESTx.com
AUDIT LOG · TWITTERPOLICY: acme-support
09:41:07 · claude · u_8f2read
twitter.list_post_likers
List post likers✓ allowed · 212ms
09:41:08 · claude · u_8f2read
twitter.get_list
Lookup list by ID✓ allowed · 164ms
09:41:09 · claude · u_8f2write
twitter.create_list
Create a list✓ approved · approved by user
09:41:12 · claude · u_8f2destructive
twitter.delete_dm
Delete direct message✕ blocked · policy: deny
EVERY TWITTER CALL, ON THE RECORD
01 · USE CASES

What agents do in Twitter.

01

Get a user's followers

Pull the list of accounts following a user as a read-only check.

02

Post an update

Publish a new post to the connected account's timeline.

03

Confirm before deleting a direct message

Check with the user before deleting a direct message, since that removes it for the sender's view permanently.

02 · ACTIONS

79 Twitter actions, graded by risk.

Every Twitter action is tagged read, write or destructive, so one policy covers the whole app and new actions inherit the right default.

read

33

Look things up. Allowed by default.

  • twitter.get_list
    Lookup list by ID
  • twitter.get_dm_event
    Get DM events by ID
  • twitter.search_spaces
    Search for spaces
  • twitter.get_post_usage
    Fetch tweet usage data
  • twitter.get_user_by_id
    Look up user by ID
  • twitter.get_muted_users
    Get muted users
  • twitter.get_space_by_id
    Look up space by ID
  • twitter.get_space_posts
    Retrieve posts from a space
  • twitter.get_list_members
    Fetch list members by id
  • twitter.get_openapi_spec
    Fetch OpenAPI specification
  • twitter.get_users_by_ids
    Look up users by IDs
  • twitter.list_post_likers
    List post likers
  • twitter.get_blocked_users
    Get users blocked by user ID
  • twitter.get_post_retweets
    Retrieve retweets of a post
  • twitter.get_spaces_by_ids
    Get space information by IDs
  • twitter.get_compliance_job
    Retrieve compliance job by id
+ 17 MORE

write

39

Create and change things. Allow, or ask the user first.

  • twitter.create_list
    Create a list
  • twitter.update_list
    Update list attributes
  • twitter.add_list_member
    Add a list member
  • twitter.add_post_to_bookmarks
    Add post to bookmarks
  • twitter.create_compliance_job
    Create compliance job
  • twitter.create_dm_conversation
    Create group DM conversation
  • twitter.post_lookup_by_post_id
    Look up post by id
  • twitter.post_lookup_by_post_ids
    Get tweets by IDs
  • twitter.send_dm_to_conversation
    Send a new message to a DM conversation
  • twitter.create_activity_subscription
    Create activity subscription
  • twitter.send_a_new_message_to_a_user
    Send a new message to a user
  • twitter.pin_list
    Pin a list
  • twitter.mute_user
    Mute user by ID
  • twitter.unpin_list
    Unpin a list
  • twitter.follow_list
    Follow a list
  • twitter.follow_user
    Follow a user
+ 23 MORE

destructive

7

Delete, cancel or archive. Ask first, or deny outright.

  • twitter.delete_dm
    Delete direct message
  • twitter.delete_list
    Delete list
  • twitter.remove_list_member
    Remove a list member
  • twitter.remove_post_from_bookmarks
    Remove a bookmarked post
  • twitter.full_archive_search
    Search full archive of tweets
  • twitter.post_delete_by_post_id
    Delete tweet
  • twitter.search_full_archive_counts
    Get full archive search counts
03 · HOW IT WORKS

Twitter in three steps.

  1. 01Your users connect TwitterThey sign in to Twitter on Arc0 Connect, under your brand, and approve the access you ask for.
  2. 02You set the rulesReads run, writes like “create a list” can wait for the user, and “delete direct message” can be denied outright.
  3. 03Any agent can actYour agent calls Twitter through the Arc0 SDK or MCP, and so can Claude, ChatGPT and Cursor. Every call lands on the audit log.
POLICY.TS
await arc0.policies.set('twitter', {
  read: 'allow',
  write: 'ask',        // create_list
  destructive: 'deny',  // delete_dm
})

# Claude Code: the same connection, one URL
$ claude mcp add --transport http arc0 \
    https://mcp.arc0.ai/u/u_8f2
04 · AUTH AND DATA

How Twitter connects.

Users sign in to Twitter on Arc0 Connect and approve the scopes you request. Build with Arc0’s Twitter OAuth app, or bring your own so the Twitter consent screen names you. Tokens refresh automatically, and you can export them whenever you want.

The same Twitter connection serves your agent over MCP and your own backend over REST and the proxy, so a user connects once. How Arc0 handles credentials →

AUTH
OAuth 2.0
CREDENTIALS
Per-tenant encrypted vault
MODEL SEES
Results only, never credentials
AUDIT LOG
Every call, on every plan
05 · WORKS WITH

Use Twitter from any agent.

Claude
ChatGPT
Cursor
Codex
VS Code
OpenAI Agents SDK
Claude Agent SDK
Vercel AI SDK
Mastra
LangGraph
07 · FAQ

Twitter and Arc0, answered.

Q01

Can I use Twitter with Claude, ChatGPT or Cursor?

Yes. Connect Twitter to Arc0 once, then add your Arc0 MCP URL to Claude, ChatGPT, Cursor, Claude Code or any other remote-MCP client. Each assistant only gets the Twitter actions you allow.

Q02

How do users connect Twitter?

Users sign in to Twitter on Arc0 Connect and approve the scopes you request. Build with Arc0’s Twitter OAuth app, or bring your own so the Twitter consent screen names you. Tokens refresh automatically, and you can export them whenever you want.

Q03

Which Twitter actions can my agent take?

79 in total: 33 read, 39 write and 7 destructive, such as “create a list”. Your policies decide which of them each agent may call.

Q04

Can I stop my agent from deleting things in Twitter?

Yes. Actions like “delete direct message” are graded destructive. Set destructive actions to deny, or to ask so the user approves each one, and blocked calls still show up on the audit log.

Q05

Can my own backend call Twitter too?

Yes. The same Twitter connection is available over REST and through the Arc0 proxy, so your product and your agent share one connection per user.

Get started

Plug Twitter into your agent.

Your users connect Twitter once, under your brand. Your agent gets 79 actions behind your policies, with every call on the record.

Free to build · MCP + REST · Audit log on every plan