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 🙏

© 2025 – Pkg Stats / Ryan Hefner

@ashokpokharel977/mcp-server-gsuite

v0.0.4

Published

MCP server for interacting with Google Drive, Sheets, and Docs

Readme

mcp-server-gsuite

CI npm version License: MIT Node.js Version

MCP server for interacting with Google Drive, Sheets, and Docs. This package provides a TypeScript/JavaScript interface for Google Workspace services with rich formatting support.

Features

  • Google Drive Operations

    • Search and list files
    • Create and update files
    • Create and manage folders
    • Read file metadata and content
    • Support for file permissions
  • Google Docs Operations

    • Create documents with rich formatting
    • Update document content
    • Support for cover pages, headers, footers
    • Text styling and formatting
  • Google Sheets Operations

    • Create spreadsheets
    • Read and write cell values
    • Format cells (colors, fonts, borders)
    • Row and column operations (insert, delete, resize)
    • Cell merging

Installation

npm install @ashokpokharel977/mcp-server-gsuite

Setup

  1. Create a new Google Cloud project
  2. Enable the Google Drive API
  3. Configure an OAuth consent screen
  4. Add required OAuth scopes:
    • https://www.googleapis.com/auth/drive.file - Create, update and read files created by the app
    • https://www.googleapis.com/auth/drive.metadata.readonly - View file metadata
    • https://www.googleapis.com/auth/documents - Create and edit Google Docs
    • https://www.googleapis.com/auth/spreadsheets - Create and edit Google Sheets
  5. Create an OAuth Client ID for application type "Desktop App"
  6. Download the OAuth keys JSON file

Usage

Docker Usage

Authentication:

docker run -i --rm \
  --mount type=bind,source=/path/to/oauth-keys.json,target=/app/oauth-keys.json \
  -v mcp-gsuite:/app/credentials \
  -e GOOGLE_OAUTH_PATH=/app/oauth-keys.json \
  -e GOOGLE_CREDENTIALS_PATH=/app/credentials/credentials.json \
  -p 3000:3000 \
  @ashokpokharel977/mcp-server-gsuite auth

Server configuration:

{
  "mcpServers": {
    "gsuite": {
      "command": "docker",
      "args": [
        "run",
        "-i",
        "--rm",
        "-v", "mcp-gsuite:/app/credentials",
        "-e", "GOOGLE_CREDENTIALS_PATH=/app/credentials/credentials.json",
        "@ashokpokharel977/mcp-server-gsuite"
      ]
    }
  }
}

NPX Usage

{
  "mcpServers": {
    "gsuite": {
      "command": "npx",
      "args": [
        "-y",
        "@ashokpokharel977/mcp-server-gsuite"
      ],
      "env": {
        "GOOGLE_CREDENTIALS_PATH": "/path/to/credentials.json",
        "GOOGLE_OAUTH_PATH": "/path/to/oauth-keys.json"
      }
    }
  }
}

MCP Inspector usage

  1. Running Local
npx @modelcontextprotocol/inspector node dist/index.js -e GOOGLE_CREDENTIALS_PATH="$HOME/.google/server-creds.json" -e GOOGLE_OAUTH_PATH="$HOME/.google/oauth.keys.json"
  1. Running Remote
npx @modelcontextprotocol/inspector npx @ashokpokharel977/mcp-server-gsuite -e GOOGLE_CREDENTIALS_PATH="$HOME/.google/server-creds.json" -e GOOGLE_OAUTH_PATH="$HOME/.google/oauth.keys.json"

Development

Prerequisites

  • Node.js >= 18
  • npm

Setup

  1. Clone the repository:
git clone https://github.com/ashokpokharel977/mcp-gsuite.git
cd mcp-gsuite
  1. Install dependencies:
npm install
  1. Build the project:
npm run build

Available Scripts

  • npm run clean - Clean build artifacts
  • npm run build - Build the project
  • npm run dev - Run in development mode with hot reload
  • npm start - Start the server
  • npm run auth - Run authentication flow

Continuous Integration

The project uses GitHub Actions for CI/CD:

  • CI Workflow: Runs on every push and pull request to the main branch

    • Builds the project
    • Runs type checks
    • Tests against Node.js 18.x and 20.x
  • Publish Workflow: Automatically publishes to NPM when a new release is created

    • Requires NPM_TOKEN secret to be set in repository settings

Contributing

  1. Fork the repository
  2. Create your feature branch (git checkout -b feature/amazing-feature)
  3. Commit your changes (git commit -m 'Add some amazing feature')
  4. Push to the branch (git push origin feature/amazing-feature)
  5. Open a Pull Request

Publishing

To publish a new version:

  1. Update version in package.json
  2. Create and push a new tag:
git tag v0.0.1
git push origin v0.0.1
  1. Create a new release on GitHub
  2. The publish workflow will automatically publish to NPM

License

This project is licensed under the MIT License - see the LICENSE file for details.