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

How are you connecting?

Claude Code, Cursor, or Codex if your agent speaks MCP. REST for scripts and backends.

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.

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.

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