Gws MCP
MCP server by fioenix Verified · npm:gws-mcp
Gws MCP is an MCP server that wraps the local gws Google Workspace CLI. It lets sandboxed agents use Google Workspace through the OAuth credentials stored on the host.
Install Gws MCP
Built from the published package, never by AI.
claude mcp add gws-mcp -- npx -y gws-mcpRun in your terminal. Add --scope user to use it in every project.
{
"mcpServers": {
"gws-mcp": {
"args": [
"-y",
"gws-mcp"
],
"command": "npx"
}
}
}Settings, Developer, Edit config. Paste into claude_desktop_config.json and restart.
{
"mcpServers": {
"gws-mcp": {
"args": [
"-y",
"gws-mcp"
],
"command": "npx"
}
}
}Add to ~/.cursor/mcp.json (all projects) or .cursor/mcp.json (this project).
{
"servers": {
"gws-mcp": {
"args": [
"-y",
"gws-mcp"
],
"command": "npx"
}
}
}Add to .vscode/mcp.json. VS Code uses "servers", not "mcpServers".
codex mcp add gws-mcp -- npx -y gws-mcp{
"mcpServers": {
"gws-mcp": {
"args": [
"-y",
"gws-mcp"
],
"command": "npx"
}
}
}Add to ~/.gemini/config/mcp_config.json (all projects) or .agents/mcp_config.json (this project).
gemini mcp add gws-mcp npx -y gws-mcpGemini CLI was replaced by Antigravity CLI in June 2026 and remains only for enterprise licences and paid API keys.
MCP servers run with your permissions and can read what you give them access to. Some need an API key: check the README and add it under env in the gws-mcp block.
About
Gws MCP is a Model Context Protocol server that wraps the locally installed gws Google Workspace CLI. It lets Claude Desktop, Claude Code, Claude Cowork and other MCP-capable agents use Google Workspace through OAuth credentials kept in the host keyring, without exposing those credentials to the agent. The server provides schema-aware tools, bundled skill guides and safety controls such as a service allowlist, a method denylist and an NDJSON audit log.
It uses stdio by default and offers Streamable HTTP with bearer-token auth for remote sandboxes. Credential profiles let one host switch between several Google accounts. It is aimed at users who want sandboxed or remote agents to reach Google Workspace without direct access to host credentials.
Written from the project's README and checked against it.
Tools it gives your assistant
gws_list_servicesLists the Google Workspace services this server is allowed to call.gws_helpRuns gws help for a given set of arguments to discover resources and methods.gws_schemaReturns the JSON schema for a service.resource.method before a call is made.gws_callGeneric dispatcher for Google Workspace API calls, with optional dry run and pagination.gws_profile_currentShows which credential profile the next call uses and whether its token is valid.gws_profile_listLists every credential profile on the host with account, project and token state.gws_profile_useSwitches the credential profile for the current session without a restart.gws_gcpRuns the host's gcp zsh helper for credential diagnostics.gws_list_skillsLists the skill guides bundled with this server.gws_get_skillReturns the full markdown of a bundled skill guide.
What you need
- gws CLI installed and logged in
- Node.js 20 or later
- macOS or Linux
- Your own Google OAuth client for credentials
Try asking
- Show me the next 10 files in my Google Drive.
- Check which Google account the current session is using.
- Summarise my Google Calendar events for tomorrow.
Good to know
- Windows is untested.
- A reauth_required error needs a browser, so the agent cannot fix it.
- Each credential profile needs its own gws config directory.
- Output returned to the agent is capped by default at 1 MB and extra is truncated.
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: README.md, package.json. This looks for known risky patterns and is not a full audit. How grades work
Alternatives to Gws MCP
All alternatives →LearnHouse is an open source learning platform for building courses, learning paths and communities in your own academy. Its MCP server lets AI assistants read and build courses in your organization.
Agent-Native Calendar is the Calendar agent in Agent-Native, an open-source TypeScript framework for building agents with UIs. The README describes it as a way to find time, schedule events, and manage bookings. It is aimed at developers building agent apps.
Agent-Native Clips is the Clips agent from the Agent-Native framework, an open-source TypeScript project. It records and helps people understand meetings, screens, and voice notes.
Agent-Native Slides is the Slides agent in the Agent-Native open-source framework, described as a way to create and edit on-brand presentations. It is aimed at developers who build agents with a purpose-built UI.
AIHawk is an AI job application bot. It finds recent job postings that match your resume, then fills in and sends applications on the company's own forms after you pick the jobs.
Connects AI assistants to Microsoft 365 and Office services through the Microsoft Graph API. It suits users and administrators who want an assistant to work with Outlook, calendar, OneDrive, Teams and SharePoint data.
Compare with LearnHouse, Agent-Native Calendar or Agent-Native Clips
Gws MCP: common questions
Does the agent get my Google credentials?
No. The README says the server uses OAuth credentials stored in the host keyring without exposing them to the agent itself.
Can I restrict which actions an agent can run?
Yes. GWS_MCP_ALLOWED_SERVICES sets a service allowlist, GWS_MCP_DENIED_METHODS sets a method denylist, and GWS_MCP_AUDIT_LOG writes an audit record of tool calls.
Can it work with more than one Google account?
Yes. Credential profiles can be selected with GWS_PROFILE, and gws_profile_use switches identity during a session.
How do I install Gws MCP?
In Claude Code run claude mcp add gws-mcp -- npx -y gws-mcp. For Claude Desktop, Cursor and VS Code, paste the config shown above and restart. See the install guides.
Is Gws MCP the official server?
Gws MCP is published by npm:gws-mcp from its verified domain in the official MCP Registry.
Is Gws MCP free?
The code is published under the MIT licence. The service it connects to may have its own pricing.
Is Gws MCP safe to use?
It scores 67 of 100. Grades: maintenance A, licence A, quality C. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.
What are alternatives to Gws MCP?
Similar MCP servers: LearnHouse, Agent-Native Calendar, Agent-Native Clips, Agent-Native Slides.
Does Gws MCP work with ChatGPT?
Not directly. It runs locally, and ChatGPT only connects to remote servers with a URL. Use it in Claude Code, Claude Desktop, Cursor, VS Code or Codex.
