Skip to main content

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" \
  --scopes '["https://www.googleapis.com/auth/drive", "https://www.googleapis.com/auth/documents"]'

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

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.4.tar.gz (6.7 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.4-py3-none-any.whl (7.4 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for barie_google_docs_mcp-0.1.4.tar.gz
Algorithm Hash digest
SHA256 efcf278628642b3f1d785ddda426d16ba36a9e30e12e624c3b68c1517f2b2cfe
MD5 e3a812eca4701b590b86df52d9a38dec
BLAKE2b-256 6d42527f12d3b3676e1253c04d0dd90ed7cf926cab7f07b72b7137db1b73aad3

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for barie_google_docs_mcp-0.1.4-py3-none-any.whl
Algorithm Hash digest
SHA256 a759d1d00bb2380e17ea05eb37f94ecc948bb50a76f28578cd6ee71506b5f624
MD5 d6b7ca543588ba2e73415329a531e0e3
BLAKE2b-256 75f9e860aee17600164762e9067a85183d482c6bc09c9127c322f108a5e6695f

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

0.1.4 This release

2 files

0.1.3

2 files

0.1.2

2 files

0.1.1

2 files

0.1.0

2 files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page