twitterdown

v0.1.0
io.github.BestLemoon/twitterdown Checked 4 days ago Published 17 days ago

Resolve public X posts into video links and manage your TwitterDown Agent API account.

Resolve public X posts and manage a TwitterDown Agent API account from an MCP client. The server uses stdio and runs on Node.js 20 or later. After npm release, launch it with your MCP client or run the command directly to open the stdio transport. Add the server to claude_desktop_config.json and restart Claude Desktop. Keep the configuration private. To register without an existing key, omit TWITTERDOWN_API_KEY.

Summary extracted from the README.

TwitterDown MCP server

Resolve public X posts and manage a TwitterDown Agent API account from an MCP client. The server uses stdio and runs on Node.js 20 or later. After npm release, launch it with your MCP client or run the command directly to open the stdio transport.

npx -y @twitterdown/mcp-server

Claude Desktop

Add the server to claude_desktop_config.json and restart Claude Desktop.

{
  "mcpServers": {
    "twitterdown": {
      "command": "npx",
      "args": ["-y", "@twitterdown/mcp-server"],
      "env": {
        "TWITTERDOWN_API_KEY": "<your Agent API key>"
      }
    }
  }
}

Keep the configuration private. To register without an existing key, omit TWITTERDOWN_API_KEY.

VS Code

Add this to your VS Code MCP user configuration. VS Code prompts for a masked key and stores it for subsequent starts. To start without a key, omit both the env entry and the inputs block. VS Code MCP configuration reference

{
  "servers": {
    "twitterdown": {
      "type": "stdio",
      "command": "npx",
      "args": ["-y", "@twitterdown/mcp-server"],
      "env": {
        "TWITTERDOWN_API_KEY": "${input:twitterdown-api-key}"
      }
    }
  },
  "inputs": [
    {
      "id": "twitterdown-api-key",
      "type": "promptString",
      "description": "TwitterDown Agent API key",
      "password": true
    }
  ]
}

TWITTERDOWN_API_BASE defaults to https://twitterdown.com. Set it in the server's env for a trusted alternate API origin.

Tools

Tool Arguments Result
register_account None Completes proof of work and returns the account ID, API key and recovery token. The proof search is capped at 10 seconds.
get_claim_url None Returns a private claim URL and expiry.
parse_tweet url, optional idempotency_key Returns video URLs and metadata, or a pending request ID and status URL. An omitted key is generated as a UUID.
get_account None Returns account quota, wallet and pricing information.
get_request request_id Reads a pending or terminal request and any stored result.

Save registration credentials securely. MCP clients can retain tool output in their conversation history. Set the saved key in the client configuration and restart the server before calling authenticated tools. Share claim URLs privately.

For a pending parse, wait for the returned retry_after value when present, then call get_request using the response's data.request_id. Supply a stable idempotency key if you may need to replay a parse after an uncertain outcome. The Agent API guide covers the underlying REST contract, ownership, credential recovery, quota and billing.

Local development

From mcp-server/, run npm install and npm test. The SDK integration test starts the server over stdio and uses a loopback HTTP stub. Run node server.js directly from an MCP client for local development.