Google Drive & Sheets MCP Server
A Model Context Protocol (MCP) server built in Rust for interacting with Google Drive and Google Sheets.
Overview
Google Drive & Sheets MCP Server is a Model Context Protocol (MCP) server built in Rust that allows users to interact with Google Drive and Google Sheets, providing a seamless integration for various workflows.
To use the server, install it via Cargo, configure your Google Cloud Project with the necessary APIs and OAuth credentials, and start the server for either Google Drive or Google Sheets using the provided commands.
- List and filter files in Google Drive with customizable parameters. - Read and write data to Google Sheets, including creating new spreadsheets and clearing values. - Implements MCP for compatibility with agent frameworks like Distri.
- Automating data entry and retrieval from Google Sheets.
- Integrating Google Drive file management into larger applications.
- Building custom workflows that utilize Google Workspace services.
Add to your AI client
Use these steps to connect Google Drive & Sheets MCP Server in Cursor, Claude, VS Code, and other MCP-compatible apps. The same JSON appears in the Use with menu above for one-click copy.
Cursor
Add this to your .cursor/mcp.json file in your project root, then restart Cursor.
.cursor/mcp.json
{
"mcpServers": {
"mcp-google-workspace-distrihub": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-mcp-google-workspace-distrihub"
]
}
}
}Claude Desktop
Add this server entry to the mcpServers object in your Claude Desktop config, then restart the app.
~/Library/Application Support/Claude/claude_desktop_config.json (macOS) or %APPDATA%\Claude\claude_desktop_config.json (Windows)
{
"mcpServers": {
"mcp-google-workspace-distrihub": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-mcp-google-workspace-distrihub"
]
}
}
}Claude Code
Add this to your project's .mcp.json file. Claude Code will detect it automatically.
.mcp.json (project root)
{
"mcpServers": {
"mcp-google-workspace-distrihub": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-mcp-google-workspace-distrihub"
]
}
}
}VS Code (Copilot)
Add this to your .vscode/mcp.json file. Requires the GitHub Copilot extension with MCP support enabled.
.vscode/mcp.json
{
"servers": {
"mcp-google-workspace-distrihub": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-mcp-google-workspace-distrihub"
]
}
}
}Windsurf
Add this to your Windsurf MCP config file, then restart Windsurf.
~/.codeium/windsurf/mcp_config.json
{
"mcpServers": {
"mcp-google-workspace-distrihub": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-mcp-google-workspace-distrihub"
]
}
}
}Cline
Open Cline settings, navigate to MCP Servers, and add this server configuration.
Cline MCP Settings (via UI)
{
"mcpServers": {
"mcp-google-workspace-distrihub": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-mcp-google-workspace-distrihub"
]
}
}
}FAQ
What are the prerequisites for using this server?
You need Rust, a Google Cloud Project with Drive and Sheets APIs enabled, and OAuth 2.0 credentials configured.
Is there a license for this project?
Yes, it is licensed under the MIT License.
Can I contribute to this project?
Yes, contributions are welcome through Pull Requests.7:["$","div",null,{"className":"container mx-auto flex flex-col gap-4","children":["$L26","$L27",["$","$L28",null,{"currentProject":{"id":1975,"uuid":"1a32fbd8-9f56-441b-a25a-5a9393a7a641","name":"mcp-google-workspace","title":"Google Drive & Sheets MCP Server","description":"A Model Context Protocol (MCP) server built in Rust for interacting with Google Drive and Google Sheets.","avatar_url":"https://avatars.githubusercontent.com/u/195536890?v=4","created_at":"$D2025-03-05T07:37:32.676Z","updated_at":"$D2025-03-12T10:21:41.241Z","status":"created","author_name":"distrihub","author_avatar_url":"https://avatars.githubusercontent.com/u/195536890?v=4","tags":"mcp-google-workspace,google-drive,google-sheets","category":"developer-tools","is_featured":false,"sort":1,"url":"https://github.com/distrihub/mcp-google-workspace","target":"_self","content":"$29","summary":"$2a","img_url":null,"type":null,"metadata":"{\"star\":\"0\",\"license\":\"MIT license\",\"language\":\"Rust\",\"is_official\":false,\"latest_commit_time\":\"2025-02-27 01:33:24\"}","user_uuid":null,"tools":null,"sse_url":null,"sse_provider":null,"sse_params":null,"is_official":false,"server_command":null,"server_params":null,"server_config":null,"allow_call":false,"is_innovation":false,"is_dxt":false,"dxt_manifest":null,"dxt_file_url":null,"is_audit":false},"randomProjects":[],"currentServerKey":"$undefined"}]]}]