
Security News
Attackers Are Hunting High-Impact Node.js Maintainers in a Coordinated Social Engineering Campaign
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.
docusaurus-smg
Advanced tools
A tool to generate StaticMCP files from Docusaurus documentation projects, enabling AI assistants to access and search your documentation content through the Model Context Protocol (MCP).
npm install -g docusaurus-smg
npm install docusaurus-smg
# or
yarn add docusaurus-smg
# Generate from Docusaurus source directory
docusaurus-smg ./my-docusaurus-site
# Specify output directory and custom options
docusaurus-smg ./docs --output ./mcp-server --name "My Documentation API"
# Generate with custom base URI
docusaurus-smg ./my-site --base-uri "knowledge" --version "2.0.0"
const StaticMCPGenerator = require('docusaurus-smg');
const generator = new StaticMCPGenerator({
outputDir: './my-mcp-server',
serverName: 'My Custom Docs Server',
serverVersion: '1.0.0',
baseUri: 'docs'
});
await generator.generate('./my-docusaurus-project');
console.log('StaticMCP server generated!');
| Option | Description | Default |
|---|---|---|
--output <dir> | Output directory for the StaticMCP server | ./staticmcp-output |
--name <name> | Human-readable server name | "Docusaurus StaticMCP Server" |
--version <version> | Server version | "1.0.0" |
--base-uri <uri> | Base URI for resources | "docs" |
The tool generates a complete StaticMCP server with this structure:
staticmcp-output/
├── mcp.json # Main manifest file
├── resources/ # Resource files
│ ├── getting-started.json # Individual markdown resources
│ ├── api_reference.json
│ └── ...
└── tools/ # Tool response files
└── list_docs/
├── all.json
├── docs.json
└── blog.json
Each markdown file in your Docusaurus project becomes a resource:
docs://path/to/file (without .md extension)text/markdownlist_docs)List available documentation:
{
"name": "list_docs",
"description": "List available documentation",
"parameters": {
"type": "string (optional) - docs|blog|all"
}
}
const generator = new StaticMCPGenerator({
outputDir: './output', // Output directory
serverName: 'My Server', // Server name in manifest
serverVersion: '1.0.0', // Server version
protocolVersion: '2024-11-05', // MCP protocol version
baseUri: 'docs' // Base URI for resources
});
# Clone a sample Docusaurus site
git clone https://github.com/facebook/docusaurus.git
cd docusaurus/website
# Generate StaticMCP server
docusaurus-smg . --output ./mcp-server --name "Docusaurus Docs"
# For a custom docs folder structure
docusaurus-smg ./my-docs --base-uri "knowledge" --name "Knowledge Base"
The generator automatically detects and processes:
docs:// URIs)blog:// URIs)Once generated, your StaticMCP server can be used with any MCP-compatible AI assistant:
docusaurus.config.js or docusaurus.config.tsdocs/, blog/, and src/pages directories.md and .mdx filesThe generator extracts and preserves frontmatter:
---
title: Getting Started
description: Learn how to get started with our platform
tags: [tutorial, beginner]
---
# Getting Started
Your content here...
This metadata becomes available in the resource response.
docs/ or blog/ foldersFAQs
Generate StaticMCP files from Docusaurus projects
We found that docusaurus-smg demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.