Skip to main content
Glama
Quillbox MCP Server

Quillbox MCP Server

by shiwei27

Quillbox

Local-first AI mail workspace: syncs your mailboxes (IMAP / POP3 / Exchange EWS; Outlook on Windows is experimental) into a local SQLite store, optionally builds a local vector index, and uses an LLM of your choice (local Ollama by default, or any OpenAI-compatible API) for summaries, action items, thread insight, reply drafts and rule generation. Ships a web UI and an MCP server.

本地优先的 AI 邮件工作台:把邮箱同步到本机 SQLite(可选本地向量库),用你自选的大模型(默认本地 Ollama, 也可接任何 OpenAI 兼容接口)做摘要、待办提取、会话洞察、回复起草与规则生成;提供 Web 界面与 MCP server。

Status: early release (v0.1). Interfaces and setup steps may still change; see SECURITY.md to report vulnerabilities.

Requirements

  • Python 3.10+

  • macOS, Linux or Windows

Related MCP server: Email MCP Server

Install

python -m venv .venv && . .venv/bin/activate
pip install -e .                 # minimal: IMAP/POP3/SMTP, keyword search
pip install -e ".[all]"          # everything: vector search, Exchange, attachment text, Windows extras

extra

adds

vector

semantic search (chromadb, sentence-transformers, torch). Without it, search is keyword-only.

ews

Exchange (EWS) accounts

attachments

reading text from xlsx / pdf / docx attachments

windows

DPAPI credential storage and the experimental Outlook COM backend (Windows only)

Configure

cp config.example.yaml config.yaml          # fill in your accounts
python pop3_setup.py set you@example.com    # store the mail password in the OS credential store
  • Passwords never go into config.yaml. They are stored in the macOS Keychain / Linux Secret Service (Windows: DPAPI-encrypted file by default; set QUILLBOX_CRED_BACKEND=keyring to use Credential Manager).

  • LLM: llm.provider: ollama (default) or api. For api, set QUILLBOX_API_KEY in the environment. With api, mail content is sent to the endpoint you configure.

Outlook backend (experimental)

On Windows with desktop Outlook installed, email.outlook_enabled: true reads mail through Outlook COM (needs the windows extra). It is off by default, not covered by CI, and may change or be removed; IMAP / POP3 / EWS are the supported paths.

Run

python server.py     # web UI on http://127.0.0.1:8765 (loopback only by default)
python daemon.py     # background sync + AI worker

The server listens on 127.0.0.1 unless server.host is set. If you expose it, remote requests require the access token in data/.auth_token; prefer SSH port forwarding or an authenticating reverse proxy.

Tests

pip install -e ".[test]"
python run_tests.py                 # unit tier: offline, no server / browser / mailbox / model needed
python run_tests.py --list          # every test and its tier (see test_tiers.txt)

Tests are standalone scripts (exit code 0 = pass). The unit tier runs in CI; vector needs the [vector] extra and windows needs Windows. End-to-end tests (running instance, browser, real mailbox, real model) are not included in this release yet.

License

Apache License 2.0 — see LICENSE and NOTICE.

Tool Schema Changelog

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

Loading tool schema changelog…

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      Not graded
      quality
      A
      maintenance
      Enables AI assistants to read, search, send, reply, forward, schedule, and organize email across multiple IMAP/SMTP accounts, including drafts, labels, bulk operations, real-time mailbox watching, verification-code capture, calendar extraction, and analytics. It runs locally over stdio or as a networked Streamable HTTP service with OAuth2 sign-in and provider auto-detection.
      31 npm
      ISC
    • A
      license
      Not graded
      quality
      A
      maintenance
      Enables AI assistants to read, search, send, manage, schedule, and analyze mail across multiple IMAP/SMTP accounts, with real-time inbox watching, verification-code capture, calendar extraction, and provider-aware labeling. It also exposes drafts, templates, bulk operations, analytics, and OAuth2 support over stdio or Streamable HTTP.
      31 npm
      ISC
    • F
      license
      Not graded
      quality
      A
      maintenance
      Enables AI assistants to read, search, send, schedule, manage, and analyze mail across multiple IMAP/SMTP accounts, including drafts, provider-aware labels, real-time IDLE triage, verification-code capture, and calendar extraction. Runs over stdio for local clients or Streamable HTTP for networked access, with a guided setup wizard and OAuth2 support.
      -