preact-mcp
Provides tools for querying Preact documentation, retrieving READMEs from Preact repositories, and listing available Preact packages in the ecosystem.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@preact-mcp search Preact docs for useContext"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
preact-mcp
MCP server for querying Preact documentation and ecosystem.
Installation
npm install -g preact-mcpRelated MCP server: scoutdocs-mcp
Usage with Claude
Add the server using Claude's MCP command:
claude mcp add preact-mcpUsage with Cursor
Add 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 ecosystemAvailable Tools
query_preact_docs - Search Preact documentation
get_preact_readme - Get README from any Preact repository
list_preact_repositories - List all available Preact packages
Supported Repositories
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
Configuration Paths
Windows:
%APPDATA%\Claude\claude_desktop_config.jsonmacOS:
~/Library/Application Support/Claude/claude_desktop_config.jsonLinux:
~/.config/Claude/claude_desktop_config.json
Development
pnpm install
pnpm build
pnpm startLicense
MIT License - see LICENSE file for details.
Available Tools
3 toolsget_preact_readmeB
Get the README content from a specific Preact repository
Inputs: repository (required).
list_preact_repositoriesA
List all available Preact repositories that can be queried, this allows you to have information about the Preact ecosystem.
Inputs: no named parameters.
query_preact_docsB
Query Preact documentation from multiple repositories.
Inputs: query (required), repository.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 3 tools
The three tools have mostly distinct purposes: listing repositories, querying docs, and fetching a README. However, query_preact_docs and get_preact_readme could overlap conceptually since a README is documentation, creating minor ambiguity about which to use for repo-specific content.
All tool names follow a consistent verb_noun pattern with the same preact prefix: query_preact_docs, get_preact_readme, and list_preact_repositories. The convention is predictable and easy to parse.
With only 3 tools, the set is well-scoped for a focused Preact documentation server. Each tool earns its place by covering discovery, querying, and README retrieval without unnecessary extras.
The surface covers the core documentation workflow: list available repositories, query docs across them, and fetch a repository README. Minor gaps remain, such as fetching a specific document by path or listing files within a repository, but agents can likely work around these via the query tool.
Maintenance
Related MCP Connectors
MCP server for accessing curated awesome list documentation
MCP server for querying Forkast documentation
MCP server for hex.pm and hexdocs.pm: search, inspect, compare, and audit Elixir packages
Related MCP Servers
- FlicenseNot gradedqualityDmaintenanceA minimal MCP server that enables searching through pre-scraped React documentation using a hybrid approach combining DuckDB full-text search and transformer-based reranking.-
- AlicenseAqualityCmaintenanceMCP server that fetches and searches the latest stable documentation for any package from PyPI, npm, and crates.io.5MIT

@fictjs/mcpofficial
AlicenseNot gradedqualityDmaintenanceMCP server for retrieving Fict documentation, running compiler/ESLint/TypeScript diagnostics, and generating shareable Playground links.8 npmMIT- AlicenseAqualityDmaintenanceMCP server that gives LLMs access to up-to-date mobile SDK documentation, package registry info, and GitHub issues.67 npmMIT