
DocSpace MCP 服务器
概览
[模型上下文协议](MCP)是一种用于管理大型语言模型(LLM)与外部系统之间上下文的标准协议。该仓库为[ONLYOFFICE DocSpace]提供了一台MCP服务器。 DocSpace MCP 服务器将 AI 工具直接连接到 ONLYOFFICE DocSpace。这使 AI 代理、助理和聊天机器人能够通过自然语言交互管理房间、协作文件、处理权限并自动化文档工作流程。 - - 访问以逻辑工具集组织的工具,具备细粒度的启用/禁用功能和元工具。- - 支持标准节点、SSE和可流式HTTP传输。- - 支持API密钥、个人访问令牌、基本认证和带动态客户端注册的OAuth 2.0。见示例。- - 在会话初始化时使用自定义HTTP头配置认证和工具选择。- - 可作为Docker镜像、Docker MCP服务器、MCP捆绑包和Node.js应用形式提供。
概述(AI 翻译)
[模型上下文协议](MCP)是一种用于管理上下文的标准化协议 大型语言模型(LLM)与外部系统之间的交流。本仓库 为[ONLYOFFICE应用]提供MCP服务器。
ONLYOFFICE 应用 MCP 服务器将 AI 工具直接连接到 ONLYOFFICE 应用。这使 AI 代理、助理和聊天机器人能够通过自然语言交互管理房间、协作文件、处理权限和自动化文档工作流程。
特色
- 具有细粒控制的工具 - 访问按逻辑组织的工具 拥有细粒度的启用/禁用功能和元工具。
- 多传输协议 - 支持stdio、SSE和可流式HTTP 运输。
- 不同的认证方法 - 支持API密钥,个人访问 令牌、基本认证和带动态客户端注册的OAuth 2.0。参见示例。
- 请求级配置 - 配置认证和工具选择 在会话初始化过程中使用自定义HTTP头。
- 多种分发格式 - 可作为 Docker 镜像、Docker MCP 提供 服务器、MCP捆绑包和Node.js应用程序。
使用场景
本页由 AI 翻译,技术细节请以原文为准。
README
以下为原文 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.
安装
docker run --interactive --rm --env DOCSPACE_BASE_URL --env DOCSPACE_API_KEY onlyoffice/docspace-mcp配置
{
"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"
}
}
}
}