프로토타입 · 미리 보기: 공식 레지스트리의 모든 서버를 담고 있으며 30분마다 동기화해요. Google로 로그인하면 리뷰를 쓸 수 있어요.
PopNx MCPAI를 쓰는 사람을 위한 MCP 서버 · 쉬운 말로 설명해요

Google Docs

제작자: pulsemcp버전 0.1.4i★ 81 (저장소 전체의 별)i내 컴퓨터에서 실행
레지스트리 이름com.pulsemcp/google-docs

설치 방법

개요

제작자가 쓴 설명(영어 원문)

MCP server for Google Docs integration with OAuth2 and service account support.

할 수 있는 일

이 서버는 아직 쉬운 말로 된 요약을 쓰지 못했어요. 아래는 레지스트리에서 읽어 온 사실이에요.

  • 연결 방식: 내 컴퓨터에서 실행
  • 전송 방식: stdio
  • 카테고리: 문서, 시트 및 사무 업무
  • 입력해야 할 값: GOOGLE_DOCS_OAUTH_CLIENT_ID, GOOGLE_DOCS_OAUTH_CLIENT_SECRET, GOOGLE_DOCS_OAUTH_REFRESH_TOKEN, GOOGLE_DOCS_SERVICE_ACCOUNT_PRIVATE_KEY

설치

쓰고 있는 AI 앱을 고른 다음 설정을 복사하세요.

검사 3/3 통과 · 내 컴퓨터에서 실행돼요

먼저: 어떤 AI를 쓰시나요?

쓰는 앱을 고르면 아래에 단계가 나옵니다.

Claude에 연결할 수 있지만 먼저 준비가 필요해요

Google Docs 키가 필요해요 (제작자 사이트에서 가입, 비용이 들 수 있음) · 먼저 컴퓨터에 Node.js를 설치하세요 (한 번만) · 컴퓨터용 Claude 앱(Windows 또는 Mac)에서만 되고 웹이나 모바일은 안 돼요

  1. Node.js 설치

    한 번만 하면 Node.js가 필요한 모든 서버에 쓸 수 있어요

    Node.js 다운로드 페이지 열기 ↗

  2. Google Docs에 가입하고 키 만들기

    제작자 사이트에서 가입하고 다음 단계에 쓸 API 키를 만드세요. 비용이 들 수 있어요.

    키 받는 방법은 아래 제작자 README에 있어요

  3. 컴퓨터용 Claude 앱 설정 파일 열기

    SettingsDeveloperEdit Config

  4. 이 설정을 붙여 넣고 저장

    {
      "mcpServers": {
        "google-docs": {
          "command": "npx",
          "args": [
            "-y",
            "google-docs-workspace-mcp-server"
          ],
          "env": {
            "GOOGLE_DOCS_OAUTH_CLIENT_ID": "your-value",
            "GOOGLE_DOCS_OAUTH_CLIENT_SECRET": "your-value",
            "GOOGLE_DOCS_OAUTH_REFRESH_TOKEN": "your-value",
            "GOOGLE_DOCS_SERVICE_ACCOUNT_CLIENT_EMAIL": "your-value",
            "GOOGLE_DOCS_SERVICE_ACCOUNT_PRIVATE_KEY": "your-value",
            "GOOGLE_DOCS_IMPERSONATE_EMAIL": "your-value",
            "GOOGLE_DOCS_ENABLED_TOOLGROUPS": "your-value"
          }
        }
      }
    }

    키는 앱 입력란에만 붙여 넣고, 채팅에 붙이거나 다른 사람에게 보내지 마세요

  5. Claude를 끄고 다시 열기

  6. 해 보기

    Google Docs을 써서 나에게 무엇을 해 줄 수 있는지 알려 주고, 하나 해 봐

    ✓ Claude가 Google Docs을 쓰고 있다고 하거나 답에 Google Docs 도구 이름이 나오면 연결된 거예요

메뉴 이름은 2026년 11월 11일에 Anthropic 도움말에서 확인 · 앱 버전에 따라 화면이 조금 다를 수 있어요

ChatGPT는 아직 Google Docs에 연결할 수 없어요

