DOCX.sh MCP Server

Upload DOCX, get embeddable HTML previews via MCP using Claude Code, Cursor, or Codex

Documentation

Agent Setup

Connection snippets for Claude Code, Cursor, Codex, and REST API. Subscribe to receive your API token.

Claude Code Cursor Codex REST API

Add docx.sh as a remote MCP server in Claude Code with--transport http. See the Claude Code MCP docs for scopes, OAuth, and troubleshooting.

CLI one-liner

Run from your project root.

Shell Get a license

export DOCXTOHTML_API_TOKEN=XXXXXXYOUR_TOKENXXXXXX claude mcp add --scope project --transport http docxtohtml https://docx.sh/mcp
--header 'Authorization: Bearer ${DOCXTOHTML_API_TOKEN}'

Project MCP config

If you prefer not to use the CLI one-liner above, paste this into .mcp.json instead. Includes your token — treat this file like a secret.

JSON Get a license

{ "mcpServers": { "docxtohtml": { "type": "http", "url": "https://docx.sh/mcp", "headers": { "Authorization": "Bearer XXXXXXYOUR_TOKENXXXXXX" } } } }