# @docmd/core [Health: Active]

**Category:** 💻 Developer Tools  
**Repository:** https://github.com/docmd-io/docmd  
**GitHub Stars:** 2582  
**npm Downloads (last month):** 110484  
**Views:** 0  
**Installs:** 0  
**Upvotes:** 0  
**Directory Page:** https://allmcps.com/mcp/docmd-core

## Description
Documentation compiler for humans and machines. One Markdown source, one command — generates website, search, AI context, and knowledge formats together.

## Claude Desktop Quick Installation
No generated config for this server: it installs through its own setup steps.

The project's own setup steps (from https://github.com/docmd-io/docmd), copied verbatim. Follow them in order; they are not an mcpServers config.

1. Start the server:

```sh
docmd mcp            # Run the MCP server over stdio
```

## Documentation

## What @docmd/core does

@docmd/core includes an MCP interface for documentation built with docmd. The interface gives compatible AI agents access to the same documentation source used to generate a site and other machine-readable outputs. Agents can search the documentation, retrieve relevant content, and check internal documentation links.

This is useful when documentation needs to serve both human readers and coding tools. Instead of requiring an agent to navigate generated pages manually, the MCP interface provides documentation-oriented operations against the docmd project.

The broader docmd pipeline starts with a folder of Markdown files. From that source, docmd can produce a static documentation site, an offline search index, `llms.txt` and `llms-full.txt`, Open Knowledge Format output, sitemap and SEO metadata, and an MCP interface for AI agents.

## How it works

The MCP entry point is exposed through the CLI:

```bash
docmd mcp
```

The command runs the MCP server over standard input and output, allowing an MCP-compatible client to start it as a local process. The agent can then use the documentation tools against the project it is configured to access.

The server is part of the same package as docmd's documentation compiler and CLI. Other CLI commands cover local development, production builds, serving, link validation, configuration checks, and migration from documentation frameworks including Docusaurus, VitePress, MkDocs, and Starlight.

## Setup and configuration

The package requires Node.js 20 or newer. Run the MCP command through `npx` without a global installation:

```bash
npx @docmd/core mcp
```

You can also install the package globally with npm or pnpm, then invoke the command directly:

```bash
npm install -g @docmd/core
docmd mcp
```

The project itself can be started with `npx @docmd/core dev`, which serves a Markdown folder locally at `http://127.0.0.1:3000`. Use `docmd build` when a static production site is needed. The MCP command is the relevant entry point for connecting an MCP client to the documentation source.

## Tools and capabilities

The MCP interface is intended for documentation tasks, including:

- Searching a docmd documentation project.
- Reading documentation content for agent context.
- Validating internal documentation links.
- Giving coding agents access to documentation maintained as Markdown.
- Using the same source tree for website, search, AI context, and agent-oriented outputs.

The package also supports optional documentation features outside the MCP interface, including semantic search, internationalisation, versioned documentation, monorepo workspaces, OpenAPI 3.x rendering, custom CSS and JavaScript, and light or dark themes.

## Limitations and notes

The MCP interface is exposed through stdio rather than a separately described hosted endpoint. Client setup therefore needs to support launching a local MCP process. The documentation workflow depends on a docmd Markdown project and Node.js 20 or newer.

Generated sites can be deployed to static hosts such as Vercel, Cloudflare Pages, Netlify, GitHub Pages, S3, NGINX, or Caddy, but those deployment targets are separate from the local stdio MCP process. The package also provides a Docker image for running docmd, with port 3000 exposed for the site server.

_Full upstream README: https://allmcps.com/mcp/docmd-core/readme_

