# TwitterViewer MCP Server for AI Agents

TwitterViewer MCP Server has three read-only tools for Claude, Cursor and Codex: convert X links to Markdown, read replies and check credits.

Page: https://twitterviewer.ai/twitterviewer-mcp-server

Claude, Cursor or Codex can open public posts on X and receive them as Markdown. Plus covers the connection, and each post uses one credit.

TwitterViewer AI is an independent service. It is not X's official API and is not affiliated with X Corp. It reads public posts only: it cannot post, like, follow, send messages or read private accounts.

## Connect

Server URL: https://twitterviewer.ai/mcp (Streamable HTTP). On first use, a sign-in page for your Plus account appears in the browser. A Bearer key skips that step.

### Claude Code

```
claude mcp add --transport http twitterviewer https://twitterviewer.ai/mcp
```

With an API key:

```
claude mcp add --transport http twitterviewer https://twitterviewer.ai/mcp \
  --header "Authorization: Bearer $TWITTERVIEWER_API_KEY"
```

### Cursor

```
{
  "mcpServers": {
    "twitterviewer": { "url": "https://twitterviewer.ai/mcp" }
  }
}
```

With an API key:

```
{
  "mcpServers": {
    "twitterviewer": {
      "url": "https://twitterviewer.ai/mcp",
      "headers": { "Authorization": "Bearer ${env:TWITTERVIEWER_API_KEY}" }
    }
  }
}
```

### Codex

```
[mcp_servers.twitterviewer]
url = "https://twitterviewer.ai/mcp"
```

With an API key:

```
[mcp_servers.twitterviewer]
url = "https://twitterviewer.ai/mcp"
bearer_token_env_var = "TWITTERVIEWER_API_KEY"
```

## Tools

| Tool | Arguments | What it does |
| --- | --- | --- |
| convert_x_url | url, scope, format, stats, max | Accepts a link and answers in Markdown, Obsidian, text or JSON. |
| get_x_replies | url, max | Fetches answers to a single post. |
| get_credits | none | Reports what is left to spend. |

## What is the TwitterViewer MCP Server for?

The TwitterViewer MCP Server lets a chat assistant open X posts while you talk to it. We host it for you. Its three tools convert links, fetch answers and report your balance, and none of them writes anything. Connect with a Plus login or key; X requires no application.

## How to add the TwitterViewer MCP Server

1. **Register the address** — In Claude Code, run `claude mcp add --transport http twitterviewer https://twitterviewer.ai/mcp`. Cursor takes the URL in mcp.json, Codex in a server block and Claude as a custom connector.
2. **Authorize access** — Complete the browser sign-in for your account on this site. Headless machines send an API key in the Authorization header instead.
3. **Give a task** — Paste a link and ask for a summary of the thread, recent posts from a handle or the reactions under an announcement. The tools start from a link or a handle, so keyword lookups are not part of the server.
4. **Check spending** — Tool results report credits used and left, and get_credits shows the balance on demand.

## Tools and arguments

- **convert_x_url**: url, scope, format, stats and max
- **get_x_replies**: url of a post, plus max from 1 to 100
- **get_credits**: No arguments and no charge
- **Output formats**: Conversion offers four styles, JSON among them; answers arrive as Markdown

## How it works

- **Hosted over HTTP** — Your client talks to one remote endpoint using Streamable HTTP, so there is no local server to run or update. Errors come back as tool results that the model can read and explain.
- **Cannot change anything** — All three tools are annotated as read-only. None can publish or follow, and the server never receives X credentials. Spending is bounded by your credit balance.
- **Shares account limits** — One balance pays for this server and the [TwitterViewer API](https://twitterviewer.ai/twitterviewer-api). Requests from connected clients count toward the 30 a minute that Plus allows. A post costs one credit, a quoted post adds one, and [Pricing](https://twitterviewer.ai/pricing) lists what each plan includes.

## Server limits

- See protected profiles, private messages or deleted posts
- Hand back PDF files, which come from the REST API
- Post, reply or like for the signed-in person

## FAQs

### Is a key required for MCP?

No, interactive clients can connect through a browser sign-in without a key, using a Plus account. A key is useful on servers, in CI and in clients that cannot open a browser, and each account holds two.

### Which scope should my agent use?

Agents should use post when one message is enough, thread for the author's full argument and conversation when reactions matter. Thread is the default. Smaller scopes return fewer posts and cost less. People can follow the same chain in the [Twitter Thread Reader](https://twitterviewer.ai/twitter-thread-reader).

### How can I stop an agent from spending too much?

Set a low max for profiles and reply lists, because both bill each result. Instruct the agent to reuse Markdown it already has. An identical call inside 10 minutes returns the earlier result for free, while a different link or limit is billed.

### Can I test the output before connecting?

Yes, paste a link into [X to Markdown](https://twitterviewer.ai/x-to-markdown) to see the kind of document convert_x_url returns. The [Twitter Viewer](https://twitterviewer.ai) tabs let you check that an account or post is public.

### Does X run this server?

No, the server is an independent TwitterViewer AI service with no affiliation to X Corp. The [API Docs](https://twitterviewer.ai/docs/api) cover its authentication and tool arguments.

