what is GmailMcpServer?
GmailMcpServer is an MCP server designed for GMail that implements a simple note storage system, allowing users to manage and summarize notes effectively.
how to use GmailMcpServer?
To use GmailMcpServer, install the server and configure it according to your operating system. You can add notes using the provided tool and summarize them with a specific prompt.
key features of GmailMcpServer?
- Custom note:// URI scheme for accessing individual notes
- Summarization of all stored notes with adjustable detail levels
- Ability to add new notes with a name and content
use cases of GmailMcpServer?
- Storing and managing personal notes for GMail users
- Summarizing notes for quick reference
- Integrating with other applications that require note management
FAQ from GmailMcpServer?
- Can I access my notes from different devices?
Yes! As long as the server is running and configured correctly, you can access your notes from any device.
- Is there a limit to the number of notes I can store?
No, you can store as many notes as your server's capacity allows.
- How do I configure the server?
Configuration details are provided in the documentation, including specific settings for different operating systems.
GmailMcpServer MCP server
An MCP Server for GMail
Components
Resources
The server implements a simple note storage system with:
- Custom note:// URI scheme for accessing individual notes
- Each note resource has a name, description and text/plain mimetype
Prompts
The server provides a single prompt:
- summarize-notes: Creates summaries of all stored notes
- Optional "style" argument to control detail level (brief/detailed)
- Generates prompt combining all current notes with style preference
Tools
The server implements one tool:
- add-note: Adds a new note to the server
- Takes "name" and "content" as required string arguments
- Updates server state and notifies clients of resource changes
Configuration
[TODO: Add configuration details specific to your implementation]
Quickstart
Install
Claude Desktop
On MacOS: ~/Library/Application\ Support/Claude/claude_desktop_config.json
On Windows: %APPDATA%/Claude/claude_desktop_config.json
Development/Unpublished Servers Configuration
``` "mcpServers": { "GmailMcpServer": { "command": "uv", "args": [ "--directory", "C:\Users\RKeelan\Src\GmailMcpServer", "run", "GmailMcpServer" ] } } ```Published Servers Configuration
``` "mcpServers": { "GmailMcpServer": { "command": "uvx", "args": [ "GmailMcpServer" ] } } ```Development
Building and Publishing
To prepare the package for distribution:
- Sync dependencies and update lockfile:
uv sync
- Build package distributions:
uv build
This will create source and wheel distributions in the dist/
directory.
- Publish to PyPI:
uv publish
Note: You'll need to set PyPI credentials via environment variables or command flags:
- Token:
--token
orUV_PUBLISH_TOKEN
- Or username/password:
--username
/UV_PUBLISH_USERNAME
and--password
/UV_PUBLISH_PASSWORD
Debugging
Since MCP servers run over stdio, debugging can be challenging. For the best debugging experience, we strongly recommend using the MCP Inspector.
You can launch the MCP Inspector via npm
with this command:
npx @modelcontextprotocol/inspector uv --directory C:\Users\RKeelan\Src\GmailMcpServer run gmailmcpserver
Upon launching, the Inspector will display a URL that you can access in your browser to begin debugging.