# MCP Twitter X

> MCP for Twitter(X)

- **Type:** MCP server
- **Install:** `agentstack add mcp-aashish-jha-11-mcp-twitter-x`
- **Verified:** Yes — security-reviewed for prompt injection and unsafe behavior
- **Seller:** [Aashish-Jha-11](https://agentstack.voostack.com/s/aashish-jha-11)
- **Installs:** 0
- **Category:** [Integrations](https://agentstack.voostack.com/c/integrations)
- **Latest version:** 0.1.0
- **License:** MIT
- **Upstream author:** [Aashish-Jha-11](https://github.com/Aashish-Jha-11)
- **Source:** https://github.com/Aashish-Jha-11/MCP-Twitter-X-

## Install

```sh
agentstack add mcp-aashish-jha-11-mcp-twitter-x
```

Requires the [AgentStack CLI](https://agentstack.voostack.com/docs/cli). Works with Claude Code, Cursor, and any MCP-compatible agent.

## About

# MCP Twitter X

MCP Twitter X is a small Model Context Protocol server for posting to X/Twitter
with the `twitter-api-v2` client. It exposes an SSE transport so an MCP client can
connect to the server and call the included tools.

## Tools

| Tool | Purpose |
| --- | --- |
| `addTwoNumbers` | Example tool that adds 2 numbers. |
| `createPost` | Posts a status update through configured X/Twitter API credentials. |

## Setup

Install the server dependencies:

```bash
cd server
npm install
```

Create `server/.env` with your X/Twitter app credentials:

```dotenv
TWITTER_API_KEY=replace-me
TWITTER_API_SECRET=replace-me
TWITTER_ACCESS_TOKEN=replace-me
TWITTER_ACCESS_TOKEN_SECRET=replace-me
```

Start the MCP server:

```bash
npm start
```

The server listens on `http://localhost:3001`, with:

- SSE endpoint: `http://localhost:3001/sse`
- Message endpoint: `http://localhost:3001/messages`

## Client Notes

Point any MCP client that supports SSE transports at the `/sse` endpoint. Keep
the `.env` file local, do not paste credentials into prompts, and review every
`createPost` call before allowing the server to publish.

## OpenClaw Companion

If an OpenClaw workflow needs account-scoped public X/Twitter context before it
calls this MCP server, TweetClaw can provide a separate reviewed source step:

```bash
openclaw plugins install npm:@xquik/tweetclaw
```

Use that step for bounded searches, tweet or reply lookup, follower exports,
media context, monitor evidence, webhook events, and giveaway draw inputs. Keep
posting through this MCP server's configured X/Twitter API credentials unless
you deliberately move a workflow to another approved publishing tool.

## Source & license

This open-source MCP server is cataloged on AgentStack and links to its original source — we do not rehost the code.

- **Author:** [Aashish-Jha-11](https://github.com/Aashish-Jha-11)
- **Source:** [Aashish-Jha-11/MCP-Twitter-X-](https://github.com/Aashish-Jha-11/MCP-Twitter-X-)
- **License:** MIT

Install and usage instructions live in the source repository linked above.

## Pricing

- **Free** — Free

## Security capabilities

Automated source analysis of v0.1.0 — what this tool can access:

- **Network access:** no
- **Filesystem access:** no
- **Shell / process execution:** no
- **Environment & secrets:** yes
- **Dynamic code execution:** no

*"Yes" means the capability is present in the source — more access means more to trust, not that it is unsafe.*


## Versions

- **0.1.0** — security scan: passed — Imported from the upstream source.

## Links

- Listing page: https://agentstack.voostack.com/l/mcp-aashish-jha-11-mcp-twitter-x
- Seller: https://agentstack.voostack.com/s/aashish-jha-11
- Browse the marketplace: https://agentstack.voostack.com/browse

---
Listed on AgentStack — the marketplace for AI agent skills and MCP servers. Every listing is security-reviewed. Creators keep 70%.
