Zig Docs MCP Serverのロゴ

Zig Docs MCP Server

組織
zig-wasm

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

公開者zig-wasm
リポジトリzig-mcp
言語TypeScript
フォーク
8
スター
170
利用可能なツール
4
通信方式stdio, streamable-http
カテゴリ
ライセンスMIT
リンク
  • ツールをAIワークフローに接続

    Zig Docs MCP Serverは、対応するAIクライアントやAIエージェントから利用できるMCP機能を提供します。

  • 4個の利用可能なツール

    呼び出し可能なアクションを以下で確認できます。サーバーから提供されている場合は、名前や説明も表示されます。

  • コピーして使える設定

    セットアップ用の設定例を使って、お好みのMCPクライアントにこのサーバーを設定できます。

  • オープンソースの注目度

    リンク先のリポジトリには170件のスターと8件のフォークがあります。

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"]
    }
  }
}

インストール

TypingMind
前提条件:

Node.js 18+

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

Zig Docs MCP ServerのMCPを複数のAIモデルで活用

TypingMindはワークスペース単位でMCPツールに接続します。そのため、一度Zig Docs MCP Serverに接続すれば、モデルごとに個別に設定することなく、TypingMind内のさまざまなAIモデルで利用できます。 お使いのデバイス上でMCPをローカル実行することも、リモートMCPサーバーのURLに接続することもできます。

方法1:ローカルコネクタを使用

MCPサーバーが、お使いのコンピューター上のローカルファイル、アプリ、非公開リソースにアクセスする必要がある場合は、この方法を使います。

1

MCP設定を開く

TypingMindで「設定」、「詳細設定」、「MCP」の順に進み、「コネクタを設定」を選択してください。

  1. ブラウザでTypingMindを開いてください。
  2. 設定アイコンをクリックしてください。
  3. 「詳細設定」に移動してください。
  4. 「MCP」セクションを開いてください。
  5. 「コネクタを設定」をクリックし、「このデバイス」を選択してください。
「このデバイス」が選択されたTypingMindのMCPコネクタ設定画面
2

コネクタのコマンドを実行

「このデバイス」を選択し、TypingMindからコマンドをコピーしてターミナルで実行してください。MCPの使用中は、プロセスを実行したままにしてください。

  1. TypingMindに表示されるセットアップコマンドをコピーしてください。
  2. macOSではターミナルを、WindowsではWindows Terminalを開いてください。
  3. コマンドを貼り付けて実行してください。
  4. ターミナルで続行の確認を求められた場合は、パッケージのインストールを承認してください。
  5. MCPツールの使用中は、ターミナルウィンドウを開いたまま、プロセスの実行を継続してください。
3

Zig Docs MCP Serverをサーバーとして追加

コネクタのステータスが「準備完了」になったら、「サーバーを編集」をクリックし、MCPサーバーの設定を貼り付けてください。

  1. コネクタのステータスが「準備完了」になるまでお待ちください。
  2. 「サーバーを編集」をクリックしてください。
  3. Zig Docs MCP ServerのMCPサーバー設定を貼り付けてください。
  4. サーバー一覧を保存してください。
  5. コネクタが引き続き使用可能か確認するには、更新してください。
稼働中のサーバーと「サーバーを編集」ボタンが表示されたTypingMindのMCP設定画面
{
  "mcpServers": {
    "zig-wasm-zig-docs-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "zig-mcp"
      ]
    }
  }
}
4

複数のモデルで同じ接続を使用

サーバー一覧を保存し、「プラグイン」を開いてZig Docs MCP ServerのMCPツールを有効にしてください。その後、TypingMindで対応するAIモデルを選択し、チャットでツールを使うか、AIエージェントに割り当ててください。

  1. TypingMindの「プラグイン」ページを開いてください。
  2. Zig Docs MCP ServerのMCPツールを有効にしてください。
  3. チャットを開始し、使用するAIモデルを選択してください。
  4. MCPツールをチャットで使うか、AIエージェントに割り当ててください。
  5. MCPに再接続することなく、必要に応じて別のAIモデルに切り替えられます。
選択したAIモデルと有効なMCPツールを使用したTypingMindのチャット
Zig Docs MCP Serverを使ってこのタスクを手伝ってもらえますか?
Zig Docs MCP Server
はい、読みました。
Zig Docs MCP Serverで調べた結果をお伝えします。

方法2:MCPサーバーのURLを追加

Zig Docs MCP Serverがすでにリモートでホストされている場合や、チームの複数のユーザーで1つのコネクタを共有したい場合は、この方法を使います。

1

MCPコネクタを開く

