google-nice-mcp
Search and read emails with filters by sender, subject, keyword, date range, or unread status. Provides compact plain-text output.
Search files by name, full-text content, and type across My Drive and shared drives. Read text from Google Docs, Sheets, Slides, PDF, Word, Excel, and PowerPoint files.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@google-nice-mcpFind emails from John about project updates since 01.01.2025"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
google-nice-mcp
The Google Workspace MCP server that's actually nice to small local LLMs.
Why this exists
Most Google Workspace MCP servers expose 30+ tools across a dozen services (Gmail, Calendar, Docs, Sheets, Slides, Tasks, Chat, Formsβ¦). That floods a small model's context window and wrecks tool selection β a 7B local model staring at 30 tools will pick the wrong one.
This server does the opposite. It's a focused, read-only context-gatherer: just Gmail and Drive, just 5 tools, with plain typed parameters (no Gmail/Drive query DSL to memorize) and compact plain-text output instead of raw API JSON. The point is to let your local LLM learn about your project from your mail and files β not to manage your account.
Related MCP server: google-workspace-mcp
Features
π― Just 5 tools β small enough that a local model reliably picks the right one.
π§° Gmail + Drive read β search and read email; search Drive by name or file content; read Docs, Sheets, Slides, PDF, Word, Excel and PowerPoint as text.
ποΈ Shared drives included β searches My Drive and shared/team drives together.
ποΈ Forgiving inputs β filter by
sender/subject/keyword/file_typeinstead of query syntax, and write dates asdd.mm.yyyy.π Token-cheap output β compact plain text, truncation, self-explaining errors.
π Read-only by scope β
gmail.readonly+drive.readonly. It physically cannot send, delete, or modify anything.
Tools
Tool | Purpose |
| Find emails by keyword, sender, subject, date range, or unread. |
| Read one full email β headers, plain-text body, attachment names. |
| Find files by name, full-text content, and type, across My Drive and shared drives. |
| Read a file's text: Google Docs/Sheets/Slides, PDF, Word ( |
| Discover which shared drives you can access. |
Friendly inputs everywhere
Dates (
gmail_search) usedd.mm.yyyyβ e.g.31.12.2026. Normalized internally to what the Gmail API requires;YYYY-MM-DDis also accepted.File types (
drive_search) are simple aliases:doc,sheet,slides,pdf,folder.Bad input gets a self-explaining error, not an empty result.
1. Set up Google Cloud OAuth (one time)
Open the Google Cloud Console and create a project (or pick one).
Enable the APIs: APIs & Services β Library β enable Gmail API and Google Drive API.
Configure the consent screen: APIs & Services β OAuth consent screen.
User type External is fine for a personal account.
Add your Google account under Test users (so you don't need app verification).
Create credentials: APIs & Services β Credentials β Create Credentials β OAuth client ID.
Application type: Desktop app.
Download the JSON.
Save that JSON as
~/.config/google-nice-mcp/credentials.json(or setGOOGLE_NICE_CREDENTIALSto point at it).
2. Install & authenticate
git clone https://github.com/Schneckenhausmann/google-nice-mcp.git
cd google-nice-mcp
uv sync # installs into .venv
uv run google-nice-mcp-login # opens a browser; approve read-only accessThe token is cached at ~/.config/google-nice-mcp/token.json and refreshed
automatically. Re-run the login only if you revoke access or change scopes.
3. Configure
Environment variables (all optional):
Variable | Default | Purpose |
|
| Where credentials/token live. |
|
| OAuth client file path. |
|
| Cached token path. |
Claude Desktop / Claude Code
{
"mcpServers": {
"google-nice": {
"command": "uv",
"args": [
"--directory",
"/absolute/path/to/google-nice-mcp",
"run",
"google-nice-mcp"
]
}
}
}Local LLM clients (Ollama, LM Studio, β¦)
Use the same command / args in whatever MCP config your client supports. The
server speaks MCP over stdio, so anything that can launch a stdio MCP server works.
Example prompts
"Find emails from anna@acme.com about the Q3 budget since 01.01.2026 and summarize them."
"Search my Drive for files containing 'onboarding checklist' and read the most recent one."
"What shared drives do I have access to, and which contain a file named 'roadmap'?"
"Read the PDF spec in Drive (file id β¦) and list its requirements."
Develop
uv sync # install deps
uv run google-nice-mcp # run the server over stdioSource layout: tools in server.py; Gmail/Drive
API helpers in gmail.py /
drive.py; file-text extraction in
extract.py; OAuth in
auth.py.
Notes
Read-only. Nothing can be sent, deleted, or modified.
Long files are truncated by
drive_read_file'smax_chars(default 20k); raise it to read more.Scanned/image-only PDFs have no extractable text and will say so (no OCR).
Acknowledgments
Built fresh, but inspired by excellent prior work in the Google Workspace MCP ecosystem β thank you to their authors:
taylorwilsdon/google_workspace_mcp by Taylor Wilsdon β the most feature-complete Workspace MCP server; we drew on its Drive export-MIME mappings and native-vs-binary file handling.
aaronsb/google-workspace-mcp by Aaron Bushnell β clean read-focused Gmail/Drive tool surface.
Full third-party license notices are in CREDITS.md.
License
MIT Β© 2026 Nikias Herzhauser
Available Tools
5 toolsdrive_read_fileA
Read the text content of a Drive file by its id (from drive_search).
Handles Google Docs, Sheets and Slides (exported to text/CSV) as well as PDF, Word (.docx), Excel (.xlsx) and PowerPoint (.pptx) files. Long files are truncated to max_chars; raise it to read more.
| Name | Required | Description | Default |
|---|---|---|---|
| file_id | Yes | ||
| max_chars | No |
Output Schema
| Name | Required | Description |
|---|---|---|
| result | Yes |
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
Discloses truncation behavior and supported file formats. No annotations exist, so description carries the burden. Lacks details on permissions, failure modes, or read-only nature.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
Two concise sentences, front-loaded with purpose. Every sentence provides essential info with no redundancy.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
Given output schema exists, description doesn't need return values. Covers file types, truncation, and ID origin. Could mention plain text output or CSV for Sheets, but it's still effective.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
Schema has 0% description coverage. Description adds meaning: file_id is 'from drive_search', max_chars default is 20000 and adjustable. Both parameters are explained beyond the schema.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
Clear verb+resource: 'Read the text content of a Drive file by its id'. Explicitly distinguishes from siblings like drive_search (finds files) and gmail tools.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
Tells when to use: 'Handles Google Docs, Sheets and Slides ... PDF, Word, Excel, PowerPoint'. Provides guidance on max_chars for truncation. Could be more explicit about when not to use, but sibling context clarifies.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
drive_searchA
Search Google Drive (your files and shared drives) and list matches.
Filter by words in the file name, words found inside the file content (full-text), and/or file_type. Valid file_type values: doc, sheet, slides, pdf, folder. With NO filters, returns your most recently modified files. Set include_shared_drives=False to limit to your own Drive. Returns id, name, type, owner and last-modified time. Use the id with drive_read_file to read the contents.
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | ||
| content | No | ||
| file_type | No | ||
| include_shared_drives | No | ||
| max_results | No |
Output Schema
| Name | Required | Description |
|---|---|---|
| result | Yes |
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
With no annotations provided, the description carries the full burden. It discloses that it returns id, name, type, owner, and last-modified time. It also explains the scope (own Drive vs. shared drives via include_shared_drives). It does not mention permission requirements, rate limits, or potential performance impacts of full-text search, but overall provides sufficient transparency for a search tool.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
The description is a single, well-structured paragraph. It begins with the core purpose, followed by filtering details, default behavior, parameter guidance, return format, and chaining to another tool. Every sentence adds value, with no redundancy or wasted words.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
Given the input schema complexity (5 parameters, all optional) and the presence of an output schema (not shown but referenced), the description provides all necessary context. It covers filtering, default behavior, return fields, valid file types, and chaining. The only minor gap is an explicit mention of max_results, but its default and purpose are inferable.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
The input schema has 5 parameters with no descriptions (0% coverage). The description explains the purpose of name, content, file_type, and include_shared_drives parameters, and lists valid file_type values ('doc, sheet, slides, pdf, folder'). It covers max_results implicitly by mentioning 'most recently modified files' and default behavior, but does not explicitly describe the parameter. Overall, it adds significant meaning beyond the schema.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
The description clearly states that the tool searches Google Drive files and shared drives, listing matches with filtering options. It distinguishes itself from siblings: drive_list_shared_drives focuses on listing shared drives, drive_read_file reads content using the returned id, and gmail tools are unrelated. The verb 'Search' plus resource 'Google Drive' and scope 'your files and shared drives' make the purpose specific and unambiguous.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
The description explains when to use the tool: for searching by file name, content, or type, and mentions default behavior (most recently modified files). It also directs using the id with drive_read_file for reading contents. However, it does not explicitly state when not to use this tool or list alternatives, though siblings like drive_list_shared_drives are implicitly distinguished.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
gmail_read_emailA
Read one full email by its id (from gmail_search).
Returns headers, the plain-text body, and the names of any attachments.
| Name | Required | Description | Default |
|---|---|---|---|
| message_id | Yes |
Output Schema
| Name | Required | Description |
|---|---|---|
| result | Yes |
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
No annotations are provided, so the description bears the full burden. It discloses the return contents but does not mention side effects, error handling, or permissions. For a read operation, it is adequate but not exhaustive.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
The description is extremely concise, with two sentences that front-load the core functionality and return value. No unnecessary words.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
Given a single parameter, no annotations, and an output schema, the description explains the return structure. It lacks details on potential errors or limitations but covers the essential information for a simple read tool.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
Only one parameter (message_id) exists, and schema description coverage is 0%. The description adds context that the id comes from gmail_search, but does not specify format or constraints, leaving room for ambiguity.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
The description clearly states the tool reads a full email by its id, specifying what is returned (headers, body, attachment names). It also mentions the id comes from gmail_search, distinguishing it from sibling tools.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
The description implies using gmail_search first to obtain the message_id, providing clear context for when to use this tool. However, it does not explicitly state when not to use it or mention alternative tools.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
gmail_searchA
Search your Gmail and return a compact list of matching emails.
Filter by any combination of: a free-text keyword (matches anywhere), a sender email/name, words in the subject, and a date range. Dates use dd.mm.yyyy (e.g. 31.12.2026). 'after' means on/after that day, 'before' means before that day. With NO filters, returns your most recent emails. Returns id, from, subject, date and a short snippet for each hit. Use the id with gmail_read_email to read the full message.
| Name | Required | Description | Default |
|---|---|---|---|
| keyword | No | ||
| sender | No | ||
| subject | No | ||
| after | No | ||
| before | No | ||
| unread_only | No | ||
| max_results | No |
Output Schema
| Name | Required | Description |
|---|---|---|
| result | Yes |
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
No annotations present, so description covers all behavioral traits: returns specific fields (id, from, subject, date, snippet), date range meanings (after=on/after, before=before day), and default behavior with no filters. Mentions max_results indirectly via default, but does not disclose rate limits or pagination.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
Four sentences, front-loaded with purpose, followed by filtering details, date format, and mention of sibling tool. No redundant or irrelevant content.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
Despite no annotations and many parameters, the description sufficiently explains search behavior, input combinations, return fields, and link to gmail_read_email. Output schema exists, so return format details are covered.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
Schema has 7 parameters with 0% description coverage. Description covers keyword, sender, subject, after, before (5/7) but omits unread_only and max_results. While it gives context for most parameters, two are left undocumented, requiring compensation that is not fully provided.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
Description clearly states the tool searches Gmail and returns a compact list. It identifies the specific verb 'Search' and resource 'your Gmail', and distinguishes from the sibling gmail_read_email by mentioning it can be used with the returned ids.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
Explains when to use filters and that no filters returns recent emails. Provides date format and semantics. Could explicitly mention when not to use, but alternatives (gmail_read_email) are referenced for reading full messages.
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.
5 tool updates
v0.1.0- First observed
drive_list_shared_drives - First observed
drive_read_file - First observed
drive_search - First observed
gmail_read_email - First observed
gmail_search
TDQS
Scored across 5 tools
Tools are clearly separated by service prefix (drive_ vs gmail_) and have distinct purposes: listing drives, searching and reading files, searching and reading emails. No overlap in functionality.
All tools follow a service_verb[_object] pattern with underscores, but some use a bare verb (drive_search, gmail_search) while others include an object (drive_list_shared_drives, drive_read_file, gmail_read_email). Slight inconsistency but the pattern is predictable.
With 5 tools covering two Google services, the count is well-scoped. Each tool serves a clear purpose and there is no bloat or deficiency for the apparent scope.
The server covers search and read operations for both Drive and Gmail, but lacks any write or update capabilities (e.g., create, delete, send). This is a notable gap that may require additional tools for full lifecycle coverage.
Maintenance
Related MCP Connectors
MCP server connecting AI agents to 100+ apps (Gmail, Slack, Notion, GitHub) via one-click OAuth.
An MCP server that provides read access to your cloud storage providers, bank accounts and more.
Read-only MCP server exposing a user ORANO library to their own AI agent.
Agent-native MCP server over the public saagarpatel.dev corpus. Read-only, stateless.
Related MCP Servers
- AlicenseNot gradedqualityBmaintenanceRead-only MCP server for Gmail that enables searching threads, reading messages, and listing labels without any write access.81MIT
- AlicenseNot gradedqualityBmaintenanceA single-tool MCP server for Google Calendar, Gmail, and Drive, designed for LLM context efficiency with compact output and multi-account support.1,091MIT
- FlicenseNot gradedqualityBmaintenanceA read-only Gmail MCP server that searches email, fetches complete threads, and stores them as local Markdown and JSON for offline analysis by other agents.1-
- FlicenseNot gradedqualityBmaintenanceA private, single-user MCP server that unifies Gmail, Microsoft 365/Outlook, and IMAP mailboxes for LLMs to search and read emails live, without storing or caching mailbox contents.-