@particle-academy/docs-mcp
OfficialRun a local, zero-dependency MCP dev server that gives coding agents access to docs bundled in installed or workspace @particle-academy/* packages.
List scanned packages with name, version, source, and doc file count.
List doc paths, optionally filtered to one package.
Read a full markdown doc by
(package, path).Substring-search docs and get package, path, line number, preview, and section heading; optionally filter by package, hit limit, and case sensitivity.
Refresh the filesystem scan after installing or updating packages mid-session.
Scan
node_modules/@particle-academy/*and monorepopackages/*, with workspace packages taking precedence.Debug via CLI
--listor direct JSON-RPC smoke tests.
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., "@@particle-academy/docs-mcp search docs for 'controlled component'"
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.
@particle-academy/docs-mcp
Dev tool — not for production. A local Model Context Protocol server that hands your coding agent the docs shipped inside every installed
@particle-academy/*package. Runs on your machine, talks stdio, exits when your editor closes. Zero runtime dependencies, no network calls, no telemetry.
If you're working on a project that uses react-fancy, fancy-sheets,
fancy-flow, agent-integrations, etc., this lets Claude Code / Cursor
/ Claude Desktop pull from the docs that actually match the versions
you installed — instead of guessing from training data.
For agents. This package is listed on the Fancy MCP catalog server at
https://ui.particle.academy/mcp(streamable HTTP, no API key; MCP idfancy-ui), with install commands and docs, alongside the rest of the kit. How an agent installs and uses this package is in AGENTS.md.
What it is (and isn't)
✅ Is: a dev-time MCP server you wire into your editor's MCP config. Spawned as a subprocess when your editor starts, killed when it stops.
❌ Not: a runtime library you ship in your app bundle. Don't import
from it in application code. It's a CLI; the bin is docs-mcp.
❌ Not: a hosted service. Everything runs locally against your own
node_modules and your own packages/ workspace folder. Nothing leaves
your machine.
❌ Not: a docs publisher. It only exposes README.md and docs/**
files that already ship inside @particle-academy/* packages.
❌ Not: a search index — substring grep, no rankings, no embeddings. Good enough for "find me the docs page that mentions X."
Related MCP server: docs-mcp
Install + configure
You don't install this into your project. Configure your editor to spawn
it on demand via npx:
Claude Code / Cursor (.mcp.json in project root)
{
"mcpServers": {
"particle-docs": {
"command": "npx",
"args": ["-y", "@particle-academy/docs-mcp"]
}
}
}Claude Desktop (claude_desktop_config.json)
{
"mcpServers": {
"particle-docs": {
"command": "npx",
"args": ["-y", "@particle-academy/docs-mcp"],
"cwd": "/absolute/path/to/your/project"
}
}
}cwd defaults to the editor's working dir, which is usually correct —
specify explicitly only if the editor launches the server from somewhere
else. The server scans <cwd>/node_modules/@particle-academy/* and (if
present) <cwd>/packages/*.
Restart your editor. The first invocation downloads + caches the package; subsequent launches are instant.
Tools exposed to the agent
Tool | Description |
| Every scanned package with name, version, file count, source. |
| All doc paths. Optional |
| Read one doc by |
| Substring search; returns hits with line numbers + section headings. |
| Re-scan the filesystem (call after |
All tools return both human-readable text and a structuredContent JSON
payload so agents can either read the formatted lines or destructure rows
programmatically.
CLI flags (for debugging)
docs-mcp [options]
--cwd <dir> Project root to scan from (default: process.cwd())
--scope <name> Restrict to scope(s). Repeatable. Default: @particle-academy
--scope-any Scan every npm scope
--package <name> Scan only these packages. Repeatable.
--include-unscoped Include unscoped packages
--no-workspace Don't scan <cwd>/packages/*/docs even if present
--list Print discovered packages and exit
-h, --help Show this helpSmoke-test the scan without spinning up MCP
npx @particle-academy/docs-mcp --listLists every package + doc path the scanner found, then exits. The fastest way to verify it's seeing what you expect.
Smoke-test the MCP loop without an editor
printf '%s\n' \
'{"jsonrpc":"2.0","id":1,"method":"initialize","params":{}}' \
'{"jsonrpc":"2.0","id":2,"method":"tools/list","params":{}}' \
'{"jsonrpc":"2.0","id":3,"method":"tools/call","params":{"name":"docs_search","arguments":{"query":"slash command","limit":3}}}' \
| npx @particle-academy/docs-mcpThree JSON-RPC frames go in, three come back. Useful when debugging an editor config that isn't reaching the server.
How the scan works
For each candidate package, the server includes:
<package>/README.md(if present, exposed at pathREADME.md)Every
.md/.mdxfile under<package>/docs/**
Paths are stable docs-relative strings (README.md, docs/guides/sheets.md,
docs/api/components.md) — that's what docs_read accepts as the
path argument.
Scan sources, in order:
<cwd>/node_modules/@particle-academy/*/— installed packages.<cwd>/packages/*/— monorepo workspace packages (whenpackages/exists). In-tree packages win over their installed counterparts for the same package name, so docs match the code you're editing.
Subdirectory node_modules are not recursed. Symlinks are followed.
No watchers. If you npm install or pull new docs mid-session, call
docs_refresh (or just restart the editor). Avoids surprising file
events and keeps the process simple.
Privacy
Everything stays on your machine. The process reads markdown files from disk and writes JSON to stdout. It never opens a socket, makes a fetch, or phones home.
Troubleshooting
docs_list_packagesreturns nothing: run with--listfrom the samecwdyour editor uses. If nothing shows up there, the issue is scope/scan — try--scope-anyor--cwd <path>to widen.Editor says the MCP server crashed: run the CLI directly (
npx @particle-academy/docs-mcp) and paste in a single{"jsonrpc":"2.0",…}line. Errors are written to stderr; the editor usually hides those.Versions look wrong: in a monorepo, the in-tree
packages/*/package.jsonwins overnode_modules/@particle-academy/*/package.json. That's usually what you want. Pass--no-workspaceto forcenode_modules.
License
MIT
⭐ Star Fancy Dev Kit
If this package is useful to you, a quick ⭐ on the repo really helps us build a better kit. Thank you!
Available Tools
5 toolsdocs_listA
List doc file paths. Each entry is the path you pass to docs_read. Optionally filter to one package.
Inputs: package.
docs_list_packagesA
List every @particle-academy/* (and other scanned) package that has docs available, with name, version, source (node_modules vs workspace), and file count.
Inputs: no named parameters.
docs_readA
Read the full markdown content of one doc file. Pass the package name and the path from docs_list.
Inputs: path (required), package (required).
docs_refreshA
Re-scan the filesystem for docs. Call this after installing or updating a @particle-academy/* package mid-session.
Inputs: no named parameters.
docs_searchA
Search docs for a substring. Returns hits with package, path, line number, preview, and the section heading the hit lives under.
Inputs: query (required), limit, package, caseSensitive.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 5 tools
Each tool has a distinct purpose: listing packages, listing file paths, reading content, refreshing the index, and searching. No overlap or ambiguity.
All tools follow a consistent 'docs_' prefix with snake_case verb_noun naming, making it easy to predict tool behavior.
5 tools is a well-scoped set for a documentation server, covering essential operations without bloat or deficiency.
The tool surface covers all necessary operations for documentation: listing packages and files, reading, searching, and refreshing. No obvious gaps for the intended domain.
Maintenance
Related MCP Connectors
Agent-native MCP server over the public saagarpatel.dev corpus. Read-only, stateless.
MCP server for agentverse documentation, generated by doc2mcp.
An MCP server that gives your AI access to the source code and docs of all public github repos
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceAn MCP server that provides tools to fetch live, version-accurate documentation, changelogs, examples, and method signatures for npm and PyPI packages, preventing AI coding agents from hallucinating stale APIs.MIT
- AlicenseNot gradedqualityCmaintenanceProvides a local MCP server for searching and retrieving documentation from 22+ open-source projects, enabling AI coding assistants to access up-to-date docs without network dependency.5 npm3MIT
- AlicenseAqualityBmaintenanceA local MCP server that fetches official library documentation (llms.txt-first), caches it to disk, and serves relevant sections to coding agents offline with deterministic retrieval.37 npmMIT
- FlicenseNot gradedqualityDmaintenanceLocal MCP server that indexes documentation from URLs/files into a vector database, enabling coding agents to search and use up-to-date library and API documentation.1-