# How to connect PDF Blocks to Grok Bot

```json
{
  "title": "How to connect PDF Blocks to Grok Bot",
  "toolkit": "PDF Blocks",
  "toolkit_slug": "pdf_blocks",
  "framework": "Grok Bot",
  "framework_slug": "grok-bot",
  "url": "https://composio.dev/toolkits/pdf_blocks/framework/grok-bot",
  "markdown_url": "https://composio.dev/toolkits/pdf_blocks/framework/grok-bot.md",
  "updated_at": "2026-11-10T06:01:27.599Z"
}
```

## 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 PDF Blocks 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 PDF Blocks in plain language.

## Also integrate PDF Blocks with

- [ChatGPT](https://composio.dev/toolkits/pdf_blocks/framework/chatgpt)
- [Claude Cowork](https://composio.dev/toolkits/pdf_blocks/framework/claude-cowork)
- [Hermes](https://composio.dev/toolkits/pdf_blocks/framework/hermes-agent)
- [Atomic Agent](https://composio.dev/toolkits/pdf_blocks/framework/atomic-agent)

## TL;DR

Composio exposes 1,700+ apps to your Grok bot through a single connection, so you get:
- Connect to 1,700+ 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 PDF Blocks to Grok Bot

### Connecting PDF Blocks to Grok Bot
Once Grok Bot is set up, you connect PDF Blocks 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 PDF Blocks
### 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 PDF Blocks account
Back in the chat, ask your bot to connect to PDF Blocks or give it any PDF Blocks task.
For example, ask it to:
- "Merge three PDFs and add watermark"
- "Split PDF into separate page files"
- "Protect PDF with password and permissions"
It will prompt you to authenticate and authorize access.
That's it. Composio's tools are now available in your Grok bot, and your PDF Blocks 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 PDF Blocks through MCP without you sharing account credentials directly with the agent.

## What is the PDF Blocks MCP server, and what's possible with it?

The PDF Blocks MCP server is an implementation of the Model Context Protocol that connects your AI agent and assistants like Claude, Cursor, etc directly to your PDF Blocks account. It provides structured and secure access to PDF document operations, so your agent can merge, split, watermark, secure, and reorganize PDFs on your behalf.
- PDF merging and splitting: Have your agent combine PDFs in a chosen order or split a document at a page, by page count, by custom page groups, or by file size.
- Page extraction and organization: Direct your agent to extract or remove selected pages, reorder them, reverse the full document, or repeat pages in a new PDF.
- Page rotation: Let the agent rotate all pages or selected pages by a supported multiple of 90 degrees.
- Text and image watermarks: Instruct your agent to add styled text or a PNG or JPEG watermark to every page or only selected pages.
- PDF security and permissions: Have your agent add or remove passwords, set or clear document permissions, and remove digital signatures and timestamps.

## Supported Tools

| Tool slug | Name | Description |
|---|---|---|
| `PDF_BLOCKS_ADD_IMAGE_WATERMARK` | Add Image Watermark | Add a PNG or JPEG image as a watermark on all or selected PDF pages. |
| `PDF_BLOCKS_ADD_PASSWORD` | Add PDF Password | Create an encrypted copy of a PDF that requires a password to open. |
| `PDF_BLOCKS_ADD_RESTRICTIONS` | Add PDF Restrictions | Create an encrypted PDF copy with explicit permissions for copying, editing, printing, forms, assembly, and accessibility. Permissions are allowed by default; set an allow_* parameter to false to restrict that capability. |
| `PDF_BLOCKS_ADD_TEXT_WATERMARK` | Add Text Watermark | Add up to three styled text lines as a watermark on all or selected PDF pages. |
| `PDF_BLOCKS_EXTRACT_PAGES` | Extract PDF Pages | Create a PDF containing selected source pages in their original order. |
| `PDF_BLOCKS_MERGE_PDFS` | Merge PDFs | Merge PDF files into one PDF in the exact order provided. |
| `PDF_BLOCKS_REMOVE_PAGES` | Remove PDF Pages | Create a PDF with selected pages removed while preserving the remaining page order. |
| `PDF_BLOCKS_REMOVE_PASSWORD` | Remove PDF Password | Create an unencrypted copy of a password-protected PDF using its current password. |
| `PDF_BLOCKS_REMOVE_RESTRICTIONS` | Remove PDF Restrictions | Create a PDF copy with permission restrictions cleared. |
| `PDF_BLOCKS_REMOVE_SIGNATURES` | Remove PDF Signatures | Create a PDF copy with all digital signatures and timestamps removed. |
| `PDF_BLOCKS_REORDER_PAGES` | Reorder PDF Pages | Create a PDF in an exact page order, optionally dropping or repeating source pages. |
| `PDF_BLOCKS_REVERSE_PAGES` | Reverse PDF Pages | Create a PDF with the complete page order reversed. |
| `PDF_BLOCKS_ROTATE_PAGES` | Rotate PDF Pages | Rotate all or selected PDF pages by a supported multiple of 90 degrees. |
| `PDF_BLOCKS_SPLIT_PDF_AT_PAGE` | Split PDF at Page | Split a PDF into exactly two downloadable PDFs at a page boundary; the selected page starts the second PDF. |
| `PDF_BLOCKS_SPLIT_PDF_BY_PAGE_COUNT` | Split PDF by Page Count | Split a PDF into consecutive downloadable PDFs containing up to a fixed number of pages each. |
| `PDF_BLOCKS_SPLIT_PDF_BY_PAGE_GROUPS` | Split PDF by Page Groups | Create one downloadable PDF for each caller-defined ordered group of source pages. |
| `PDF_BLOCKS_SPLIT_PDF_BY_SIZE` | Split PDF by Size | Split a PDF into downloadable PDFs no larger than a requested byte limit. |

## Supported Triggers

None listed.

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

Once connected, your Grok bot can access the PDF Blocks 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 PDF Blocks 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 PDF Blocks MCP Agent with another framework

- [ChatGPT](https://composio.dev/toolkits/pdf_blocks/framework/chatgpt)
- [Claude Cowork](https://composio.dev/toolkits/pdf_blocks/framework/claude-cowork)
- [Hermes](https://composio.dev/toolkits/pdf_blocks/framework/hermes-agent)
- [Atomic Agent](https://composio.dev/toolkits/pdf_blocks/framework/atomic-agent)

## 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 PDF Blocks MCP?

With a standalone PDF Blocks MCP server, the agents and LLMs can only access a fixed set of PDF Blocks tools tied to that server. However, with the Composio Tool Router, agents can dynamically load tools from PDF Blocks 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 PDF Blocks tools.

### Can I manage the permissions and scopes for PDF Blocks while using Tool Router?

Yes, absolutely. You can configure which PDF Blocks 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 PDF Blocks data and credentials are handled as safely as possible.

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