Repository navigation
Releases
Releases · nsozturk/tweetkit-x
v0.5.0 — images in MCP posts and threads
tweetkit-x is a free, open-source Python library, CLI and MCP server that posts, deletes and reads on X (Twitter) with your own logged-in web session, including images and threads, with no paid API.
Highlights
- Images from MCP.
post_tweettakesimages(up to 4 local files: PNG, JPEG, WebP, GIF or MP4) with optionalalt_texts. Before this release the MCP tools could attach only one image, even though the Python API supported four. - Threads with images.
post_threaditems can be plain text or{"text": "...", "images": [...], "alt_texts": [...]}, so every tweet of a thread carries its own media. - No half threads. Every tweet of a thread (text and files) is checked before the first one is posted. A missing file or more than 4 media returns an error and nothing is posted.
post_thread(tweets=[
{"text": "1/ I built a thing", "images": ["/abs/path/banner.png"], "alt_texts": ["Project banner"]},
"2/ how it works",
{"text": "3/ before and after", "images": ["/abs/path/a.png", "/abs/path/b.png"]}
])
Docs
- Documentation site: https://nsozturk.github.io/tweetkit-x/
AGENTS.mdandGLOBAL_AGENT_RULE.mdfor coding agents,llms.txt,CITATION.cff- README lists all 48 MCP tools, with an FAQ and an alternatives section
Install
| File | For |
|---|---|
tweetkit_x-0.5.0-py3-none-any.whl |
pip install tweetkit_x-0.5.0-py3-none-any.whl |
tweetkit_x-0.5.0.tar.gz |
Source distribution |
SHA256SUMS.txt |
Checksums of both files |
Or from source: pip install git+https://github.com/nsozturk/tweetkit-x.git@v0.5.0. PyPI still has 0.3.0.
Upgrade notes
- Existing calls keep working:
post_tweet(text, image_path=...)andpost_thread(["...", "..."])are unchanged. post_threadnow refuses the whole thread when a file is missing, instead of posting the tweets before it.
Automating your X web session is against X's Terms of Service; account risk is yours. See the README disclaimer.