Skip to main content

Google Docs MCP Server for managing Google Docs via the Model Context Protocol

Project description

Barie Google Docs MCP Server

A Model Context Protocol (MCP) server for managing Google Docs - list docs, create docs, fetch document structure, rename documents, and edit content.

Installation

# Run directly from PyPI (recommended)
uvx barie-google-docs-mcp --help

# Optional: pin a version
uvx barie-google-docs-mcp==0.1.1 --help

# Or install locally
pip install -e .

Usage

uvx barie-google-docs-mcp \
  --access-token "YOUR_ACCESS_TOKEN" \
  --refresh-token "YOUR_REFRESH_TOKEN" \
  --client-id "YOUR_CLIENT_ID" \
  --client-secret "YOUR_CLIENT_SECRET" \
  --expiry "2024-12-31T23:59:59Z" \
  --scopes '["https://www.googleapis.com/auth/documents","https://www.googleapis.com/auth/drive.metadata.readonly","https://www.googleapis.com/auth/drive.file"]'

Cursor MCP Config

{
  "mcpServers": {
    "google-docs": {
      "command": "uvx",
      "args": [
        "barie-google-docs-mcp",
        "--access-token", "YOUR_ACCESS_TOKEN",
        "--refresh-token", "YOUR_REFRESH_TOKEN",
        "--client-id", "YOUR_CLIENT_ID",
        "--client-secret", "YOUR_CLIENT_SECRET"
      ]
    }
  }
}

Required Arguments

  • --access-token - Google OAuth2 access token
  • --refresh-token - Google OAuth2 refresh token
  • --client-id - Google OAuth2 client ID
  • --client-secret - Google OAuth2 client secret

Optional Arguments

  • --expiry - Token expiry timestamp (ISO format)
  • --scopes - OAuth2 scopes as JSON array string

Tools

Tool Description
list-documents List Google Docs files from Drive
get-document Get a document structure by ID
create-document Create a new Google Doc
update-document-title Rename an existing Google Doc
insert-text Insert text at a given index
replace-text Replace all matching text in a document

Development

python server.py --help

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

barie_google_docs_mcp-0.1.2.tar.gz (6.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

barie_google_docs_mcp-0.1.2-py3-none-any.whl (7.2 kB view details)

Uploaded Python 3

File details

Details for the file barie_google_docs_mcp-0.1.2.tar.gz.

File metadata

  • Download URL: barie_google_docs_mcp-0.1.2.tar.gz
  • Upload date:
  • Size: 6.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.5

File hashes

Hashes for barie_google_docs_mcp-0.1.2.tar.gz
Algorithm Hash digest
SHA256 4e1a012e37605ba0b7ccbc5bcfe5e7304c898adbd4f787bac3665855ff33b00a
MD5 ea1542c0fe3694be60e11fdff60d1347
BLAKE2b-256 b659f42d34ee47057864ff6ca9dd5267da58e066d47e69bdc225bcc5c86f3580

See more details on using hashes here.

File details

Details for the file barie_google_docs_mcp-0.1.2-py3-none-any.whl.

File metadata

File hashes

Hashes for barie_google_docs_mcp-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 a38fa5189e76edd80f67adfffffd38dd2e443594c94f2260031e8bae4ddcbf26
MD5 8b1e7fdbf8766c00b52a041fecaef874
BLAKE2b-256 53cb2add00a52e13962e60780500c00a4da5cbb4c0633f6bed8101375ff3bbff

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page