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

@micro-x-ai/mcp-google

v0.1.0

Published

Google MCP server — Gmail, Calendar, and Contacts tools over OAuth2

Readme

@micro-x-ai/mcp-google

Google MCP server providing Gmail, Calendar, and Contacts tools over OAuth2. Works with any MCP-compatible client including Claude Desktop, Claude Code, and the micro-x agent loop.

Install and run

npx -y @micro-x-ai/mcp-google

On first run, a browser window opens for Google OAuth consent. Tokens are cached locally and refreshed automatically on subsequent runs.

Required environment variables

| Variable | Description | |----------|-------------| | GOOGLE_CLIENT_ID | OAuth2 client ID from Google Cloud Console | | GOOGLE_CLIENT_SECRET | OAuth2 client secret from Google Cloud Console |

Optional environment variables

| Variable | Description | Default | |----------|-------------|---------| | GOOGLE_TOKEN_BASE_DIR | Directory for cached OAuth tokens | POSIX: ${XDG_DATA_HOME:-~/.local/share}/mcp-google · Windows: %APPDATA%/mcp-google |

OAuth setup

  1. Go to Google Cloud Console.
  2. Create a project (or select an existing one).
  3. Enable the Gmail API, Google Calendar API, and People API.
  4. Go to APIs & Services > Credentials > Create Credentials > OAuth client ID.
  5. Application type: Web application.
  6. Add http://127.0.0.1 as an authorised redirect URI (the server picks a random port at runtime and appends it).
  7. Copy the client ID and client secret into your environment.

Tools

Gmail

| Tool | Description | |------|-------------| | gmail_search | Search Gmail messages by query | | gmail_read | Read a Gmail message by ID | | gmail_send | Send an email via Gmail |

Calendar

| Tool | Description | |------|-------------| | calendar_list | List upcoming calendar events | | calendar_create | Create a calendar event | | calendar_get | Get a calendar event by ID |

Contacts

| Tool | Description | |------|-------------| | contacts_search | Search contacts by name or email | | contacts_list | List contacts | | contacts_get | Get a contact by resource name | | contacts_create | Create a new contact | | contacts_update | Update an existing contact | | contacts_delete | Delete a contact |

Client configuration

Claude Desktop

Add to claude_desktop_config.json:

{
  "mcpServers": {
    "google": {
      "command": "npx",
      "args": ["-y", "@micro-x-ai/mcp-google"],
      "env": {
        "GOOGLE_CLIENT_ID": "your-client-id",
        "GOOGLE_CLIENT_SECRET": "your-client-secret"
      }
    }
  }
}

Claude Code

Add to .mcp.json:

{
  "mcpServers": {
    "google": {
      "command": "npx",
      "args": ["-y", "@micro-x-ai/mcp-google"],
      "env": {
        "GOOGLE_CLIENT_ID": "your-client-id",
        "GOOGLE_CLIENT_SECRET": "your-client-secret"
      }
    }
  }
}

micro-x agent loop

Add to config.json under McpServers:

{
  "McpServers": {
    "google": {
      "Command": "npx",
      "Args": ["-y", "@micro-x-ai/mcp-google"],
      "Env": {
        "GOOGLE_CLIENT_ID": "your-client-id",
        "GOOGLE_CLIENT_SECRET": "your-client-secret"
      }
    }
  }
}

Security

  • OAuth tokens are cached locally in GOOGLE_TOKEN_BASE_DIR and are never sent anywhere except Google's APIs.
  • Tokens include a refresh token — revoke access at any time via Google Account Permissions.
  • The OAuth scopes requested are: gmail.readonly, gmail.send, calendar, contacts.

Flags

| Flag | Description | |------|-------------| | --help, -h | Print usage information and exit |

License

MIT