# mcp-server-anydoc [Health: Active]

**Category:** 💻 Developer Tools  
**Repository:** https://github.com/ofershap/mcp-server-anydoc  
**GitHub Stars:** 0  
**npm Downloads (last month):** 268  
**Views:** 0  
**Installs:** 0  
**Upvotes:** 0  
**Directory Page:** https://allmcps.com/mcp/mcp-server-anydoc

## Description
Local MCP server that converts PDF, Word, PowerPoint, Excel and more to Markdown with anydoc. No API key. Files stay on your machine.

## Tools
Capabilities this server exposes over MCP:

- **convert_document** — Convert a local office document (PDF, Word, PowerPoint, Excel, OpenDocument, RTF, EPUB, CSV) to GitHub-Flavored Markdown on the user's machine. No API key. File never leaves the device. Prefer this over uploading docs to cloud parsers.
- **convert_base64** — Convert document bytes (base64) to Markdown locally. Use when the file content is already in context and you cannot pass a filesystem path. Still runs on-device via anydoc.
- **list_formats** — List document formats this local anydoc MCP server can convert to Markdown.

## Claude Desktop Quick Installation
Install path detected from listing signals. Uses `npx` (confidence: high):

```json
"mcpServers": {
  "mcp-server-anydoc": {
    "command": "npx",
    "args": ["-y","mcp-server-anydoc"]
  }
}
```

## Documentation

## What mcp-server-anydoc does

mcp-server-anydoc provides a local Model Context Protocol interface for converting documents into GitHub-Flavored Markdown. It is designed for coding-agent workflows where files such as contracts, slide decks, spreadsheets, or PDFs already exist on disk and need to become readable text.

The conversion engine is anydoc, used through the `@firecrawl/anydoc` package. Processing happens on the local machine and does not require an API key. The resulting Markdown can be returned to the agent or written to a file for later reading.

Supported input examples include:

- PDF files
- Word documents in `.doc` and `.docx` formats
- PowerPoint files in `.ppt` and `.pptx` formats
- Excel files in `.xls` and `.xlsx` formats
- OpenDocument files
- RTF, EPUB, and CSV files

## How it works

The server runs as a standard local MCP process. An MCP client starts it with `npx`, then invokes a conversion tool when the agent needs document contents. `convert_document` accepts a path on disk and returns Markdown. It also accepts an optional `output_path`, which is useful for large reports, decks, or batches that should be saved as `.md` files rather than placed entirely in the immediate tool response.

When a document is available as bytes instead of a filesystem path, `convert_base64` accepts Base64-encoded data and produces Markdown. `list_formats` reports the extensions supported by the conversion engine.

Typical workflows include converting a contract and asking the agent to identify clauses, turning every presentation in a directory into Markdown files, or saving a spreadsheet conversion before asking the agent to review it.

## Setup and configuration

The server can be added to an MCP client with this configuration:

```json
{
  "mcpServers": {
    "anydoc": {
      "command": "npx",
      "args": ["-y", "mcp-server-anydoc"]
    }
  }
}
```

Claude Code can register the same process with:

```bash
claude mcp add anydoc -- npx -y mcp-server-anydoc
```

Cursor and VS Code provide install links for the server, and the repository also documents a local plugin layout that combines the MCP server with an agent skill. No API key or environment variable is needed for the documented setup.

## Tools and capabilities

- `convert_document`: Converts a document at a local path to Markdown. Use `output_path` when the converted content should be saved to disk.
- `convert_base64`: Converts Base64-encoded document bytes when no local path is available.
- `list_formats`: Lists supported file extensions.
- Local conversion: Keeps document processing on the machine running the server.
- Repository workflows: Supports agent-driven conversion of files already stored in a project.

## Limitations and notes

The server targets text-based documents and is not an OCR system. Scanned, image-only PDFs can fail because their text is not available for normal document conversion. Local processing prevents third-party parser uploads, but Markdown returned to an agent can still enter that model's context.

For a single PDF attached to a chat interface, a separate MCP conversion step may be unnecessary. This server is better suited to coding agents that need to read office files from a repository, process multiple files, or create Markdown artifacts on disk.

The project is licensed under MIT. Its documented clients include Claude Code, Cursor, and VS Code with Copilot MCP support.

_Full upstream README: https://allmcps.com/mcp/mcp-server-anydoc/readme_