TypingMindで「プラグイン」に移動し、「MCPコネクタ」を開いて「URLを追加」を選択してください。

  1. ブラウザでTypingMindを開いてください。
  2. 「プラグイン」に移動してください。
  3. 「MCPコネクタ」を開いてください。
  4. 「URLを追加」をクリックします。
TypingMindの「カスタムMCPサーバーURLを追加」フォーム
2

サーバーURLを貼り付け

「サーバーURL」欄にお使いのサーバーURLを入力してください。サーバーで必要とされる場合は、接続名、説明、アイコン、カスタムHTTPヘッダー、OAuthクライアント設定を追加してください。

  1. 「サーバーURL」欄にお使いのサーバーURLを貼り付けてください。
  2. Zig Docs MCP Serverの接続名を入力してください。
  3. 接続を識別しやすくするには、説明とアイコンを追加してください。
  4. サーバーで認証が必要な場合は、カスタムHTTPヘッダーまたはOAuthクライアントの詳細情報を追加してください。
3

接続を作成

「接続を作成」をクリックし、プラグイン一覧に戻って、新しいMCP接続が有効になっていることを確認してください。

  1. 「接続を作成」をクリックします。
  2. MCPコネクタの一覧に戻ってください。
  3. Zig Docs MCP Serverの接続が「有効」と表示されていることを確認してください。
  4. 接続がすぐに表示されない場合は、プラグイン一覧を更新してください。
4

再接続せずにモデルを切り替え

お好みのモデルでチャットを開始し、「プラグイン」でZig Docs MCP Serverのツールを有効にしてください。必要に応じて別のモデルに切り替えられます。MCP接続は、TypingMindのワークスペースで引き続き利用できます。

  1. TypingMindで新しいチャットを開始してください。
  2. 使用するAIモデルを選択してください。
  3. 「プラグイン」でZig Docs MCP Serverのツールを有効にしてください。
  4. 必要に応じて、ツールを使うようモデルに依頼してください。
  5. 別のAIモデルに切り替えて、同じMCP接続を再利用してください。
選択したAIモデルと有効なMCPツールを使用したTypingMindのチャット
Zig Docs MCP Serverを使ってこのタスクを手伝ってもらえますか?
Zig Docs MCP Server
はい、読みました。
Zig Docs MCP Serverで調べた結果をお伝えします。

よくある質問

Zig Docs MCP Server MCPサーバーは何に使いますか?

Zig Docs MCP Serverは、対応するAIクライアントを外部ツールやコンテキストに接続するためのMCPサーバーです。TypingMindでは、このMCPサーバーを一度追加するだけで、AIワークスペース内でそのツールを利用できるようになります。

TypingMindでZig Docs MCP Server MCPを複数のAIモデルと併用できますか?

はい。TypingMindはワークスペース単位でMCPツールに接続するため、モデルごとにMCPサーバーを設定する必要はありません。Claude、ChatGPT、Geminiや、TypingMindで設定したその他のAIモデルでZig Docs MCP Serverを利用できます。

TypingMindでZig Docs MCP Server MCPを使うメリットは何ですか?

TypingMindは、複数のAIモデル、プロンプト、プラグイン、AIエージェント、APIキー、MCPツールを1つのワークスペースにまとめられる、LLMチャット向けの優れたフロントエンドです。Zig Docs MCP Serverを接続すると、TypingMindでチャットのワークフローを整理しながら、お好みのモデルでそのMCPツールを利用できます。

Zig Docs MCP Server MCPをTypingMindに接続するにはどうすればよいですか?

Zig Docs MCP Serverは、ローカルMCPコネクタを使うか、リモートMCPサーバーのURLを追加することでTypingMindに接続できます。サーバーがデバイス上のファイル、アプリ、プライベートリソースにアクセスする必要がある場合はローカルコネクタを、MCPサーバーがリモートでホストされている場合はサーバーURLを使用してください。

TypingMindでZig Docs MCP Server MCPのどのようなツールを利用できますか?

Zig Docs MCP Serverは4個のMCPツールを提供しています。TypingMindのプラグインページで有効にすると、チャットで使用したり、AIエージェントに割り当てたりできます。

Zig Docs MCP Server MCPを使うには、APIキーをTypingMindと共有する必要がありますか?

いいえ。TypingMindはローカルファーストの設計で、モデルプロバイダー、APIキー、プロンプト、MCP設定をご自身で管理できます。Zig Docs MCP Serverで認証が必要な場合は、接続の作成時に、そのMCPサーバーに必要なヘッダー、OAuth設定、またはローカル設定を追加してください。

関連するMCPサーバー

すべて見る

今すぐ自分専用のAIワークスペースを作成

ニュースレターに登録すると、新機能や今後のプレゼント企画のお知らせが届きます👇