Skip to main content
Glama

Google Drive MCP Server

by ducla5
basic-commands.sh1.61 kB
#!/bin/bash # Google Drive MCP Server - Basic CLI Commands # This script demonstrates basic usage of the CLI interface echo "=== Google Drive MCP Server - Basic CLI Commands ===" echo # Check server version and status echo "1. Checking server version and status" npx google-drive-mcp --version npx google-drive-mcp health echo # Test authentication echo "2. Testing authentication" npx google-drive-mcp test auth echo # Basic file search echo "3. Basic file search" npx google-drive-mcp search --query "presentation" --limit 5 echo # Search with file type filter echo "4. Search for PDF files" npx google-drive-mcp search --query "report" --type pdf --limit 3 echo # Get file information echo "5. Get file information (replace FILE_ID with actual ID)" # npx google-drive-mcp info --file-id "1BxiMVs0XRA5nFMdKvBdBZjgmUUqptlbs74OgvE2upms" echo "Command: npx google-drive-mcp info --file-id FILE_ID" echo # List folder contents echo "6. List root folder contents" npx google-drive-mcp list --folder-id "root" --limit 10 echo # Get content chunk echo "7. Get content chunk (replace FILE_ID with actual ID)" # npx google-drive-mcp content --file-id "FILE_ID" --start-char 0 --end-char 1000 echo "Command: npx google-drive-mcp content --file-id FILE_ID --start-char 0 --end-char 1000" echo # Check cache status echo "8. Check cache status" npx google-drive-mcp cache status echo # View configuration echo "9. View current configuration" npx google-drive-mcp config show echo # View recent logs echo "10. View recent logs" npx google-drive-mcp logs --tail 20 echo echo "=== Basic CLI Commands Complete ==="

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/ducla5/gdriver-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server