npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@dungngo4520/mcp-zig

v1.0.2

Published

MCP server for Zig language features (completions, hover, definitions) via zls integration

Readme

MCP Zig Server

MCP server providing Zig language features (completions, hover info, definitions, references) via integration with the Zig Language Server (zls).

Works with any MCP-compatible client: AI assistants, IDEs, or coding agents that support the Model Context Protocol.

Quick Setup

1. Install zls

# macOS/Linux
brew install zls

# Windows
scoop install zls

# Or download binary: https://github.com/zigtools/zls/releases

2. Configure Your MCP Client

Add to your MCP settings file:

{
  "mcpServers": {
    "mcp-zig": {
      "command": "npx",
      "args": ["-y", "@dungngo4520/mcp-zig"],
      "env": {
        "WORKSPACE_ROOT": "/path/to/your/zig/project"
      }
    }
  }
}

Common config locations:

  • macOS: ~/Library/Application Support/<client>/config.json
  • Windows: %APPDATA%\<client>\config.json
  • Linux: ~/.config/<client>/config.json

Replace <client> with your MCP client's name. Check your client's documentation for exact path.

3. Restart Your MCP Client

You'll have access to 4 new tools:

  • zig_complete - Code completions
  • zig_hover - Symbol information
  • zig_goto_definition - Jump to definitions
  • zig_find_references - Find all usages

Usage

Ask natural language questions about your Zig code:

  • "What does this function do?"
  • "Show me completions here"
  • "Where is this defined?"
  • "Find all usages of this symbol"

Your AI assistant automatically chooses the right tool.

Troubleshooting

Tools not showing up?

  • Verify zls is installed: zls --version
  • Check the config file path for your MCP client
  • Restart your MCP client after config changes
  • Make sure WORKSPACE_ROOT points to a valid Zig project

Contributing

git clone https://github.com/dungngo4520/mcp-zig.git
cd mcp-zig
npm install
npm run build

License

MIT