npm install
npm run buildSingle library, local folder:
docs-mcpserver ./docs --name "My Docs"GitHub repository:
docs-mcpserver https://github.com/user/my-project/tree/main/docs --name "My Project"Multi-library via config file:
docs-mcpserver --config dev-docs.jsonSee configuration.md for the full config schema, or sample-config.json for a complete example.
docs-mcpserver <docs-folder-or-github-url> [options]| Option | Description |
|---|---|
<docs-folder-or-github-url> |
Positional — local path or GitHub URL (legacy single-library mode) |
--config <file> |
Load settings from a JSON config file. CLI flags override config file values. |
--name <name> |
Server name |
--description <text> |
Server description |
--cache-dir <path> |
Directory for cached git clones |
--update-interval <minutes> |
Refresh interval for cached clones |
--port <port> |
Run as HTTP server on this port (see hosting.md) |
--api <folder> |
(legacy) API docs folder for implicit single library |
For private GitHub repos, set the GITHUB_TOKEN environment variable.
Project-scoped:
claude mcp add mydocs -- node /path/to/markdown-mcp/dist/index.js --config /path/to/dev-docs.jsonGlobal:
claude mcp add --scope user mydocs -- node /path/to/markdown-mcp/dist/index.js --config /path/to/dev-docs.jsonFor private GitHub repos, pass GITHUB_TOKEN via the shell environment when launching, or use claude mcp add --env GITHUB_TOKEN=....
npm run dev # Watch mode for TypeScript
npm test # Run tests
npm run test:watch # Watch mode for tests