Google Drive Mcp Server — independently scanned and version-tracked by SaferSkills.
SaferSkills independently audited Google Drive Mcp Server (Agent Skill) and scored it 100/100 (green). The audit ran 55 deterministic rules across Security, Supply Chain, Maintenance, Transparency, and Community; it found 0 high-severity and 0 lower-severity findings. The full rule-by-rule trace and per-finding evidence are below. Free, methodology-open.
Findings & checks · 0 flagged
Every scanned point with the score it earned and what moved between them.
First recorded scan — no prior version to compare against.
The primary manifest — the file an agent reads to learn what this artifact does.
지정된 폴더 범위 내에서 Google Drive 파일과 Google Sheets에 대한 안전하고 범위가 지정된 액세스를 제공하는 Model Context Protocol (MCP) 서버입니다. 이 서버를 통해 AI 어시스턴트가 Google Drive 콘텐츠와 상호작용할 수 있습니다.
이 서버는 내 드라이브와 공유 드라이브 모두 지원합니다. GDRIVE_ROOT_FOLDER_ID로 지정된 폴더와 그 하위 폴더에만 접근합니다.
supportsAllDrives: true로 모든 드라이브 유형 지원query, pageToken, pageSize)fileId)fileId, startLine, endLine)folderId)fileId, prompt)spreadsheetId, ranges, sheetId)fileId, range, value)npm install @pghoya2956/google-drive-mcp-server프로젝트 루트에 다음 변수를 포함한 .env 파일을 생성합니다:
CLIENT_ID=your-oauth-client-id
CLIENT_SECRET=your-oauth-client-secret
GDRIVE_CREDS_DIR=/path/to/credentials/directory
GDRIVE_ROOT_FOLDER_ID=your-root-folder-id
PDF_SIZE_LIMIT_MB=20환경 변수 역할:
CLIENT_ID, CLIENT_SECRET: 토큰 갱신 시 사용 (gcp-oauth.keys.json의 값과 동일)GDRIVE_CREDS_DIR: 인증 파일들이 저장되는 디렉토리 경로GDRIVE_ROOT_FOLDER_ID: 접근을 제한할 루트 폴더 IDPDF_SIZE_LIMIT_MB: PDF 파일 크기 제한 (기본값: 20, 최대: 100) - 선택사항https://www.googleapis.com/auth/drive.readonlyhttps://www.googleapis.com/auth/spreadsheetsgcp-oauth.keys.json으로 변경GDRIVE_CREDS_DIR 디렉토리에 배치 (예: /Users/username/.config/gdrive-mcp-server)gcp-oauth.keys.json에서 client_id와 client_secret 값을 확인CLIENT_ID, CLIENT_SECRET에 설정https://drive.google.com/drive/folders/[FOLDER_ID]claude_desktop_config.json에 추가:
{
"mcpServers": {
"gdrive": {
"command": "npx",
"args": ["@pghoya2956/gdrive-mcp-server"],
"env": {
"CLIENT_ID": "your-oauth-client-id",
"CLIENT_SECRET": "your-oauth-client-secret",
"GDRIVE_CREDS_DIR": "/path/to/credentials/directory",
"GDRIVE_ROOT_FOLDER_ID": "your-root-folder-id",
"PDF_SIZE_LIMIT_MB": "20"
}
}
}
}.gdrive-server-credentials.json에 자동 저장구성이 완료되면 자연어를 사용하여 Google Drive와 상호작용할 수 있습니다:
{
"text": "PDF 문서의 텍스트 내용...",
"metadata": {
"pages": 15,
"fileSize": 2097152,
"title": "연간 보고서 2024",
"author": "John Doe",
"createdAt": "2024-01-15T10:30:00Z"
},
"version": "PDF-1.4",
"tables": [
{
"index": 1,
"headers": ["항목", "2023년", "2024년", "변화율"],
"rows": [
["매출", "100억", "120억", "+20%"],
["영업이익", "20억", "25억", "+25%"]
],
"markdown": "| 항목 | 2023년 | 2024년 | 변화율 |\n|---|---|---|---|\n| 매출 | 100억 | 120억 | +20% |\n| 영업이익 | 20억 | 25억 | +25% |"
}
]
}PDF_SIZE_LIMIT_MB로 조정 가능)#### 20MB 이하 (기본)
# gdrive_read_file 사용 - 완전한 PDF 파싱
# 텍스트, 테이블, 메타데이터 추출 가능#### 20-100MB
# 환경변수 설정 후 gdrive_read_file 사용
PDF_SIZE_LIMIT_MB=50 npm start#### 100MB 초과
# gdrive_read_large_file로 부분 읽기
# 주의: PDF 파싱 없음, 원본 내용만 반환
{
"tool": "gdrive_read_large_file",
"arguments": {
"fileId": "your-file-id",
"maxBytes": 10485760, # 10MB씩 읽기
"startByte": 0
}
}| 기능 | gdrive_read_file | gdrive_read_large_file |
|---|---|---|
| PDF 텍스트 추출 | ✅ | ❌ |
| 테이블 추출 | ✅ | ❌ |
| 메타데이터 | ✅ | ❌ |
| 크기 제한 | PDF_SIZE_LIMIT_MB | 없음 (부분 읽기) |
| 캐싱 | ✅ | ❌ |
{
"sheetNames": ["Sheet1", "Sheet2"],
"sheets": {
"Sheet1": {
"range": "A1:D10",
"rowCount": 10,
"columnCount": 4,
"headers": ["Name", "Age", "Email", "City"],
"data": [
{
"Name": "John Doe",
"Age": 30,
"Email": "[email protected]",
"City": "New York"
}
],
"rawData": [
["Name", "Age", "Email", "City"],
["John Doe", 30, "[email protected]", "New York"]
],
"csv": "Name,Age,Email,City\nJohn Doe,30,[email protected],New York"
}
},
"metadata": {
"fileSize": 1048576,
"sheetCount": 2
}
}| 기능 | Excel 파일 (.xlsx) | Google Sheets |
|---|---|---|
| 도구 이름 | gdrive_read_file | gsheets_read |
| 데이터 수정 | ❌ | ✅ |
| 특정 범위 읽기 | ❌ (전체 시트) | ✅ |
| 수식 결과 | ✅ | ✅ |
| 캐싱 | ✅ | ❌ |
GDRIVE_ROOT_FOLDER_ID를 설정했는지 확인하세요.gdrive-server-credentials.json을 삭제하고 다시 인증하세요PDF_SIZE_LIMIT_MB로 제한을 늘릴 수 있습니다# 저장소 복제
git clone https://github.com/pghoya2956/Google-Drive-MCP-Server.git
cd gdrive-mcp-server
# 종속성 설치
npm install
# TypeScript 빌드
npm run build
# 개발 모드로 실행
npm run watch이 프로젝트는 이 저장소에서 MIT 라이센스로 배포된 Anthropic, PBC가 원래 개발한 코드를 포함합니다.
기여를 환영합니다! Pull Request를 자유롭게 제출해 주세요.
~30 seconds. Free. No account. Every finding cites a rule and a line of evidence.