Docspace

io.github.ONLYOFFICE由 GitHub 账号 ONLYOFFICE 发布v3.4.1更新于 Nov 20, 2026

A room-based collaborative platform

已验证SSE可网页运行文件与存储沟通与协作

概览

AI 生成的概览

将助手连接到 ONLYOFFICE Apps(DocSpace),用自然语言管理房间、文件夹、文件和房间访问权限。

可以做什么
  • 创建、重命名、归档和查看房间,并列出房间类型与访问级别
  • 创建、重命名和删除文件夹,查看文件夹内容与信息,包括“我的文档”和“房间”
  • 上传文件、以文本方式下载、重命名、复制、移动和删除文件,并查看文件详情
  • 邀请用户加入房间或将其移除,查看各用户的访问级别
  • 列出工作区中的全部人员
适用场景
当文档和共享房间存放在 ONLYOFFICE Apps 中,希望助手代为归档、移动、上传或清理内容,创建项目房间,或调整访问权限而无需在网页界面中逐项操作时适用。
运行要求
可使用官方托管的远程端点(Streamable HTTP 或 SSE),也可通过 npx、Docker 或 MCP 安装包在本地运行。需要你的 ONLYOFFICE Apps 实例地址(DOCSPACE_BASE_URL)以及凭据:API 密钥(DOCSPACE_API_KEY)、个人访问令牌、基本认证用户名与密码,或 OAuth 2.0 客户端配置。需要能访问该实例的网络。
安装前请注意
凭据均为机密:API 密钥、个人访问令牌、密码以及 OAuth 客户端密钥和签名密钥都需妥善保管。许多工具会修改数据,包括删除文件和文件夹、移动或复制条目、归档房间、邀请或移除房间成员。使用官方托管实例时,请求和文档数据会经过 ONLYOFFICE 的服务器,处理敏感内容前请先查看其隐私政策。

安装

在 SourceWeft 中

  1. 打开 控制台中的 Docspace,将其添加到工作区。
  2. 连接 所需的 凭据。它们会被私密存储,绝不会在公开页面上展示。
  3. 为需要使用其工具的对话启用该服务。

Web executable,通过 SSE。 远程服务在工作区中配置后即可从网页运行时运行。

交给智能体安装

把这段提示词粘贴到 Claude Code、Codex、Cursor 等智能体,或 SourceWeft 对话中。智能体会读取该服务器的安装指南,先向你展示发布者、端点和登录方式,经你同意后再把它添加到你的客户端。密钥不会写进任何命令。

阅读 https://sourceweft.com/mcp/io.github.ONLYOFFICE%2Fdocspace/install.md,并按其中说明把这个 MCP 服务器接入我的客户端。修改任何配置之前,先告诉我它的发布者、端点和登录方式,等我确认。不要把 API 密钥写进命令或我会提交的文件;问我密钥应从哪里获取。

查看智能体所依据的安装指南

其他 MCP 客户端

把它添加到你客户端的 mcpServers 配置中。 客户端会在首次连接时完成 OAuth 登录。

{
  "mcpServers": {
    "docspace": {
      "type": "sse",
      "url": "https://mcp.onlyoffice.com/sse"
    }
  }
}

README

ONLYOFFICE Apps MCP Server

Model Context Protocol (MCP) is a standardized protocol for managing context between large language models (LLMs) and external systems. This repository provides an MCP server for ONLYOFFICE Apps.

The ONLYOFFICE Apps MCP Server connects AI tools directly to ONLYOFFICE Apps. This gives AI agents, assistants, and chatbots the ability to manage rooms, collaborate on files, handle permissions, and automate document workflows - all through natural language interactions.

Features

  • Tools with granular control - Access to tools organized into logical toolsets with fine-grained enable/disable capabilities and meta tools.
  • Multiple transport protocols - Support for stdio, SSE, and Streamable HTTP transports.
  • Different authentication methods - Supports API keys, Personal Access Tokens, Basic authentication, and OAuth 2.0 with dynamic client registration. See examples.
  • Request-level configuration - Configure authentication and tool selection during session initialization using custom HTTP headers.
  • Various distribution formats - Available as Docker image, Docker MCP Server, MCP bundle, and Node.js application.

Use Cases

  • Room Management: Create, update, and archive rooms. Configure room types, manage membership, and control access levels.
  • Folder & File Operations: Create folders, upload documents, copy or move items in batches, rename or delete content, and check file or folder details.
  • Collaboration & Permissions: Invite or remove users, adjust security settings, and review current access rights for rooms and shared spaces.
  • Content Access: Retrieve "My documents" or "Rooms" folders, get folder contents, download files as text, and monitor ongoing file operations.
  • People Directory: List all people in the workspace to streamline invitations and access management.

Connecting Clients to ONLYOFFICE Apps MCP Server

You can connect to the ONLYOFFICE Apps MCP server using any MCP clients. We have covered some popular clients, such as Claude Desktop, Cursor, Devin Desktop, etc., and here you can read about it.

Remote ONLYOFFICE Apps MCP Server

The remote ONLYOFFICE Apps MCP Server is hosted by ONLYOFFICE and provides the fastest way to start using ONLYOFFICE Apps tools inside your AI agent. You can connect to it instantly without deploying or configuring anything on your machine.

