Skip to main content
Prerequisites Before you begin, create an account and get your API Key.

Getting started

Connect to Google Docs to create, edit, and manage Google Docs documents and collaborate on content through AI agents.
  • API
  • UI
  • Open Source
1

Install the SDKs (optional)

pip install klavis
2

Create a Strata MCP Server with Google Docs

from klavis import Klavis
from klavis.types import McpServerName

klavis_client = Klavis(api_key="YOUR_API_KEY")

response = klavis_client.mcp_server.create_strata_server(
    servers=[McpServerName.GOOGLE_DOCS],
    user_id="user123"
)

API Reference

Full Strata API endpoints
3

Authenticate

import webbrowser

# Open OAuth authorization page
webbrowser.open(response.oauth_urls[McpServerName.GOOGLE_DOCS])
🎉 Your Google Docs MCP Server is ready! Once authentication is complete, you can use your MCP server URL with any MCP-compatible client.

Available Tools

Tool NameDescription
google_docs_get_document_by_idRetrieve a Google Docs document by ID
google_docs_get_all_documentsGet all Google Docs documents from the user’s Drive
google_docs_insert_text_at_endInsert text at the end of a Google Docs document
google_docs_create_blank_documentCreate a new blank Google Docs document with a title
google_docs_create_document_from_textCreate a new Google Docs document with specified text content
For more details about tool input schema, use the get_tools API.

Next Steps

I