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

dochubs-mcp

v1.0.4

Published

MCP server for DocHubs – manage documentation from any AI assistant (Claude Code, Cursor, Gemini CLI, Windsurf, etc.)

Readme

dochubs-mcp

MCP server for DocHubs — manage your documentation from any AI assistant that supports the Model Context Protocol.

Tools available

| Tool | Description | |---|---| | create_doc | Create a new doc (auto-generates slug, section, tags) | | update_doc | Update an existing doc by slug | | get_doc | Read a doc's full Markdown content | | list_docs | List all docs, optionally filtered by section | | delete_doc | Delete a doc (respects ownership) |

Requirements

  • Node.js 18+
  • A GitHub Personal Access Token with repo scope

Configuration

| Variable | Description | Required | |---|---|---| | GITHUB_TOKEN | GitHub PAT with repo scope — ask the author | Yes | | GITHUB_OWNER | MILLERMARRU | Yes | | GITHUB_REPO | mi_docs | Yes | | GITHUB_BRANCH | main | No (default: main) | | SITE_URL | https://dochubs.vercel.app | No | | REVALIDATE_SECRET | Secret token for on-demand revalidation — ask the author | No |

GITHUB_TOKEN and REVALIDATE_SECRET are private — contact the author to get them.

On-demand revalidation

If SITE_URL and REVALIDATE_SECRET are set, the MCP calls /api/revalidate after every write operation — docs appear on the site instantly without waiting for the ISR cache (120s) to expire.


Windows note

On Windows, npx requires a cmd /c wrapper. Use "command": "cmd" with "/c" as the first arg, as shown below.

On macOS / Linux, use "command": "npx" directly.


Claude Code

Windows — .mcp.json or ~/.claude/settings.json

{
  "mcpServers": {
    "dochubs": {
      "type": "stdio",
      "command": "cmd",
      "args": ["/c", "npx", "dochubs-mcp"],
      "env": {
        "GITHUB_TOKEN": "← pídelo al autor",
        "GITHUB_OWNER": "MILLERMARRU",
        "GITHUB_REPO": "mi_docs",
        "GITHUB_BRANCH": "main",
        "SITE_URL": "https://dochubs.vercel.app",
        "REVALIDATE_SECRET": "← pídelo al autor"
      }
    }
  }
}

macOS / Linux — .mcp.json or ~/.claude/settings.json

{
  "mcpServers": {
    "dochubs": {
      "type": "stdio",
      "command": "npx",
      "args": ["dochubs-mcp"],
      "env": {
        "GITHUB_TOKEN": "← pídelo al autor",
        "GITHUB_OWNER": "MILLERMARRU",
        "GITHUB_REPO": "mi_docs",
        "GITHUB_BRANCH": "main",
        "SITE_URL": "https://dochubs.vercel.app",
        "REVALIDATE_SECRET": "← pídelo al autor"
      }
    }
  }
}

Cursor

Windows — .cursor/mcp.json

{
  "mcpServers": {
    "dochubs": {
      "type": "stdio",
      "command": "cmd",
      "args": ["/c", "npx", "dochubs-mcp"],
      "env": {
        "GITHUB_TOKEN": "← pídelo al autor",
        "GITHUB_OWNER": "MILLERMARRU",
        "GITHUB_REPO": "mi_docs",
        "GITHUB_BRANCH": "main",
        "SITE_URL": "https://dochubs.vercel.app",
        "REVALIDATE_SECRET": "← pídelo al autor"
      }
    }
  }
}

macOS / Linux — ~/.cursor/mcp.json

{
  "mcpServers": {
    "dochubs": {
      "type": "stdio",
      "command": "npx",
      "args": ["dochubs-mcp"],
      "env": {
        "GITHUB_TOKEN": "← pídelo al autor",
        "GITHUB_OWNER": "MILLERMARRU",
        "GITHUB_REPO": "mi_docs",
        "GITHUB_BRANCH": "main",
        "SITE_URL": "https://dochubs.vercel.app",
        "REVALIDATE_SECRET": "← pídelo al autor"
      }
    }
  }
}

Gemini CLI

Windows — ~/.gemini/settings.json

{
  "mcpServers": {
    "dochubs": {
      "type": "stdio",
      "command": "cmd",
      "args": ["/c", "npx", "dochubs-mcp"],
      "env": {
        "GITHUB_TOKEN": "← pídelo al autor",
        "GITHUB_OWNER": "MILLERMARRU",
        "GITHUB_REPO": "mi_docs",
        "GITHUB_BRANCH": "main",
        "SITE_URL": "https://dochubs.vercel.app",
        "REVALIDATE_SECRET": "← pídelo al autor"
      }
    }
  }
}

macOS / Linux — ~/.gemini/settings.json

{
  "mcpServers": {
    "dochubs": {
      "type": "stdio",
      "command": "npx",
      "args": ["dochubs-mcp"],
      "env": {
        "GITHUB_TOKEN": "← pídelo al autor",
        "GITHUB_OWNER": "MILLERMARRU",
        "GITHUB_REPO": "mi_docs",
        "GITHUB_BRANCH": "main",
        "SITE_URL": "https://dochubs.vercel.app",
        "REVALIDATE_SECRET": "← pídelo al autor"
      }
    }
  }
}

Windsurf

Windows — ~/.windsurf/mcp_config.json

{
  "mcpServers": {
    "dochubs": {
      "type": "stdio",
      "command": "cmd",
      "args": ["/c", "npx", "dochubs-mcp"],
      "env": {
        "GITHUB_TOKEN": "← pídelo al autor",
        "GITHUB_OWNER": "MILLERMARRU",
        "GITHUB_REPO": "mi_docs",
        "GITHUB_BRANCH": "main",
        "SITE_URL": "https://dochubs.vercel.app",
        "REVALIDATE_SECRET": "← pídelo al autor"
      }
    }
  }
}

macOS / Linux — ~/.windsurf/mcp_config.json

{
  "mcpServers": {
    "dochubs": {
      "type": "stdio",
      "command": "npx",
      "args": ["dochubs-mcp"],
      "env": {
        "GITHUB_TOKEN": "← pídelo al autor",
        "GITHUB_OWNER": "MILLERMARRU",
        "GITHUB_REPO": "mi_docs",
        "GITHUB_BRANCH": "main",
        "SITE_URL": "https://dochubs.vercel.app",
        "REVALIDATE_SECRET": "← pídelo al autor"
      }
    }
  }
}

Cline / Roo Code (VS Code)

Windows

{
  "mcpServers": {
    "dochubs": {
      "type": "stdio",
      "command": "cmd",
      "args": ["/c", "npx", "dochubs-mcp"],
      "env": {
        "GITHUB_TOKEN": "← pídelo al autor",
        "GITHUB_OWNER": "MILLERMARRU",
        "GITHUB_REPO": "mi_docs",
        "GITHUB_BRANCH": "main",
        "SITE_URL": "https://dochubs.vercel.app",
        "REVALIDATE_SECRET": "← pídelo al autor"
      }
    }
  }
}

macOS / Linux

{
  "mcpServers": {
    "dochubs": {
      "type": "stdio",
      "command": "npx",
      "args": ["dochubs-mcp"],
      "env": {
        "GITHUB_TOKEN": "← pídelo al autor",
        "GITHUB_OWNER": "MILLERMARRU",
        "GITHUB_REPO": "mi_docs",
        "GITHUB_BRANCH": "main",
        "SITE_URL": "https://dochubs.vercel.app",
        "REVALIDATE_SECRET": "← pídelo al autor"
      }
    }
  }
}

License

MIT © Millermarru