Google Drive MCP Server
Google Drive MCP Server is a stateless server that integrates Google Drive functionalities with the Model Context Protocol (MCP). It provides a suite of tools and resources to interact with Google Drive, enabling operations like file management, content retrieval, and permission handling through a standardized interface.
π Features
- Drive Roots Listing: Retrieve files from βMy Driveβ and βShared with meβ sections.
- Folder Contents: List all items within a specified folder.
- File Metadata Retrieval: Access detailed metadata of files.
- Content Exporting: Export Google Docs, Sheets, and Slides to formats like Markdown, CSV, or plain text.
- File Upload & Update: Upload new files or update existing ones with base64-encoded content.
- Text Appending: Append plain text to existing text files.
- File Deletion: Trash or permanently delete files.
- Permission Management: Share files with specific users, groups, domains, or publicly.
- Commenting: Add comments to files.
- Change Tracking: Monitor changes in Drive using change tokens.
- File Searching: Search for files based on name substrings.
π οΈ Installation
Clone the Repository:
git clone [https://github.com/rishipradeep-think41/google-drive-mcp.git](https://github.com/rishipradeep-think41/google-drive-mcp.git) cd google-drive-mcpInstall Dependencies:
npm installConfigure Environment Variables: Create a
.envfile in the root directory and add the following:CLIENT_ID=your_google_client_id CLIENT_SECRET=your_google_client_secret REFRESH_TOKEN=your_google_refresh_token PORT=8081Ensure you have a valid Google OAuth2 client and refresh token with appropriate Drive API scopes.
Start the Server:
node index.jsThe server will start on
http://localhost:8081.
π API Overview
Resources
drive_roots: Lists files in βMy Driveβ and βShared with meβ.
Tools
drive_folder_children: Lists contents of a specified folder.drive_file_metadata: Retrieves metadata for a given file ID.drive_file_content: Retrieves or exports file content based on MIME type.drive_search: Searches for files by name substring.drive_changes: Lists changes in Drive since a given token.drive_mcp_info: Provides MCP discovery information.drive_create: Creates a new file or folder.drive_upload: Uploads a new file or updates an existing one with base64-encoded content.drive_append_text: Appends plain text to an existing text file.drive_delete: Trashes or permanently deletes a file.drive_share: Manages file permissions.drive_comment: Adds a comment to a file.
π Authentication
The server uses OAuth2 for authentication with Google Drive. Ensure that the CLIENT_ID, CLIENT_SECRET, and REFRESH_TOKEN are correctly set in the .env file. These credentials should have the necessary scopes to access and modify files in Google Drive.
π§ͺ Testing
You can test the endpoints using tools like MCPInspector. Ensure the server is running at http://localhost:${port}.
π€ Contributing
Contributions are welcome! Please fork the repository and submit a pull request for any enhancements or bug fixes.
π License
This project is licensed under the MIT License.
π§ Contact
For any questions or feedback, please open an issue on the GitHub repository.
Google Drive
Project Details
- rishipradeep-think41/google-drive-mcp
- MIT License
- Last Updated: 5/12/2025
Recomended MCP Servers
MCP PDF Serverλ PDF νμΌμ ν¨μ¨μ μΌλ‘ κ΄λ¦¬ν μ μλ Model Context Protocol(MCP) κΈ°λ° μλ²μ λλ€.
MCP server implementation for n8n workflow automation
A lightweight, ready-to-use TypeScript template for building Model Context Protocol (MCP) servers. This template provides the essential scaffolding...
MCP (Model Context Protocol) server that utilizes the Google Gemini Vision API to interact with YouTube videos.
MCP VMI Testing
Allows AI Agents to sleep for a specified amount of milliseconds, like when they should wait for an...
An MCP server based on OSSInsight.io, providing data analysis for GitHub individuals and repositories, as well as in-depth...
coding_devops_mcp_server





