Google Cloud
Google Cloud provides OAuth 2.0 for user authentication. Since this is a family-scoped project, the app stays in Testing mode - there is no need for publishing.
Create a project
Section titled “Create a project”- Go to console.cloud.google.com
- Click the project dropdown → New Project
- Enter a name (e.g. "Protocol MCP") → Create
Configure OAuth consent
Section titled “Configure OAuth consent”Google has renamed "OAuth consent screen" to Google Auth Platform. Navigate to Menu → Google Auth Platform (or the legacy path APIs & Services → OAuth consent screen, which redirects).
- Click Get Started
- App Information: enter app name, select support email → Next
- Audience: choose External → Next
- Contact Information: enter notification email → Next
- Agree to terms → Create
After creation:
- Go to Audience → keep Testing status (limits to 100 test users)
- Under Test users, click Add users → add family member email addresses
- Go to Data Access → Add or Remove Scopes → add
openidandemail(both non-sensitive) → Update → Save
Create OAuth credentials
Section titled “Create OAuth credentials”Navigate to Google Auth Platform → Clients (or legacy APIs & Services → Credentials).
- Click Create Client (or Create Credentials → OAuth client ID)
- Application type: Web application
- Name: anything (e.g. "Protocol MCP")
- Under Authorized JavaScript origins, add your server's base URL (e.g.
https://your-production-domain.com) - Under Authorized redirect URIs, add your server's callback URL:
https://your-production-domain.com/auth/callback - Click Create
- Copy the Client ID and Client Secret - store them securely
Local development (optional): To run the server locally, add these to the same OAuth client:
- Authorized JavaScript origins:
http://localhost:8000 - Authorized redirect URIs:
http://localhost:8000/auth/callback
Google allows multiple origins and redirect URIs per client, so both local and production can coexist.
Outputs
Section titled “Outputs”After completing this step you should have the next values:
| Key | Value | Where to get it | Purpose |
|---|---|---|---|
GOOGLE_CLIENT_ID | Google Client ID | Final steps here | Server secret |
GOOGLE_CLIENT_SECRET | Google Client Secret | Final steps here | Server secret |