The full upstream README, mirrored here for reference. Install config, tool schemas, adoption signals, and an original overview live on the Proactive MCP listing page.
Give every AI agent a reason to reach out first.
A local-first MCP server that turns read-only signals and local memory into grounded situations your existing agent can deliver at the right time.
English · 한국어
Why · How it works · Get started · Connect an agent · Documentation
Set up the local watcher and OS notifications first; connecting an agent is optional. Install uv and Git, and prepare your own Google Cloud Desktop OAuth client JSON.
The PyPI release 0.2.0 does not yet contain the wizard. Until an onboarding release is published, the commands below use uvx --from to install the merged source at commit 7cd0f03, without a manual checkout. Keep the same --from source for every command: bare uvx proactive-mcp still selects the older PyPI package. This is a source install, not a new PyPI release.
Install and start interactive setup:
The wizard asks for the path to your own Google Cloud Desktop OAuth client JSON and whether it may open a browser on this device. Approve the read-only Gmail and Calendar consent with your own client. See docs/SETUP_GOOGLE.md for the complete flow.
After Google authorization, accept the offer to install the watcher service. The shared proactive-mcp service install|status|remove interface manages a Linux systemd user service, a macOS LaunchAgent, or a Windows Task Scheduler task.
If you decline service installation, or if installation succeeds, interactive setup then attempts a fixed PII-free OS test notification titled proactive-mcp with the body Setup test notification. It contains no Gmail, Calendar, account, or Situation data. A redacted unavailable, timeout, failed, or unsupported_platform warning means the notification could not be shown.
If you decline service installation, or if installation fails, such as because of permissions, run the watcher manually. A failed installation exits before attempting the test notification.
Terminal 1, foreground daemon
Terminal 2, daemon status
daemon --once runs one evaluation pass and exits; --poll-interval-minutes MINUTES overrides the cadence. status prints redacted connection and daemon state as JSON. The daemon performs local sync, deterministic evaluation, queue maintenance, and the documented OS fallback only. It never runs a host or LLM. Host scheduling is separate: the host/operator starts scheduled agent runs, and those runs call proactive_check.
An OS fallback notification is neither agent delivery nor a delivered state transition. When fallback is enabled, only the first unreceived eligible Situation gets the one-time bootstrap exception; afterward the default fallback is critical-only. Agent delivery begins only when a host calls proactive_check.
--non-interactive, --headless, --client-secrets PATH, and --reauth all bypass the wizard. They do not prefill wizard answers, and they also bypass the service proposal and setup test notification. Use them only when you need direct OAuth setup, then install the service manually or use the manual daemon route above. To manage the service, use the same source prefix:
Replace install with status to inspect the service or remove to unregister it. uvx does not add a permanent proactive-mcp command to your shell; command names such as proactive-mcp status in this guide use the full uvx --from prefix above.
AI agents know how to answer. They rarely know when to start.
proactive-mcp supplies that direction. It watches approved read-only sources in the background, combines them with memory the user intentionally saved, and produces a structured Situation only when something is worth raising now.
| Read-only signals | Local context | Agent-neutral delivery |
|---|---|---|
| Gmail and Google Calendar are read through minimal scopes. | Memories, situations, delivery confirmations, and sync state stay in local SQLite. | Any local MCP client can use the same tools and deliver through its own channel. |
proactive-mcp doesn't push every new event into your chat. Deterministic detectors turn source data into a small set of situations grounded in the source data:
| Situation | Example |
|---|---|
reply_deadline | A message is a conservative reply candidate, not a verdict that the user must act. |
calendar_conflict | Two accepted or owned timed events overlap. |
personal_occasion | A saved personal date is approaching and relevant now. |
Each result carries a title, why it matters now, bounded evidence, suggested actions, priority, and expiry. External text remains explicitly untrusted.
proactive_check and receives any returned situations.By default, non-critical situations are held during local quiet hours from 21:00 through 07:00 and stay pending for a later check instead of being dropped. Nothing fires automatically at 07:00: an already-running or host-scheduled agent must call proactive_check after quiet hours end.
gmail.readonly and calendar.readonly.config.toml, credential authority marker, and any file-backed credential fallback live under ~/.proactive-mcp/. A keyring credential stays in the operating-system keyring, outside that directory. PROACTIVE_DATABASE moves the file-backed state, not the keyring entry.Connecting a host is optional. It isn't a prerequisite for OS notifications, but it enables richer delivery plus acknowledge, snooze, and mute actions. Use this existing-agent instruction when you want to register the MCP server:
If you used the source install above, tell the agent to keep that same pinned uvx --from source in its MCP registration instead of switching to PyPI. The reusable block and host recipes below retain the public-install command shape.
proactive-mcp is agent-dependent: it exposes local stdio tools but never starts Grok, Codex, Hermes, another host agent, or a model. serve-scheduled is only a restricted MCP server surface. Starting it or the daemon alone does not create a conversation or delivery; pending situations wait for an already-running or host-scheduled agent to call the tools explicitly.
The host loads serve only in an interactive everyday conversation and serve-scheduled only in a separate manual or scheduled conversation. It never loads both profiles into one conversation. Profile isolation and agent lifecycle are host/operator responsibilities outside the plugin. Automated scheduling is supported only when the host provides a dedicated per-run MCP profile containing only serve-scheduled; otherwise fail closed by not scheduling it. Manual restricted use remains possible.
| Client | Integration model |
|---|---|
| Grok CLI 0.2.112 | Manual dedicated restricted profile only; merged config sources cannot prove immutable per-run isolation, so unattended scheduling is not advertised |
| Codex CLI | Local stdio; config layers are not claimed isolated by this plugin, so schedule only when the host/operator independently guarantees a dedicated per-run profile |
| Hermes Agent | Local stdio. Schedule only when the host guarantees a dedicated per-run profile |
| Claude Code Desktop | Local stdio; local tasks only when that version provides a dedicated per-task MCP profile |
The daemon may perform local sync, deterministic evaluation, queue maintenance, and the documented critical-only OS fallback. It never invokes an agent/LLM or sends prompts. Exact host responsibilities and command shapes are in docs/INTEGRATIONS.md.
When an agent calls proactive_check:
warnings first. Stale-source warnings are not an all-clear. A reply_deadline is a conservative candidate, not an action verdict.receipt_token from that check to call confirm_delivery exactly once for the entire reviewed lease. That confirmation includes candidates the host confidently and silently dropped. Never confirm a tokenless response.serve in the former and only serve-scheduled in the latter, never both. The host/operator owns this isolation; if a dedicated per-run profile is unavailable, do not automate the scheduled run.This confirmation step keeps delivery history accurate across crashes, retries, and multiple agents.
remember · recall · update · list_entities · forget
proactive_check · confirm_delivery · list_situations · get_situation · acknowledge_situation · snooze_situation · mute_situation · get_status
| Area | Now |
|---|---|
| Distribution | PyPI package proactive-mcp 0.2.0, installed with uvx |
| Google OAuth | Your own Desktop OAuth client (BYO) |
| Hosts | Grok CLI and Codex CLI for everyday use |
| Data | Local SQLite under ~/.proactive-mcp/ |
Scope and release decisions remain canonical in docs/PRODUCT_PLAN.md.
| Guide | Purpose |
|---|---|
README.ko.md | Korean README |
docs/SETUP_GOOGLE.md | BYO Google OAuth (the public default) |
docs/INTEGRATIONS.md | Onboarding and service commands, plus optional host recipes |
docs/STATE_MODEL.md | Source, lease, collector, daemon, fallback, and receipt state semantics |
docs/MEMORY_MODEL_V2.md | Memory model and tool contracts |
MIT © 2026 Kyungwoo Seo <hello@madrobot.net>
This project was built with OmO Native.
You can support this project on Ko-fi.