Available in
Marketplaces, most starred first
Tags
Add to README
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Connected while the plugin is enabled; Claude calls their tools.
No risk signals detected
Nothing flagged in this plugin's hooks, MCP servers or commands. Other components are not analyzed.
Static checks of hooks, mods, MCP servers and commands. Not a security audit.
1 marketplace, most starred first
zig, zls, language-server, lsp, code-navigation, diagnostics, refactoring, mcp
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
MCP server for Zig that connects AI coding assistants to ZLS via the Language Server Protocol.
Works with Claude Code, Cursor, Windsurf, and any MCP-compatible client.
AI assistant <--(MCP stdio)--> zig-mcp <--(LSP pipes)--> ZLS
|
zig build / test / check
Install directly from the Claude Code interface — no manual build needed:
# 1. Add the marketplace
/plugin marketplace add nzrsky/zig-mcp
# 2. Install the plugin
/plugin install zig-mcp@zig
Or as a one-liner from the terminal:
claude plugin marketplace add nzrsky/zig-mcp && claude plugin install zig-mcp@zig
The binary is built automatically on first use. Just make sure zig and zls are in your PATH.
git clone https://github.com/nzrsky/zig-mcp.git
cd zig-mcp
zig build -Doptimize=ReleaseFast
Binary is at zig-out/bin/zig-mcp.
If you installed via the plugin system, skip this section — everything is configured automatically.
# add globally
claude mcp add zig-mcp -- /absolute/path/to/zig-mcp --workspace /path/to/your/zig/project
# add for current project only
claude mcp add --scope project zig-mcp -- /absolute/path/to/zig-mcp --workspace /path/to/your/zig/project
Or edit ~/.claude/mcp_servers.json:
{
"mcpServers": {
"zig-mcp": {
"command": "/absolute/path/to/zig-mcp",
"args": ["--workspace", "/path/to/your/zig/project"]
}
}
}
If you omit
--workspace, zig-mcp uses the current working directory.
Add to .cursor/mcp.json in your project:
{
"mcpServers": {
"zig-mcp": {
"command": "/absolute/path/to/zig-mcp",
"args": ["--workspace", "/path/to/your/zig/project"]
}
}
}
Add to ~/.codeium/windsurf/mcp_config.json:
{
"mcpServers": {
"zig-mcp": {
"command": "/absolute/path/to/zig-mcp",
"args": ["--workspace", "/path/to/your/zig/project"]
}
}
}
--workspace, -w <path> Project root directory (default: cwd)
--zls-path <path> Path to ZLS binary (default: auto-detect from PATH)
--help, -h Show help
--version Show version
All of these answer from ZLS's semantic model — the part a shell and a text search cannot reach.
| Tool | What it knows that grep does not |
|---|---|
zig_definition | The one true declaration, followed through imports and aliases. Takes symbol or file+line+character |
zig_references | Real usages, scope-aware; skips same-named identifiers, comments and strings. symbol mode also searches through re-exports |
zig_hover | The type after comptime evaluation and inference — invisible in the source text |
zig_diagnostics | Errors for one file without building the project, re-synced against disk first |
zig_workspace_symbols | Declarations by name, not every line mentioning it |
zig_document_symbols | A file's outline: declarations, kinds, nesting |
zig_completion | What can legally follow at a position, with types |
zig_signature_help | The real signature, comptime and generic parameters included |
zig_rename | Which files a rename touches, scope-aware |
zig_code_action | Quick fixes ZLS offers for a range |
zig_inlay_hints | Every inferred type in a file at once — nothing of this is in the source text |
zig_type_definition | The declaration of a value's type, not of the value |
zig_ast_query | Code by shape: empty catch {}, catch unreachable, undefined initializers, unreachable, @panic. Matched over the syntax tree, so comments and string literals never match and multi-line forms always do |
zig_unused_private | Private declarations nothing refers to — exact, because a non-pub name cannot escape its file |
There is no zig_build, zig_test, zig_format, zig_version, zig_check
or zig_manage. They used to exist and wrapped zig build, zig test,
zig fmt, zig version, zig ast-check and zvm — and a wrapper loses to
the shell it wraps: no pipes, no redirection, no working
directory of its own. Session transcripts settle it: 526 zig build
invocations through the shell, zero calls to the tool. Run those with your
shell.
zig-mcp spawns ZLS as a child process and talks to it over stdin/stdout using the LSP protocol (Content-Length framing). On the other side, it speaks MCP (newline-delimited JSON-RPC) to the AI assistant.
Built from public signals: copy clicks on this site, GitHub stars and activity, the README and the manifest. Not a security audit or an endorsement.
npx claudepluginhub nzrsky/zig-mcp --plugin zig-mcpPlugins from other owners that cover similar ground