linuxdo-mcp
Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
| LINUXDO_SITE | No | Selects which Discourse forum this instance serves. Accepts `linuxdo` (the default) or `idcflare`. The site is resolved before any tool is described, so tool names, descriptions, and server instructions match the forum actually being read. | linuxdo |
Instructions
Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.
You read linux.do, a Discourse forum. Every call is anonymous: no account, no API key. The server keeps a Cloudflare clearance obtained by a real browser, so reads work without the caller doing anything special.
linux.do requires a login for full-text search, so there is no keyword search tool. Discovery runs through list_categories and list_tags (its query and min_count narrow a band of about 2200 tags), then browse_topics; its filter sort reorders by likes, views, or replies and narrows by state and tag. Pass a tag's name to browse_topics: a Chinese tag's upstream slug (31-tag) does not route.
Typical flow:
browse_topics (sort=latest) for what is new, sort=hot for today's score, sort=top for a longer window, sort=filter for order/status/tag combinations, or sort=category with order= to rank one category.
limit(default 50, max 50) trims the page; keep it at 50 while paging. A trimmed page reportstrimmedand withholdsnext_page, because the cursor cannot resume mid-page: raiselimitinstead of paging past it. Page by passing the previous page's next_page back as page, and stop when it is null. Pinned topics keep their slot regardless of order.get_topic(topic_id) for the first window of posts as text. Bodies are Discourse's own Markdown by default and each post carries its images. A post with an empty body and an
action_codeis a small action (the topic was pinned or closed), not missing text. To read further, pass next_post_number back as post_number; null means the last window. Windows overlap, so a few posts may repeat.get_post(topic_id, post_id) when only one post matters, or get_topic(topic_id, post_ids=[...]) for exact posts.
get_post_image(topic_id, post_id, index) when a picture itself has to be seen: it returns the file as an image block, one per call, with index taken from that post's images.
A post whose body hit max_post_chars reports truncated=true; read that post again with a larger cap rather than treating the cut text as the whole post.
get_user(username) for who wrote something; add include_summary=true for activity totals and their recent topics.
If a read fails with a Cloudflare challenge, the clearance expired: run
linuxdo-mcp doctor --refresh in a desktop session once.
Capabilities
Features and capabilities supported by this server
Protocol revision2025-11-25
| Capability | Details |
|---|---|
| tools | {
"listChanged": false
} |
| prompts | {
"listChanged": false
} |
| resources | {
"subscribe": false,
"listChanged": false
} |
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| browse_topicsA | List topics on linux.do by recency, rank, category, tag, or filter. Use this to discover topic ids; pass one to get_topic for the actual posts.
linux.do needs a login for full-text search, so this filter surface is the way in: To page, pass the previous page's |
| list_categoriesA | Return the forum's categories with ids and slugs. Call this first when a request names a Chinese category (开发调优): the slug cannot be derived from the display name. Cached for ten minutes. |
| list_tagsA | Return the tags Tags are the closest anonymous substitute for search here. The band holds about 2200 of them and upstream order is not by popularity, so this sorts by count and trims: This band is what the forum lists, not every routable tag: a tag absent here
can still work with browse_topics(tag=...), so treat a missing tag as
unknown, not nonexistent. Pass a tag's |
| get_postA | Read a single post as text. Prefer this over get_topic when the caller already knows the post id: it fetches one post instead of the topic's default window.
|
| get_post_imageA | Return one post image as an MCP image block, so it can be viewed directly. Read the post first: Only files on ldstatic.com are fetched, so nothing else a post links to is
ever requested. An original larger than |
| get_topicA | Read one topic with its posts as text. Returns the header plus one window of posts. To read the rest of a long topic, pass next_post_number back as post_number; it is null once the window reaches the last post. Windows overlap rather than skip, so a caller may see a few posts twice. post_ids and post_number are two ways to name the same window: ids are exact, a post number gets whichever window contains it. For a single known post, prefer get_post: it makes one request instead of a header plus a window. Each post carries |
| get_userA | Read one user's profile, optionally with their activity totals. Use this to judge who wrote a post; use get_topic for the posts themselves. Anonymous reads see public profiles only, and trust-level gated fields can be absent — an absent number means "not returned", never zero. |
| session_statusA | Report how this server currently reaches linux.do. Shows whether a Cloudflare clearance is loaded, its fingerprint and age, and whether a browser refresh can run in this process. When it cannot, |
Prompts
Interactive templates invoked by user choice
| Name | Description |
|---|---|
No prompts | |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
No resources | |
TDQS
Scored across 8 tools
The two read tools (get_topic and get_post) genuinely overlap in the sense that both return post text, but the descriptions explicitly resolve this by telling the agent to prefer get_post for a known post id and get_topic for a window. list_categories, list_tags, browse_topics, get_post_image, get_user, and session_status each target a distinct resource, so selection is unambiguous in practice.
Seven of eight tools follow a clean verb_noun snake_case pattern (list_categories, browse_topics, list_tags, get_post, get_post_image, get_topic, get_user). session_status breaks the pattern as a bare noun phrase, but it is the sole deviation and remains self-explanatory.
Eight tools is well within the sweet spot and each one earns its place: discovery (categories, tags, topics), reading (topic, post, image), identity (user), and diagnostics (session_status). There is no obvious redundancy or padding.
For a read-only forum client the surface is solid: navigation, topic windows with pagination, single-post fetch, inline images, and user profiles. The main gaps are full-text search (documented as an upstream login restriction with tag/filter workarounds) and any per-user topic/activity listing or write operations, which limit some workflows but do not create dead ends for reading.