Zig Docs MCP Server logo

Zig Docs MCP Server

Organization
zig-wasm

Model Context Protocol (MCP) server that provides up-to-date documentation for the Zig programming language standard library and builtin functions

Publisherzig-wasm
Repositoryzig-mcp
LanguageTypeScript
Forks
8
Stars
170
Available tools
4
Transport typestdio, streamable-http
Categories
LicenseMIT
Links
  • Connect tools to AI workflows

    Zig Docs MCP Server exposes MCP capabilities that can be used by compatible AI clients and agents.

  • 4 available tools

    Browse the callable actions below, including names and descriptions when provided by the server.

  • Ready-to-copy setup

    Use the installation snippets to configure this server in your preferred MCP client.

  • Open source signals

    170 stars and 8 forks from the linked repository.

Zig Docs MCP

Model Context Protocol (MCP) server that provides up-to-date documentation for the Zig programming language standard library and builtin functions.

It uses the same approach as Zig's official autodoc (ziglang.org) by reading STD lib source files directly through a WASM module. However instead of returning HTML, it outputs Markdown which significantly reduces token usage.

By default, the server uses your locally installed Zig compiler to serve documentation, ensuring you always get docs that match your actual Zig version. It can also fetch documentation from ziglang.org if needed.

[!TIP] Add use zigdocs to your prompt if you want to explicitly instruct the LLM to use Zig docs tools. Otherwise, LLM will automatically decide when to utilize MCP tools based on the context of your questions.

Tools

  • list_builtin_functions - Lists all available Zig builtin functions. Builtin functions are provided by the compiler and are prefixed with '@'. The comptime keyword on a parameter means that the parameter must be known at compile time. Use this to discover what functions are available, then use 'get_builtin_function' to get detailed documentation.
  • get_builtin_function - Search for Zig builtin functions by name and get their documentation, signatures, and usage information. Returns all matching functions ranked by relevance.
  • search_std_lib - Search the Zig standard library for declarations by name. Returns a list of matching items with their fully qualified names. Use this to discover available types, functions, and constants in the standard library.
  • get_std_lib_item - Get detailed documentation for a specific standard library item by its fully qualified name (e.g., "std.ArrayList.init"). Returns comprehensive documentation including function signatures, parameters, errors, examples, and source code. Set get_source_file: true to retrieve the entire source file where the item is implemented.

Commands

The CLI provides flexible options for version control and update management:

bash
# Start MCP server
zig-mcp --doc-source local

# Use specific Zig version from ziglang.org instead of local Zig
zig-mcp --doc-source remote --version 0.14.1

# Enable automatic daily updates
zig-mcp --doc-source remote --update-policy daily

# Update documentation without starting MCP server (only for remote)
zig-mcp update --version 0.15.1

# Start local web server to view documentation
zig-mcp view --version 0.15.1

Version options --version:

  • master (default) - Latest development version from Zig's master branch
  • 0.14.1, 0.14.0, etc. - Specific Zig release versions

Update policies --update-policy:

  • manual (default) - No automatic updates, manual control only
  • daily - Check for documentation updates once per day
  • startup - Update documentation every time the server starts

Documentation sources --doc-source:

  • local (default) - Use your locally installed Zig compiler's documentation server (zig std)
  • remote - Download documentation from ziglang.org

Documentation Sources

Local Mode (Default)

The server automatically uses your local Zig installation to serve documentation via zig std. This ensures:

  • Documentation always matches your installed Zig version
  • No network requests needed for standard library docs
  • Faster response times

Remote Mode

When using --doc-source remote, documentation is fetched from ziglang.org and cached in platform-specific directories:

  • Linux: ~/.cache/zig-mcp/
  • macOS: ~/Library/Caches/zig-mcp/
  • Windows: %LOCALAPPDATA%\zig-mcp\

Installation

The installation examples below use the local documentation source by default. In local mode, docs are served by your installed Zig via zig std, requiring no network and matching your actual Zig version. This is the recommended setup for most users. For downloading docs from ziglang.org instead, see Remote Documentation (Optional) below.

Claude Code

Using npx (Node.js)

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

Using bunx (Bun)

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

Roo Code

  1. Click the MCP button in Roo Code
  2. Select "Edit Global MCP" or "Edit Project MCP"
  3. Add the configuration from the JSON template below

Augment Code

Navigate to Settings → MCP Servers → Add Server and use the JSON template below.

Claude Desktop

Add the JSON configuration below to your MCP settings file.

JSON Configuration Template

Node.js:

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

Bun:

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

Remote Documentation (Optional)

If you prefer downloading documentation from ziglang.org instead of using your local Zig, enable remote mode explicitly and choose a version:

Using npx (Node.js)

bash
claude mcp add zig-docs -- npx -y zig-mcp@latest --doc-source remote --version master

Using bunx (Bun)

bash
claude mcp add zig-docs -- bunx zig-mcp@latest --doc-source remote --version 0.14.1

Node.js (remote):

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

Bun (remote):

json
{
  "mcpServers": {
    "zig-docs": {
      "command": "bunx",
      "args": ["zig-mcp@latest", "--doc-source", "remote", "--version", "0.14.1"]
    }
  }
}

Installation

TypingMind
Prerequisites:

Node.js 18+

{
  "mcpServers": {
    "zig-wasm-zig-docs-mcp": {
      "command": "",
      "args": []
    }
  }
}

Use Zig Docs MCP Server MCP with multiple AI models

TypingMind connects MCP tools at the workspace level, so once Zig Docs MCP Server is connected, you can use it with different AI models in TypingMind instead of setting it up separately for each model. You can run MCP locally on your device or connect to a remote MCP server URL.