Google Docs는 내 컴퓨터에 설치해서 쓰지만 ChatGPT는 웹에서 도는 서버만 연결할 수 있어요

대신 이렇게 할 수 있어요

A · Google Docs에 연결되는 앱 쓰기

  • Google Docs 키가 필요해요 (제작자 사이트에서 가입, 비용이 들 수 있음) · 먼저 컴퓨터에 Node.js를 설치하세요 (한 번만) · 컴퓨터용 Claude 앱(Windows 또는 Mac)에서만 되고 웹이나 모바일은 안 돼요
  • Google Docs 키가 필요해요 (제작자 사이트에서 가입, 비용이 들 수 있음) · 먼저 컴퓨터에 Node.js를 설치하세요 (한 번만)
  • Google Docs 키가 필요해요 (제작자 사이트에서 가입, 비용이 들 수 있음) · 먼저 컴퓨터에 Node.js를 설치하세요 (한 번만)
  • Google Docs 키가 필요해요 (제작자 사이트에서 가입, 비용이 들 수 있음) · 먼저 컴퓨터에 Node.js를 설치하세요 (한 번만)

B · 문서, 시트 및 사무 업무에서 ChatGPT에 연결되는 다른 서버

같은 분류에서 많이 쓰는 것 중 키 없이 주소만으로 연결되는 것을 골랐어요

Claude Code에 연결할 수 있지만 먼저 준비가 필요해요

Google Docs 키가 필요해요 (제작자 사이트에서 가입, 비용이 들 수 있음) · 먼저 컴퓨터에 Node.js를 설치하세요 (한 번만)

  1. Node.js 설치

    한 번만 하면 Node.js가 필요한 모든 서버에 쓸 수 있어요

    Node.js 다운로드 페이지 열기 ↗

  2. Google Docs에 가입하고 키 만들기

    제작자 사이트에서 가입하고 다음 단계에 쓸 API 키를 만드세요. 비용이 들 수 있어요.

    키 받는 방법은 아래 제작자 README에 있어요

  3. 터미널 열기

    Mac: Command+스페이스를 누르고 Terminal 입력 · Windows: PowerShell 열기

  4. 이 명령을 붙여 넣고 Enter

    claude mcp add google-docs --env GOOGLE_DOCS_OAUTH_CLIENT_ID=your-value --env GOOGLE_DOCS_OAUTH_CLIENT_SECRET=your-value --env GOOGLE_DOCS_OAUTH_REFRESH_TOKEN=your-value --env GOOGLE_DOCS_SERVICE_ACCOUNT_CLIENT_EMAIL=your-value --env GOOGLE_DOCS_SERVICE_ACCOUNT_PRIVATE_KEY=your-value --env GOOGLE_DOCS_IMPERSONATE_EMAIL=your-value --env GOOGLE_DOCS_ENABLED_TOOLGROUPS=your-value -- npx -y google-docs-workspace-mcp-server

    Enter 전에 “your-value”를 내 키로 바꾸세요

    키는 앱 입력란에만 붙여 넣고, 채팅에 붙이거나 다른 사람에게 보내지 마세요

  5. Claude Code에서 /mcp 입력

    Google Docs이 목록에 있고 연결됨으로 보이면 돼요

  6. 해 보기

    Google Docs을 써서 나에게 무엇을 해 줄 수 있는지 알려 주고, 하나 해 봐

    ✓ Claude Code가 Google Docs을 쓰고 있다고 하거나 답에 Google Docs 도구 이름이 나오면 연결된 거예요

메뉴 이름은 2026년 11월 11일에 Anthropic 도움말에서 확인 · 앱 버전에 따라 화면이 조금 다를 수 있어요

Cursor에 연결할 수 있지만 먼저 준비가 필요해요

