Setup¶
Create a Google Cloud Service Account¶
- Go to the Google Cloud Console
- Create a new project or select an existing one
- Enable the Google Slides API and Google Docs API:
- Go to APIs & Services > Library
- Search for "Google Slides API" and enable it
- Search for "Google Docs API" and enable it
- Create a service account:
- Go to APIs & Services > Credentials
- Click "Create Credentials" > "Service Account"
- Give it a name (e.g., "mcp-server")
- No special roles needed for read-only access
- Download the JSON credentials file:
- Click on the service account
- Go to "Keys" tab
- Add Key > Create new key > JSON
- Save the downloaded file securely
Share Documents with the Service Account¶
The service account email (found in the credentials JSON as client_email) needs access to documents:
- Open the Google Slides presentation or Google Doc
- Click "Share"
- Add the service account email (e.g.,
mcp-server@your-project.iam.gserviceaccount.com) - Grant "Viewer" access (read-only is sufficient)
Sharing with Google Workspace
If you're using Google Workspace, you can share entire folders or drives with the service account for broader access.
Required OAuth Scopes¶
The server uses these read-only scopes:
https://www.googleapis.com/auth/presentations.readonly- Read Slides presentationshttps://www.googleapis.com/auth/documents.readonly- Read Docs documentshttps://www.googleapis.com/auth/drive.readonly- Access files shared with the service account
These scopes are automatically configured when using the server.