Dev ships MCP-X: a 42-tool Go server for the X API, designed around pay-per-use survival
GoldBroccoli7073 · reddit · 2026-09-10
Tired of Twitter's engagement obligations, an engineer handed the X API to his coding model and built a full-surface MCP server: 42 tools covering posts, users, lists and media, 12k lines of Go with tests, stdio and HTTP transports (repo).
The design is mostly about money, since X now bills per use and reads are billed per resource returned (maxresults 100 costs 20x maxresults 5): every read tool instructs the model to request the smallest result count, a count tool sizes topics before searching, lookups are batched, and pagination is deliberately manual. Failing loudly: the server refuses to boot on bad keys and catches the read-only token trap (fix: regenerate the access token, not the API key); error messages are written for models and mark non-retryable errors.
It's explicitly not an engagement farm — posts publish for real, deletes are irreversible. v0.1.1 caveats: no DMs, no streaming, 7-day search limit, one account per process, and a funded developer account is required.
Related event: Developer builds mcp-x: 42 X API tools designed to stop agents overspending(2 posts)→
More from coding & agent
- Dev compares Astra vs ChatGPT coding style: 'a programmer from 1980' vs clean minimal — cnakazawa · 2026-09-10
- Diffing two agent runs yields 40 real differences — which 2 matter? — Sensitive-Parsnip-12 · 2026-09-10
- SkillsGate: open-source visual manager to install AI agent skills across 20+ tools — tom_doerr · 2026-09-10
- AI coded 300 tasks, claimed all done — 11 of first 28 were broken — InspectorSorry85 · 2026-09-10
- DeepSeek open-sources deepseek-recipe to ease deploying V4.1 Flash and future models — teortaxesTex · 2026-09-10
- Rysy: open-source agent that profiles people before you email them — Acceptable-Swing1619 · 2026-09-10