Google Docs 키가 필요해요 (제작자 사이트에서 가입, 비용이 들 수 있음) · 먼저 컴퓨터에 Node.js를 설치하세요 (한 번만)

  1. Node.js 설치

    한 번만 하면 Node.js가 필요한 모든 서버에 쓸 수 있어요

    Node.js 다운로드 페이지 열기 ↗

  2. Google Docs에 가입하고 키 만들기

    제작자 사이트에서 가입하고 다음 단계에 쓸 API 키를 만드세요. 비용이 들 수 있어요.

    키 받는 방법은 아래 제작자 README에 있어요

  3. 이 버튼으로 Cursor 열기

    Cursor에서 열기

    Cursor가 설치를 확인하면 Install을 누르세요

  4. 키 입력

    Google Docs 설정에서 GOOGLE_DOCS_OAUTH_CLIENT_ID, GOOGLE_DOCS_OAUTH_CLIENT_SECRET, GOOGLE_DOCS_OAUTH_REFRESH_TOKEN, GOOGLE_DOCS_SERVICE_ACCOUNT_CLIENT_EMAIL, GOOGLE_DOCS_SERVICE_ACCOUNT_PRIVATE_KEY, GOOGLE_DOCS_IMPERSONATE_EMAIL, GOOGLE_DOCS_ENABLED_TOOLGROUPS가 비어 있어요. 내 키를 넣고 저장하세요

    키는 앱 입력란에만 붙여 넣고, 채팅에 붙이거나 다른 사람에게 보내지 마세요

  5. Cursor에서 AI 채팅을 Agent 모드로 열기

  6. 해 보기

    Google Docs을 써서 나에게 무엇을 해 줄 수 있는지 알려 주고, 하나 해 봐

    ✓ Cursor가 Google Docs을 쓰고 있다고 하거나 답에 Google Docs 도구 이름이 나오면 연결된 거예요

메뉴 이름은 2026년 11월 11일에 Cursor 도움말에서 확인 · 앱 버전에 따라 화면이 조금 다를 수 있어요

VS Code에 연결할 수 있지만 먼저 준비가 필요해요

Google Docs 키가 필요해요 (제작자 사이트에서 가입, 비용이 들 수 있음) · 먼저 컴퓨터에 Node.js를 설치하세요 (한 번만)

  1. Node.js 설치

    한 번만 하면 Node.js가 필요한 모든 서버에 쓸 수 있어요

    Node.js 다운로드 페이지 열기 ↗

  2. Google Docs에 가입하고 키 만들기

    제작자 사이트에서 가입하고 다음 단계에 쓸 API 키를 만드세요. 비용이 들 수 있어요.

    키 받는 방법은 아래 제작자 README에 있어요

  3. 이 버튼으로 VS Code 열기

    VS Code에서 열기

    VS Code가 설치를 확인하면 Install을 누르세요

  4. 키 입력

    Google Docs 설정에서 GOOGLE_DOCS_OAUTH_CLIENT_ID, GOOGLE_DOCS_OAUTH_CLIENT_SECRET, GOOGLE_DOCS_OAUTH_REFRESH_TOKEN, GOOGLE_DOCS_SERVICE_ACCOUNT_CLIENT_EMAIL, GOOGLE_DOCS_SERVICE_ACCOUNT_PRIVATE_KEY, GOOGLE_DOCS_IMPERSONATE_EMAIL, GOOGLE_DOCS_ENABLED_TOOLGROUPS가 비어 있어요. 내 키를 넣고 저장하세요

    키는 앱 입력란에만 붙여 넣고, 채팅에 붙이거나 다른 사람에게 보내지 마세요

  5. VS Code에서 AI 채팅을 Agent 모드로 열기

  6. 해 보기

    Google Docs을 써서 나에게 무엇을 해 줄 수 있는지 알려 주고, 하나 해 봐

    ✓ VS Code가 Google Docs을 쓰고 있다고 하거나 답에 Google Docs 도구 이름이 나오면 연결된 거예요

메뉴 이름은 2026년 11월 11일에 VS Code 도움말에서 확인 · 앱 버전에 따라 화면이 조금 다를 수 있어요

Windsurf, Zed, Gemini CLI 같은 다른 MCP 앱은 추가 방법이 저마다 달라요. 앱 목록에서 확인하세요

MCP를 쓰는 앱 모두 보기 →

JSON 설정은 아래 “개발자용”에 있어요

막혔나요? Google Docs을 쓰는 사람에게 물어보세요💬 토론 →
개발자용: 터미널 명령과 JSON 설정

컴퓨터에 설치

Claude Code

