Skip to main content
Glama
risvan1605

Google Workspace MCP Server

by risvan1605

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
LOG_LEVELNoLogging level (e.g., DEBUG, INFO, WARNING, ERROR).INFO
GOOGLE_TOKEN_PATHYesPath to the stored OAuth token JSON file.
GOOGLE_CREDENTIALS_PATHYesPath to the Google OAuth credentials JSON file.

Capabilities

Features and capabilities supported by this server

CapabilityDetails
tools
{
  "listChanged": false
}
prompts
{
  "listChanged": false
}
resources
{
  "subscribe": false,
  "listChanged": false
}
experimental
{}

Tools

Functions exposed to the LLM to take actions

NameDescription
draft_emailA

Create a new email draft in Gmail.

Args: to: Recipient email address (comma-separated for multiple recipients). subject: Email subject line. body: Email body content. cc: CC recipients (comma-separated, optional). bcc: BCC recipients (comma-separated, optional). body_type: Content type — "plain" for plain text or "html" for HTML content.

Returns: Draft ID, message ID, and a summary of the created draft.

update_email_draftA

Update an existing email draft in Gmail.

Only provide the fields you want to change — unchanged fields will be preserved from the original draft.

Args: draft_id: The ID of the draft to update. to: New recipient(s), or leave empty to keep existing. subject: New subject, or leave empty to keep existing. body: New body content, or leave empty to keep existing. cc: New CC recipients, or leave empty to keep existing. bcc: New BCC recipients, or leave empty to keep existing. body_type: Content type — "plain" or "html".

Returns: Updated draft details or error information.

send_new_emailA

Send an email directly via Gmail.

This sends the email immediately without creating a draft first.

Args: to: Recipient email address (comma-separated for multiple recipients). subject: Email subject line. body: Email body content. cc: CC recipients (comma-separated, optional). bcc: BCC recipients (comma-separated, optional). body_type: Content type — "plain" for plain text or "html" for HTML content.

Returns: Sent message ID and thread details, or error information.

send_existing_draftB

Send an existing email draft via Gmail.

Args: draft_id: The ID of the draft to send.

Returns: Sent message details or error information.

get_email_draftB

Retrieve an existing email draft from Gmail.

Args: draft_id: The ID of the draft to retrieve.

Returns: Draft details including headers, snippet, and IDs.

create_google_docA

Create a new Google Document.

Args: title: The title of the new document. content: Optional initial text content to add to the document body.

Returns: Document ID, title, and URL on success, or error details on failure.

read_google_docA

Read the full content of a Google Document.

Extracts all text content from the document, preserving paragraph structure.

Args: document_id: The ID of the Google Document to read (found in the document URL).

Returns: Document ID, title, full text content, and URL.

append_to_google_docA

Append content to the end of an existing Google Document.

The content is added after the existing text without overwriting anything.

Args: document_id: The ID of the Google Document to append to. content: The text content to append to the document.

Returns: Document ID, title, number of characters appended, and URL.

get_google_doc_metadataA

Get metadata for a Google Document.

Retrieves the document's title, revision ID, URL, and page size without reading the full content.

Args: document_id: The ID of the Google Document.

Returns: Document metadata including title, revision, and URL.

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/risvan1605/MCP-Server---Gmail-and-Doc'

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