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

@aiready/ast-mcp-server

v0.8.3

Published

The AIReady AST-aware Model Context Protocol (MCP) Server. Explore and navigate multi-project TypeScript/JavaScript codebases with high precision using AST and type information.

Readme

@aiready/ast-mcp-server

Best-in-Class TypeScript/JavaScript Codebase Exploration for AI Agents.

This Model Context Protocol (MCP) server provides high-precision, AST-aware tools for navigating complex codebases. Unlike standard search tools, it understands imports, exports, types, and references.

🚀 Key Features

  • Hybrid Indexing: Combines ripgrep speed with ts-morph precision. Only loads relevant files into memory to handle massive monorepos.
  • O(1) Symbol Resolution: Instantly find where any function, class, or type is defined using a pre-built disk cache.
  • Surgical Reference Finding: Uses a two-stage lookup (Regex + AST) to find every usage of a symbol across the project without OOM crashes.
  • Monorepo Intelligent: Automatically discovers tsconfig.json boundaries and respects TypeScript project references.
  • Zero Configuration: Bundles the ripgrep binary and handles all TypeScript parsing out-of-the-box.
  • Path Security: Hardened against path traversal and malicious agent inputs.

🛠 Tools Provided

| Tool | Purpose | | ---------------------- | --------------------------------------------------------------- | | resolve_definition | Find where a symbol is defined (file, line, signature, JSDoc). | | find_references | Find all usages of a symbol across the project (paged). | | find_implementations | Find concrete classes implementing an interface/abstract class. | | get_file_structure | Return a structural tree of a file (classes, methods, enums). | | search_code | Blazingly fast regex search via bundled ripgrep. | | get_symbol_docs | Extract full JSDoc/TSDoc metadata for any symbol. | | get_call_hierarchy | Find callers and callees for a symbol (incoming/outgoing). | | build_symbol_index | Warm the disk cache for a project (highly recommended). |

📦 Installation

npx -y @aiready/ast-mcp-server

⚙️ Configuration

Environment Variables

  • AST_WORKSPACE_ROOT: Path to the root of the allowed workspace (default: cwd).
  • AST_MAX_HEAP_MB: Max memory allowed for AST Projects (default: 1536).
  • AST_WORKER_POOL_SIZE: Number of worker threads for parsing (default: 2).

Agent Configuration (Cursor/Claude Desktop)

{
  "mcpServers": {
    "ast-explorer": {
      "command": "npx",
      "args": ["-y", "@aiready/ast-mcp-server"],
      "env": {
        "AST_WORKSPACE_ROOT": "/path/to/your/project"
      }
    }
  }
}

🛡 Security

All tool arguments are strictly validated. Any attempt by an agent to access files outside the AST_WORKSPACE_ROOT will result in a hard rejection.

📄 License

MIT © AIReady