claude mcp add google-docs --env GOOGLE_DOCS_OAUTH_CLIENT_ID=your-value --env GOOGLE_DOCS_OAUTH_CLIENT_SECRET=your-value --env GOOGLE_DOCS_OAUTH_REFRESH_TOKEN=your-value --env GOOGLE_DOCS_SERVICE_ACCOUNT_CLIENT_EMAIL=your-value --env GOOGLE_DOCS_SERVICE_ACCOUNT_PRIVATE_KEY=your-value --env GOOGLE_DOCS_IMPERSONATE_EMAIL=your-value --env GOOGLE_DOCS_ENABLED_TOOLGROUPS=your-value -- npx -y google-docs-workspace-mcp-server

Claude Desktop (claude_desktop_config.json)

{
  "mcpServers": {
    "google-docs": {
      "command": "npx",
      "args": [
        "-y",
        "google-docs-workspace-mcp-server"
      ],
      "env": {
        "GOOGLE_DOCS_OAUTH_CLIENT_ID": "your-value",
        "GOOGLE_DOCS_OAUTH_CLIENT_SECRET": "your-value",
        "GOOGLE_DOCS_OAUTH_REFRESH_TOKEN": "your-value",
        "GOOGLE_DOCS_SERVICE_ACCOUNT_CLIENT_EMAIL": "your-value",
        "GOOGLE_DOCS_SERVICE_ACCOUNT_PRIVATE_KEY": "your-value",
        "GOOGLE_DOCS_IMPERSONATE_EMAIL": "your-value",
        "GOOGLE_DOCS_ENABLED_TOOLGROUPS": "your-value"
      }
    }
  }
}

Cursor (~/.cursor/mcp.json)

{
  "mcpServers": {
    "google-docs": {
      "command": "npx",
      "args": [
        "-y",
        "google-docs-workspace-mcp-server"
      ],
      "env": {
        "GOOGLE_DOCS_OAUTH_CLIENT_ID": "your-value",
        "GOOGLE_DOCS_OAUTH_CLIENT_SECRET": "your-value",
        "GOOGLE_DOCS_OAUTH_REFRESH_TOKEN": "your-value",
        "GOOGLE_DOCS_SERVICE_ACCOUNT_CLIENT_EMAIL": "your-value",
        "GOOGLE_DOCS_SERVICE_ACCOUNT_PRIVATE_KEY": "your-value",
        "GOOGLE_DOCS_IMPERSONATE_EMAIL": "your-value",
        "GOOGLE_DOCS_ENABLED_TOOLGROUPS": "your-value"
      }
    }
  }
}

VS Code (mcp.json)

{
  "servers": {
    "google-docs": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "google-docs-workspace-mcp-server"
      ],
      "env": {
        "GOOGLE_DOCS_OAUTH_CLIENT_ID": "your-value",
        "GOOGLE_DOCS_OAUTH_CLIENT_SECRET": "your-value",
        "GOOGLE_DOCS_OAUTH_REFRESH_TOKEN": "your-value",
        "GOOGLE_DOCS_SERVICE_ACCOUNT_CLIENT_EMAIL": "your-value",
        "GOOGLE_DOCS_SERVICE_ACCOUNT_PRIVATE_KEY": "your-value",
        "GOOGLE_DOCS_IMPERSONATE_EMAIL": "your-value",
        "GOOGLE_DOCS_ENABLED_TOOLGROUPS": "your-value"
      }
    }
  }
}

직접 입력할 값

  • GOOGLE_DOCS_OAUTH_CLIENT_ID 비밀 env
    OAuth2 client ID from Google Cloud Console.
  • GOOGLE_DOCS_OAUTH_CLIENT_SECRET 비밀 env
    OAuth2 client secret from Google Cloud Console.
  • GOOGLE_DOCS_OAUTH_REFRESH_TOKEN 비밀 env
    Long-lived refresh token obtained from the oauth-setup command.
  • GOOGLE_DOCS_SERVICE_ACCOUNT_CLIENT_EMAIL env
    Service account email address for domain-wide delegation.
  • GOOGLE_DOCS_SERVICE_ACCOUNT_PRIVATE_KEY 비밀 env
    Service account private key in PEM format.
  • GOOGLE_DOCS_IMPERSONATE_EMAIL env
    Email address to impersonate in Google Workspace.
  • GOOGLE_DOCS_ENABLED_TOOLGROUPS env
    Comma-separated list of tool groups to enable (readonly, readwrite, readwrite_external).

