Skip to main content
Glama
giantrotta24

google-mcp

by giantrotta24

google-mcp

Multi-account Google MCP server exposing Gmail and Calendar read tools over stdio.

Security notes

  • credentials.json is local-only and must never be committed.

  • Copy credentials.template.json to credentials.json and fill it with your local OAuth client values.

  • Refresh tokens are stored in your OS keychain (keyring), not in source control.

Related MCP server: gmail-mcp

Setup

  1. Install dependencies:

    • uv sync

  2. Create local OAuth client config:

    • cp credentials.template.json credentials.json

  3. Set expected account emails (optional but recommended for auth safety checks):

    • export GOOGLE_MCP_PERSONAL_EMAIL="you@example.com"

    • export GOOGLE_MCP_WORK_EMAIL="you@company.com"

  4. Optionally set a specific work calendar filter:

    • export GOOGLE_MCP_WORK_CALENDAR="calendar-id-or-summary"

  5. Authorize each account:

    • uv run auth_setup.py personal

    • uv run auth_setup.py work

Run server

  • uv run server.py

Integration tests

These hit real Google APIs.

  • Basic live tests:

    • RUN_LIVE_TESTS=1 uv run integration_smoke.py

  • Include destructive keychain mutation test:

    • RUN_LIVE_TESTS=1 RUN_DESTRUCTIVE_TESTS=1 uv run integration_smoke.py

Publish safety checks

  • Run local security guardrail:

    • python scripts/security_check.py

  • Optional pre-commit integration:

    • uv tool install pre-commit

    • pre-commit install

    • pre-commit run --all-files

  • CI runs the same script on every push/PR via .github/workflows/security-check.yml.

Available Tools

4 tools
calendar_events_personalC

List events for the configured personal account calendars.

ParametersJSON Schema
NameRequiredDescriptionDefault
time_minYes
time_maxYes
max_resultsNo

Output Schema

ParametersJSON Schema
NameRequiredDescription

No output parameters

TDQS

C2.7/5.0
Behavior2/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

No annotations are provided, and the description only says 'List events', which implies a read operation. It omits behavioral details such as authentication requirements, rate limits, pagination, or response format, leaving the agent underinformed.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is a single, front-loaded sentence with no wasted words. It is appropriately concise but could include more essential details without becoming verbose.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness2/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Despite having an output schema, the description fails to convey parameter semantics, usage context, or behavioral expectations. It is incomplete for correct agent invocation without additional information.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

With 0% schema description coverage, the description does not explain the parameters at all. The parameter names 'time_min', 'time_max', and 'max_results' are somewhat self-explanatory but lack specifics on format or constraints, which is insufficient.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states the verb 'List' and the resource 'events' for 'personal account calendars', distinguishing it from the sibling 'calendar_events_work'.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

No guidance on when to use this tool versus alternatives like 'calendar_events_work' or 'gmail_search_*'. The description does not specify exclusions or prerequisites.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

calendar_events_workC

List events for the configured work account calendars.

ParametersJSON Schema
NameRequiredDescriptionDefault
time_minYes
time_maxYes
max_resultsNo

Output Schema

ParametersJSON Schema
NameRequiredDescription

No output parameters

TDQS

C2.9/5.0
Behavior2/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

No annotations are provided, and the description does not disclose behavioral traits such as authentication needs, rate limits, pagination, or error handling. It only states 'List events', leaving significant gaps.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is very concise (one sentence), which is good for brevity, but it sacrifices essential information, making it less effective.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness2/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Even though an output schema exists (per context), the description lacks details about parameters and behavioral context, leaving the agent underinformed for a tool with no annotations.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters1/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 0%, and the description adds no meaning to parameters like time_min, time_max, or max_results. It fails to explain expected formats or constraints.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states the action ('List events'), the resource ('events'), and the scope ('configured work account calendars'), effectively distinguishing it from sibling 'calendar_events_personal'.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description implies usage for work account calendars but provides no explicit guidance on when to use this tool versus alternatives (e.g., calendar_events_personal) or when-not-to-use.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

gmail_search_personalB

Search Gmail for the configured personal account.

ParametersJSON Schema
NameRequiredDescriptionDefault
queryYes
max_resultsNo

Output Schema

ParametersJSON Schema
NameRequiredDescription

