{"_id":"@modelcontextprotocol/server-gdrive","_rev":"14-a29c24ff87175342dc388829f5d4f094","name":"@modelcontextprotocol/server-gdrive","dist-tags":{"latest":"2025.1.14"},"versions":{"0.1.0":{"name":"@modelcontextprotocol/server-gdrive","version":"0.1.0","author":{"url":"https://anthropic.com","name":"Anthropic, PBC"},"license":"MIT","_id":"@modelcontextprotocol/server-gdrive@0.1.0","maintainers":[{"name":"thedsp","email":"experimentalworks@gmail.com"},{"name":"jspahrsummers","email":"justin@jspahrsummers.com"}],"homepage":"https://modelcontextprotocol.io","bugs":{"url":"https://github.com/modelcontextprotocol/servers/issues"},"bin":{"mcp-server-gdrive":"dist/index.js"},"dist":{"shasum":"e99b73bbae5de554eb4e51e0f34b9e21a2206a4b","tarball":"https://registry.npmjs.org/@modelcontextprotocol/server-gdrive/-/server-gdrive-0.1.0.tgz","fileCount":3,"integrity":"sha512-X1mYAmTMPX5SkmIoGSIqVNMCzCmJ24DCqWaYS6s0yHzttihDvMZoPpPQRiaNWjQCP9o6Vx10j6HN4vMGicUTJw==","signatures":[{"sig":"MEQCIHjjeq//NTaZG+XOCzdS1GudKu2teQ95V6P4/Nd+ft0eAiAG7JZd3M8C3d7EZsI3kWZ0a1T1XJN/1mwZVzDXwFPmSw==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":8091},"type":"module","gitHead":"3044d818d91102c0d8c855edc1ad5fc270dce5d2","scripts":{"build":"tsc && shx chmod +x dist/*.js","watch":"tsc --watch","prepare":"npm run build"},"_npmUser":{"name":"jspahrsummers","email":"justin@jspahrsummers.com"},"deprecated":"Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.","_npmVersion":"10.7.0","description":"MCP server for interacting with Google Drive","directories":{},"_nodeVersion":"18.20.4","dependencies":{"googleapis":"^144.0.0","@google-cloud/local-auth":"^3.0.1","@modelcontextprotocol/sdk":"0.5.0"},"_hasShrinkwrap":false,"devDependencies":{"shx":"^0.3.4","typescript":"^5.6.2"},"_npmOperationalInternal":{"tmp":"tmp/server-gdrive_0.1.0_1732025673391_0.3138543090970707","host":"s3://npm-registry-packages"}},"0.2.0":{"name":"@modelcontextprotocol/server-gdrive","version":"0.2.0","author":{"url":"https://anthropic.com","name":"Anthropic, PBC"},"license":"MIT","_id":"@modelcontextprotocol/server-gdrive@0.2.0","maintainers":[{"name":"ashwin-ant","email":"ashwin@anthropic.com"},{"name":"thedsp","email":"experimentalworks@gmail.com"},{"name":"jspahrsummers","email":"justin@jspahrsummers.com"}],"homepage":"https://modelcontextprotocol.io","bugs":{"url":"https://github.com/modelcontextprotocol/servers/issues"},"bin":{"mcp-server-gdrive":"dist/index.js"},"dist":{"shasum":"135df5987ffbada7b180d47289fd6430d5606b3a","tarball":"https://registry.npmjs.org/@modelcontextprotocol/server-gdrive/-/server-gdrive-0.2.0.tgz","fileCount":3,"integrity":"sha512-W/n41Kx0KbLEYAlhfiVt6CQYIRCNEN5218pCHB/CKS5MilPsjZEHYqsNJNw13QFTna1t6Uz9T8E8owICDQLzEg==","signatures":[{"sig":"MEYCIQDRlnOIG8VUoFp8ndby1mFxNhe9s6j2/WkGVuj10+YJOgIhAM02lZmns5+NtxGamvtP2wVZmTtYZJh1DnaVVJ6KyOEc","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":9054},"type":"module","gitHead":"3d6de8673069bbb5d0418cd0db9b2fd81a53769d","scripts":{"build":"tsc && shx chmod +x dist/*.js","watch":"tsc --watch","prepare":"npm run build"},"_npmUser":{"name":"jspahrsummers","email":"justin@jspahrsummers.com"},"deprecated":"Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.","_npmVersion":"10.8.2","description":"MCP server for interacting with Google Drive","directories":{},"_nodeVersion":"18.20.5","dependencies":{"googleapis":"^144.0.0","@google-cloud/local-auth":"^3.0.1","@modelcontextprotocol/sdk":"0.5.0"},"_hasShrinkwrap":false,"devDependencies":{"shx":"^0.3.4","typescript":"^5.6.2"},"_npmOperationalInternal":{"tmp":"tmp/server-gdrive_0.2.0_1732216504903_0.4265688046930374","host":"s3://npm-registry-packages"}},"0.3.0":{"name":"@modelcontextprotocol/server-gdrive","version":"0.3.0","author":{"url":"https://anthropic.com","name":"Anthropic, PBC"},"license":"MIT","_id":"@modelcontextprotocol/server-gdrive@0.3.0","maintainers":[{"name":"ashwin-ant","email":"ashwin@anthropic.com"},{"name":"thedsp","email":"experimentalworks@gmail.com"},{"name":"jspahrsummers","email":"justin@jspahrsummers.com"}],"homepage":"https://modelcontextprotocol.io","bugs":{"url":"https://github.com/modelcontextprotocol/servers/issues"},"bin":{"mcp-server-gdrive":"dist/index.js"},"dist":{"shasum":"c9fe31b78decf31c862d8c81fa5e4c4d63d8dd50","tarball":"https://registry.npmjs.org/@modelcontextprotocol/server-gdrive/-/server-gdrive-0.3.0.tgz","fileCount":3,"integrity":"sha512-REbiSJekc8vhZpx9TbUJWMs9uOXs51PnqboR+ol4Rzo/ZrGaxieO9SUmt+WiB0qp4HJ2l0kLGn48+AsxnwABeQ==","signatures":[{"sig":"MEYCIQDNytDePc0d+ruqTM2btVWC6QTZSDDWAKjgoPJz0TqQeQIhAMNFPA3hqDSK5d2scM3cQP08aBFiB50yHzZsCH5/cs8D","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":9093},"type":"module","gitHead":"fe4f568fd011f9cbc8b7501e10117b7106bea84f","scripts":{"build":"tsc && shx chmod +x dist/*.js","watch":"tsc --watch","prepare":"npm run build"},"_npmUser":{"name":"jspahrsummers","email":"justin@jspahrsummers.com"},"deprecated":"Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.","_npmVersion":"10.8.2","description":"MCP server for interacting with Google Drive","directories":{},"_nodeVersion":"18.20.5","dependencies":{"googleapis":"^144.0.0","@google-cloud/local-auth":"^3.0.1","@modelcontextprotocol/sdk":"0.5.0"},"_hasShrinkwrap":false,"devDependencies":{"shx":"^0.3.4","typescript":"^5.6.2"},"_npmOperationalInternal":{"tmp":"tmp/server-gdrive_0.3.0_1732228646011_0.227402545025579","host":"s3://npm-registry-packages"}},"0.5.0":{"name":"@modelcontextprotocol/server-gdrive","version":"0.5.0","author":{"url":"https://anthropic.com","name":"Anthropic, PBC"},"license":"MIT","_id":"@modelcontextprotocol/server-gdrive@0.5.0","maintainers":[{"name":"jspahrsummers","email":"justin@jspahrsummers.com"},{"name":"thedsp","email":"experimentalworks@gmail.com"},{"name":"ashwin-ant","email":"ashwin@anthropic.com"}],"homepage":"https://modelcontextprotocol.io","bugs":{"url":"https://github.com/modelcontextprotocol/servers/issues"},"bin":{"mcp-server-gdrive":"dist/index.js"},"dist":{"shasum":"1c7303ade59f2e906ba7dd97341a2b1e068b5e8e","tarball":"https://registry.npmjs.org/@modelcontextprotocol/server-gdrive/-/server-gdrive-0.5.0.tgz","fileCount":3,"integrity":"sha512-kr5+kWcZrzzKuDfpbfDOILyAmEtyJIc1ttYgGE1XlKyUVqFU91p6S5DP0GmAPeINA2SuUBn58jNgQhxgOezVbg==","signatures":[{"sig":"MEYCIQCedpWk+XwIsQ4AbKs+RAzB/0ozHZQRGZIL5zU66lAROQIhAMqZODCu4Ia70Kr9kPHzITnG34AgW6ZX0cfeiJaeoTFS","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":9355},"type":"module","gitHead":"45c4f70da468e2d81b9efe0d736b49efde1b9263","scripts":{"build":"tsc && shx chmod +x dist/*.js","watch":"tsc --watch","prepare":"npm run build"},"_npmUser":{"name":"jspahrsummers","email":"justin@jspahrsummers.com"},"deprecated":"Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.","_npmVersion":"10.8.2","description":"MCP server for interacting with Google Drive","directories":{},"_nodeVersion":"18.20.5","dependencies":{"googleapis":"^144.0.0","@google-cloud/local-auth":"^3.0.1","@modelcontextprotocol/sdk":"0.5.0"},"_hasShrinkwrap":false,"devDependencies":{"shx":"^0.3.4","typescript":"^5.6.2"},"_npmOperationalInternal":{"tmp":"tmp/server-gdrive_0.5.0_1732540623079_0.2315738929538933","host":"s3://npm-registry-packages"}},"0.5.1":{"name":"@modelcontextprotocol/server-gdrive","version":"0.5.1","author":{"url":"https://anthropic.com","name":"Anthropic, PBC"},"license":"MIT","_id":"@modelcontextprotocol/server-gdrive@0.5.1","maintainers":[{"name":"jspahrsummers","email":"justin@jspahrsummers.com"},{"name":"thedsp","email":"experimentalworks@gmail.com"},{"name":"ashwin-ant","email":"ashwin@anthropic.com"}],"homepage":"https://modelcontextprotocol.io","bugs":{"url":"https://github.com/modelcontextprotocol/servers/issues"},"bin":{"mcp-server-gdrive":"dist/index.js"},"dist":{"shasum":"92aee3f4489abbaede9f4ddc671b866cd83f0abb","tarball":"https://registry.npmjs.org/@modelcontextprotocol/server-gdrive/-/server-gdrive-0.5.1.tgz","fileCount":3,"integrity":"sha512-kFwtYi6Cr+jAZNiYUYz0PuxLobwnMRDBvXoJig3bRPzXD/nZMitvZ7gQdjnXb6NULAveNXj0xrH3KVO5xln+8w==","signatures":[{"sig":"MEYCIQDeE/YwD5HUERpbDDuXpKvWWMU+9me09RWVOLQoM6vVzwIhAMeHh6icsqj/p7AMFTemf3lfRhkPp2qsE+GPNJEflYra","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":9385},"type":"module","gitHead":"0da25bea8720c8162895f3222b46abb0c96c7a81","scripts":{"build":"tsc && shx chmod +x dist/*.js","watch":"tsc --watch","prepare":"npm run build"},"_npmUser":{"name":"jspahrsummers","email":"justin@jspahrsummers.com"},"deprecated":"Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.","_npmVersion":"10.8.2","description":"MCP server for interacting with Google Drive","directories":{},"_nodeVersion":"18.20.5","dependencies":{"googleapis":"^144.0.0","@google-cloud/local-auth":"^3.0.1","@modelcontextprotocol/sdk":"0.5.0"},"_hasShrinkwrap":false,"devDependencies":{"shx":"^0.3.4","typescript":"^5.6.2","@types/node":"^22.9.3"},"_npmOperationalInternal":{"tmp":"tmp/server-gdrive_0.5.1_1732564732299_0.8210361125646546","host":"s3://npm-registry-packages"}},"0.6.2":{"name":"@modelcontextprotocol/server-gdrive","version":"0.6.2","author":{"url":"https://anthropic.com","name":"Anthropic, PBC"},"license":"MIT","_id":"@modelcontextprotocol/server-gdrive@0.6.2","maintainers":[{"name":"jspahrsummers","email":"justin@jspahrsummers.com"},{"name":"thedsp","email":"experimentalworks@gmail.com"},{"name":"ashwin-ant","email":"ashwin@anthropic.com"}],"homepage":"https://modelcontextprotocol.io","bugs":{"url":"https://github.com/modelcontextprotocol/servers/issues"},"bin":{"mcp-server-gdrive":"dist/index.js"},"dist":{"shasum":"7fb455bf179a0bf2c0650a7e0d8023fbccf987e5","tarball":"https://registry.npmjs.org/@modelcontextprotocol/server-gdrive/-/server-gdrive-0.6.2.tgz","fileCount":3,"integrity":"sha512-FjJwkDmqHpipwalcCvQNzSbPhHRiOGG8MLSGqwxpaLtBz/stFlKz67rDdp0bDNtiI8MoLCoaSFxGJpWEFxvAsg==","signatures":[{"sig":"MEUCIQCcDrn704GASIiZ7xuppitFtUeFuRHDK3SguqKVf42kngIgW3DbHuZoRPX/JyVbF+KIBcCk+ugbOMyJ0UGDBjmFOOI=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":9438},"type":"module","gitHead":"94a36286d2ea49d095704167846283f0c2c2d5d1","scripts":{"build":"tsc && shx chmod +x dist/*.js","watch":"tsc --watch","prepare":"npm run build"},"_npmUser":{"name":"jspahrsummers","email":"justin@jspahrsummers.com"},"deprecated":"Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.","_npmVersion":"10.8.2","description":"MCP server for interacting with Google Drive","directories":{},"_nodeVersion":"18.20.5","dependencies":{"googleapis":"^144.0.0","@google-cloud/local-auth":"^3.0.1","@modelcontextprotocol/sdk":"1.0.1"},"_hasShrinkwrap":false,"devDependencies":{"shx":"^0.3.4","typescript":"^5.6.2","@types/node":"^22.9.3"},"_npmOperationalInternal":{"tmp":"tmp/server-gdrive_0.6.2_1733328908594_0.13552329248644823","host":"s3://npm-registry-packages"}},"2025.1.14":{"name":"@modelcontextprotocol/server-gdrive","version":"2025.1.14","author":{"url":"https://anthropic.com","name":"Anthropic, PBC"},"license":"MIT","_id":"@modelcontextprotocol/server-gdrive@2025.1.14","maintainers":[{"name":"jspahrsummers","email":"justin@jspahrsummers.com"},{"name":"thedsp","email":"experimentalworks@gmail.com"},{"name":"ashwin-ant","email":"ashwin@anthropic.com"}],"homepage":"https://modelcontextprotocol.io","bugs":{"url":"https://github.com/modelcontextprotocol/servers/issues"},"bin":{"mcp-server-gdrive":"dist/index.js"},"dist":{"shasum":"9118f2533eff31435644cfd454d49b016d5ccf4f","tarball":"https://registry.npmjs.org/@modelcontextprotocol/server-gdrive/-/server-gdrive-2025.1.14.tgz","fileCount":3,"integrity":"sha512-MWrvgaHARzAsFEYpzOrG/ewYoWrDSvF1ybmW56cMIrnVQekTP0iGWKC/aEXVcc+V5hAmMGm7iABSJFNrBX9a0A==","signatures":[{"sig":"MEQCIGgh4ZU+hfTrQ5bgJU7fRo4ZwuSrL4LZ6cFftME/6xXmAiAfUSWv+CMnn4bs9jI2LQwxHmPhDK548JpYs/Q/kaCGXg==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":10546},"type":"module","gitHead":"ea73a074e8d2b4c424429c7f364dae558211ff30","scripts":{"build":"tsc && shx chmod +x dist/*.js","watch":"tsc --watch","prepare":"npm run build"},"_npmUser":{"name":"jspahrsummers","email":"justin@jspahrsummers.com"},"deprecated":"Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.","_npmVersion":"10.9.0","description":"MCP server for interacting with Google Drive","directories":{},"_nodeVersion":"22.12.0","dependencies":{"googleapis":"^144.0.0","@google-cloud/local-auth":"^3.0.1","@modelcontextprotocol/sdk":"1.0.1"},"_hasShrinkwrap":false,"devDependencies":{"shx":"^0.3.4","typescript":"^5.6.2","@types/node":"^22"},"_npmOperationalInternal":{"tmp":"tmp/server-gdrive_2025.1.14_1736819074692_0.21721032059204703","host":"s3://npm-registry-packages-npm-production"}}},"time":{"created":"2024-11-19T14:14:33.274Z","modified":"2026-07-03T11:07:48.220Z","0.1.0":"2024-11-19T14:14:33.551Z","0.2.0":"2024-11-21T19:15:05.090Z","0.3.0":"2024-11-21T22:37:26.179Z","0.5.0":"2024-11-25T13:17:03.248Z","0.5.1":"2024-11-25T19:58:52.463Z","0.6.2":"2024-12-04T16:15:08.733Z","2025.1.14":"2025-01-14T01:44:34.879Z"},"bugs":{"url":"https://github.com/modelcontextprotocol/servers/issues"},"author":{"url":"https://anthropic.com","name":"Anthropic, PBC"},"license":"MIT","homepage":"https://modelcontextprotocol.io","description":"MCP server for interacting with Google Drive","maintainers":[{"email":"justin@jspahrsummers.com","name":"jspahrsummers"},{"email":"paul@modelcontextprotocol.io","name":"pcarleton"},{"email":"fweinberger@anthropic.com","name":"fweinberger"},{"email":"david@modelcontextprotocol.io","name":"thedsp"},{"email":"ashwin@anthropic.com","name":"ashwin-ant"},{"email":"ochafik@anthropic.com","name":"ochafik-ant"},{"email":"cliff@futurescale.com","name":"cliffhall"}],"readme":"# Google Drive server\n\nThis MCP server integrates with Google Drive to allow listing, reading, and searching over files.\n\n## Components\n\n### Tools\n\n- **search**\n  - Search for files in Google Drive\n  - Input: `query` (string): Search query\n  - Returns file names and MIME types of matching files\n\n### Resources\n\nThe server provides access to Google Drive files:\n\n- **Files** (`gdrive:///<file_id>`)\n  - Supports all file types\n  - Google Workspace files are automatically exported:\n    - Docs → Markdown\n    - Sheets → CSV\n    - Presentations → Plain text\n    - Drawings → PNG\n  - Other files are provided in their native format\n\n## Getting started\n\n1. [Create a new Google Cloud project](https://console.cloud.google.com/projectcreate)\n2. [Enable the Google Drive API](https://console.cloud.google.com/workspace-api/products)\n3. [Configure an OAuth consent screen](https://console.cloud.google.com/apis/credentials/consent) (\"internal\" is fine for testing)\n4. Add OAuth scope `https://www.googleapis.com/auth/drive.readonly`\n5. [Create an OAuth Client ID](https://console.cloud.google.com/apis/credentials/oauthclient) for application type \"Desktop App\"\n6. Download the JSON file of your client's OAuth keys\n7. Rename the key file to `gcp-oauth.keys.json` and place into the root of this repo (i.e. `servers/gcp-oauth.keys.json`)\n\nMake sure to build the server with either `npm run build` or `npm run watch`.\n\n### Authentication\n\nTo authenticate and save credentials:\n\n1. Run the server with the `auth` argument: `node ./dist auth`\n2. This will open an authentication flow in your system browser\n3. Complete the authentication process\n4. Credentials will be saved in the root of this repo (i.e. `servers/.gdrive-server-credentials.json`)\n\n### Usage with Desktop App\n\nTo integrate this server with the desktop app, add the following to your app's server configuration:\n\n#### Docker\n\nAuthentication:\n\nAssuming you have completed setting up the OAuth application on Google Cloud, you can now auth the server with the following command, replacing `/path/to/gcp-oauth.keys.json` with the path to your OAuth keys file:\n\n```bash\ndocker run -i --rm --mount type=bind,source=/path/to/gcp-oauth.keys.json,target=/gcp-oauth.keys.json -v mcp-gdrive:/gdrive-server -e GDRIVE_OAUTH_PATH=/gcp-oauth.keys.json -e \"GDRIVE_CREDENTIALS_PATH=/gdrive-server/credentials.json\" -p 3000:3000 mcp/gdrive auth\n```\n\nThe command will print the URL to open in your browser. Open this URL in your browser and complete the authentication process. The credentials will be saved in the `mcp-gdrive` volume.\n\nOnce authenticated, you can use the server in your app's server configuration:\n\n```json\n{\n  \"mcpServers\": {\n    \"gdrive\": {\n      \"command\": \"docker\",\n      \"args\": [\"run\", \"-i\", \"--rm\", \"-v\", \"mcp-gdrive:/gdrive-server\", \"-e\", \"GDRIVE_CREDENTIALS_PATH=/gdrive-server/credentials.json\", \"mcp/gdrive\"]\n    }\n  }\n}\n```\n\n#### NPX\n\n```json\n{\n  \"mcpServers\": {\n    \"gdrive\": {\n      \"command\": \"npx\",\n      \"args\": [\n        \"-y\",\n        \"@modelcontextprotocol/server-gdrive\"\n      ]\n    }\n  }\n}\n```\n\n## License\n\nThis MCP server is licensed under the MIT License. This means you are free to use, modify, and distribute the software, subject to the terms and conditions of the MIT License. For more details, please see the LICENSE file in the project repository.\n","readmeFilename":"README.md"}