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

@gxtools/mcp

v0.3.0

Published

gx MCP server — expose your knowledge base to AI agents via Model Context Protocol

Readme

@gx/mcp — MCP Server for gx Knowledge Base

An MCP (Model Context Protocol) server that wraps the gx API so AI coding agents (Claude Code, Cursor, Windsurf, etc.) can pull knowledge base context during tasks.

What it does

Exposes four tools to any MCP-compatible agent:

| Tool | Description | |---|---| | list_documents | List all documents in a KB — returns id, filename, type, title | | get_document | Get full content of a document (frontmatter + body) | | search_documents | Client-side search across filename, title, type and frontmatter | | lint_document | Run gx lint rules on raw markdown content |

Prerequisites

  • Node.js 18+
  • A running gx-server instance

Build

cd packages/gx-mcp
pnpm install
pnpm build

Run

# Using defaults (Vercel-deployed server)
node dist/index.js

# With custom server
GX_SERVER_URL=http://localhost:3001 GX_API_KEY=my-key node dist/index.js

# Or via binary (after install)
gx-mcp

Environment variables

| Variable | Default | Description | |---|---|---| | GX_SERVER_URL | https://gx-server-condorcomputing.vercel.app | gx-server base URL | | GX_API_KEY | gx-dev-api-key | API key (passed as x-api-key header) | | GX_KB_ID | 78e0bc0f-38ba-4494-bcd3-416ea4532280 | Default knowledge base ID |

Configure with Claude Desktop

Add to ~/Library/Application Support/Claude/claude_desktop_config.json (macOS):

{
  "mcpServers": {
    "gx": {
      "command": "node",
      "args": ["/path/to/gx/packages/gx-mcp/dist/index.js"],
      "env": {
        "GX_SERVER_URL": "https://gx-server-condorcomputing.vercel.app",
        "GX_API_KEY": "gx-dev-api-key",
        "GX_KB_ID": "78e0bc0f-38ba-4494-bcd3-416ea4532280"
      }
    }
  }
}

Or using npx after publishing:

{
  "mcpServers": {
    "gx": {
      "command": "npx",
      "args": ["-y", "@gx/mcp"],
      "env": {
        "GX_SERVER_URL": "https://gx-server-condorcomputing.vercel.app",
        "GX_API_KEY": "gx-dev-api-key"
      }
    }
  }
}

Configure with Cursor

In .cursor/mcp.json (project) or ~/.cursor/mcp.json (global):

{
  "mcpServers": {
    "gx": {
      "command": "node",
      "args": ["/path/to/gx/packages/gx-mcp/dist/index.js"],
      "env": {
        "GX_SERVER_URL": "https://gx-server-condorcomputing.vercel.app",
        "GX_KB_ID": "78e0bc0f-38ba-4494-bcd3-416ea4532280"
      }
    }
  }
}

Tool Examples

list_documents

// Input
{ "kb_id": "78e0bc0f-38ba-4494-bcd3-416ea4532280" }

// Output
[
  { "id": "abc123", "filename": "auth-decision.md", "type": "decision", "title": "Use JWT for Auth" },
  { "id": "def456", "filename": "onboarding.md", "type": "guide", "title": "Getting Started" }
]

get_document

// Input
{ "document_id": "abc123" }

// Output
{
  "id": "abc123",
  "filename": "auth-decision.md",
  "type": "decision",
  "title": "Use JWT for Auth",
  "frontmatter": { "type": "decision", "title": "Use JWT for Auth", "status": "accepted" },
  "content": "---\ntype: decision\n...\n\n# Use JWT for Auth\n\n..."
}

search_documents

// Input
{ "kb_id": "78e0bc0f-...", "query": "auth", "type": "decision" }

// Output
[
  { "id": "abc123", "filename": "auth-decision.md", "type": "decision", "title": "Use JWT for Auth" }
]

lint_document

// Input
{ "content": "# My Doc\n\nSome content without frontmatter" }

// Output
[
  { "ruleId": "GX001", "severity": "error", "message": "Missing frontmatter", "line": null }
]