Skip to main content
Glama
alejoacelas

gdoc MCP

by alejoacelas

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
GDOC_BINNoAbsolute path to the gdoc CLI binary when running from source. Defaults to 'gdoc' on PATH.
GOOGLE_CLIENT_IDNoGoogle OAuth client ID. Required for the remote connector with hosted OAuth callback.
GOOGLE_CLIENT_SECRETNoGoogle OAuth client secret. Required for the remote connector with hosted OAuth callback.
ALLOWED_GOOGLE_DOMAINNoRestricts Google OAuth to a specific domain, e.g., 80000hours.org for organizational deployments.

Capabilities

Features and capabilities supported by this server

CapabilityDetails
tools
{
  "listChanged": true
}

Tools

Functions exposed to the LLM to take actions

NameDescription
connect_googleA

Connect Google Docs by opening Google's authorization page in the user's browser. Use this when gdoc reports that it is not authenticated. The bundled OAuth client is selected automatically; no terminal or copied token is needed.

list_filesC

List Google Docs or Sheets in Drive or a folder.

search_filesC

Search Drive files by name or content.

read_documentB

Read a Google Doc as Markdown or a Sheet as a table. Can include tabs, revisions, and inline comments.

document_infoB

Get document metadata, ownership, modified time, and size.

list_tabsB

List document tabs or spreadsheet worksheets.

table_of_contentsC

Extract a document heading outline with deep links.

list_revisionsB

List retained revisions for a document.

list_commentsC

List open comments, optionally including resolved threads.

get_commentC

Get one comment thread with full detail.

add_commentC

Add a document comment, optionally anchored to quoted text.

reply_to_commentC

Reply to a document comment.

resolve_commentC

Resolve a comment, optionally with a final message.

reopen_commentB

Reopen a resolved comment.

edit_documentC

Replace text or a table cell in a document. Replacement text supports Markdown formatting.

create_documentC

Create a Google Doc, optionally initialized from Markdown.

write_documentC

Replace a whole document or one tab with Markdown.

insert_documentC

Insert Markdown at the start or end of a document tab.

add_tabC

Add a tab to an existing Google Doc.

copy_documentC

Duplicate a document with a new title.

share_documentC

Share a document with an email address.

gdoc_cliA

Run an allowlisted gdoc command for options not covered by typed tools. Arguments are passed directly without a shell.

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription

No resources

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/alejoacelas/gdoc-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server