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

@hyperscript-tools/mcp-server

v2.8.0

Published

MCP server for original _hyperscript (hyperscript.org): parser-backed validation, parsing, docs, and editor assist for AI agents

Readme

@hyperscript-tools/mcp-server

Write _hyperscript with an AI assistant that actually gets the language right.

This is an MCP (Model Context Protocol) server for original _hyperscript. If you use Claude, Cursor, or any other MCP-capable assistant to write hyperscript, it plugs in so the assistant can validate, parse, and look up hyperscript against the language itself. Validation and parsing run the real _hyperscript parser (the hyperscript.org package) — so error messages, line/column positions, and the command inventory match what the browser will actually run, instead of a regex approximation that quietly gets edge cases wrong.

For LLM-assisted authoring specifically, that means fewer confidently-wrong snippets: the assistant can check its work with validate_hyperscript and get the parser's real verdict before handing you code.

Quick Start

Both editors use the same config shape — run the published package with npx, no install step.

Claude Code / Claude Desktop

Add to your MCP configuration (.mcp.json, or Claude Desktop settings):

{
  "mcpServers": {
    "hyperscript": {
      "command": "npx",
      "args": ["@hyperscript-tools/mcp-server"]
    }
  }
}

Cursor

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

{
  "mcpServers": {
    "hyperscript": {
      "command": "npx",
      "args": ["@hyperscript-tools/mcp-server"]
    }
  }
}

Tools (10)

Parsing & validation (real parser)

| Tool | Description | | ---------------------- | ------------------------------------------------------------------------ | | validate_hyperscript | Validate with the real parser; returns { valid, errors } with the actual message, line, and column | | parse_hyperscript | Parse to a compact AST view + command sequence (and optional token stream) | | suggest_command | Heuristic: suggest the best command(s) for a described task |

Editor assist

| Tool | Description | | ---------------------- | ---------------------------------------------------------------- | | get_completions | Context-aware keyword completions (heuristic) | | get_hover_info | Hover documentation for a keyword (heuristic) | | get_document_symbols | Event handlers, behaviors, functions, and init/worker blocks, extracted from the parsed AST |

Documentation

| Tool | Description | | -------------------------- | ------------------------------------------------------------- | | get_command_docs | Syntax, description, and examples for a command | | get_expression_docs | Docs for expressions (me, closest, as, …) | | search_language_elements | Search commands, expressions, and special symbols | | get_language_info | The canonical grammar version and the full command/feature list |

Tools are labeled by kind: parser-backed tools return ground truth from _hyperscript itself; heuristic tools (suggest_command, get_completions, get_hover_info) are convenience helpers, not authoritative.

Resources

Documentation is also exposed as MCP resources:

  • hyperscript://docs/commands — Command reference
  • hyperscript://docs/expressions — Expression guide
  • hyperscript://docs/events — Events reference
  • hyperscript://examples/common — Common patterns

How it stays correct

The documented command/feature inventory is pinned to the parser's own registry by a drift test (src/__tests__/inventory.test.ts). If a hyperscript.org version bump adds, removes, or renames a command, that test fails — so the docs cannot silently fall out of sync with the grammar. get_language_info reports the exact hyperscript.org version in use.

Dependencies

  • hyperscript.org — the canonical _hyperscript library (used headlessly for parsing/tokenizing; no browser or DOM required).
  • @modelcontextprotocol/sdk — the MCP server framework.

Scope

This server targets original _hyperscript only. It has no multilingual/i18n features and no dependency on any _hyperscript fork.

License

MIT.