Skip to main content
Glama

moxygen

A simple MCP that allows AI to read Doxygen XML docs.

Setup

python -m venv venv
venv/bin/pip install -e '.[dev]'    # installs mcp>=2.3,<3 (+ pytest)
venv/bin/pytest     # tests run against tests/fixtures/xml

Related MCP server: DoxygenMcpAccess

Usage

Generate Doxygen with GENERATE_XML = YES, then register the server in the project that owns the docs (.mcp.json at its root):

{
  "mcpServers": {
    "moxygen": {
      "command": "/path/to/moxygen/venv/bin/python",
      "args": ["/path/to/moxygen/main.py", "--xml-dir", "build/docs/xml"]
    }
  }
}

Or: claude mcp add moxygen -- /path/to/moxygen/venv/bin/python /path/to/moxygen/main.py

The XML directory is resolved as --xml-dir, then $MOXYGEN_XML_DIR, then ./docs/xml in the directory the server is launched from. Relative paths are relative to that directory. Changes to index.xml are picked up without a restart.

Tools

  • get_compounds

  • extract_class

  • extract_struct

  • extract_namespace

  • extract_file,

  • extract_dir

  • extract_page

Each one takes a refid or a name.

Available Tools

7 tools
extract_classC

Extract a Doxygen class (by refid or qualified name).

Inputs: ref (required).

extract_dirB

Extract a Doxygen directory (by refid or path such as 'src/db/til').

Inputs: ref (required).

extract_fileB

Extract a Doxygen file (by refid or file name). Source listing is omitted.

Inputs: ref (required).

extract_namespaceC

Extract a Doxygen namespace (by refid or qualified name).

Inputs: ref (required).

extract_pageB

Extract a Doxygen page (by refid or name, e.g. 'index', 'todo').

Inputs: ref (required).

extract_structC

Extract a Doxygen struct (by refid or qualified name).

Inputs: ref (required).

get_compoundsA

List Doxygen compounds as {"compounds": [{refid, kind, name}]}, optionally filtered by kind. Errors are returned as {"error": ...}.

Inputs: kind.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    A3.5/5.0

    Scored across 7 tools

    Disambiguation4/5

    Each tool targets a distinct Doxygen compound kind (class, struct, namespace, file, dir, page), so selection is largely unambiguous. The only mild overlap is extract_class vs extract_struct, since both accept refid or qualified name and are structurally similar compounds, but the kind distinction is clear enough.

    Naming Consistency5/5

    All extraction tools follow the exact extract_<noun> snake_case pattern, and get_compounds uses a conventional list-style verb for a listing operation. The convention is predictable and readable throughout.

    Tool Count5/5

    Seven tools is well-scoped: one listing tool plus one extractor per supported compound kind. Each tool earns its place with no redundant entries.

    Completeness4/5

    The surface covers the major Doxygen entity kinds plus discovery via get_compounds, forming a usable browse-and-extract workflow. Minor gaps exist — no search tool by name, and no dedicated extraction for groups, examples, or individual member/function lookups, though these may be reachable through the compound extractors.

    Related MCP Connectors

    Related MCP Servers