Skip to main content
Glama

MD3 Docs MCP

npm version

Live Material Design 3 documentation for MCP clients.

md3-docs-mcp is a stdio Model Context Protocol server that gives Codex, ChatGPT, and other MCP clients concise access to the official English Foundations, Styles, and Components documentation at m3.material.io. It reads the live site; it does not bundle a documentation snapshot, translate content, call another model, or use unofficial sources.

Tools

Tool

Use it for

browse_md3_docs

Browse the official directory by category or canonical path prefix.

search_md3_docs

Search the site in natural language and get clean, ranked results.

read_md3_doc

Read one document or section as semantic Markdown, with heading focus and cursor pagination.

get_md3_context

Gather several cited sources for implementation, review, or research work.

browse_md3_docs and search_md3_docs return canonical paths (prefix them with https://m3.material.io/); read_md3_doc and get_md3_context return full source URLs.

Related MCP server: Material UI MCP Server

Quick start

Add the server to your MCP configuration:

{
  "mcpServers": {
    "MD3-Docs": {
      "command": "npx",
      "args": ["-y", "md3-docs-mcp@latest"]
    }
  }
}

Alternatively, install it globally and use md3-docs-mcp as the command:

npm install --global md3-docs-mcp

The server communicates only over stdio. Protocol messages go to stdout and diagnostics to stderr.

Requirements

  • Node.js 20 or later

  • Network access to https://m3.material.io

Behavior

  • Reads the live site with a thirty-minute in-process cache keyed by the Carbon content version, so a content revision invalidates entries on its own; concurrent requests share one upstream operation.

  • Warms the directory at startup (MD3_WARMUP=0 disables it) so the first browse or search does not pay for the site index, main bundle, and sitemap.

  • Returns line-oriented text (one entry per line, tab-separated) instead of pretty-printed JSON, keeps one URL per source instead of repeating it under every excerpt, and sends the document outline on the first page of a paginated read (or again on request, through includeOutline).

  • Context gathering reads only the documents it cites, topping up when a candidate fails.

  • Requests time out after ten seconds and retry transient failures once, honoring Retry-After up to ten seconds.

  • Pagination breaks only between sections, content blocks, paragraphs, tables, and complete code fences, so rendered Markdown stays intact.

  • Paths are restricted to clean official URLs under foundations, styles, and components.

  • Errors are stable JSON objects with a code, message, and retryable flag.

  • No persistent cache is written.

The Material site uses unpublished structured endpoints. If their schema changes, tools return UPSTREAM_SCHEMA; the opt-in live test diagnoses compatibility.

Development

git clone https://github.com/ChouChiu/MD3-Docs-MCP.git
cd MD3-Docs-MCP
bun install --frozen-lockfile
bun run check
bun run test
bun run test:live
bun run build

The source is feature-driven: each feature owns its tool registration, service, and supporting modules, while the live-site client and shared capabilities stay outside the features. Tests live in src/test/; published packages contain compiled JavaScript in dist/ and do not install TypeScript or tsx.

Live tests contact m3.material.io only when MD3_LIVE_TESTS=1.

License

The server source is available under the MIT License. Material Design documentation, media, trademarks, and remotely fetched content remain the property of their respective owners and are not covered by this repository's license. All returned evidence retains its official source URL.

Available Tools

3 tools
list_md3_docsList Material Design 3 documentationA
Read-only

List live Material Design 3 Foundations, Styles, and Components documents.

Inputs: limit, cursor, prefix, category. Returns: object

read_md3_docRead Material Design 3 documentationA
Read-only

Read a live Material Design 3 document as English Markdown, with section selection and cursor pagination.

Inputs: path (required), cursor, section, maxCharacters. Returns: object

search_md3_docsSearch Material Design 3 documentationB
Read-only

Search the live Material Design 3 site, restricted to Foundations, Styles, and Components.

Inputs: query (required), limit, cursor, category. Returns: object

Tool Schema Changelog

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

Loading tool schema changelog…

    TDQS

    A3.9/5.0

    Scored across 3 tools

    Disambiguation5/5

    Each tool has a clear, distinct purpose: listing available documents, searching for content, and reading a specific document. There is no overlap or ambiguity between them.

    Naming Consistency5/5

    All tools follow a consistent verb_md3_doc pattern with snake_case, using 'list', 'search', and 'read' as clear action prefixes.

    Tool Count5/5

    Three tools is a perfect fit for a documentation-focused server: discover (list), find (search), and retrieve (read). Not too few, not too many.

    Completeness4/5

    The set covers the core workflow of discovering, searching, and reading docs. A minor gap might be the absence of a direct document listing by category, but list_md3_docs already returns all docs, and search can filter.

    Maintenance

    ActivityNo data
    ResponsivenessOutdated data

    Related MCP Connectors

    Related MCP Servers

    • F
      license
      B
      quality
      D
      maintenance
      Provides real-time access to Material-UI component documentation, enabling users to search, browse, and generate MUI React components with up-to-date props and examples directly from official documentation.
      5
      -
    • F
      license
      Not graded
      quality
      C
      maintenance
      Provides AI assistants with comprehensive access to Material UI documentation, component details, and setup guides for building React applications. It enables searching through 50+ components and provides structured information on imports, customization, and best practices.
      2
      -
    • A
      license
      A
      quality
      D
      maintenance
      Provides programmatic access to Material Web documentation and components for AI agents, enabling documentation search, template generation, and HTML validation.
      7
      14 npm
      1
      MIT