Skip to main content
Glama
linuxdo-mcp
by Xero-Team

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
LINUXDO_SITENoSelects 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:

  1. 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 reports trimmed and withholds next_page, because the cursor cannot resume mid-page: raise limit instead 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.

  2. 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_code is 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.

  3. get_post(topic_id, post_id) when only one post matters, or get_topic(topic_id, post_ids=[...]) for exact posts.

  4. 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.

  5. 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.

  6. 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

CapabilityDetails
tools
{
  "listChanged": false
}
prompts
{
  "listChanged": false
}
resources
{
  "subscribe": false,
  "listChanged": false
}

Tools

Functions exposed to the LLM to take actions

NameDescription
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: filter reorders by likes, views, or replies and narrows by state and tag, with no keyword matching. hot is Discourse's daily score, not velocity, and is the same call as top with period=daily.

To page, pass the previous page's next_page back as page; it is null on the last page. A page holds per_page topics (30, or 50 for top/hot), so leave limit at 50 while paging: a smaller limit trims the reply, reports how many it withheld in trimmed, and withholds next_page, because a page cursor cannot resume mid-page. Raise limit to read the withheld tail.

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.json publishes, with topic counts.

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: total is what the forum sent, matched is what survived query and min_count, and tags is the first limit of that.

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 name to browse_topics. Its slug is for display: an ASCII tag routes by either, but a Chinese tag's slug (31-tag) returns 404.

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.

body holds the author's Markdown, images the pictures the post embeds, and truncated says whether max_post_chars cut it.

get_post_imageA

Return one post image as an MCP image block, so it can be viewed directly.

Read the post first: images there lists what this tool can fetch, in document order, emoji and avatars excluded. One image per call keeps a long topic from arriving as megabytes; ask again with another index for the rest.

Only files on ldstatic.com are fetched, so nothing else a post links to is ever requested. An original larger than max_bytes comes back as its downscaled render, and the text line says so.

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 images in document order, and truncated when its body hit max_post_chars.

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, browser_unavailable_reason says why: no Chromium, no Playwright, or no DISPLAY — an MCP host may have stripped the display from the child environment, in which case run 'linuxdo-mcp doctor --refresh' from a desktop shell. It never returns the cookie.

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription

No resources

TDQS

A4.3/5.0

Scored across 8 tools

Disambiguation4/5

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.

Naming Consistency4/5

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.

Tool Count5/5

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.

Completeness4/5

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.

Maintenance

ActivityMaintained
ResponsivenessNo recent community issues