이 설정은 제작자의 레지스트리 정보로 만들었어요. README와 다르면 README를 따르세요.

한눈에 보기

GitHub 스타i
81 (저장소 전체의 별)
이 저장소에는 MCP 항목이 여러 개 있어 별은 순위에서 한 번만 세요
주간 다운로드i
78/주
확인된 도메인
✓ pulsemcp.com
연결 방식
내 컴퓨터에서 실행
최신 버전i
0.1.4
레지스트리 공개i
2026년 6월 17일
코드 마지막 변경i
2026년 10월 10일
제작자
pulsemcp
패키지
npm: google-docs-workspace-mcp-server
레지스트리 상태
활성

어떤 앱에서 쓸 수 있나요

이 서버의 연결 방식과 각 앱의 공식 문서를 바탕으로 했어요. 2026년 11월 10일 확인.

내 컴퓨터에서 실행하는 앱

ClaudeGooseLM StudioMsty StudioCherry StudioCursorVS Code + GitHub CopilotVisual StudioWindsurf (Devin Desktop)ZedKiroClineContinueJetBrains AI AssistantClaude CodeCodex CLIGemini CLIOpenCodenodecodeWarpLibreChatRaycast

모든 앱과 장단점 →

할 수 있는 일

내 컴퓨터에서 실행돼요. 설치하면 AI 앱에 도구 목록이 나타나요.

기본 점검i

누구나 볼 수 있는 정보를 점검했고, 코드는 읽지 않았어요. 해당하지 않는 항목은 개수에서 뺐어요. · 2026년 11월 11일 점검

  • ✓ 통과

    제작자와 저장소 일치

    레지스트리 이름이 도메인 pulsemcp.com 기준으로 확인되었어요(레지스트리가 도메인 소유를 확인해요)

  • ✓ 통과

    계속 관리되고 있음

    코드 마지막 변경: 33일 전

  • ✓ 통과

    라이선스 있음

    MIT 사용

  • – 해당 없음

    엔드포인트 응답

    내 컴퓨터에서 실행되는 서버라 인터넷 엔드포인트가 없어요

  • – 해당 없음

    OAuth로 로그인

    내 컴퓨터에서 실행되며, 대신 로컬 설정을 사용해요

  • … 아직 점검 안 함

    도구 설명에 숨겨진 지시 없음

    내 컴퓨터에서 실행돼요. 도구 목록은 인터넷 엔드포인트가 있는 서버에서만 읽을 수 있어요

토론

질문하고, 팁을 나누고, 안 되는 점을 알려 주세요. "도움이 됨"이 많은 순서예요.

아직 글이 없어요. 처음으로 질문하거나 공유해 보세요.

이곳의 글은 사용자가 쓴 것으로, PopNx 팀의 글이 아니에요.

Google로 로그인하고 글쓰기

사용자 리뷰

아직 리뷰가 없어요

Google로 로그인하고 리뷰 쓰기

문서, 시트 및 사무 업무 카테고리의 다른 서버와 비교i

  • 이 카테고리의 다른 서버 3757개 중 0%보다 스타가 많아요
  • 이 카테고리의 다른 서버 3757개 중 13%보다 최근에 레지스트리에 공개됐어요
  • 기본 점검 결과가 이 카테고리의 다른 서버 3757개 중 100%와 같거나 더 좋아요

레지스트리에서 이 카테고리의 활성 서버 전체와 비교했어요. 스타는 게시자가 저장소를 소유한 경우에만 세요.

자주 묻는 질문

Google Docs, 안전한가요?

해당하는 기본 점검 3개 중 3개를 통과했어요. 코드는 읽지 않았어요. 키나 토큰을 넣기 전에 서버가 어떤 권한을 요구하는지 확인하고, 꼭 필요한 권한만 있는 키를 쓰세요.

어떤 키나 코드가 필요한가요?

