export DOCXTOHTML_API_TOKEN=XXXXXXYOUR_TOKENXXXXXX
claude mcp add --scope project --transport http docxtohtml https://docx.sh/mcp \
--header 'Authorization: Bearer ${DOCXTOHTML_API_TOKEN}'
Connection snippets for Claude Code, Cursor, Codex, and REST API. Subscribe to receive your API token.
How are you connecting?
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
Project MCP config
{
"mcpServers": {
"docxtohtml": {
"type": "http",
"url": "https://docx.sh/mcp",
"headers": {
"Authorization": "Bearer XXXXXXYOUR_TOKENXXXXXX"
}
}
}
}
Paste into project MCP settings so Cursor can call docx.sh tools.
- Config file
.cursor/mcp.json- MCP endpoint
https://docx.sh/mcp
MCP config
{
"mcpServers": {
"docxtohtml": {
"url": "https://docx.sh/mcp",
"headers": {
"Authorization": "Bearer XXXXXXYOUR_TOKENXXXXXX"
}
}
}
}
Add a remote MCP server in Codex, then point it at your token via an env var.
- Config file
.codex/config.toml- Env var
DOCXTOHTML_API_TOKEN=<token>
MCP server block
[mcp_servers.docxtohtml] url = "https://docx.sh/mcp" bearer_token_env_var = "DOCXTOHTML_API_TOKEN"
Call the HTTP API directly from scripts, CI, or your backend.
- Base URL
https://docx.sh/api/v1- Auth header
Authorization: Bearer <token>
Example upload
curl -X POST "https://docx.sh/api/v1/documents" \ -H "Authorization: Bearer XXXXXXYOUR_TOKENXXXXXX" \ -F "file=@document.docx"