# Zig Docs MCP

> Look up Zig standard library and builtin documentation

- **URL**: https://followmcp.com/en/servers/zig-mcp
- **Category**: Dev Tools
- **Origin**: Community
- **Stars**: 179
- **FMRS Score**: 53/100 (Grade D)
- **Source**: https://github.com/zig-wasm/zig-mcp
- **Transports**: stdio (local process)
- **Runtimes**: Node.js
- **Auth**: No credential needed

## Overview
Zig Docs MCP provides Markdown documentation for Zig standard library declarations and builtin functions. By default, it uses the locally installed Zig compiler; it can also fetch documentation for a selected version from ziglang.org.

## Best for
- Developers looking up Zig standard library or builtin function documentation.
- Users who want documentation from their locally installed Zig compiler by default.

## Not for
- Users seeking general programming language documentation or material unrelated to Zig.
- Users who need the server to execute code or modify project files.

## Required permissions
- Local mode needs access to the installed Zig compiler to provide documentation.
- Remote mode needs network access to fetch documentation from ziglang.org and stores documentation in a platform-specific cache directory.

## Risks
- Documentation in local mode depends on the installed Zig version; remote mode depends on the selected version and availability of remote docs.
- The daily and startup update policies check for remote documentation updates on a schedule or at server startup.

## Client config (JSON)
```json
{"mcpServers":{"zig-docs":{"command":"npx","args":["-y","zig-mcp@latest"]}}}
```

## Tools (4)
- `list_builtin_functions`: Lists available Zig builtin functions. Use it to discover functions, then query their details with get_builtin_function.
- `get_builtin_function`: Searches Zig builtin functions by name and returns matching documentation, signatures, and usage information.
- `search_std_lib`: Searches Zig standard library declarations by name and lists matching fully qualified names.
- `get_std_lib_item`: Gets documentation for a standard library item by fully qualified name, including signatures, parameters, errors, examples, and source code; can optionally retrieve the full source file containing the implementation.
