# Connect Google Docs to your AI agent

> Yes — ClawLink is a hosted Google Docs MCP server. 33 tools your agent can call from chat, with one-click hosted OAuth and nothing to run locally.

Web version: https://claw-link.dev/hub/google-docs

ClawLink hosts a managed Google Docs MCP server that exposes 33 tools to your AI agent. You connect Google Docs in one click, and your agent can read, create, and update Google Docs data from chat without you building or running a local MCP server.

## Quick facts

- 33 tools callable from chat
- One-click hosted OAuth
- Works with OpenClaw, Hermes, Claude Code, Cursor, Codex, and any MCP client
- No local server or config files

## Overview

The usual path is: build auth, handle token refresh, wire up the tools. With ClawLink you connect Google Docs once and start using the real actions from the agent.

## Setup

Google Docs uses OAuth. You connect it in the browser: click Connect, sign in, approve. ClawLink stores the token and refreshes it on its own. You never touch a key or wire up a redirect URL.

Authentication: hosted OAuth

## What you can do

- **Read and write from chat** — Query, create, and update Google Docs items the moment a question comes up. No export step.
- **Go from insight to action** — The agent reads Google Docs, sums up what matters, and helps you decide the next step.
- **Keep analysis close to the work** — Turning Google Docs data into a follow-up task happens inside one flow.

## Google Docs tools

33 Google Docs tools, ready the moment you connect.

- `googledocs_create_document` — Create a new Google Docs document
- `googledocs_create_document_markdown` — Create a Google Docs document from Markdown
- `googledocs_export_document_as_pdf` — Export a Google Docs document as PDF
- `googledocs_get_document_by_id` — Get Google Docs document metadata and structure
- `googledocs_get_document_plaintext` — Get the plain text content of a Google Docs document
- `googledocs_insert_inline_image` — Insert an inline image into a Google Docs document
- `googledocs_insert_page_break` — Insert a page break into a Google Docs document
- `googledocs_insert_table_action` — Insert a table into a Google Docs document
- `googledocs_insert_text_action` — Insert text at a specific position in a Google Docs document
- `googledocs_replace_all_text` — Replace matching text everywhere in a Google Docs document
- `googledocs_search_documents` — Search Google Docs documents in Drive
- `googledocs_update_document_markdown` — Update a Google Docs document from Markdown
- `googledocs_update_existing_document` — Update content in an existing Google Docs document
- `googledocs_list_spreadsheet_charts` — Retrieve a list of all charts from a specified Google Sheets spreadsheet
- `googledocs_copy_document` — Create a copy of an existing Google Document
- `googledocs_create_footer` — Create a new footer in a Google Document
- `googledocs_create_footnote` — Create a new footnote in a Google Document
- `googledocs_create_header` — Create a new header in a Google Document, optionally with text content
- `googledocs_create_named_range` — Create a new named range in a Google Document
- `googledocs_create_paragraph_bullets` — Add bullets to paragraphs within a specified range in a Google Document
- `googledocs_insert_table_column` — Insert a new column into a table in a Google Document
- `googledocs_replace_image` — Replace a specific image in a document with a new image from a URI
- `googledocs_unmerge_table_cells` — Unmerge previously merged cells in a table
- `googledocs_update_document_section_markdown` — Insert or replace a section of a Google Docs document with Markdown content
- `googledocs_update_document_style` — Update the overall document style, such as page size, margins, and default text direction
- `googledocs_update_table_row_style` — Update the style of a table row in a Google Document

## Example prompts

- **Googledocs create document:** Use Google Docs to googledocs create document and walk me through it.
- **Googledocs create document markdown:** Use Google Docs to googledocs create document markdown and walk me through it.
- **Googledocs export document as PDF:** Use Google Docs to googledocs export document as pdf and walk me through it.
- **Googledocs get document by ID:** Use Google Docs to googledocs get document by id and walk me through it.

## ClawLink vs. building it yourself

| | Manual | ClawLink |
|---|---|---|
| Connection | Build it yourself. You register a developer app with Google Docs, set up redirect URLs, handle the consent screen, store and refresh access tokens, and redo the wiring when scopes change. | Hosted hosted OAuth. Connect once in the browser. ClawLink owns the lifecycle. |
| Maintenance | Token refresh, permission debugging, env config, every edge case. All yours. | ClawLink handles the plumbing. You focus on the workflow. |
| Time to first call | Days to weeks. Auth, storage, tool wiring, testing. Then the agent can act. | About two minutes from sign-up to the agent calling Google Docs. |

## FAQ

### How do I connect Google Docs to my AI agent?

Install ClawLink, open the dashboard, click Connect next to Google Docs, and finish the hosted OAuth flow. Your agent can call Google Docs from the next message. Two minutes, total.

### Is there a Google Docs MCP server I can use?

Yes. ClawLink exposes Google Docs as 33 tools your agent calls through a hosted MCP-compatible runtime. You don't run a local server or edit a config file. The tools are there the moment you connect.

### Do I need Google Docs API credentials?

No separate API key. You sign in to Google Docs through the normal OAuth flow and ClawLink handles the token after that.

### How much does it cost?

Your first integration is free, plus a 7-day trial of the full catalog. Paid plans unlock the rest of the library.

### Can I set this up from the terminal instead of the dashboard?

Yes. Run npx -y @useclawlink/cli login, then npx -y @useclawlink/cli connect google-docs. The first opens a browser to sign in to ClawLink. The second opens a browser to authorize Google Docs. No API keys to create. Works with OpenClaw, Hermes, Claude Code, Cursor, Codex, and any agent that runs shell commands.
