docx-mcp
Docx MCP workspace with a daemon and supporting libraries for indexing and serving docx metadata.
Crates:
- docx-mcpd: MCP daemon
- docx-mcp: MCP tools
- docx-core: core types and helpers
- docx-store: storage models and schema helpers
Testing:
npx @modelcontextprotocol/inspector -- target\debug\docx-mcpd.exe
When running locally you can add it to an mcp json:
Notes:
- JetBrains HTTP MCP is currently unreliable with
docx-mcp(streamable HTTP handshake/session requirements). Use stdio viadocker runas shown above. - If you use compose, the default network is usually
<folder>_default(for this repo:docx-mcp_default).
Docker
Build the image:
Run with stdio (default):
Enable HTTP MCP + ingest (streamable HTTP):
Or use compose (stdio by default, HTTP disabled):
Container defaults:
- MCP HTTP: disabled (
DOCX_MCP_SERVE=0). - Ingest HTTP: disabled (
DOCX_INGEST_SERVE=0). - Stdio: enabled (
DOCX_ENABLE_STDIO=1). - External DB client: enabled (
DOCX_DB_IN_MEMORY=0).
Notes:
- Compose runs SurrealDB as a separate service and wires
DOCX_DB_URI=ws://surrealdb:8000by default. - When running the container directly, provide your own
DOCX_DB_URI+ credentials. - When
DOCX_MCP_SERVE=0, a non-memory database is required unless--testis supplied (setDOCX_DB_IN_MEMORY=0withDOCX_DB_URI+ credentials).
Override addresses with:
DOCX_MCP_HTTP_ADDRDOCX_INGEST_ADDR
Override SurrealDB settings in compose via the surrealdb service definition.