MCP Hub
Back to servers

filamentphp-mcp

Validated

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

npm33/wk
Stars
5
Tools
5
Updated
Apr 24, 2026
Validated
May 3, 2026
Validation Details

Duration: 10.6s

Server: filamentphp-mcp v1.0.0

Quick Install

npx -y filamentphp-mcp

npm version npm downloads license node version ci status

FilamentPHP MCP Server

npm version npm downloads license node version ci status

FilamentPHP MCP Server

Connect your AI assistant directly to FilamentPHP v5.x documentation using the Model Context Protocol (MCP).
Search, browse, and read through component references and code examples without leaving your IDE.


What’s Inside

  • Instant Context: Your AI agent can pull FilamentPHP docs in real-time while you code.
  • Smart Search: Uses TF-IDF scoring with heading boosts and camelCase awareness to find exactly what you need.
  • Lightweight: Fully in-memory index. No databases, no API keys, and no extra fluff.
  • Comprehensive: Pre-indexed with 79 docs across 13 sections, broken down into 527 searchable chunks.
  • Zero Effort: Spin it up with a single npx command.

Installation

Using npx (Recommended)

This is the fastest way to get started. No local installation required:

npx filamentphp-mcp

Global Install

If you prefer having it available locally:

npm install -g filamentphp-mcp
filamentphp-mcp

Local Project

Add it to your current project:

npm install filamentphp-mcp

Note: Requires Node.js 18.0.0 or higher.


How it Works

When the server starts up, it handles the heavy lifting for you:

  1. Loading: It pulls 79 bundled FilamentPHP v5.x markdown files.
  2. Cleaning: It strips out Astro-specific components like <Aside> or <Disclosure> so the AI sees clean text.
  3. Chunking: It breaks the docs into roughly 527 digestible pieces based on ## headings.
  4. Indexing: It builds a lightning-fast search index right in your RAM.

Tools Available

ToolPurpose
filamentphp_healthCheck if the server is running and see index stats.
list_docs_sectionsSee all available documentation categories.
list_docs_in_sectionBrowse specific files within a category.
search_filamentphp_docsFind specific topics with ranked results and snippets.
get_filamentphp_docFetch the full text of a specific document.

Setup for AI Clients

Claude Desktop

Open your configuration file:

  • macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
  • Windows: %APPDATA%\Claude\claude_desktop_config.json
{
  "mcpServers": {
    "filamentphp": {
      "command": "npx",
      "args": ["-y", "filamentphp-mcp"]
    }
  }
}

Cursor

Go to your Cursor MCP settings or create .cursor/mcp.json in your project root:

{
  "mcpServers": {
    "filamentphp": {
      "command": "npx",
      "args": ["-y", "filamentphp-mcp"]
    }
  }
}

VS Code (with MCP extension)

Add this to your MCP settings:

{
  "servers": {
    "filamentphp": {
      "command": "npx",
      "args": ["-y", "filamentphp-mcp"]
    }
  }
}

Search & Performance

  • Ranked Results: Uses cosine normalization for accurate relevance.
  • Heading Weight: Terms found in headings are weighted 3x higher.
  • Developer Friendly: Handles TextInput as text-input automatically.
  • Fast: Startup takes about 30ms, indexing over 57,000 words instantly.

Development

Want to contribute or run it locally?

# Clone and enter
git clone https://github.com/suwi-lanji/filamentphp-mcp.git
cd filamentphp-mcp

# Install and build
npm install
npm run build

# Run with hot-reload
npm run dev

Project Layout

  • src/index.ts: The main entry point and tool definitions.
  • src/docs-loader.ts: Handles parsing and "Astro-stripping."
  • src/docs-search.ts: The core TF-IDF search logic.
  • filamentphp-repo/docs/: The source markdown files.

Configuration

Env VariableDescriptionDefault
DOCS_DIRPoint to your own local version of Filament docs../filamentphp-repo/docs/

Reviews

No reviews yet

Sign in to write a review