Metadata-Version: 2.5
Name: hhc-doc-markitdown-mcp
Version: 0.1.0
Summary: An npx-friendly MCP server for the "markitdown" library (repackaged from Microsoft markitdown-mcp, MIT).
Project-URL: Documentation, https://github.com/microsoft/markitdown#readme
Project-URL: Issues, https://github.com/microsoft/markitdown/issues
Project-URL: Source, https://github.com/microsoft/markitdown
Author: hhc
License-Expression: MIT
License-File: LICENSE
Keywords: conversion,document,markdown,markitdown,mcp,model-context-protocol
Classifier: Development Status :: 4 - Beta
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Programming Language :: Python :: 3.13
Classifier: Programming Language :: Python :: Implementation :: CPython
Classifier: Programming Language :: Python :: Implementation :: PyPy
Requires-Python: >=3.10
Requires-Dist: markitdown[all]<0.2.0,>=0.1.9
Requires-Dist: mcp<3.0.0,>=2.1.1
Description-Content-Type: text/markdown

# hhc-doc-markitdown-mcp

An npx-friendly MCP server for the [MarkItDown](https://github.com/microsoft/markitdown) library.

It exposes one tool, `convert_to_markdown(uri)`, where `uri` can be any `http:`,
`https:`, `file:`, or `data:` URI. It converts 29+ document formats (PDF, Word,
Excel, PowerPoint, images, audio, HTML, CSV/JSON/XML, ZIP, EPUB, YouTube URLs, …)
into clean, structure-preserving Markdown optimized for LLMs.

> **Provenance.** This package is a repackaging of Microsoft's
> [`markitdown-mcp`](https://github.com/microsoft/markitdown) (MIT License,
> Copyright Adam Fourney / Microsoft). It is not an official Microsoft package.
> The original MIT license and attribution are preserved in `LICENSE`.

## Install

From PyPI:

```bash
pip install hhc-doc-markitdown-mcp
```

Run the STDIO server (default):

```bash
hhc-doc-markitdown-mcp
```

Run with Streamable HTTP + SSE:

```bash
hhc-doc-markitdown-mcp --http --host 127.0.0.1 --port 3001
```

## Use via `npx` (no uvx needed)

The companion npm package [`hhc-doc-markitdown-mcp`](https://www.npmjs.com/package/hhc-doc-markitdown-mcp)
is a thin launcher: it finds a local Python 3.10+, builds a cached venv, installs
this PyPI package into it, and runs the STDIO server — passing stdin/stdout
straight through. Register it in any MCP client with:

```json
{
  "mcpServers": {
    "hhc-doc-markitdown": {
      "command": "npx",
      "args": ["-y", "hhc-doc-markitdown-mcp"]
    }
  }
}
```

Requirements: Node.js (for `npx`) and a local Python 3.10+. The venv is created
once and cached under `~/.cache/hhc-doc-markitdown-mcp` (or `%LOCALAPPDATA%` on
Windows), so only the first run is slow.

## Plugins / OCR

Set `MARKITDOWN_ENABLE_PLUGINS=true` to enable MarkItDown plugins (e.g. OCR).

## Security considerations

The server does not support authentication and runs with the privileges of the
user running it. The `convert_to_markdown` tool can read any file the server's
user can access. Keep HTTP/SSE mode bound to `localhost` (the default) unless you
understand the implications.

## License

MIT. See `LICENSE`.
