mirror of
https://github.com/modelcontextprotocol/servers.git
synced 2026-04-17 15:53:23 +02:00
1.1 KiB
1.1 KiB
Google Drive server
This MCP server integrates with Google Drive to allow listing, reading, and searching over files.
Getting started
- Create a new Google Cloud project
- Enable the Google Drive API
- Configure an OAuth consent screen ("internal" is fine for testing)
- Add OAuth scope
https://www.googleapis.com/auth/drive.readonly - Create an OAuth Client ID for application type "Desktop App"
- Download the JSON file of your client's OAuth keys
- Rename the key file to
gcp-oauth.keys.jsonand place into the root of this repo
Make sure to build the server with either npm run build or npm run watch.
Authentication
To authenticate and save credentials:
- Run the server with the
authargument:node build/gdrive auth - This will open an authentication flow in your system browser
- Complete the authentication process
- Credentials will be saved for future use
Running the server
After authenticating:
- Run the server normally:
node build/gdrive - The server will load the saved credentials and start
Note: If you haven't authenticated yet, the server will prompt you to run with the auth argument first.