Deleted Tweets Viewer MCP
README.md
# Deleted Tweets Viewer MCP
[](LICENSE)
[](https://nodejs.org/)
Zero-dependency stdio-to-HTTP bridge for the public [Deleted Tweets Viewer](https://deletedtweetsviewer.com/) MCP server.
- Website: [https://deletedtweetsviewer.com/](https://deletedtweetsviewer.com/)
- MCP Setup Guide: [https://deletedtweetsviewer.com/mcp-guide](https://deletedtweetsviewer.com/mcp-guide)
- Remote MCP Endpoint: `https://deletedtweetsviewer.com/mcp`
Check whether a public X (Twitter) post is still accessible and count publicly archived tweets from any MCP-compatible AI client — anonymous, read-only, no API key required.
## Quick Start
Choose either direct Streamable HTTP (recommended for clients that support remote MCP servers) or the local `npx` stdio bridge.
### Option 1: Direct Remote HTTP (Streamable HTTP)
Works natively with Claude Code, Cursor, VS Code, and any Streamable HTTP MCP client:
```json
{
"mcpServers": {
"deletedtweetsviewer": {
"type": "http",
"url": "https://deletedtweetsviewer.com/mcp"
}
}
}
```
Or with Claude Code CLI:
```bash
claude mcp add --transport http deletedtweetsviewer https://deletedtweetsviewer.com/mcp
```
### Option 2: Local `stdio` via `npx`
For Claude Desktop, Cline, or stdio-only MCP clients (requires Node.js 18+):
```json
{
"mcpServers": {
"deletedtweetsviewer": {
"command": "npx",
"args": ["-y", "deletedtweetsviewer-mcp"]
}
}
}
```
## Available Tools
All tools are anonymous and read-only (`readOnlyHint: true`, `destructiveHint: false`, `idempotentHint: true`).
### `check_tweet_status`
Checks whether a public tweet is still accessible on X right now via the public oEmbed endpoint.
- **Inputs**:
- `tweet` (string, required): An `x.com` / `twitter.com` status URL or a numeric tweet ID (15–19 digits).
- `handle` (string, optional): Account handle hint when passing a bare numeric ID.
- **Returns**: `live`, `deleted`, or `unknown`.
- **Accuracy note**: `deleted` strictly means the post was not accessible on X at check time — it may have been deleted by the author, set to protected, or belong to a suspended account. It is not a definitive proof of deletion.
### `count_archived_tweets`
Counts deduplicated **archived tweets** captured in public web archives for a public X account within a tweet-posting time window.
- **Inputs**:
- `handle` (string, required): Public X username (with or without leading `@`).
- `from` (string, optional): Window start date (ISO date).
- `to` (string, optional): Window end date (ISO date). Default window is the last month (up to one year max).
- **Returns**: Enumerated deduplicated count of archived tweets, the effective date window, and the `data as of` snapshot timestamp.
- **Snapshot note**: Results may be served from a cached snapshot (up to 7 days old) and are labeled with the exact snapshot timestamp. Very large accounts may exceed the per-call tool time budget and include a link to continue browsing on [deletedtweetsviewer.com](https://deletedtweetsviewer.com/).
## Security & Scope
- **Zero runtime dependencies**: Pure native Node.js 18+ ESM (`node:fs`, `node:readline`, built-in `fetch` and `AbortSignal.timeout`). No third-party packages are installed when running `npx -y deletedtweetsviewer-mcp`.
- **Public archives only**: Works exclusively with publicly accessible endpoints and public web archives. Never accesses private/protected accounts, authenticated sessions, or unarchived content.
- **Fair-use rate limits**: The public upstream endpoint enforces anonymous fair-use guardrails (such as per-IP pacing of 6 seconds and global request budgets). HTTP `429` / `503` responses and network timeouts are translated into clean JSON-RPC 2.0 error responses with retry guidance rather than corrupting `stdout`.
## CLI Options & Environment Variables
```bash
npx -y deletedtweetsviewer-mcp --version
npx -y deletedtweetsviewer-mcp --help
```
| Variable | Default | Description |
| --- | --- | --- |
| `DELETEDTWEETSVIEWER_MCP_URL` | `https://deletedtweetsviewer.com/mcp` | Upstream Streamable HTTP MCP endpoint |
| `DELETEDTWEETSVIEWER_MCP_TIMEOUT_MS` | `30000` | Per-request timeout in milliseconds |
## Development
```bash
npm test
```
Runs the process-level end-to-end stdio-to-HTTP test suite against a local mock HTTP server using Node's built-in test runner (`node --test`).
## License
[MIT](LICENSE)
This server cannot be deployed
Maintenance
ActivityMaintained
ResponsivenessNo recent community issues