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.1.tar.gz (6.4 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.1-py3-none-any.whl (7.0 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: barie_google_docs_mcp-0.1.1.tar.gz
  • Upload date:
  • Size: 6.4 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.1.tar.gz
Algorithm Hash digest
SHA256 42ab521eeb1ea41f82fe2a327eb971f5b8f02dce4688e990bbca53def1ca4c44
MD5 bd5f16c21341940019bf20438bb4bfa5
BLAKE2b-256 c47f0ea2cf1d6cea520b0ae02ae657c898c16887addbd6e1ab4597f9be49d24d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for barie_google_docs_mcp-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 6a1c833454eda0364fee5822c6872a2747fe0aa5286a0a27707773b24053c407
MD5 33a74b83cce3b7feeb96250c7dd008c4
BLAKE2b-256 3054d1984f57afb1a3b983e1416aa1aa8efa76af882dfa95b260de8c5557ef42

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