# ONLYOFFICE DocSpace — MCP server on mcp.ai > Connect your ONLYOFFICE DocSpace account and use 10 tools for documents straight from your AI agent. Connect with your own API key. ONLYOFFICE DocSpace provides tenant-hosted APIs for managing rooms, documents, files, folders, users, groups, sharing, and portal settings. By: mcp.ai · official Page: https://mcp.ai/onlyoffice_docspace ## Connect (MCP protocol) Remote MCP endpoint (HTTP, streamable): https://api.mcp.ai/p_onlyoffice_docspace?ms=1787293560000 Add it as a custom/remote MCP connector, then authenticate when prompted. ## REST API (no MCP client required) Every tool is also a REST endpoint, authed with a workspace API key. Discover: GET https://api.mcp.ai/api/onlyoffice_docspace/_endpoints # public; lists every endpoint Call: POST https://api.mcp.ai/api/onlyoffice_docspace/ Authorization: Bearer sk_live_… # create one at https://mcp.ai/settings/api-keys Content-Type: application/json Body: { …args } → { "ok": true, "tool": "", "result": { … } } ## Developer docs How to use (MCP or REST), markdown: https://mcp.ai/onlyoffice_docspace/skill.md Postman collection (v2.1): https://mcp.ai/onlyoffice_docspace/postman.json ## Tools - onlyoffice_docspace_create_folder(title: string, parent_folder_id: integer) — Create a named subfolder inside an existing DocSpace folder. - onlyoffice_docspace_create_text_file(title: string, content?: string, folder_id: integer, create_new_if_exists?: boolean) — Create a plain-text file with supplied content inside a DocSpace folder. - onlyoffice_docspace_delete_item(item_id: integer, item_type: string, permanently?: boolean, delete_after_editing?: boolean) — Move one file or folder to Trash, or permanently delete it when explicitly requested, then wait for the asynchronous operation to finish. - onlyoffice_docspace_get_account_context() — Return the connected user's identity, non-secret API-key metadata, available key permissions, portal capabilities, and quota features in one read-only preflight. - onlyoffice_docspace_get_file(file_id: integer, version?: integer) — Return metadata, version information, and effective security flags for one file by ID. - onlyoffice_docspace_get_room(room_id: integer) — Return detailed metadata and effective security flags for one room by ID. - onlyoffice_docspace_list_folder_items(limit?: integer, query?: string, cursor?: string, extension?: string, folder_id?: integer|string) — List files and subfolders in My Documents or a folder selected by numeric ID, with optional text or extension filtering. - onlyoffice_docspace_list_groups(limit?: integer, query?: string, cursor?: string, manager?: boolean, user_id?: string) — List or search DocSpace groups, optionally restricted to groups associated with a user or manager role. - onlyoffice_docspace_list_people(limit?: integer, query?: string, cursor?: string, group_id?: string, without_group?: boolean, is_administrator?: boolean) — List visible DocSpace users, optionally filtering by text, group membership, or administrator status. - onlyoffice_docspace_list_rooms(limit?: integer, query?: string, cursor?: string) — List rooms visible to the connected account, optionally filtering by text and continuing from a previous page. ## Example prompts - "What can I do in ONLYOFFICE DocSpace?" - "Show me a summary of my ONLYOFFICE DocSpace account" ## Links Docs: https://mcp.ai/docs/mcps/onlyoffice_docspace Website: https://mcp.ai/mcps/onlyoffice_docspace