programmable-email
MCP server for Gmail
Documentation
[WIP] Programmable Email
An MCP server for connecting Claude with Gmail
This server connects Claude—or any MCP client—with Gmail using Gmail's local oauth tokens.
This server is designed for experimentation and testing purposes. Note that any emails fetched will be sent to Claude's servers.
Pre-Requisites
- Docker
- Claude Desktop for Mac
Installation
1. Gmail oauth credentials
You'll first need to generate a personal oauth token following this guide. Create Oauth client ID credentials as a server-side application.
You'll need `credentials.json` in your root directory that represents the Google oauth token, as well as `token.json`. `token.json` is automatically generated the first time you use your Google oauth credentials.
2. Run `docker build`
Build the image by running `docker build -t programmable-email .`
Verify that it runs with `docker run -i --rm programmable-email`.
3. Configure Claude with the MCP server
Access the directory where MCP server configs live: `cd ~/Library/Application\ Support/Claude`
Edit `claude_desktop_config.json` with the following:
{
"mcpServers": {
"programmable-email": {
"command": "docker",
"args": ["run", "-i", "--rm", "programmable-email"]
}
}
}4. Open (or restart) Claude
5. Ask Claude to retrieve your recent unread emails.
TODO
- Finish Gmail read functionality (currently only a subset of available search capabilities are available, see index.ts)
- Implement Gmail send functionlity as an MCP tool (see `gmail_api.ts` for capabilities)
- More tests
Frequently asked questions
What is programmable-email?
programmable-email is MCP server for Gmail
How do I install programmable-email?
Open the GitHub repository and follow its README. Most MCP servers are added to your client's MCP config, then called by your agent.
Is programmable-email open source?
Yes — it is hosted on GitHub at https://github.com/juecd/programmable-email.
Related MCP tools
Enhanced ChatGPT Clone: Features Agents, MCP, DeepSeek, Anthropic, AWS, OpenAI, Responses API, Azure, Groq, o1, GPT-5, Mistral, OpenRouter, Vertex AI, Gemini...
FastGPT is a knowledge-based platform built on the LLMs, offers a comprehensive suite of out-of-the-box capabilities such as data processing, RAG retrieval, ...
📦 Repomix is a powerful tool that packs your entire repository into a single, AI-friendly file. Perfect for when you need to feed your codebase to Large Lan...
Put an end to code hallucinations! GitMCP is a free, open-source, remote MCP server for any GitHub project TypeScript-based implementation.
🐬DeepChat - A smart assistant that connects powerful AI to your personal world for the Model Context Protocol. Enhance AI assistants with powerful integrations
A framework for writing MCP (Model Context Protocol) servers in Typescript Trusted by 800+ developers. Trusted by 800+ developers.
Run your own MCP server? See who uses it and what to fix.
Measure it with TrackMCP