Get the MCP server
The DocSpace MCP server can be obtained in several ways depending on your environment and requirements.
Choosing a distribution method
Before choosing a distribution method, consult the following table:
| I want to | Recommended method |
|---|---|
| Get started quickly with minimal setup | Docker Hub, npm Registry |
| Run in an isolated, reproducible environment | Docker Hub, Docker MCP Toolkit |
| Use a GUI to manage everything | Docker MCP Toolkit |
| Install a specific version offline | GitHub releases |
| Customize or contribute to the server | Build from source |
We recommend Docker Hub as it offers a minimal, easy setup to get started, in addition to an isolated environment.
Build the MCP server from source
This method is ideal for developers who want to customize or contribute to the project. You can build from source using three methods, with each having its own prerequisites:
| Build | Prerequisites |
|---|---|
| Docker | Docker |
| Node.js | pnpm (v10 or higher), Node.js (v24 or higher) |
| MCP bundle | pnpm (v10 or higher), Node.js (v24 or higher) |
- Docker image
- Node.js app
- MCP bundle
- Clone the repository from the ONLYOFFICE Git server:
git clone git@git.onlyoffice.com:ONLYOFFICE/docspace-mcp.git
Alternatively, clone from the GitHub mirror:
git clone git@github.com:ONLYOFFICE/docspace-mcp.git
- Navigate to the project directory:
cd docspace-mcp
- Build the Docker image:
docker build --tag onlyoffice/docspace-mcp .
- Run the Docker container:
docker run --interactive --rm onlyoffice/docspace-mcp
- Clone the repository from the ONLYOFFICE Git server:
git clone git@git.onlyoffice.com:ONLYOFFICE/docspace-mcp.git
Alternatively, clone from the GitHub mirror:
git clone git@github.com:ONLYOFFICE/docspace-mcp.git
- Navigate to the project directory:
cd docspace-mcp
- Build the Node.js application:
pnpm build-app
- Run the Node.js application:
./bin/onlyoffice-docspace-mcp
- Clone the repository from the ONLYOFFICE Git server:
git clone git@git.onlyoffice.com:ONLYOFFICE/docspace-mcp.git
Alternatively, clone from the GitHub mirror:
git clone git@github.com:ONLYOFFICE/docspace-mcp.git
- Navigate to the project directory:
cd docspace-mcp
- Build the MCP bundle:
pnpm build-mcpb
- Use the built
.mcpbfile from the root of the project directory in an application that supports MCP bundles.
Pull from Docker Hub
This method is ideal for developers who want a consistent, isolated runtime environment with minimal setup. Before starting:
- Ensure you have Docker installed on your system.
-
Pull the latest DocSpace MCP server image from Docker Hub:
docker pull onlyoffice/docspace-mcpTo pull a specific version:
docker pull onlyoffice/docspace-mcp:<version> -
Run the Docker container:
docker run --interactive --rm onlyoffice/docspace-mcp
Build with Docker MCP Toolkit
This method works best for non-technical users or users who prefer a graphical interface over the command line. Before proceeding, ensure you have:
- Docker Desktop with the Docker MCP Toolkit enabled
-
Enable the Docker MCP Toolkit by following the Enable Docker MCP Toolkit guide.
-
Install the DocSpace MCP server through the Docker Desktop interface using the Install an MCP Server guide, or by using the Docker CLI:
docker mcp server enable onlyoffice-docspace -
Connect the DocSpace MCP server to an MCP client through the Docker Desktop interface using the Install an MCP Client guide, or by using the Docker CLI:
docker mcp client connect --global <client>
Build with npm registry
This method also requires minimal setup and is ideal for developers who want the fastest setup with no containerization overhead. Ensure you have:
- Node.js version 18 or higher
-
Run the latest version of the DocSpace MCP server:
npx --yes @onlyoffice/docspace-mcpTo run a specific version:
npx --yes @onlyoffice/docspace-mcp@<version> -
Open a different terminal session and confirm the MCP server is running:
For Linux/macOS:
ps aux | grep onlyoffice
You should see a list of running onlyoffice processes.
The ps aux command lists all running processes, including those not attached to a terminal - like the MCP server, and then uses the grep command to filter the list for the running processes containing onlyoffice.
For Windows:
Get-Process | Where-Object { $_.Name -like "*onlyoffice*" }
Get-Process retrieves all running processes and then uses the Where-Object command to filter for processes with onlyoffice.
Download the GitHub release
This method is ideal for teams who want to have access without pulling from a registry at runtime. This method also requires you to have Node.js version 18 or higher and is available in two formats:
- As an MCP bundle
- A Node.js application
Download the MCP bundle GitHub release
Use this format if your MCP client supports .mcpb bundle files natively (e.g., Claude Desktop Extensions).
-
Download the latest release:
VERSION=3.1.0 curl --location --output docspace-mcp.mcpb https://github.com/ONLYOFFICE/docspace-mcp/releases/download/v$VERSION/onlyoffice-docspace-mcp-$VERSION.mcpbTo download a specific version:
VERSION=<version> curl --location --output docspace-mcp.mcpb https://github.com/ONLYOFFICE/docspace-mcp/releases/download/v$VERSION/onlyoffice-docspace-mcp-$VERSION.mcpb -
Use the downloaded
.mcpbfile in an application that supports MCP bundles.
Download the Node.js app GitHub release
Use this format if you prefer to run the server as a standard Node.js process.
-
Download the latest release:
VERSION=3.1.0 curl --location --output docspace-mcp.tgz https://github.com/ONLYOFFICE/docspace-mcp/releases/download/v$VERSION/onlyoffice-docspace-mcp-$VERSION.tgzTo download a specific version:
VERSION=<version> curl --location --output docspace-mcp.tgz https://github.com/ONLYOFFICE/docspace-mcp/releases/download/v$VERSION/onlyoffice-docspace-mcp-$VERSION.tgz -
Extract the downloaded archive:
tar --extract --gzip --file docspace-mcp.tgz -
Navigate to the extracted directory:
cd docspace-mcp -
Run the Node.js application:
./bin/onlyoffice-docspace-mcp
After getting the server
- Learn how to connect the MCP server to MCP clients