# inbox-to-action [Health: Active]

**Category:** 💬 Communication  
**Repository:** https://github.com/tarunlnmiit/inbox-to-action  
**GitHub Stars:** 3  
**Views:** 2  
**Installs:** 0  
**Upvotes:** 0  
**Directory Page:** https://allmcps.com/mcp/inbox-to-action

## Description
Agentic Gmail triage: classify, summarize, extract tasks, draft replies. Never sends.

## Claude Desktop Quick Installation
Install path detected from listing signals. Uses `uvx` (confidence: high):

```json
"mcpServers": {
  "inbox-to-action": {
    "command": "uvx",
    "args": ["inbox-to-action","mcp"]
  }
}
```

## Documentation

## What inbox-to-action does

The inbox-to-action MCP server turns recent unread Gmail into a structured triage result. By default, it examines messages from the previous 24 hours and assigns each one to `action_needed`, `fyi`, `newsletter`, or `noise`. Long threads over 500 words receive a two-line summary.

For messages requiring attention, the workflow can identify tasks and deadlines, prepare a reply, and mark the message as needing a calendar block. It writes the results to `triage-report.md`, including category sections, reply previews, extracted tasks, and calendar items. Tasks also go to `tasks.md`; Todoist output is available as an option.

Reply drafts are saved in Gmail for human review. The application has no send scope or send API call, so it does not send messages automatically.

## How it works

The same tool functions support both the command-line agent and the MCP server. An agent loop fetches messages, then the model chooses which operations to apply to each email rather than following a fixed sequence. Available operations include `classify_email`, `summarize_thread`, `extract_tasks`, `draft_reply`, and `flag_for_calendar`.

The Gmail connection uses OAuth with read and compose permissions. The language-model layer can use OpenRouter, OpenAI-compatible providers such as OpenAI or NIM, Anthropic, a Claude Code session, or Ollama. Ollama keeps processing local; cloud providers send email content to the selected external service. Telegram and Todoist are optional destinations for summaries or tasks.

## Setup and configuration

Install the package with `pip install inbox-to-action`, or use `pipx`. The MCP-enabled extra is available with `pip install 'inbox-to-action[mcp]'`. A Docker image is also provided and runs the server over stdio. The repository includes a `python -m inbox_to_action.mcp_server` entry point.

For a no-Gmail trial, run `inbox-to-action run --mock` to process the bundled sample inbox. For real mail, create a Google Cloud desktop OAuth credential, place `client_secret.json` in the project, and run `inbox-to-action auth`. Then use `inbox-to-action run`, optionally setting a time range, message limit, Todoist output, or `--no-drafts`.

The `--no-drafts` option performs analysis and report generation without creating Gmail drafts. Provider selection uses `PROVIDER`; provider-specific API keys or local services may be needed. Claude Code and Ollama offer keyless paths when their respective local sessions or services are available.

## Limitations and notes

The inbox-to-action MCP server sends email subjects and bodies to the configured model provider unless processing is kept local with Ollama. Email content can contain prompt-injection attempts, so drafts should be reviewed before sending. Reports and task files contain private message content and should be protected, especially inside a Git working tree.

Automated no-reply senders do not receive drafted replies; the report records them instead. The default run processes up to 25 emails per account, and the `--max` option can change that limit. Telegram and Todoist integrations are opt-in and transfer the selected summaries or tasks outside the machine.

_Full upstream README: https://allmcps.com/mcp/inbox-to-action/readme_

