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

# Using uvx (recommended)
uvx --from . barie-google-docs-mcp

# Or install locally
pip install -e .

Usage

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"]'

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

Uploaded Python 3

File details

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

File metadata

  • Download URL: barie_google_docs_mcp-0.1.0.tar.gz
  • Upload date:
  • Size: 6.1 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.0.tar.gz
Algorithm Hash digest
SHA256 7eab5731b3893b52446e00b2d284dffddb351bb94bd01e15342544c242eb3c25
MD5 eaf4ee772bc8f57fc5fd92a2c887d484
BLAKE2b-256 d6cacecc660de6b11271f684416d15e679f6738beaa6be06db5c24c23af0f5bc

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for barie_google_docs_mcp-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 d409105a2fe0335b7fd0144fa895804ac05c1fe97faebc4855c5a0f4bdbf706f
MD5 1d6308c48cd97a2e88424793b4eef8fc
BLAKE2b-256 1c523b862f929f85faaa521590ba172e83d83865007201ad26b2fd5fc31324f5

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