
zig-mcp
by zig-wasm·★ 158·Score 48
MCP server providing up-to-date documentation for Zig programming language standard library and builtin functions.
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:
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 READMElist_builtin_functionsLists all available Zig builtin functions
get_builtin_functionGet detailed documentation for Zig builtin functions by name
search_std_libSearch Zig standard library for declarations by name
get_std_lib_itemGet detailed documentation for a specific standard library item
Comparable tools
Installation
Installation
Claude Code
Using npx (Node.js)
claude mcp add zig-docs -- npx -y zig-mcp@latestUsing bunx (Bun)
claude mcp add zig-docs -- bunx zig-mcp@latestClaude 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.
- Story by afirium · 2025-07-21
Compare zig-mcp with
Last updated · Auto-generated from public README + GitHub signals.