Skip to main content
Glama
MCP Google Workspace Server

MCP Google Workspace Server

by josedu90

MCP Google Workspace 서버

씨아이 코드코브 PyPI 버전 라이센스: MIT 코드 스타일: 검정색

AI 에이전트가 Google Workspace(Drive, Docs, Sheets) 서비스와 상호 작용할 수 있도록 하는 MCP(Model Context Protocol) 서버입니다.

🌟 특징

  • Google 드라이브: 파일 검색, 폴더 생성

  • Google 문서: 문서 만들기, 읽기, 업데이트

  • Google 시트: 스프레드시트 만들기, 셀 값 읽기/쓰기

  • 다양한 전송 모드: stdio(기본값), SSE, WebSocket

  • MCP 호환 클라이언트 지원(커서 등)

Related MCP server: MCP Google Suite

📋 설치

uv 사용(권장)

지엑스피1

pip 사용하기

pip install mcp-google-suite

개발 설정

# Clone and install
git clone git@github.com:adexltd/mcp-google-suite.git && cd mcp-google-suite
uv venv && source .venv/bin/activate  # or .venv\Scripts\activate on Windows
uv pip install -e .

🔧 구성

MCP 클라이언트에 대한 구성

클라이언트 설정(예: 커서, 클로드)에 다음을 추가합니다.

uvx 사용(권장):

{
  "mcpServers": {
    "mcp-google-suite": {
      "command": "uvx",
      "args": ["mcp-google-suite"],
      "env": {
        "GOOGLE_APPLICATION_CREDENTIALS": "~/.google/server-creds.json",
        "GOOGLE_OAUTH_CREDENTIALS": "~/.google/oauth.keys.json"
      }
    }
  }
}

pip 설치 사용:

{
  "mcpServers": {
    "mcp-google-suite": {
      "command": "python",
      "args": ["-m", "mcp_google_suite"],
      "env": {
        "GOOGLE_APPLICATION_CREDENTIALS": "~/.google/server-creds.json",
        "GOOGLE_OAUTH_CREDENTIALS": "~/.google/oauth.keys.json"
      }
    }
  }
}

Google OAuth 설정

  1. Google Cloud Console 방문

  2. Drive, Docs 및 Sheets API 사용 설정

  3. OAuth 2.0 자격 증명 만들기

  4. ~/.google/oauth.keys.json 으로 저장

  5. mcp-google auth 실행하여 인증하세요.

사용 가능한 도구

드라이브 운영

  • drive_search_files : Google Drive에서 파일 검색

    • query (문자열, 필수): 검색 쿼리

    • page_size (정수, 선택 사항): 반환할 결과 수

  • drive_create_folder : 새 폴더 만들기

    • name (문자열, 필수): 폴더 이름

    • parent_id (문자열, 선택 사항): 상위 폴더 ID

문서 작업

  • docs_create : 새 문서를 만듭니다

    • title (문자열, 필수): 문서 제목

    • content (문자열, 선택 사항): 초기 콘텐츠

  • docs_get_content : 문서 내용 가져오기

    • document_id (문자열, 필수): 문서 ID

  • docs_update_content : 문서 내용 업데이트

    • document_id (문자열, 필수): 문서 ID

    • content (문자열, 필수): 새 콘텐츠

시트 작업

  • sheets_create : 새 스프레드시트를 만듭니다

    • title (문자열, 필수): 스프레드시트 제목

    • sheets (배열, 선택 사항): 시트 이름

  • sheets_get_values : 셀 값 가져오기

    • spreadsheet_id (문자열, 필수): 스프레드시트 ID

    • range (문자열, 필수): A1 표기법 범위

  • sheets_update_values : 셀 값 업데이트

    • spreadsheet_id (문자열, 필수): 스프레드시트 ID

    • range (문자열, 필수): A1 표기법 범위

    • values (배열, 필수): 값의 2차원 배열

🛠️ 개발

# Install dev dependencies
uv pip install -e ".[dev]"

# Setup pre-commit hooks
pre-commit install

# Run tests
pytest

