modelscope·@benjamine/gdrive-mcp
暂无描述。
A Model Context Protocol (MCP) server that provides access to Google Drive documents.
No installation needed! Use bunx to run directly, or clone from source.
No installation required - bunx will download and cache the package automatically.
git clone https://github.com/benjamine/gdrive-mcp.git
cd gdrive-mcp
bun install
You need to create your own OAuth2 credentials from Google Cloud Console.
See detailed instructions: docs/CREATE_OAUTH_CREDENTIALS.md
Quick version:
The setup script will open your browser and handle the OAuth2 flow:
With bunx (recommended):
bunx --bun -p gdrive-mcp gdrive-mcp-auth YOUR_CLIENT_ID YOUR_CLIENT_SECRET
If cloned from source:
bun run src/setup-auth.ts YOUR_CLIENT_ID YOUR_CLIENT_SECRET
This will:
Example output:
Setup Complete!
Credentials stored securely in your system keychain
(macOS Keychain / Linux libsecret / Windows Credential Manager)
Add this to your Claude Desktop config:
{
"mcpServers": {
"gdrive": {
"command": "bunx",
"args": ["--bun", "gdrive-mcp"]
}
}
}
No need to store sensitive credentials in config files!
Add the server to your MCP client configuration.
Note: Credentials are securely stored in your system keychain (macOS Keychain, Linux libsecret, or Windows Credential Manager) - no need to add them to config files!
Add to your opencode.jsonc:
With bunx (recommended):
{
"mcp": {
"gdrive": {
"type": "local",
"command": ["bunx", "--bun", "gdrive-mcp"]
}
}
}
If cloned from source:
{
"mcp": {
"gdrive": {
"type": "local",
"command": ["bun", "run", "/absolute/path/to/gdrive-mcp/src/index.ts"]
}
}
}
Add to your Claude Desktop configuration:
macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
With bunx (recommended):
{
"mcpServers": {
"gdrive": {
"command": "bunx",
"args": ["--bun", "gdrive-mcp"]
}
}
}
If cloned from source:
{
"mcpServers": {
"gdrive": {
"command": "bun",
"args": ["run", "/absolute/path/to/gdrive-mcp/src/index.ts"]
}
}
}
Search for files and documents across all of Google Drive using text queries.
Parameters:
query (string): Search query text. Supports Google Drive search syntax:
"quarterly report" - searches in file names and contentname:report - searches only file namestype:document - filters by file typetype:spreadsheet budget - combines filtersmax_results (number, optional): Maximum number of results to return (default: 10, max: 100)Returns:
Examples:
{
"query": "quarterly report",
"max_results": 20
}
{
"query": "type:document name:meeting",
"max_results": 10
}
Retrieves the full text contents of a Google Doc.
Parameters:
doc_id_or_url (string): Either a full Google Docs URL or just the document IDExamples:
https://docs.google.com/document/d/1a2b3c4d5e6f7g8h9i0j/edit1a2b3c4d5e6f7g8h9i0jLists all comment threads on a Google Doc, including quoted text, replies, and status.
Parameters:
doc_id_or_url (string): Google Docs URL or document IDCreates an unanchored comment on a Google Doc (appears in "All Comments" view).
Parameters:
doc_id_or_url (string): Google Docs URL or document IDcomment (string): The comment text to addNote: Due to Google Drive API limitations, comments cannot be anchored to specific text selections.
Replies to an existing comment thread on a Google Doc.
Parameters:
doc_id_or_url (string): Google Docs URL or document IDcomment_id (string): The ID of the comment to reply toreply (string): The reply textInserts an auto-numbered styled note block directly into the document content. Notes are automatically numbered sequentially ( NOTE 1:, NOTE 2:, etc.). This is a workaround for the API's inability to create anchored comments or suggestions. The note appears as a visually distinctive block with:
Parameters:
doc_id_or_url (string): Google Docs URL or documen…暂无描述。
暂无描述。
暂无描述。
暂无描述。
暂无描述。
暂无描述。