입력해야 할 값: GOOGLE_DOCS_OAUTH_CLIENT_ID, GOOGLE_DOCS_OAUTH_CLIENT_SECRET, GOOGLE_DOCS_OAUTH_REFRESH_TOKEN, GOOGLE_DOCS_SERVICE_ACCOUNT_PRIVATE_KEY

내 컴퓨터에서 실행되나요, 클라우드에서 실행되나요?

내 컴퓨터에서 실행돼요. AI 앱이 필요할 때 실행하고, 데이터는 제작자의 서버를 거치지 않아요(서버 자체가 온라인 서비스를 호출하는 경우는 제외).

아직 관리되고 있나요?

GitHub 저장소는 마지막으로 33일 전 변경됐고, 최신 버전(0.1.4)은 5개월 전 레지스트리에 올라왔어요.

어떤 앱에서 쓸 수 있나요?

Claude Desktop, Claude Code, Cursor, VS Code처럼 MCP를 지원하는 앱에서 쓸 수 있어요. 내 컴퓨터에 Node.js도 있어야 해요.

대신 쓸 수 있는 건 뭐가 있나요?

같은 카테고리에는: Puter MCP, XcodeBuildMCP, XcodeBuildMCP

대안

같은 카테고리에서 다른 제작자가 만든 서버예요. 스타 순으로 정렬했어요.

카드 보는 법:↓ 주간 다운로드i★ GitHub 스타i세 기둥: 리뷰 · 점검 · 사용 정도i업데이트 = 최신 버전을 레지스트리에 공개한 날i

Puter MCP

Puter MCP enables AI tools to interact with Puter: manage files, websites, workers, and more

제작자: HeyPuter널리 사용됨★ 4.4만5개월 전 업데이트

클라우드에서 실행✓ puter.com

XcodeBuildMCP

XcodeBuildMCP provides tools for Xcode project management, simulator management, and app utilities.

제작자: getsentry널리 사용됨↓ 13만/주★ 6.6천4개월 전 업데이트

내 컴퓨터에서 실행✓ xcodebuildmcp.com

XcodeBuildMCP

XcodeBuildMCP provides tools for Xcode project management, simulator management, and app utilities.

제작자: cameroncooke널리 사용됨↓ 13만/주★ 6.6천14개월 전 업데이트

내 컴퓨터에서 실행

제작자의 README

README 열기

제작자의 저장소에서 쓰인 그대로 가져왔어요. PopNx MCP가 검토하거나 보증한 내용이 아니에요. HTML, 이미지, 스크립트는 제거했어요. 링크를 누르면 이 사이트를 벗어나요.

Google Docs Workspace MCP Server

An MCP (Model Context Protocol) server that provides Google Docs integration for AI assistants. Supports both personal Google accounts (via OAuth2) and Google Workspace accounts (via service account with domain-wide delegation).

Features

  • Read documents: Fetch full body or just the heading outline of a Google Doc, by document ID or shareable URL
  • Create documents: Create new Google Docs with optional initial content
  • Edit documents:
  • Append text to the end of a document
  • Insert text at a specific index
  • Replace all occurrences of a string
  • Apply raw documents.batchUpdate requests for full structural control
  • Delete documents: Move to Drive trash by default, or permanently delete with an explicit flag
  • Export documents: Export to Markdown, HTML, plain text, PDF, DOCX, ODT, RTF, or EPUB
  • Share documents (gated): Grant read/comment/write access to a user, group, domain, or anyone with a link
  • Two auth methods: OAuth2 for personal accounts, service account for Google Workspace
  • Permission gating: Restrict tools by group via GOOGLE_DOCS_ENABLED_TOOLGROUPS

Installation

npm install google-docs-workspace-mcp-server

Or run directly with npx:

npx google-docs-workspace-mcp-server

Authentication

This server supports two authentication modes. Choose the one that matches your account type.

Option 1: OAuth2 (Personal Google Accounts)

Use this for personal @gmail.com accounts or any Google account without Workspace admin access.

