π¦
Docusaurus
an MCP tool for Docusorus agent system. Usefull to make git doc with human interaction.
0 installs
10 stars
2 forks
Trust: 46 β Fair
Devtools
Installation
npx mcp-docusaurusAsk AI about Docusaurus
Powered by Claude Β· Grounded in docs
I know everything about Docusaurus. Ask me about installation, configuration, usage, or troubleshooting.
0/500
Loading tools...
Reviews
Documentation
π§ MCP Docusaurus Toolkit
A modular Content Management Platform (MCP) to manage, embed, and search Docusaurus documentation using FastAPI, self-hosted embeddings, and PostgreSQL + pgvector.
π Features
- π Auto-generate site map from Docusaurus docs
- π Create, update, and continue editing Markdown docs
- π§ Vectorize content using pluggable embedding models
- π Perform RAG-style semantic search across the docs
- π§Ύ Track incomplete docs with watermarks
- π Sync external edits into the vector database
- π¨ Apply style/theme transformations to docs
- π§ͺ Built-in tool decorators for AI agent control
π Project Structure
.
βββ app/
β βββ main.py # FastAPI entrypoint with FastMCP + tools
β βββ routes/ # Modular endpoints (docs, search, styles, site\_map)
β βββ embeddings/ # Embedding model configuration + logic
β βββ database.py # PostgreSQL + pgvector connection logic
β βββ models/ # DB + Pydantic models for documents
β ββββ utils/ # Sync tools, helpers
β βββ docs/ # Full editable Docusaurus source (used in dev mode)
β
βββ data/
β βββ docusaurus/ # Runtime-synced Markdown docs
β βββ embeddings/ # Persisted vector embeddings
β
βββ Dockerfile # Multi-stage (Node + Python)
βββ docker-compose.yml # Services: FastAPI, Docusaurus Dev, Postgres
βββ requirements.txt
βββ README.md
π³ Getting Started (Docker)
# 1. Clone this repository
git clone https://github.com/your-org/mcp-docusaurus.git
cd mcp-docusaurus
# 2. Launch services
docker compose up --build
- π MCP API available at: http://localhost:8000
- π Docusaurus live dev server: http://localhost:3000
π§° Tooling Overview (MCP API)
β Create a New Document
POST /tool/create_document
{
"path": "guides/new-feature.md",
"title": "New Feature",
"content": "## Work in Progress..."
}
βοΈ Update Existing Document
POST /tool/update_docs
{
"path": "guides/new-feature.md",
"line_begin": 10,
"line_end": 15,
"new_text": "Updated explanation here."
}
π§ Vector Search (RAG-Style)
POST /tool/search_docs
{
"query": "How to authenticate a plugin?"
}
π¨ Apply CSS or Theme Style
POST /tool/apply_style
{
"style_id": "dark-theme",
"content": "..."
}
π Embedding Model Support
Pluggable embedding model backend with simple config.
β Local (Default)
sentence-transformers/all-MiniLM-L6-v2
π Optional Remote Support
- OpenAI Embeddings (requires API key)
βοΈ Environment Configuration
Use .env file or Docker environment: block:
PG_HOST=postgres
PG_USER=postgres
PG_PASSWORD=postgres
PG_DATABASE=vector_db
EMBEDDING_MODEL=local
π Security
- π Tool routes are gated with
@tooldecorators - βοΈ Document writes are verified before embedding
- π Optional OAuth2 / API Token guardrails available
π Docusaurus Notes
- The
doc/directory holds the full Docusaurus source (used for live editing). - The
data/docusaurus/directory contains generated Markdown synced with the vector database.
π Metrics & Health
GET /tool/health_checkβ Check if the API is aliveGET /tool/metricsβ Prometheus/Grafana-compatible stats
π License
MIT License Β©οΈ [guidry company]
