TwitterTools MCP

v1.2.2
io.github.steley/twittertools-mcp Checked 4 days ago Published 2 months ago

Fetch public X posts and threads; count and split text with X's real rules.

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

get_tweet

Fetch one public X (Twitter) post by URL or ID: text, author, engagement counts, and media with direct CDN URLs (photos, or MP4 video variants sorted by quality). Use for a specific post the user links or cites — not for searching X, timelines, bookmarks, or DMs. Deleted, protected, or age-restricted posts are not available without an X login.

ParameterTypeDescription
url_or_id *stringPost URL (x.com or twitter.com), bare numeric ID, or text containing one

get_thread

Unroll a public X thread into its posts in order. For a single post, use get_tweet instead. Expensive upstream — call sparingly, and prefer pasting the thread's LAST post, which returns the whole chain. Results may be partial; the response says so when they are.

ParameterTypeDescription
url_or_id *stringPost URL (x.com or twitter.com), bare numeric ID, or text containing one

count_chars

Count text against X's real 280-character limit: CJK and emoji weigh 2, any link weighs exactly 23. Same engine as twittertools.com/tweet-character-counter/.

ParameterTypeDescription
text *stringThe text to measure

split_thread

Split long text into numbered posts (1/, 2/, …) that each fit X's 280 weighted-character limit, preferring sentence boundaries and never breaking a URL. Same engine as twittertools.com/tweet-splitter/.

ParameterTypeDescription
text *stringThe text to split
numberingbooleanPrefix each post with 'n/ ' (default true)

parse_tweet_url

Parse a post URL, bare ID, or free text containing an ID: returns the numeric ID, author handle, posting timestamp (decoded from the Snowflake ID), and canonical permalink. Offline.

ParameterTypeDescription
input *stringURL, ID, or text containing either