Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

google-docs-mcp

zereight72MIT1.0.0

Model Context Protocol for Google Docs integration

mcp, google-docs, model-context-protocol, ai

readme

Google Docs MCP

Model Context Protocol for Google Docs integration. 이 패키지는 Google Docs 문서에 접근하고 읽는 기능을 제공합니다.

설치

npm install -g google-docs-mcp
# 또는
npx google-docs-mcp

사용법

인증 설정

처음 사용 시 Google API 인증이 필요합니다:

  1. Google Cloud Console에서 프로젝트를 생성하고 Google Docs API와 Drive API를 활성화합니다.
  2. OAuth 동의 화면을 설정하고 OAuth 클라이언트 ID를 생성합니다.
  3. 다운로드한 JSON 파일의 이름을 credentials.json으로 변경하고 현재 디렉토리에 저장합니다.
  4. 서비스를 실행하고 브라우저에서 인증을 완료합니다.

MCP 도구

이 패키지는, 다음 MCP 도구들을 제공합니다:

  • google_docs_hello: 기본 인사 기능
  • google_docs_auth: Google Docs 인증 설정
  • google_docs_read_document: Google Docs 문서 읽기

예제

// 문서 읽기 예제
const { result } = await mcp.call('google_docs_read_document', {
  documentId: '1WFDzSw1t1C-83qNpgFpHxaKXXIqWALTzFxZDrlpakMU'
});
console.log(result.text);

라이선스

MIT