Permet aux agents IA de rechercher, lire et écrire dans Google Drive et Google Docs en les important sous forme de snapshots Markdown locaux et de documents consultables.
Aussi connu sous WireCatLabs/drive-cli, drive-cli, @wirecat/drive-cli
- Étoiles
- 1
- Outils
- —
- Téléchargements, 30 jours
- —
- Dernière version
- 0.70.0
- Dernier commit
- 14 nov. 2026
- Licence
- Apache-2.0
Qu'est-ce que WireCat Google Drive MCP ?
WireCat Google Drive est un serveur MCP. Permet aux agents IA de rechercher, lire et écrire dans Google Drive et Google Docs en les important sous forme de snapshots Markdown locaux et de documents consultables.
Résumé généré à partir du README du projet
À propos du MCP server WireCat Google Drive
WireCat Google Drive permet aux agents IA d'interagir avec Google Drive et Google Docs en convertissant les fichiers en snapshots Markdown locaux. Cet outil est conçu pour les développeurs et les utilisateurs d'IA qui ont besoin de fournir aux agents un accès structuré et consultable à leurs documents cloud. Il prend en charge divers types de fichiers, notamment les Google Docs, Sheets, les PDF, les docx et les fichiers CSV. Les utilisateurs peuvent l'exécuter localement via une CLI ou le servir comme un MCP distant à des clients tels que ChatGPT et Claude en utilisant le flag --http.
L'installation nécessite Node.js et une connexion à un compte Google via un navigateur. Le système utilise le trousseau de clés (keyring) de l'OS pour gérer les identifiants de manière sécurisée. Une fois connecté, vous pouvez sélectionner des dossiers spécifiques à synchroniser, créant ainsi une base de données locale consultable. Le serveur propose trois outils MCP principaux pour la recherche, la lecture et l'écriture. Il prend également en charge la recherche sémantique via un modèle d'embedding local optionnel, tel que e5-small, ce qui permet une récupération de documents plus nuancée qu'une simple correspondance par mots-clés.
Ce que vous pouvez faire avec
- 1Synchroniser des dossiers Google DriveUn agent IA peut importer des dossiers Google Drive spécifiques sous forme de snapshots Markdown locaux pour faciliter leur traitement.
- 2Effectuer une recherche documentaire sémantiqueUn développeur peut demander à une IA de trouver des informations en utilisant la recherche sémantique plutôt que de simples correspondances de mots exacts.
- 3Gérer la connaissance documentaireVous pouvez demander à une IA d'ajouter des faits spécifiques, des notes ou des souvenirs à un document pour maintenir le contexte.
- 4Servir des outils à des clients webUn utilisateur peut héberger le MCP server à distance pour permettre aux outils d'IA basés sur navigateur d'accéder à ses données Drive.
Extrait du README du projet. Chaque cas d'utilisation est vérifié par rapport à une citation du document.
Comment installer WireCat Google Drive MCP
Formats vérifiés le 10 nov. 2026Ajouter à CursorAjouter à GooseInstaller WireCat Google Drive MCP dans Claude Code
$ claude mcp add drive-cli -- npx -y @wirecat/drive-cliInstaller WireCat Google Drive MCP dans Cursor
~/.cursor/mcp.json
{
"mcpServers": {
"drive-cli": {
"command": "npx",
"args": [
"-y",
"@wirecat/drive-cli"
]
}
}
}Installer WireCat Google Drive MCP dans VS Code
.vscode/mcp.json
{
"servers": {
"drive-cli": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"@wirecat/drive-cli"
]
}
}
}Installer WireCat Google Drive MCP dans VS Code CLI
$ code --add-mcp '{"name":"drive-cli","type":"stdio","command":"npx","args":["-y","@wirecat/drive-cli"]}'Installer WireCat Google Drive MCP dans Claude Desktop
claude_desktop_config.json
{
"mcpServers": {
"drive-cli": {
"command": "npx",
"args": [
"-y",
"@wirecat/drive-cli"
]
}
}
}Installer WireCat Google Drive MCP dans Codex
$ codex mcp add drive-cli -- npx -y @wirecat/drive-cliInstaller WireCat Google Drive MCP dans Codex config.toml
~/.codex/config.toml
[mcp_servers.drive-cli] command = "npx" args = ["-y", "@wirecat/drive-cli"]
Installer WireCat Google Drive MCP dans Gemini CLI
$ gemini mcp add -s user drive-cli npx -- -y @wirecat/drive-cliInstaller WireCat Google Drive MCP dans Gemini settings.json
~/.gemini/settings.json
{
"mcpServers": {
"drive-cli": {
"command": "npx",
"args": [
"-y",
"@wirecat/drive-cli"
]
}
}
}Vérifications automatisées
Exécuté le 14 nov. 2026Rapport complet →A passé nos vérifications automatisées. Il ne s'agit pas d'un audit de sécurité : lisez le code et donnez au serveur l'accès le plus restreint dont il a besoin. Fonctionnement des vérifications
- Dépôt source lié et accessiblewirecatlabs/drive-cli is public and reachablegithub.com/wirecatlabs/drive-cli ↗Réussi
- Le nom du package correspond au dépôt source@wirecat/drive-cli names wirecatlabs/drive-cli as sourcenpmjs.com/package/@wirecat/drive-cli ↗Réussi
- Provenance du build (attestation Sigstore)Sigstore attestation for @wirecat/drive-clinpmjs.com/package/@wirecat/drive-cli/v/0.68.0#provenance ↗Réussi
- Licence open source (OSI)Apache-2.0spdx.org/licenses/Apache-2.0.html ↗Réussi
- Commit ou version publiée au cours de l'année écouléeLast commit or release 2026-11-13github.com/wirecatlabs/drive-cli ↗Réussi
- OpenSSF ScorecardNon vérifié
- Nom du package non proche d'un package populaireNo popular package one edit away from @wirecat/drive-cliRéussi
- Aucun avis critique dans le package ou ses dépendancesthe package checked; no critical advisoryosv.dev ↗Réussi
- Aucune instruction cachée destinée au modèle0 tool descriptions and the README read; no override phrases, credential paths or hidden charactersRéussi
- Les outils destructifs sont étiquetésNon vérifié
- Le point de terminaison distant répond à la poignée de main MCPNon vérifié
README
Voir sur GitHubdrive-cli
drive imports selected Google Drive folders into local Markdown snapshots and searchable
documents. It reads Google Docs across all tabs, keeps source identity through renames and moves,
and reuses WireCat's shared keyword search and optional local embeddings. Shared tags, notes,
editor identities and evidence-backed memories stay attached to the imported documents.
Drive uses Google's official Node clients. Sources supported now: native Google Docs and Sheets, PDF, docx, xlsx, CSV, TSV, and uploaded Markdown/TXT. Other types and shortcuts are reported as skipped; shortcuts are not followed outside the selected scope.
How it compares with gog, Workspace MCP and rclone, and when another tool fits better: compared with other tools.
Install
Install the compiled CLI with Node 22.16+ on the 22.x line or Node 24+. A source build is not required:
npm install -g @wirecat/drive-cli
drive --version
drive --help
See installation and Google connection. Source builds are for contributors.
drive doctor shows the version, settings file, profiles and paths without signing in, and drive upgrade
installs a newer version with the package manager that installed drive.
drive guide lists scenarios — the commands for a common task, in order — and drive commands --json is the full
command tree. For an agent, drive skill install puts drive's instructions where Claude Code, Codex, Gemini CLI and
OpenClaw look (Hermes with --for hermes), drive personal mcp serve serves three MCP tools (search, read, write) —
--http serves them to ChatGPT and Claude in the browser (remote MCP) — and DRIVE_READ_ONLY=1
refuses every change, as --read-only does.
Sign in and choose folders
Sign in with WireCat's included Google application. Each user approves their own account in the browser. Making a shared Google application public for Drive is complex, so Google may refuse the sign-in; see what to do. You can also create your own Desktop client as explained in the installation guide. Connect your account, then choose a folder:
drive personal session start
drive personal folders add https://drive.google.com/drive/folders/FOLDER_ID
drive personal sync --json
For Google Cloud setup and an isolated first run, follow the browser sign-in and live validation guide.
Sign-in opens the system browser and receives Google's callback on a temporary loopback port.
--no-browser prints the URL. drive.readonly grants account-wide reading; our selected-folder
scope limits ingestion. Sync reads remote files. Optional remote management commands need a
new sign-in with session start --grant write; history events need session start --grant activity.
Credentials use the OS keyring. Where it fails, drive uses an owner-only private file without
asking and says so once; --credential-storage file chooses the file outright, not recommended. Tokens never enter regular config, output
or diagnostics. Your own Google app replaces the bundled one with session start --client-file or --client-id,
DRIVE_GOOGLE_CLIENT_ID and DRIVE_GOOGLE_CLIENT_SECRET, or the google_client_id setting, in that order. The included Desktop
client identity is public application metadata, separate from private user tokens. If you create
your own Desktop client and leave it in Testing, Google usually ends its sign-ins after seven days.
Google OAuth guide,
Drive permissions.
Use drive work … for another account. Each Google account has one local profile. drive session list
lists configured profiles. session end removes local sign-in while retaining cached data and
configuration so re-login preserves document identities. account remove --keep-data or --delete-data goes
further: it revokes the sign-in at Google and forgets the profile, and --delete-data also deletes its snapshots.
Search and export
drive personal search 'budget decision' --json
drive personal search 'budget' --exact --json
drive personal documents list --json
drive personal documents show DOC_ID --json
drive personal documents export DOC_ID --output ./document.md
drive personal status --json
drive commands sync --json
Search results include the original Google URL. documents show, list and export print synced_at and age_days; a copy older than a day adds missing, next and meta.complete: false. documents show includes each tab's text, ID
and title. Native Markdown exports are saved separately from the all-tab text used for indexing.
Export refuses to overwrite an existing destination file.
Semantic search uses the shared local text model (about 135 MB). Download it once; it needs no profile or sign-in, and every WireCat CLI shares it:
drive models download e5-small
drive personal sync --embed
Drive never downloads a model on its own; a missing one is reported. --exact searches words without semantic
retrieval.
Keep it current
drive personal sync --limit 200 --json
drive personal folders remove FOLDER_ID
drive personal sync --json
A batch is persisted before processing; interrupted work resumes next run. Progress is saved every 25 files or 2 seconds, so a killed sync redoes at most that many. The first walk of the chosen folders is saved as it goes, and an interrupted walk continues from the folders it had not listed yet. The change cursor advances when the batch completes. Incomplete discovery preserves the prior checkpoint and documents. A per-profile heartbeat lock prevents simultaneous syncs and recovers after crashes.
Confirmed removals and scope exits remove sources from search and delete their snapshots. Removing the last selected folder reconciles to an empty cache on the next sync. Unsupported, restricted and oversized sources have explicit coverage status. Transient failures remain pending; a partial sync with errors exits nonzero. Doc IDs, rather than names, distinguish duplicates.
Storage and coverage
The shared path helper chooses platform-appropriate config, data and cache directories under
drive-cli. Override with DRIVE_CONFIG_DIR, DRIVE_STATE_DIR and DRIVE_CACHE_DIR. Snapshots are
profiles/<profile>/documents/<file-id>.md plus private JSON metadata and raw Docs responses.
Documents use the same local WireCat database as Memo, Telegram and MAX. Imports become searchable
across those tools, alongside messages and notes. MESSAGING_STORE selects another database;
WIRECAT_STATE_DIR moves the default WireCat directory. Google sign-ins remain separate.
On first use after an upgrade, Drive rebuilds old document references from its managed snapshots,
without fetching Google. It retains the old database. If that database contains tags, notes,
memories, facts or relationships, Drive refuses to strand them: keep using that file through
MESSAGING_STORE until those annotations are transferred.
Search covers body text, nested tables and footnotes from all tabs. Images, headers, footers, comments and suggested edits are excluded. Image assets are not downloaded. Search text and Google’s native Markdown export are separate representations; inspect the export when layout or tab coverage matters.
One sync reads at most 10,000 entries under the chosen folders, and at most 10,000 changes from Google's change feed; past either, it stops with nothing lost and says what to do. Text caps at 2,000,000 characters and snapshots at 50 MiB, with bounded pagination. Oversized input is refused rather than truncated. Google's native export also has its own 10 MB limit. Documents changing during export remain pending for retry.
Document knowledge and remote actions
drive personal tags add DOC_ID project-budget review
drive personal documents list tag:review
drive personal notes add DOC_ID 'Check the assumptions' --title Review
drive personal identities list DOC_ID
drive personal documents context DOC_ID
drive personal facts add DOC_ID 'Budget approved for Q4' --type decision --scope work
drive personal memories add DOC_ID 'Q4 budget, in short' --scope work --kind summary
drive personal memories extract DOC_ID --scope work
drive personal documents history DOC_ID
drive api list service:docs
AI extraction explicitly sends selected cached text to the configured model. It previews proposals
unless --yes is given; saved proposals include source quotes, snapshot hashes and model authorship.
Use the shared model setup with models set --provider openai --model MODEL_ID. Provider keys
come from the corresponding API-key environment variable and never enter regular configuration.
Source content changes and scope removals mark source-backed memories stale. User notes stay local.
The generated API exposes 85 methods: 64 Drive, 17 Sheets, 3 Docs and 1 Activity. Convenient commands include file listing/copying/moving, trash/restore, folder creation, Docs creation/batch updates, comments, permissions, revisions and Shared Drives. Read grants remain the default. JSON API calls require explicit flags for mutation and permanent deletion; Google still enforces file roles and API policy.
Read the knowledge and API command guide for complete examples, permissions, history limits, AI settings and supported request formats. Contributor checks use isolated sources and mocked provider requests; see the testing guide.
Community
Questions and setup help: join the WireCat Discord. Bugs go to this repository's issues.
Questions sur WireCat Google Drive MCP
Comment ajouter WireCat Google Drive MCP à Claude Code ?
Exécutez claude mcp add drive-cli -- npx -y @wirecat/drive-cli dans votre terminal. Ajoutez --scope user pour le rendre disponible dans tous les projets.
Comment ajouter WireCat Google Drive MCP à Cursor ?
Ouvrez ~/.cursor/mcp.json et ajoutez le serveur sous mcpServers, avec la configuration Cursor indiquée dans la section d'installation ci-dessus.
Quels types de fichiers sont pris en charge ?
Le serveur prend en charge les formats natifs Google Docs et Sheets, ainsi que les PDF, docx, xlsx, CSV, TSV et les fichiers Markdown ou TXT importés.
Comment puis-je utiliser cela avec Claude ou ChatGPT dans un navigateur ?
Vous pouvez servir les outils MCP à ChatGPT et Claude dans le navigateur en utilisant le flag --http.
Prend-il en charge la recherche sémantique ?
Oui, il utilise un modèle de texte local partagé pour la recherche sémantique, qui peut être téléchargé séparément.
Puis-je restreindre l'agent à un accès en lecture seule ?
Oui, en définissant la variable d'environnement DRIVE_READ_ONLY=1, toute modification sera refusée.