Prerequisites
  1. Go to Google Cloud Console
  2. Create or select a project
  3. Enable the Google Docs API and the Google Drive API
  4. Configure the OAuth consent screen:
  • Choose External user type
  • Add yourself as a test user
  • Publish the app (click "Publish" on the consent screen) to prevent refresh tokens from expiring every 7 days. No full Google verification is needed for personal use.
  1. Create OAuth 2.0 credentials:
  • Choose Desktop app as the application type
  • Important: Create new credentials _after_ publishing the app
  1. Copy the Client ID and Client Secret
Getting a Refresh Token

Run the built-in setup command:

npx google-docs-workspace-mcp-server oauth-setup <client_id> <client_secret>

You can also pass credentials via environment variables:

GOOGLE_DOCS_OAUTH_CLIENT_ID=... GOOGLE_DOCS_OAUTH_CLIENT_SECRET=... npx google-docs-workspace-mcp-server oauth-setup

Port conflict? If port 3000 is already in use, specify a different port:

PORT=3001 npx google-docs-workspace-mcp-server oauth-setup <client_id> <client_secret>

Desktop app credentials automatically allow http://localhost redirects on any port, so no additional Google Cloud Console configuration is needed.

This will open your browser for Google sign-in and print the refresh token. You only need to do this once — the refresh token does not expire (as long as the OAuth consent screen is published).

Environment Variables (OAuth2)
VariableRequiredDescription
GOOGLE_DOCS_OAUTH_CLIENT_IDYesOAuth2 client ID from Google Cloud Console
GOOGLE_DOCS_OAUTH_CLIENT_SECRETYesOAuth2 client secret
GOOGLE_DOCS_OAUTH_REFRESH_TOKENYesRefresh token from the setup script
GOOGLE_DOCS_ENABLED_TOOLGROUPSNoComma-separated list of tool groups (default: all)
Claude Desktop Configuration (OAuth2)
{

"mcpServers": { "google-docs": { "command": "npx", "args": ["google-docs-workspace-mcp-server"], "env": { "GOOGLE_DOCS_OAUTH_CLIENT_ID": "your-client-id.apps.googleusercontent.com", "GOOGLE_DOCS_OAUTH_CLIENT_SECRET": "your-client-secret", "GOOGLE_DOCS_OAUTH_REFRESH_TOKEN": "your-refresh-token" } } } }

Option 2: Service Account (Google Workspace)

Use this for Google Workspace organizations where a domain admin can grant domain-wide delegation.

Prerequisites
  1. Go to Google Cloud Console
  2. Create or select a project
  3. Enable the Google Docs API and the Google Drive API
  4. Create a service account with domain-wide delegation enabled
  5. In Google Workspace Admin Console, grant the service account access to the following scopes:
  • https://www.googleapis.com/auth/documents (read and edit documents)
  • https://www.googleapis.com/auth/drive (full read/write access to the impersonated user's Drive — required to export, read comments on, and manage arbitrary existing docs, including files this app did not create)
  1. Download the JSON key file
Environment Variables (Service Account)
VariableRequiredDescription
GOOGLE_DOCS_SERVICE_ACCOUNT_CLIENT_EMAILYesService account email address
GOOGLE_DOCS_SERVICE_ACCOUNT_PRIVATE_KEYYesService account private key (PEM format)
GOOGLE_DOCS_IMPERSONATE_EMAILYesEmail address to impersonate
GOOGLE_DOCS_ENABLED_TOOLGROUPSNoComma-separated list of tool groups to enable (default: all groups)

You can find the client_email and private_key values in your service account JSON key file.

Claude Desktop Configuration (Service Account)
{

"mcpServers": { "google-docs": { "command": "npx", "args": ["google-docs-workspace-mcp-server"], "env": { "GOOGLE_DOCS_SERVICE_ACCOUNT_CLIENT_EMAIL": "my-service-account@my-project.iam.gserviceaccount.com", "GOOGLE_DOCS_SERVICE_ACCOUNT_PRIVATE_KEY": "[PopNx MCP ตัดค่าที่หน้าตาเหมือนกุญแจออก]", "GOOGLE_DOCS_IMPERSONATE_EMAIL": "user@yourdomain.com" } } } }

Note: For the private key, you can either:

  1. Use the key directly with \n for newlines (as shown above)
  2. Set the environment variable from a shell that preserves newlines

Tool Groups

