MCP Catalogs
Homezig-mcp screenshot

zig-mcp

by zig-wasm·158·Score 48

MCP server providing up-to-date documentation for Zig programming language standard library and builtin functions.

developer-toolsai-llmother
8
Forks
1
Open issues
2 mo ago
Last commit
2d ago
Indexed

Overview

Zig Docs MCP is a well-implemented Model Context Protocol server that provides access to Zig programming language documentation. It reads STD lib source files through a WASM module and outputs Markdown to reduce token usage. The server supports both local mode (using locally installed Zig compiler) and remote mode (fetching from ziglang.org), ensuring users always get documentation matching their actual Zig version. The implementation follows Zig's official autodoc approach while optimizing for AI consumption.

Try asking AI

After installing, here are 5 things you can ask your AI assistant:

you:AI assistants helping with Zig programming can access accurate, version-specific documentation
you:Developers working with Zig can get real-time information about standard library functions and builtin functions
you:Code generation and completion tools can leverage accurate Zig documentation for better suggestions
you:What documentation sources does zig-mcp support?
you:Can I specify which version of Zig documentation to use?

When to choose this

Choose this server if you work with Zig and need reliable, up-to-date documentation access through MCP without token-heavy HTML responses.

When NOT to choose this

Don't choose this if you need documentation for languages other than Zig, or if you require write access to documentation (this server is read-only).

Tools this server exposes

4 tools extracted from the README
  • list_builtin_functions

    Lists all available Zig builtin functions

  • get_builtin_function

    Get detailed documentation for Zig builtin functions by name

  • search_std_lib

    Search Zig standard library for declarations by name

  • get_std_lib_item

    Get detailed documentation for a specific standard library item

Comparable tools

zig-idezig-language-serverzig-docs

Installation

Installation

Claude Code

Using npx (Node.js)

claude mcp add zig-docs -- npx -y zig-mcp@latest

Using bunx (Bun)

claude mcp add zig-docs -- bunx zig-mcp@latest

Claude Desktop

Add this JSON configuration to your MCP settings file:

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

Remote Documentation (Optional)

For downloading documentation from ziglang.org:

{
  "mcpServers": {
    "zig-docs": {
      "command": "npx",
      "args": ["-y", "zig-mcp@latest", "--doc-source", "remote", "--version", "master"]
    }
  }
}

FAQ

What documentation sources does zig-mcp support?
Zig-mcp supports both local mode (using your locally installed Zig compiler via 'zig std') and remote mode (fetching documentation from ziglang.org).
Can I specify which version of Zig documentation to use?
Yes, you can specify exact versions like 0.14.1 or use 'master' for the latest development version when using remote mode.

On Hacker News

Recent discussion from the developer community.

Compare zig-mcp with

GitHub →

Last updated · Auto-generated from public README + GitHub signals.