# Format code
black . && ruff check --fix .

🔍 디버깅

대화형 테스트를 위해 MCP Inspector를 사용하세요.

# Using uvx
npx @modelcontextprotocol/inspector uvx mcp-google

# For development
cd path/to/mcp-google-suite
npx @modelcontextprotocol/inspector uv run mcp-google

📚 리소스

🤝 기여하기

행동 강령과 풀 리퀘스트 제출 프로세스에 대한 자세한 내용은 CONTRIBUTING.md를 읽어보세요.

🔒 보안

취약점 보고 및 모범 사례는 SECURITY.md를 참조하세요.

📄 라이센스

MIT 라이센스 - 자세한 내용은 라이센스 파일을 참조하세요.

Available Tools

8 tools
docs_createC

Create a new Google Doc

NameRequiredDescriptionDefault
contentNoInitial content
titleYesTitle of the document
docs_get_contentC

Get the contents of a Google Doc

NameRequiredDescriptionDefault
document_idYesID of the document
docs_update_contentC

Update the content of a Google Doc

NameRequiredDescriptionDefault
contentYesNew content
document_idYesID of the document
drive_create_folderC

Create a new folder in Google Drive

NameRequiredDescriptionDefault
nameYesName of the folder
parent_idNoID of parent folder
drive_search_filesC

Search for files in Google Drive

NameRequiredDescriptionDefault
page_sizeNoNumber of results to return
queryYesSearch query
sheets_createC

Create a new Google Sheet

NameRequiredDescriptionDefault
sheetsNoSheet names
titleYesTitle of the spreadsheet
sheets_get_valuesC

Get values from a Google Sheet range

NameRequiredDescriptionDefault
rangeYesA1 notation range
spreadsheet_idYesID of the spreadsheet
sheets_update_valuesC

Update values in a Google Sheet range

NameRequiredDescriptionDefault
rangeYesA1 notation range
spreadsheet_idYesID of the spreadsheet
valuesYes2D array of values

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

  1. 8 tool updatesv1.0.0
    • First observeddocs_create
    • First observeddocs_get_content
    • First observeddocs_update_content
    • First observeddrive_create_folder
    • First observeddrive_search_files
    • First observedsheets_create
    • First observedsheets_get_values
    • First observedsheets_update_values

TDQS

A3.5/5.0

Scored across 8 tools

Disambiguation5/5

Every tool has a clearly distinct purpose with no ambiguity, as each is scoped to a specific Google Workspace service (Docs, Drive, Sheets) and action (create, get/read, update, search). The naming prefixes (docs_, drive_, sheets_) immediately differentiate the domains, preventing misselection.

Naming Consistency5/5

All tools follow a consistent verb_noun pattern with service prefixes, using snake_case uniformly (e.g., docs_create, sheets_update_values). This predictable naming scheme makes it easy for an agent to understand and navigate the toolset without confusion.

Tool Count5/5

With 8 tools, the count is well-scoped for covering core operations across three Google Workspace services. Each tool earns its place by providing essential CRUD-like functionality (create, get, update) and search capabilities, avoiding bloat while ensuring practical coverage.

Completeness4/5

The toolset offers strong coverage for Docs, Drive, and Sheets with create, read, update, and search operations, but minor gaps exist, such as missing delete operations for Docs and Sheets, and no update for Drive folders. Agents can work around these gaps, but the surface isn't fully complete for full lifecycle management.

Maintenance

ActivityInactive
ResponsivenessNo recent community issues

Related MCP Connectors

Related MCP Servers

  • A
    license
    Not graded
    quality
    D
    maintenance
    A Model Context Protocol server that integrates with Google Drive and Google Sheets, enabling users to create, read, update, and manage spreadsheets through natural language commands.
    23,145 PyPI
    1,016
    MIT
  • A
    license
    A
    quality
    D
    maintenance
    A Model Context Protocol server that provides seamless integration with Google Workspace, allowing operations with Google Drive, Docs, and Sheets through secure OAuth2 authentication.
    8
    60 PyPI
    3
    MIT