Installation
Prerequisites
Section titled “Prerequisites”| Requirement | Version | Purpose |
|---|---|---|
| Node.js | >= 24.0.0 | Runtime for the MCP server |
| npm | >= 11 | Package manager |
| Docker | 24.0+ | OnlyOffice Document Server container |
| Docker Compose | v2 | Multi-service orchestration |
Install Steps
Section titled “Install Steps”-
Clone the repository
Terminal window git clone https://gitlab.satware.com/satware/mcp/onlyoffice.gitcd onlyoffice -
Install dependencies
Terminal window npm ci -
Start OnlyOffice Document Server
The MCP server requires a running OnlyOffice Document Builder container for document generation.
Terminal window docker compose -f docker/docker-compose.yml up -dVerify the Document Server is healthy:
Terminal window curl -f http://localhost:9980/healthcheck# Expected: true -
Build the MCP server
Terminal window npm run buildThis compiles TypeScript to
dist/and builds the admin UI todist/admin-ui/index.html. -
Run the tests (optional)
Terminal window npm test # Unit testsnpm run test:int # Integration tests (requires Docker)
Environment Variables
Section titled “Environment Variables”Required
Section titled “Required”| Variable | Description | Default |
|---|---|---|
ONLYOFFICE_JWT_SECRET |
JWT secret for OnlyOffice Document Server communication | - |
Optional (Common)
Section titled “Optional (Common)”| Variable | Description | Default |
|---|---|---|
MCP_PORT |
HTTP server port | 3847 |
ADMIN_PASSWORD |
Password for /admin UI. If unset, /admin returns 503 |
- |
CREDENTIAL_MASTER_PASSWORD |
Enables credential management tools (5 additional MCP tools) | - |
ARTIFACTS_BASE_URL |
Base URL for artifact downloads (stdio mode). If unset, artifacts are returned as base64 | - |
CORS_ORIGINS |
Comma-separated allowed origins for /mcp endpoint |
* (dev) |
See the Deployment Guide for the full environment variable reference.
Verify Installation
Section titled “Verify Installation”# Start the HTTP servernpm run start:server
# Check healthcurl -f http://localhost:3847/health# Expected: {"status":"healthy","version":"1.3.0",...}Next Steps
Section titled “Next Steps”- Quick Start - Generate your first document
- STDIO Setup - Configure local MCP clients
- HTTP Setup - Configure remote MCP clients