← All examples

Google Docs Tool

MCP tool that creates, reads, and edits Google Docs using OAuth. Connect Google and manage documents from any agent.

toolgoogledocsoauthdocumentsmcp

An MCP tool that connects to Google Docs via OAuth. Create, read, and edit documents — all callable by any agent or MCP client.

What's included

  • OAuth connection — connects to Google Docs via Reminix managed OAuth
  • Create documents — create new docs with titles and content
  • Read content — retrieve and read document text
  • Edit/append text — update and append content to documents
  • MCP server — discoverable and callable by any agent or MCP client

When to use this

Pick the Google Docs Tool example when you want to:

  • Build an agent that generates reports or documents automatically
  • Create a conversational agent that edits and summarizes docs
  • Learn how OAuth connections work with Google APIs

How connections work

Reminix handles the Google OAuth flow, token exchange, and automatic refresh. Your tool handler receives a valid access token and uses the Google Docs API directly.

  1. Add Google OAuth credentials in the Reminix dashboard
  2. Authorize the connection to your Google account
  3. Your tool gets fresh tokens on every call

Project structure

├── tools/
│   ├── create_doc.py          # Create a new document
│   └── read_doc.py            # Read document content
├── main.py                    # Entry point with serve()
├── pyproject.toml
└── reminix.config.toml

Quick start

After deploying and connecting your Google account, any agent in your project can create and edit documents automatically.