MCP server for querying Preact documentation and ecosystem.
npm install -g preact-mcpAdd the server using Claude's MCP command:
claude mcp add preact-mcpAdd to your Cursor settings (Settings → Extensions → MCP):
{
"mcpServers": {
"preact": {
"command": "npx",
"args": ["preact-mcp"]
}
}
}Or add to your .cursorrules file:
MCP Server: preact-mcp
Command: npx preact-mcp
Description: Query Preact documentation and ecosystem
- query_preact_docs - Search Preact documentation
- get_preact_readme - Get README from any Preact repository
- list_preact_repositories - List all available Preact packages
- preact - Core Preact library with React compatibility
- preact-iso - Isomorphic router and SSR utilities
- @preact/signals-core - Core reactive state management
- @preact/signals - Preact-specific signals implementation
- @preact/signals-react - React compatibility for signals
- @preact/preset-vite - Vite preset for Preact
- create-preact - Project scaffolding tool
- playwright-ct - Component testing with Playwright
- vitest-browser-preact - Browser testing with Vitest
- htm - JSX alternative using template literals
- Windows:
%APPDATA%\Claude\claude_desktop_config.json - macOS:
~/Library/Application Support/Claude/claude_desktop_config.json - Linux:
~/.config/Claude/claude_desktop_config.json
pnpm install
pnpm build
pnpm startMIT License - see LICENSE file for details.