The public instance is available at https://mcp.onlyoffice.com/mcp for clients that support modern Streamable HTTP transport and at https://mcp.onlyoffice.com/sse for clients that support only the legacy SSE transport. It is preferable to use the Streamable HTTP transport whenever possible.

See all options for connecting clients to the Remote ONLYOFFICE Apps MCP Server here.

Local ONLYOFFICE Apps MCP Server

If your MCP host does not support remote MCP servers, you can run the local version of the ONLYOFFICE Apps MCP Server instead.

Most clients that implement the MCP protocol have a common configuration file in the JSON format, inside which you can add the ONLYOFFICE Apps MCP Local Server.

Note: The common example below is applicable for Docker image, so Docker must be installed on your system.

Step 1. Locate your config file

Find your client .json configuration file.

Step 2. Add the ONLYOFFICE Apps MCP Server entry

Insert the following block into the mcpServers section of your .json configuration file:

json
{  "mcpServers": {    "onlyoffice-apps": {      "command": "docker",      "args": [        "run",        "--interactive",        "--rm",        "--env",        "DOCSPACE_BASE_URL",        "--env",        "DOCSPACE_API_KEY",        "onlyoffice/docspace-mcp"      ],      "env": {        "DOCSPACE_BASE_URL": "https://your-instance.onlyoffice.com",        "DOCSPACE_API_KEY": "your-api-key"      }    }  }}
Step 3. Set environment values
  • DOCSPACE_BASE_URL - the URL of your ONLYOFFICE Apps instance (e.g. https://your-instance.onlyoffice.com).
  • DOCSPACE_API_KEY - your personal API key generated in ONLYOFFICE Apps Developer Tools → API keys (open Developer Tools from the banner at the bottom of the left sidebar).

All available parameters are listed here.

Step 4. Restart the client

Close and reopen your client. In most cases, the ONLYOFFICE Apps MCP Server will start automatically, and you'll be able to issue natural language commands like:

  • Create a new project room and invite Anna with editor rights.
  • Upload this file to "My documents".

Tools

The ONLYOFFICE Apps MCP server implements the Tools concept described in the MCP specification.

All ONLYOFFICE Apps MCP server tools are described here.

Documentation

The documentation is available in the docs directory.

Samples

The following examples show how to use ONLYOFFICE Apps MCP server.

Privacy Policy

The policies are available at Legal Terms and Privacy Policy.

License

The ONLYOFFICE Apps MCP server is distributed under the MIT license found in the LICENSE file.

来源:README.md,提交 181a1d3

工具

23

delete_file

Delete File

Delete a file.

输入参数fileId必填

get_file_info

Get File Info

Get file information.

输入参数fileId必填filters必填

update_file

Update File

Rename a file by setting a new title. The file content is not changed.

输入参数title必填fileId必填

copy_batch_items

Copy Items

Copy to a folder.

输入参数fileIdsfolderIdsdestFolderId

move_batch_items

Move Items

Move to a folder.

输入参数fileIdsfolderIdsdestFolderId

download_file_as_text

Download File as Text

Download a file as text.

输入参数fileId必填

upload_file

Upload File

Upload a file.

输入参数content必填filename必填parentId必填

create_folder

Create Folder

Create a folder.

输入参数title必填filters必填parentId必填

delete_folder

Delete Folder

Delete a folder.

输入参数folderId必填

get_folder_content

Get Folder Content

Get content of a folder.

输入参数filters必填folderId必填

get_folder_info

Get Folder Info

Get folder information.

输入参数filters必填folderId必填

rename_folder

Rename Folder

Rename a folder.

输入参数title必填filters必填folderId必填

get_my_folder

Get Files Folder

Get the 'My Documents' folder.

输入参数filters必填

create_room

Create Room

Create a room.

输入参数title必填filters必填roomType必填

get_room_info

Get Room Info

Get room information.

输入参数roomId必填filters必填

update_room

Update Room

Rename a room by setting a new title. Only the title can be changed; use set_room_security to change access rights and archive_room to archive the room.

输入参数titleroomId必填filters必填

archive_room

Archive Room

Archive a room.

输入参数roomId必填

set_room_security

Set Room Access

Invite or remove users from a room.

输入参数notifyroomId必填culturefilters必填messageinvitations必填

get_room_security_info

Get Room Access Info

Get a list of users with their access levels to a room.

输入参数roomId必填filters必填

get_rooms_folder

Get Rooms Folder

Get the 'Rooms' folder.

输入参数filters必填

get_room_types

Get Room Types

Get a list of available room types.

无需输入参数。

get_room_access_levels

Get Room Access Levels

Get a list of available room invitation access levels.

输入参数roomId必填

get_all_people

Get All People

Get all people.

输入参数filters必填

版本历史

4
  1. v3.4.1最新Nov 19, 2026
  2. v3.4.0Nov 5, 2026
  3. v3.3.0Oct 9, 2026
  4. v3.2.0Sep 16, 2026

评分

已满足适用检查项的 100%

该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。

  • 近 30 天内可连通必需25 分
  • 已声明认证方式必需10 分
  • 已列出工具15 分
  • 描述必需15 分
  • 图标10 分
  • 文档15 分
  • 许可证10 分