Harness
Google MCP servers for Codex
The suite is 23 MCP servers for Google products, one plugin per product, and the same servers run in Codex. This page covers the install command for Codex, where it writes, and what Codex does and does not do about approvals.
Install a product for Codex
Every product uses the same command. Change the product id to install another one, or pass --plugin all to install every product at once.
Install Gmail for Codex
npx google-services-mcps install --agent codex --plugin gmailThe installer copies each product's server files to ~/.google-services-mcps/runtime/<product>/ and writes one entry per server into a block of config.toml that it owns, between marker lines. Text outside the block is never changed.
The default scope is global, which is your account. The installer writes ~/.codex/config.toml for the global scope, and .codex/config.toml in a folder for the project and local scopes. Add --dry-run to see every change without writing one.
Where it writes
| Scope | File |
|---|---|
global (default) | ~/.codex/config.toml |
project | .codex/config.toml in the folder, read only for trusted projects |
local | the same file as project |
Approvals in Codex
Codex has no consent hook in this suite. A client that cannot ask for approval is refused every change, so nothing runs without a confirmation.
Reads never ask. A write is listed only when Allow write tools is on, and a destructive action asks twice in Claude Code. The full consent model is on the architecture page.
What you need
Codex, and Node.js 20 or newer. Codex reads a project config.toml only in a trusted project, so trust the folder or its servers stay off.
The 23 products
Each product is one plugin and one MCP server. The list is generated from the plugin folders at build time; every product page shows the tools that server registers.
Workspace Admin
gadminGoogle Workspace administration: Cloud Identity, Chrome management and policy, Groups Settings, licensing, reports, alerts, Vault, reseller and Cloud Search admin.
Ads and Publisher
gadsGoogle Ads API (accounts, campaigns, ad groups, ads, keywords, budgets, conversions, assets and GAQL reporting, with every other method through the gateway), plus advertising and publisher APIs: Search Ads 360, Display & Video 360, Campaign Manager, Ad Exchange, AdSense, AdMob, Real-time Bidding and more.
AI and ML
gaiGenerative and classic AI APIs: Discovery Engine, Vertex AI, Dialogflow, Vision, Speech, Translate, Document AI and agent services.
Google Analytics
ganalyticsGoogle Analytics admin and data APIs for GA4 properties, configuration and reports.
Apps Script
gappsApps Script projects and execution, plus the Workspace Marketplace SDK.
Business Profile
gbusinessBusiness Profile accounts, locations, verifications, lodging, place actions, notifications and performance.
Google Calendar
gcalendarGoogle Calendar calendars, events and calendar settings.
Google Chat
gchatGoogle Chat spaces, messages and members, plus Workspace Events subscriptions.
Google Classroom
gclassroomGoogle Classroom courses, coursework, submissions, students and teachers.
Google Cloud
gcloudGoogle Cloud console APIs: projects, service enablement, API keys, billing, monitoring, storage, BigQuery and IAM, plus the rest of the infrastructure, data, devops, networking, security and governance APIs.
Contacts and Profile
gcontactsGoogle Contacts and People, personal health metrics, Data Portability, and the OAuth2 userinfo endpoints.
Google Drive and Docs
gdriveGoogle Drive files, labels and activity, plus Docs, Sheets, Slides, Forms and Books.
Firebase
gfirebaseFirebase management, App Check, App Distribution, Crashlytics, Hosting, Data Connect, Rules, Test Lab, FCM and Identity Toolkit.
Gmail
gmailGmail mailboxes, messages, labels and settings, plus Gmail Postmaster Tools.
Maps and Location
gmapsMaps Platform and location APIs: Places, Address Validation, Solar, Air Quality, Pollen, Street View Publish and related datasets.
Google Meet
gmeetGoogle Meet spaces, conference records, participants and recordings.
Merchant Center
gmerchantMerchant Center: Merchant API and Comparison Shopping Service, through a service account key.
Google Play
gplayGoogle Play developer publishing and reporting, Play Games Services, Android Enterprise and Management, Play Integrity and device APIs.
Search Console
gscSearch Console sites, sitemaps, search analytics, URL indexing and site verification.
Search and Web Quality
gsearchPublic search and web-quality APIs (Custom Search, PageSpeed, CrUX, Safe Browsing, Web Risk, Fact Check) that take an API key instead of OAuth. The Custom Search JSON API is closed to new customers and is scheduled to be discontinued on 2027-01-01.
Tasks and Keep
gtasksGoogle Tasks task lists and tasks, plus Google Keep notes.
Tag Manager
gtmGoogle Tag Manager accounts, containers, tags, triggers and variables.
YouTube and Blogger
gyoutubeYouTube Data, YouTube Analytics and YouTube Reporting APIs, plus Blogger.
Keeping it current
Run the install again after a new release, so the runtime copy and the config entry are refreshed.
Related
- Install: every route, flag and scope, for all four harnesses
- Products: all 23 products, with their tools and login groups
- Architecture: the marketplace, the plugin and the server
- Configuration: the plugin options, the environment variables and the policy file
- Troubleshooting: what to check when a server does not load