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

filamentphp-mcp

v1.0.0

Published

MCP server for accessing FilamentPHP v5.x documentation - enables AI agents to search, browse, and read FilamentPHP docs, component references, and code examples

Readme

FilamentPHP MCP Server

An MCP (Model Context Protocol) server that gives AI agents access to FilamentPHP v5.x documentation. Enables agents to search, browse, and read FilamentPHP docs, component references, code examples, and configuration guides.

How It Works

At startup, the server:

  1. Loads all 79 FilamentPHP v5.x markdown docs from the filamentphp-repo/docs/ directory
  2. Strips Astro framework components (<Aside>, <Disclosure>, imports)
  3. Splits docs into ~527 searchable chunks at ## heading boundaries
  4. Builds an in-memory TF-IDF index (zero external dependencies)

Tools

| Tool | Description | |------|-------------| | filamentphp_health | Server status and index statistics | | list_docs_sections | List all documentation sections with file counts | | list_docs_in_section | List files within a specific section | | search_filamentphp_docs | Keyword search with ranked results and snippets | | get_filamentphp_doc | Read the full content of a specific doc file |

Quick Start

# Install dependencies
npm install

# Build
npm run build

# Run
npm start

# Development mode
npm run dev

# Run tests
npm test

Configuration

Set the DOCS_DIR environment variable to point to a FilamentPHP docs directory. By default, it looks for ./filamentphp-repo/docs/.

MCP Client Configuration

Add to your MCP client config (e.g., Claude Desktop, Cursor):

{
  "mcpServers": {
    "filamentphp": {
      "command": "node",
      "args": ["/path/to/filamentphp-mcp/dist/index.js"],
      "env": {
        "DOCS_DIR": "/path/to/filamentphp-mcp/filamentphp-repo/docs"
      }
    }
  }
}

Search Features

  • TF-IDF scoring with cosine normalization
  • Heading boost (3x) for terms matching chunk headings
  • Exact phrase matching with proximity scoring
  • CamelCase splitting (TextInputtext-input, FileUploadfile-upload)
  • Stop word filtering (120+ common English words)
  • Snippet extraction with bold term highlighting

Index Stats

  • 79 markdown files across 13 sections
  • 527 searchable chunks
  • 57,801 words indexed
  • Startup time: ~30ms

License

MIT