npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

gws-mcp-server

v0.1.3

Published

MCP server that exposes Google Workspace CLI (gws) as Model Context Protocol tools

Downloads

881

Readme

gws-mcp-server

npm version license

MCP server that exposes Google Workspace CLI (gws) operations as Model Context Protocol tools.

Why?

The gws CLI had a built-in MCP server that was removed in v0.8.0 because it exposed 200-400 tools — causing context window bloat in MCP clients. This server takes a curated approach: you choose which Google services to expose, and only a focused set of high-value, narrowly scoped operations are registered as tools.

Prerequisites

  • Node.js 18+
  • gws CLI installed and authenticated (npm install -g @googleworkspace/cli && gws auth login)

Quick start

# Install
npm install -g gws-mcp-server

# Or run from source
git clone https://github.com/conorbronsdon/gws-mcp-server.git
cd gws-mcp-server
npm install && npm run build

Configuration

Claude Code (.mcp.json)

{
  "mcpServers": {
    "google-workspace": {
      "command": "npx",
      "args": [
        "gws-mcp-server",
        "--services", "drive,sheets,calendar,docs,gmail"
      ]
    }
  }
}

Claude Desktop (claude_desktop_config.json)

{
  "mcpServers": {
    "google-workspace": {
      "command": "npx",
      "args": [
        "gws-mcp-server",
        "--services", "drive,sheets,calendar"
      ]
    }
  }
}

Options

| Flag | Description | Default | |------|-------------|---------| | --services, -s | Comma-separated list of services to expose | All services | | --gws-path | Path to the gws binary | gws |

Available services & tools

drive (8 tools)

  • drive_files_list — Search and list files
  • drive_files_get — Get file metadata
  • drive_files_create — Create files (with optional upload)
  • drive_files_copy — Copy files (useful for format conversion)
  • drive_files_update — Update file metadata/content
  • drive_files_delete — Delete files
  • drive_files_export — Export Google Workspace files (Doc, Sheet, Slide) to other formats
  • drive_permissions_create — Share files

sheets (4 tools)

  • sheets_get — Get spreadsheet metadata
  • sheets_values_get — Read cell values
  • sheets_values_update — Write cell values
  • sheets_values_append — Append rows

calendar (5 tools)

  • calendar_events_list — List events
  • calendar_events_get — Get event details
  • calendar_events_insert — Create events
  • calendar_events_update — Update events
  • calendar_events_delete — Delete events

docs (3 tools)

  • docs_get — Get document content
  • docs_create — Create documents
  • docs_batchUpdate — Apply document updates

gmail (4 tools)

  • gmail_messages_list — Search messages
  • gmail_messages_get — Read a message
  • gmail_threads_list — Search threads
  • gmail_threads_get — Read a full thread

Total: 24 tools (vs 200-400 in the old implementation)

Adding new tools

Edit src/services.ts to add tool definitions. Each tool maps directly to a gws CLI command:

{
  name: "drive_files_list",           // MCP tool name
  description: "List files in Drive", // Shown to AI
  command: ["drive", "files", "list"],// gws CLI args
  params: [                           // Maps to --params JSON
    { name: "q", description: "Search query", type: "string", required: false },
  ],
  bodyParams: [                       // Maps to --json body
    { name: "name", description: "File name", type: "string", required: true },
  ],
}

Architecture

MCP Client (Claude) ←→ stdio ←→ gws-mcp-server ←→ gws CLI ←→ Google APIs

The server is a thin wrapper: it translates MCP tool calls into gws CLI invocations, passes --params and --json as appropriate, and returns the JSON output.

License

MIT