The server supports three tool groups for permission-based access control:

GroupTools IncludedRisk Level
readonlyget_document, get_document_outline, export_document, list_commentsLow
readwriteAll readonly tools + create_document, update_document, delete_document, append_text, insert_text, replace_textMedium
readwrite_externalAll readwrite tools + share_documentHigh

By default, all tool groups are enabled. To restrict access, set the GOOGLE_DOCS_ENABLED_TOOLGROUPS environment variable:

# Read-only access (no writes or sharing)

GOOGLE_DOCS_ENABLED_TOOLGROUPS=readonly

Read and write, but no sharing

GOOGLE_DOCS_ENABLED_TOOLGROUPS=readwrite

Full access including sharing (default)

GOOGLE_DOCS_ENABLED_TOOLGROUPS=readwrite_external

Security Note: The share_document tool is in a separate readwrite_external group because it can grant access to users outside your organization, which carries higher risk than purely internal edits.

Available Tools

All tools that take a document_id accept either a raw Google Docs ID (e.g., 1AbCdEf...) or a shareable Docs URL (e.g., https://docs.google.com/document/d/1AbCdEf.../edit). The server extracts the ID automatically.

get_document

Fetch a Google Doc and return its title, outline, and full body.

Parameters:

  • document_id (string, required): Google Docs ID or URL
  • format (string, optional): text (default) for human-readable output, or json for the raw documents.get API resource
get_document_outline

Return only the heading structure of a document — useful for getting your bearings on a long doc without pulling the full body.

Parameters:

  • document_id (string, required): Google Docs ID or URL
create_document

Create a new Google Doc.

Parameters:

  • title (string, required): Document title
  • initial_content (string, optional): Plain text inserted into the new document
update_document

Apply raw documents.batchUpdate requests. This is the escape hatch for any Docs API operation not covered by the more focused tools (e.g., applying paragraph styles, inserting tables, manipulating named ranges).

Parameters:

  • document_id (string, required): Google Docs ID or URL
  • requests (array, required): Array of documents.batchUpdate request objects (API reference)

Example:

{

"document_id": "1AbCdEf...", "requests": [ { "insertText": { "location": { "index": 1 }, "text": "Hello, world!\n" } }, { "updateParagraphStyle": { "range": { "startIndex": 1, "endIndex": 14 }, "paragraphStyle": { "namedStyleType": "HEADING_1" }, "fields": "namedStyleType" } } ] }

append_text

Append text to the end of a document. Resolves the end-of-body index for you.

Parameters:

  • document_id (string, required): Google Docs ID or URL
  • text (string, required): Text to append
insert_text

Insert text at a specific index.

Parameters:

  • document_id (string, required): Google Docs ID or URL
  • index (number, required): Insertion index (must be ≥ 1)
  • text (string, required): Text to insert
replace_text

Find and replace text throughout a document. Reports the number of occurrences replaced.

Parameters:

  • document_id (string, required): Google Docs ID or URL
  • find (string, required): String to find
  • replace (string, required): Replacement string
  • match_case (boolean, optional): Whether matching is case-sensitive (default: false)
delete_document

Move a document to Drive trash by default, or permanently delete it.

Parameters:

  • document_id (string, required): Google Docs ID or URL
  • permanent (boolean, optional): When true, permanently delete instead of trashing (default: false)
export_document

Export a document in a different format.

Parameters:

  • document_id (string, required): Google Docs ID or URL
  • format (string, required): One of markdown, html, txt, pdf, docx, odt, rtf, epub

Text formats (markdown, html, txt) are returned inline. Binary formats (pdf, docx, odt, rtf, epub) are returned base64-encoded.

list_comments

List the comments on a document, including threaded replies and resolved state. Reads the Drive comments.list API and surfaces each comment's author, timestamps, resolved/open state, the anchored quoted text it refers to, the comment body, and any replies (including replies that resolved or reopened the thread).

Parameters:

  • document_id (string, required): Google Docs ID or URL
  • include_resolved (boolean, optional): Include resolved (closed) threads (default: true). Set false to see only open comments.
  • `include_delet

앞부분만 보여 드려요. 나머지는 저장소에서 읽어 보세요