> Documentation index: https://metorial.com/llms.txt. Every page is available as Markdown by adding .md to its URL.

# Set up Twitterx in Metorial for Claude, ChatGPT and Cursor
URL: https://metorial.com/docs/integrations/twitterx
Last updated: 2026-11-24

Share Twitterx with your team in Claude, ChatGPT and Cursor through Metorial: 15 tools (5 read-only).

---

To give your team Twitterx in Claude, ChatGPT, Cursor and other AI clients, an admin shares the Twitterx integration in a Metorial portal. Agents can create, read, delete, and search posts (tweets) on Twitter/X. The integration has 15 tools, 5 read-only, 9 write and 1 destructive.

**What you will learn**

- How an admin shares Twitterx in a portal and how each person connects
- How to keep the 5 read-only tools and reject the other 10

**Before you start**

- A [portal](https://metorial.com/docs/platform/workforce/portals) with at least one access group
- For the CLI steps: the [Metorial CLI](https://metorial.com/docs/platform/cli), signed in to your portal

## Sign-in methods

Available: **Bearer Token**, **OAuth 2.0**.

The portal and `metorial setup` use **Bearer Token** unless someone picks another method.

## Admin: share Twitterx in a portal

### In the dashboard

1. **Open Shared Resources**

   Open **Workforce**, choose the portal, and select **Shared Resources** under **Access**.

2. **Share a new integration**

   Select **Share a Resource**, then **New Integration**, and choose Twitterx. Under **Auth Method**, keep **Bearer Token** or pick another.

3. **Limit the tools**

   Under **Tool Filters**, set the write and destructive groups to **Reject** if agents should only read from Twitterx.

4. **Choose who gets it**

   Add the access groups that should see Twitterx. When a person asks for access from the portal, the request appears under **Access Requests**.

### With the CLI

The CLI cannot create the per-user Twitterx integration. Once it exists, check which groups have it:

```bash
metorial-admin portals access list <portal-id> --type provider_template --search twitterx
```

## Employee: connect Twitterx

### In the portal

1. **Open Twitterx in the catalog**

   Sign in to your portal and open Twitterx. The status reads **Available**.

2. **Authenticate**

   Under **Quick setup**, select **Authenticate**.

3. **Confirm**

   The status changes to **Configured**. If it later reads **Needs reconnect**, select **Reconnect** and sign in again.

### With the CLI

```bash
metorial catalog search twitterx
metorial setup <catalog-item-id>
```

`catalog search` prints the catalog item ID. `metorial setup` uses **Bearer Token**. To connect with **OAuth 2.0** instead, find its ID with `metorial catalog get <catalog-item-id>` and add `--auth-method <auth-method-id>`.

### Add it to your AI client

`metorial install` adds your Twitterx connection to a local MCP client such as Claude Code, Cursor or Codex. `metorial list` prints the integration ID and `metorial client list` the client identifiers.

```bash
metorial list twitterx
metorial client list
metorial install <client-identifier> <integration-id>
```

For a client that takes a server URL, such as ChatGPT, `metorial install custom <integration-id>` creates an installation token and shows the endpoint details.

## Make it read-only

Open the integration's **Tool Filters** and set the write and destructive groups to **Reject**. Agents keep the 5 read-only tools, such as `get_post` and `get_user`, and lose the 9 write tools, such as `create_post` or `manage_like`, and the destructive tool `delete_post`.

Employees see the result on the integration's page in the portal under **Tool access**. For the full walkthrough, see [Tool permissions](https://metorial.com/docs/platform/guides/tool-permissions).

## Check it worked

```bash
metorial list twitterx
metorial tools <integration-id>
```

`metorial tools` lists the 15 tools, minus any you rejected.

To see every input a tool takes, run `metorial schema <integration-id> <tool-key>`.

## Tools

### Read-only tools (5)

- `get_user`: Look up Twitter/X user profiles.
- `search_posts`: Search for recent posts on Twitter/X using a query.
- `get_timeline`: Retrieve a user's timeline, mentions, or home timeline.
- `get_direct_messages`: Retrieve direct message events.
- `get_post`: Retrieve one or more posts by their IDs.

### Write tools (9)

- `manage_bookmark`: Add, remove, or list bookmarked posts for the authenticated user.
- `manage_block_mute`: Block, unblock, mute, or unmute a user, or list blocked/muted users.
- `create_post`: Create a new post (tweet) on Twitter/X.
- `manage_list`: Create, update, delete Twitter/X lists, manage list members, or retrieve list details, members, and posts.
- `manage_follow`: Follow or unfollow a user, or retrieve a user's followers or following list.
- `manage_like`: Like or unlike a post, retrieve a user's liked posts, or get users who liked a specific post.
- `manage_retweet`: Retweet or undo a retweet of a post, or retrieve users who retweeted a specific post.
- `manage_reply_visibility`: Hide or unhide a reply to one of your posts.
- `send_direct_message`: Send a direct message to a user or into an existing conversation.

### Destructive tools (1)

- `delete_post`: Delete an existing post (tweet) on Twitter/X.

## Next steps

- [Claude Code](https://metorial.com/docs/platform/clients/claude-code), [Cursor](https://metorial.com/docs/platform/clients/cursor), [Codex](https://metorial.com/docs/platform/clients/codex) and [ChatGPT](https://metorial.com/docs/platform/clients/chatgpt): connect each client to your portal and use Twitterx there
- [Tool permissions](https://metorial.com/docs/platform/guides/tool-permissions): tool filters and what employees see
- [Twitterx on metorial.com](https://metorial.com/integrations/twitterx): the integration overview