Option 1: Use the local connector

Use this when the MCP server needs access to local files, apps, or private resources on your computer.

1

Open the MCP settings

In TypingMind, go to Settings, Advanced Settings, then Model Context Protocol and choose Setup Connector.

  1. Open TypingMind in your browser.
  2. Click the Settings icon.
  3. Go to Advanced Settings.
  4. Open the Model Context Protocol section.
  5. Click Setup Connector and choose This Device.
TypingMind MCP connector setup screen with This Device selected
2

Run the connector command

Choose This Device, copy the command from TypingMind, and run it in Terminal. Keep the process running while you use MCP.

  1. Copy the setup command shown by TypingMind.
  2. Open Terminal on macOS or Windows Terminal on Windows.
  3. Paste and run the command.
  4. Approve the package install if Terminal asks you to proceed.
  5. Keep the Terminal window running while using MCP tools.
3

Add Zig Docs MCP Server as a server

When the connector status is Ready, click Edit Servers and paste the MCP server configuration.

  1. Wait until the connector status shows Ready.
  2. Click Edit Servers.
  3. Paste the Zig Docs MCP Server MCP server configuration.
  4. Save the server list.
  5. Refresh if you want to confirm the connector is still ready.
TypingMind MCP settings showing active server and Edit Servers button
{
  "mcpServers": {
    "zig-wasm-zig-docs-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "zig-mcp"
      ]
    }
  }
}
4

Use it across models

Save the server list, open Plugins, enable the Zig Docs MCP Server MCP tools, then select any supported AI model in TypingMind and use the tools in chat or assign them to an AI agent.

  1. Open the Plugins page in TypingMind.
  2. Enable the Zig Docs MCP Server MCP tools.
  3. Start a chat and choose the AI model you want to use.
  4. Use the MCP tools in chat or assign them to an AI agent.
  5. Switch to another AI model whenever needed without reconnecting MCP.
TypingMind chat using enabled MCP tools with a selected AI model
Can you use Zig Docs MCP Server to help me with this task?
Zig Docs MCP Server
Sure. I read it.
Here is what I found using Zig Docs MCP Server.

Option 2: Add an MCP server URL

Use this when Zig Docs MCP Server is already hosted remotely or your team wants one shared connector that multiple users can access.

1

Open MCP connectors

In TypingMind, go to Plugins, open MCP connectors, then choose Add URL.

  1. Open TypingMind in your browser.
  2. Go to Plugins.
  3. Open MCP connectors.
  4. Click Add URL.
TypingMind Add Custom MCP Server URL form
2

Paste the server URL

Enter your server URL in the Server URL field. Add a connection name, description, icon, custom HTTP headers, or OAuth client settings if the server requires them.

  1. Paste your server URL into the Server URL field.
  2. Enter a connection name for Zig Docs MCP Server.
  3. Add a description and icon if you want it to be easier to identify.
  4. Add custom HTTP headers or OAuth client details if the server requires authentication.
3

Create the connection

Click Create connection, then return to the Plugins list and confirm the new MCP connection is active.

  1. Click Create connection.
  2. Return to the MCP connectors list.
  3. Confirm the Zig Docs MCP Server connection appears as active.
  4. Refresh the plugin list if the connection does not appear immediately.
4

Switch models without reconnecting

Start a chat with your preferred model, enable the Zig Docs MCP Server tools from Plugins, and switch to another model whenever needed. The MCP connection stays available to the TypingMind workspace.

  1. Start a new chat in TypingMind.
  2. Select the AI model you want to use.
  3. Enable the Zig Docs MCP Server tools from Plugins.
  4. Ask the model to use the tool when needed.
  5. Switch to another AI model and reuse the same MCP connection.
TypingMind chat using enabled MCP tools with a selected AI model
Can you use Zig Docs MCP Server to help me with this task?
Zig Docs MCP Server
Sure. I read it.
Here is what I found using Zig Docs MCP Server.

Frequently asked questions

What is the Zig Docs MCP Server MCP server used for?

Zig Docs MCP Server is an MCP server that lets compatible AI clients connect to external tools and context. In TypingMind, you can add this MCP server once and make its tools available in your AI workspace.

Can I use Zig Docs MCP Server MCP with multiple AI models in TypingMind?

Yes. TypingMind connects MCP tools at the workspace level, so you can use Zig Docs MCP Server with different AI models such as Claude, ChatGPT, Gemini, or other models you have configured in TypingMind without setting up the MCP server separately for each model.

Why use Zig Docs MCP Server MCP with TypingMind?

TypingMind is one of the best frontends for LLM chat because it brings multiple AI models, prompts, plugins, AI agents, API keys, and MCP tools into one workspace. With Zig Docs MCP Server connected, you can use its MCP tools across your preferred models while keeping your chat workflow organized in TypingMind.

How do I connect Zig Docs MCP Server MCP to TypingMind?

Zig Docs MCP Server can be connected in TypingMind with the local MCP connector or by adding a remote MCP server URL. Use the local connector when the server needs access to files, apps, or private resources on your device, and use a server URL when the MCP server is hosted remotely.

What tools does Zig Docs MCP Server MCP provide in TypingMind?

Zig Docs MCP Server exposes 4 MCP tools that can be enabled from the TypingMind Plugins page and used in chat or assigned to AI agents.

Do I need to share my API keys with TypingMind to use Zig Docs MCP Server MCP?

No. TypingMind is local-first and lets you keep your model providers, API keys, prompts, and MCP configuration under your control. If Zig Docs MCP Server requires authentication, add the required headers, OAuth settings, or local configuration for that MCP server when you create the connection.

Related MCP Servers

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