No output parameters

TDQS

B3.4/5.0
Behavior2/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

With no annotations provided, the description carries full burden for behavioral disclosure. It only states 'search', implying a read operation but does not confirm safety, auth needs, rate limits, or any side effects. Minimal transparency.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is very short (one sentence), front-loaded, but at the cost of completeness. It does not convey enough detail, so conciseness is average.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given the simple tool and existence of output schema, the description is minimally adequate but lacks details on search behavior, limitations, or account specificity beyond the name. Could be more complete.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 0%, so description must compensate. It adds no meaning beyond the parameter names (query, max_results). No explanation of query format, max_results bounds, or defaults. Fails to compensate for low schema coverage.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description 'Search Gmail for the configured personal account' uses a specific verb ('Search') and resource ('Gmail'), and distinguishes from sibling tool 'gmail_search_work' by specifying 'personal account'.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description implies usage for personal account searches via 'personal account', providing clear context. However, it does not explicitly state when not to use or mention alternatives, though the sibling differentiation helps.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

gmail_search_workC

Search Gmail for the configured work account.

ParametersJSON Schema
NameRequiredDescriptionDefault
queryYes
max_resultsNo

Output Schema

ParametersJSON Schema
NameRequiredDescription

No output parameters

TDQS

C2.6/5.0
Behavior2/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

No annotations provided; description carries full burden. It only restates the tool's purpose without disclosing any behavioral traits like authentication needs, rate limits, or what happens with empty results.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Description is a single, concise sentence that fits the space. However, it lacks structure and could include additional details without sacrificing brevity.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness2/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given 2 parameters, 0% schema coverage, and output schema present, the description fails to provide sufficient context about output, search syntax, or limitations. Agent must rely on parameter names alone.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 0%, so description should compensate. It does not explain 'max_results' (e.g., default behavior, maximum allowed) beyond the schema's default value. The 'query' parameter is implicit but not elaborated.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states verb 'Search' and resource 'Gmail' and distinguishes from sibling 'gmail_search_personal' by specifying 'work account'. However, it does not specify whether it searches only emails or all Gmail data, leaving slight ambiguity.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

No guidance on when to use this tool vs its sibling 'gmail_search_personal' or other tools. The description does not mention prerequisites, limitations, or contexts where this tool is appropriate.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

  1. 4 tool updatesv0.1.0
    • First observedcalendar_events_personal
    • First observedcalendar_events_work
    • First observedgmail_search_personal
    • First observedgmail_search_work

TDQS

B3.3/5.0

Scored across 4 tools

Disambiguation5/5

Each tool has a unique combination of service (calendar vs gmail) and account type (personal vs work), making it impossible to confuse one tool with another.

Naming Consistency5/5

All tools follow a strict pattern: {service}_{action}_{account}, using snake_case consistently. This makes the naming predictable and easy to understand.

Tool Count5/5

With 4 tools, the count is appropriate for a focused server that distinguishes between two services across two accounts, avoiding unnecessary complexity.

Completeness3/5

The tool set covers listing events and searching emails, but is limited to these read operations. Missing capabilities like creating or modifying events/schedules are notable gaps for a full Google workspace integration.

Maintenance

ActivityMaintained
ResponsivenessNo issues

Related MCP Connectors

Related MCP Servers

  • A
    license
    A
    quality
    C
    maintenance
    Local-first Gmail MCP server using PKCE + loopback OAuth flow that stores refresh tokens in the OS keychain, enabling secure read/write Gmail access via MCP tools without tokens leaving the device.
    20
    MIT
  • F
    license
    Not graded
    quality
    C
    maintenance
    Multi-account Gmail MCP server for reading threads, managing labels, and creating drafts across multiple Gmail accounts.
    -
  • A
    license
    Not graded
    quality
    B
    maintenance
    A local MCP server that manages multiple Gmail accounts simultaneously, allowing MCP clients to switch between accounts per request without logging out or in. It securely stores OAuth tokens in the macOS Keychain.
    MIT
  • A
    license
    Not graded
    quality
    C
    maintenance
    A self-hostable Gmail MCP server that enables Gmail search/read, sending, replies, drafts, labels, and attachment downloads via MCP tools with OAuth authorization. Supports stdio and streamable HTTP transports.
    MIT