open-index/open-npm huggingface dataset:
npm package: @max.r/mcp-doc
Description: This repository provides a local MCP server that exposes Markdown docs over stdio.
Latest version: 0.1.3

# Doc MCP Server

This repository provides a local MCP server that exposes Markdown docs over stdio.

## Use with npx

Run the server without a global install:

```shell
npx -y @max.r/mcp-doc
```

## Configure via JSON

Use this JSON snippet in your MCP client configuration and set `DOCS_PATH` to your docs folder:

```json
"doc-mcp": {
  "command": "npx.cmd",
  "args": [
    "-y",
    "@max.r/mcp-doc"
  ],
  "env": {
    "DOCS_PATH": "C:\\Agent-Files"
  }
}
```

## Where to put your documents

All documentation files live under the folder pointed to by `DOCS_PATH`. The server lists and reads only Markdown files (`.md`) inside that folder and its subfolders.

Example layout:

```
C:\Agent-Files\
  Guides\
    Intro.md
  Notes\
    Roadmap.md
```

## .ignore behavior

You can place a `.ignore` file **only** in the root of your `DOCS_PATH` folder. Its rules apply to all paths under that root and are evaluated for both files and folders, regardless of file type.

Example `.ignore`:

```
.git/
**/*.tmp
```

Notes:

- Use `/` as the separator in patterns (like `.gitignore`).
- If a folder is ignored, everything under it is skipped.