# How to connect ONLYOFFICE DocSpace to Grok Bot

```json
{
  "title": "How to connect ONLYOFFICE DocSpace to Grok Bot",
  "toolkit": "ONLYOFFICE DocSpace",
  "toolkit_slug": "onlyoffice_docspace",
  "framework": "Grok Bot",
  "framework_slug": "grok-bot",
  "url": "https://composio.dev/toolkits/onlyoffice_docspace/framework/grok-bot",
  "markdown_url": "https://composio.dev/toolkits/onlyoffice_docspace/framework/grok-bot.md",
  "updated_at": "2026-10-04T16:00:59.759Z"
}
```

## Introduction

Grok is xAI's assistant, and its bot builder lets you create a personal agent that holds context, runs skills, and connects to the apps you already use through plugins.
This guide explains how to connect ONLYOFFICE DocSpace to a Grok bot using Composio Connect, which handles OAuth, token refresh, and reliability so you do not have to. You add Composio as a plugin, authenticate once, then ask your bot to work with ONLYOFFICE DocSpace in plain language.

## Also integrate ONLYOFFICE DocSpace with

- [ChatGPT](https://composio.dev/toolkits/onlyoffice_docspace/framework/chatgpt)
- [Claude Cowork](https://composio.dev/toolkits/onlyoffice_docspace/framework/claude-cowork)

## TL;DR

Composio exposes 1,500+ apps to your Grok bot through a single connection, so you get:
- Connect to 1,500+ apps with on-demand tool loading, so you do not fill your context window with unnecessary tool definitions.
- Use programmatic tool calling through a remote workbench, letting the model write its own code to handle complex tool chaining. This reduces back-and-forth for frequent tool calls.
- Handle large tool responses outside the model context to keep conversations lean.

## Connect ONLYOFFICE DocSpace to Grok Bot

### Connecting ONLYOFFICE DocSpace to Grok Bot
Once Grok Bot is set up, you connect ONLYOFFICE DocSpace entirely from its interface, and the whole flow takes under a minute.
### Set up Grok Bot
Get access. Grok Bot is included with Cursor Ultra, Cursor Premium Teams, and SuperGrok Heavy. Get the desktop app for macOS or Windows from [x.ai/bot](https://x.ai/bot) and sign in. An iPhone companion app is also available, and your bots sync across devices.
Create a bot. Pick a suggested role or define your own, then give it a short name, one primary job, and a short description of how it should work. Focused bots work best, because a clear role gives the bot more useful context over time.
### Connect ONLYOFFICE DocSpace
### 1. Add the Composio plugin
Click the button. The Composio listing on x.ai opens and launches Grok Bot for you. If the app does not open on its own, click Add to Grok Bot.
[Add to Grok Bot](https://x.ai/bot/plugin/32661537)
Grok Bot opens the Composio plugin, showing its connector and skills. Click Add.
### 2. Authenticate
Go to the Installed section and click the Composio entry. You'll see its connector and skills listed.
Click Authenticate. You'll be taken to the Composio consent screen. Review the access it requests and click Authorize. Composio handles the OAuth handshake for you, so you never touch API keys or tokens.
### 3. Connect your ONLYOFFICE DocSpace account
Back in the chat, ask your bot to connect to ONLYOFFICE DocSpace or give it any ONLYOFFICE DocSpace task.
For example, ask it to:
- "List documents in project rooms"
- "Create folder for vendor contracts"
- "Share finance room with auditors"
It will prompt you to authenticate and authorize access.
That's it. Composio's tools are now available in your Grok bot, and your ONLYOFFICE DocSpace account is ready to use.

## What is Grok Bot?

Grok is xAI's assistant, available as a chat interface and a bot builder for creating personal agents that run skills and connect to external apps.
With Composio Connect, your Grok bot can securely access apps like ONLYOFFICE DocSpace through MCP without you sharing account credentials directly with the agent.

## What is the ONLYOFFICE DocSpace MCP server, and what's possible with it?

The ONLYOFFICE DocSpace MCP server is an implementation of the Model Context Protocol that connects your AI agent and assistants like Claude, Cursor, etc directly to your ONLYOFFICE DocSpace account. It provides structured and secure access to your rooms, files, folders, people, groups, and account details, so your agent can browse content, create folders and text files, inspect files and rooms, find collaborators, and remove items on your behalf.
- File and folder browsing: Have your agent list files and subfolders in My Documents or a chosen folder, with optional filtering by text or file extension.
- Folder and text file creation: Direct your agent to create organized subfolders and add plain text files with the content you provide.
- Room and file review: Let the agent find visible rooms and review detailed information, versions, and access settings for rooms or files.
- People and group discovery: Instruct your agent to find visible users and groups, including administrators, group members, or groups managed by a specific person.
- Account checks and item cleanup: Have your agent review the connected account's permissions, portal features, and quotas, or move unwanted files and folders to Trash and permanently delete them when requested.

## Supported Tools

| Tool slug | Name | Description |
|---|---|---|
| `ONLYOFFICE_DOCSPACE_CREATE_FOLDER` | Create Folder | Create a named subfolder inside an existing DocSpace folder. |
| `ONLYOFFICE_DOCSPACE_CREATE_TEXT_FILE` | Create Text File | Create a plain-text file with supplied content inside a DocSpace folder. |
| `ONLYOFFICE_DOCSPACE_DELETE_ITEM` | Delete File Or Folder | 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` | 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` | Get File | Return metadata, version information, and effective security flags for one file by ID. |
| `ONLYOFFICE_DOCSPACE_GET_ROOM` | Get Room | Return detailed metadata and effective security flags for one room by ID. |
| `ONLYOFFICE_DOCSPACE_LIST_FOLDER_ITEMS` | List Folder Items | List files and subfolders in My Documents or a folder selected by numeric ID, with optional text or extension filtering. |
| `ONLYOFFICE_DOCSPACE_LIST_GROUPS` | List Groups | List or search DocSpace groups, optionally restricted to groups associated with a user or manager role. |
| `ONLYOFFICE_DOCSPACE_LIST_PEOPLE` | List People | List visible DocSpace users, optionally filtering by text, group membership, or administrator status. |
| `ONLYOFFICE_DOCSPACE_LIST_ROOMS` | List Rooms | List rooms visible to the connected account, optionally filtering by text and continuing from a previous page. |

## Supported Triggers

None listed.

## Creating MCP Server - Stand-alone vs Composio SDK

Once connected, your Grok bot can access the ONLYOFFICE DocSpace MCP server through Composio to run the actions you authorize, using plain language in the chat.

## Complete Code

None listed.

## Conclusion

### Way Forward
Now that ONLYOFFICE DocSpace is connected, extend your setup by connecting the other apps you already use every day, so your Grok bot can run true cross-app workflows end to end.
- Connect Calendar to turn threads into scheduled meetings automatically.
- Connect Slack or Teams to post summaries, approvals, and alerts where your team works.
- Connect Notion, Linear, Jira, or Asana to convert requests into tickets, tasks, and docs.
- Connect Drive, Dropbox, or OneDrive to fetch, file, and share attachments without manual steps.
Start with one workflow you do repeatedly, then keep adding apps as you find new handoffs. With everything behind a single connection, your bot can coordinate multiple tools safely and reliably in one conversation.

## How to build ONLYOFFICE DocSpace MCP Agent with another framework

- [ChatGPT](https://composio.dev/toolkits/onlyoffice_docspace/framework/chatgpt)
- [Claude Cowork](https://composio.dev/toolkits/onlyoffice_docspace/framework/claude-cowork)

## Related Toolkits

- [Google Drive](https://composio.dev/toolkits/googledrive) - Google Drive is a cloud storage platform for uploading, sharing, and collaborating on files. It's perfect for keeping your documents accessible and organized across devices.
- [Google Docs](https://composio.dev/toolkits/googledocs) - Google Docs is a cloud-based word processor that enables document creation and real-time collaboration. Its seamless sharing and version history make team editing and content management a breeze.
- [Google Super](https://composio.dev/toolkits/googlesuper) - Google Super is an all-in-one suite combining Gmail, Drive, Calendar, Sheets, Analytics, and more. It gives you a unified platform to manage your digital life, boosting productivity and organization.
- [ActiveMerge](https://composio.dev/toolkits/active_merge) - ActiveMerge is a document automation platform for generating documents, images, merged files, and e-signature workflows. It helps teams turn templates and stored files into finished, shareable documents faster.
- [Affinda](https://composio.dev/toolkits/affinda) - Affinda is an AI-powered document processing platform that automates data extraction from resumes, invoices, and more. It streamlines document-heavy workflows by turning files into structured, actionable data.
- [Agility cms](https://composio.dev/toolkits/agility_cms) - Agility CMS is a headless content management system for building and managing digital experiences across platforms. It lets teams update content quickly and deliver omnichannel experiences with ease.
- [Airparser](https://composio.dev/toolkits/airparser) - Airparser is an AI-powered parser for extracting structured data from emails, documents, PDFs, and files. It turns messy inbound content into clean fields your apps and workflows can use.
- [Algodocs](https://composio.dev/toolkits/algodocs) - Algodocs is an AI-powered platform that automates data extraction from business documents. It delivers fast, secure, and accurate processing without templates or manual training.
- [Api2pdf](https://composio.dev/toolkits/api2pdf) - Api2Pdf is a REST API for generating PDFs from HTML, URLs, and documents using powerful engines like wkhtmltopdf and Headless Chrome. It streamlines document conversion and automation for developers and businesses.
- [Archive.org](https://composio.dev/toolkits/archive_org) - Archive.org is the Internet Archive's digital library of websites, books, audio, video, and images. Use it to preserve, explore, and access historical web captures and public-domain media.
- [Aryn](https://composio.dev/toolkits/aryn) - Aryn is an AI-powered platform for parsing, extracting, and analyzing data from unstructured documents. Use it to automate document processing and unlock actionable insights from your files.
- [Boldsign](https://composio.dev/toolkits/boldsign) - Boldsign is a digital eSignature platform for sending, signing, and tracking documents online. Organizations use it to automate agreements and manage legally binding workflows efficiently.
- [Boloforms](https://composio.dev/toolkits/boloforms) - BoloForms is an eSignature platform built for small businesses, offering unlimited signatures, templates, and forms. It simplifies digital document signing and team collaboration at a predictable, fixed price.
- [Box](https://composio.dev/toolkits/box) - Box is a cloud content management and file sharing platform for businesses. It helps teams securely store, organize, and collaborate on files from anywhere.
- [Box MCP](https://composio.dev/toolkits/box_mcp) - Box MCP is Box's hosted MCP server that exposes enterprise files, folders, and metadata. It provides secure, centralized access to corporate content for search and management.
- [Carbone](https://composio.dev/toolkits/carbone) - Carbone is a blazing-fast report generator that turns JSON data into PDFs, Word docs, spreadsheets, and more using flexible templates. It lets you automate document creation at scale with minimal code.
- [Castingwords](https://composio.dev/toolkits/castingwords) - CastingWords is a transcription service specializing in human-powered, accurate transcripts via a simple API. Get seamless audio-to-text conversion for interviews, meetings, podcasts, and more.
- [CertSeal](https://composio.dev/toolkits/cert_seal) - CertSeal is an API platform for issuing and managing verifiable digital certificates. Use it to automate trusted certificate workflows for recipients, batches, designs, and webhooks.
- [Cloudconvert](https://composio.dev/toolkits/cloudconvert) - CloudConvert is a powerful file conversion service supporting over 200 file formats. It streamlines converting, compressing, and managing documents, media, and more, all in one place.
- [Cloudlayer](https://composio.dev/toolkits/cloudlayer) - Cloudlayer is a document and asset generation service for creating PDFs and images via API or SDKs. It lets you automate high-quality doc creation, saving dev time and reducing manual work.

## Frequently Asked Questions

### What are the differences in Tool Router MCP and ONLYOFFICE DocSpace MCP?

With a standalone ONLYOFFICE DocSpace MCP server, the agents and LLMs can only access a fixed set of ONLYOFFICE DocSpace tools tied to that server. However, with the Composio Tool Router, agents can dynamically load tools from ONLYOFFICE DocSpace and many other apps based on the task at hand, all through a single MCP endpoint.

### Can I use Tool Router MCP with Grok Bot?

Yes, you can. Grok Bot fully supports MCP integration. You get structured tool calling, message history handling, and model orchestration while Tool Router takes care of discovering and serving the right ONLYOFFICE DocSpace tools.

### Can I manage the permissions and scopes for ONLYOFFICE DocSpace while using Tool Router?

Yes, absolutely. You can configure which ONLYOFFICE DocSpace scopes and actions are allowed when connecting your account to Composio. You can also bring your own OAuth credentials or API configuration so you keep full control over what the agent can do.

### How safe is my data with Composio Tool Router?

All sensitive data such as tokens, keys, and configuration is fully encrypted at rest and in transit. Composio is SOC 2 Type 2 compliant and follows strict security practices so your ONLYOFFICE DocSpace data and credentials are handled as safely as possible.

---
[See all toolkits](https://composio.dev/toolkits) · [Composio docs](https://docs.composio.dev/llms.txt)
