Tweetkit X
Post, delete & read on X (Twitter) using your own logged-in web session — no paid API.
Connector by nsozturk · GitHub account verified by the MCP Registry
Install
Works with Claude Code, Codex, VS Code, Cursor, Windsurf, Claude Desktop. Read the repository before you give any tool access to your data.
npx agentmarket install connector/nsozturk-tweetkit-x
Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.
Get the weekly diff
The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.
About
Use cases: social-media
Reviews
Write a reviewNo reviews yet. Installed it? Reviews come from verified installers only. How reviews work
Permissions
What this server can do and what it asks for, from its tool list, install config and code. Checked Oct 25, 2026.
- Tools
- 17 read · 18 write · 5 delete
- Secrets
- 2 (API keys, tokens or passwords)
- Install scripts
- None found
- Runs as
- Python package
Tools by what they do 40
Read from the source code; the running server may list different tools.
Read 17 · Look things up without changing anything.
auth_statusget_bookmarksget_followersget_followingget_home_timelineget_likersget_my_tweetsget_notificationsget_repliesget_retweetersget_tweetget_user_likes
Show 5 more tools
get_user_profileget_user_tweetsquote_tweetsearch_my_tweetssearch_x
Write 18 · Create, change, send or run things.
block_userbookmark_tweetfollow_userimport_cookie_from_filelike_tweetmute_userpin_tweetpost_notepost_threadpost_tweetretweetschedule_tweet
Show 6 more tools
set_session_cookieunblock_userunfollow_userunmute_userunpin_tweetunschedule_tweet
Delete 5 · Delete, drop, revoke or wipe things.
delete_tweetdelete_tweetsunbookmark_tweetunlike_tweetunretweet
Secrets and settings it asks for
Secrets: values you paste in that let it act as you.
TWEETKIT_COOKIETWEETKIT_COOKIE_KEYCHAIN
Network hosts it talks to 2
chromewebstore.google.com· found in codegithub.com· found in code
Files it touches
- Your home directory (~)
~/.config/tweetkit- Any path the agent passes to its tools
Tools (40)
Read from the source code; the running server may differ. Descriptions are the server’s own words; hidden characters are shown as [U+…].
auth_statusCheck whether tweetkit has a valid X session cookie loaded. Returns {authenticated, user_id, source_hint}. Call this first; if it is not authenticated, guide the user through set_session_cookie / import_cookie_from_file.
block_userBlock @username. Confirm first.
bookmark_tweetBookmark a tweet (private — invisible to others).
delete_tweetDelete one of the authenticated user's tweets by id. Irreversible — confirm first.
delete_tweetsDelete several tweets by id. Irreversible — confirm the exact list with the user first.
follow_userFollow @username. (Reversible with unfollow_user.)
get_bookmarksYour bookmarked tweets.
get_followersA user's followers.
get_followingAccounts a user follows.
get_home_timelineYour home feed. following=True → 'Following' (chronological); else 'For You'.
get_likersUsers who liked a tweet.
get_my_tweetsList the authenticated user's own recent tweets (newest first).
get_notificationsYour notifications timeline (mentions / engagement).
get_repliesFetch a tweet's conversation (its replies).
get_retweetersUsers who retweeted a tweet.
Show 25 more tools
get_tweetFetch a single tweet by id (text, author, counts, url).
get_user_likesTweets a user has liked.
get_user_profileA user's full profile: name, bio, follower/following/tweet counts, verified, created_at.
get_user_tweetsList a given @username's recent tweets (newest first).
import_cookie_from_fileSet the X session cookie from a file on disk: HAR, storage-dump .zip, or cookie JSON. Accepts: • a .har — F12 → check "Preserve log" → right-click a request → "Save all as HAR". (If Chrome scrubbed sensitive data, auth_token will be missing; fall back to set_session_cookie with a hand-copied header.) • a .zip — an export from the `storagedump` Chrome extension (https://chromewebstore.google.com/detail/storagedump/kihoghfekemdccfnpjefmggehpgnjnab), which can read the HttpOnly auth_token; contains cookies.json. • a .json — a Cookie-Editor / EditThisCookie export. Return…
like_tweetLike a tweet.
mute_userMute @username (silent — they aren't notified).
pin_tweetPin one of your tweets to your profile.
post_notePost a long-form (note) tweet — beyond the 280-char limit. Confirm the text first.
post_threadPost a thread: a list of tweet texts, each auto-replying to the previous one. Returns one {ok,id,url} per tweet. Stops early if a tweet fails.
post_tweetPost a tweet. Optionally attach one image (local path) and/or reply to a tweet id. Returns {ok, id, url}. This publishes to the user's real, public account — confirm the wording with the user first.
quote_tweetQuote-tweet an existing tweet (embed it with your own commentary). Optional image.
retweetRepost (retweet) a tweet.
schedule_tweetSchedule a tweet for a future unix timestamp (seconds since epoch).
search_my_tweetsFind the authenticated user's own tweets matching `query`. Local filter over your timeline (X's search API is not used). Set regex=True to treat `query` as a case-insensitive regular expression — handy for cleaning up, e.g. search_my_tweets("xmr|monero", regex=True).
search_xSearch ALL of X — the real search engine, not a local filter. Supports X search operators: `from:user`, `to:user`, `#hashtag`, `min_faves:100`, `filter:media`, `since:2026-01-01`, etc. Set latest=True for newest-first (default is Top). Returns tweets from across X.
set_session_cookieSet the X session cookie from a pasted `Cookie:` header — the easiest setup. HOW THE USER GETS IT (tell them this): 1. Open x.com while logged in. 2. Press F12 → the Network tab. 3. Click any request to x.com (e.g. "HomeTimeline"). 4. Under "Request Headers", find the `cookie:` line and copy its ENTIRE value. 5. Paste that whole string as `cookie_header`. The string must contain auth_token (the HttpOnly session token) and ct0 (the CSRF token). tweetkit keeps only the cookies it needs, persists them, and activates the session. The raw value is never echoed back.
unblock_userUnblock @username.
unbookmark_tweetRemove a bookmark.
unfollow_userUnfollow @username.
unlike_tweetRemove a like from a tweet.
unmute_userUnmute @username.
unpin_tweetUnpin your pinned tweet.
unretweetUndo a repost. Pass the id of the ORIGINAL tweet that was retweeted.
unschedule_tweetCancel a previously scheduled tweet.
Compare and alternatives
Featured in
Signals
- Stars
- 15
- Forks
- 5
- Open issues
- 0
- Weekly downloads
- 446
- Last commit
- Sep 30, 2026 (28 days ago)
- Last release
- Jul 7, 2026 (3 months ago)
- Last package publish
- Jul 7, 2026 (3 months ago)
From GitHub (fetched Oct 24, 2026) and the package registry.
Details
- Registry name
io.github.nsozturk/tweetkit-x- Version
- 0.3.0
- Auth
- API key
- Packages
- pypi tweetkit-x
- License
- MIT
- Repository
- github.com/nsozturk/tweetkit-x
- First seen
- Oct 24, 2026
- Last checked
- Oct 24, 2026
Cite this page
Tweetkit X MCP server. Agent Mart. https://agentmart.dev/connectors/nsozturk-tweetkit-x (last updated 2026-10-24)