Logo vun Modular Context Obsidian Plugin

Modular Context Obsidian Plugin

Communautéit
klemensgc

Modular Context | Karpathy LLM Knowledge Base + Gmail & G-Cal — multi-account MCP server for Claude Code, encrypted local-first

Editeurklemensgc
Repositorymodular-context-obsidian-plugin
SproochTypeScript
Forks
6
Stären
97
Disponibel Tools
0
Transporttypstdio
Linken
  • Tools mat KI-Workflows verbannen

    Modular Context Obsidian Plugin stellt MCP-Funktioune bereit, déi vu kompatibele KI-Clienten a KI-Agente kënne benotzt ginn.

  • 0 disponibel Tools

    Kuckt Iech déi opruffbar Aktiounen hei drënner un, mat Nimm a Beschreiwungen, wa se vum Server geliwwert ginn.

  • Konfiguratioun fir ze kopéieren

    Benotzt d'Installatiounsbeispiller, fir dëse Server an Ärem bevorzugte MCP-Client ze konfiguréieren.

  • Indicateure fir Open Source

    97 Stären an 6 Forks aus dem verlinkte Repository.

Modular Context | Obsidian LLM Knowledge Base for Strategy, Ops & Comms

banner

Your Obsidian vault as LLM-native knowledge base + multi-account Google Workspace (Gmail, Calendar, Drive, Docs, Sheets, Slides) exposed as 25 MCP tools for Claude Code. Local-first, encrypted, no telemetry.

Version License Platform Obsidian


What is this?

Two things in one plugin:

  1. LLM Knowledge Base — Your Obsidian vault structured as Sources → Wiki → Schema (Karpathy-aligned framing). Multi-terminal Claude Code + Codex with skills sidebar, agent tracking, session glyphs. Your second brain seen by LLMs as a first-class context.

  2. G-Suite MCP Server — Multi-account Google Workspace (Gmail, Calendar, Drive, Docs, Sheets, Slides) exposed as 25 native tools for Claude Code (gmail_search, drive_list_files, docs_create_doc, sheets_append_row, slides_read_presentation, …). OAuth 2.0 + PKCE desktop flow, tokens encrypted via Electron safeStorage (OS keychain), no telemetry, no cloud.

One install, one onboarding, two productivity frontiers.


🏢 The AI Company Stack

The plugin isn't just a terminal + an MCP server — paired with the skills library it's a whole AI company stack running on one workflow: your vault is the brain, Claude Code is the operator, and each layer plugs into the next.

LayerWhat it doesSkills
🎙️ NotetakerTurn raw transcripts, calls and tweets into structured, tagged knowledgeprocess-transcripts, xdaily, graduate
🧠 Self-healing Knowledge BaseThe vault keeps itself current — reweaves stale modules, fixes links, audits structure, syncs sibling vaultsreweave, vault-audit, graph, sync, pulse
📡 Communication layerOne read across mail, WhatsApp and Google Workspace — what's happening and what belongs to youcomms-review, whatsapp-digest, gsuite-analysis
📊 CRM / opsReady skills that connect to ClickUp — review your sales funnel and pull your weekly plan straight from the workspaceclickup-review, review-core, tasklist

Each layer is independently useful; together they run a one-person company on autopilot. Skills install from the in-app library (dependencies auto-resolve).


Architecture

   ┌──────────────────────────────────────────────────────────────────┐
   │  YOUR VAULT — your full context, structured so an LLM works on      │
   │  YOUR reality: projects · people · decisions · history              │
   │                                                                     │
   │  Sources  →  Wiki  →  Schema                                        │
   │  raw input   linked notes   structured & typed (LLM-navigable)      │
   └──────────────────────▲────────────────────────▲───────────────────┘
                    reads  │                        │  writes back
   ╔═══════════════════════╧════════════════════════╧═══════════════════╗
   ║              🦀  CLAUDE CODE  (the operator)  🦀                    ║
   ║                                                                     ║
   ║   ── works on your notes ──        ── works with the world ──       ║
   ║   🦀 Capture     🦀 Keep current    🦀 Communicate  🦀 Operate       ║
   ║   calls & files  fix outdated       read & send      review &       ║
   ║   → notes        notes + links      email·WhatsApp    act (CRM)      ║
   ╚══════════════════════════════════════════╦═════════════════╦═══════╝
                                              ▼                 ▼
   COMMUNICATIONS  (read + send)
   ├─ Gmail       ← search          → send / draft / labels
   └─ WhatsApp    ← read messages     (read-only · macOS)

   OPERATIONS  (read + write)
   └─ ClickUp     ← sales funnel · your tasks · weekly plan  → update · batch actions

   WORKSPACE  (Google · multi-account)
   ├─ Calendar  ← list           → create / update / delete
   ├─ Drive     ← list / search  → download / upload
   ├─ Docs      ← read           → create / update
   ├─ Sheets    ← read           → write / append
   └─ Slides    ← read           → create / add slide

   ── set up by ──▶  Modular Context Plugin  (installs skills · handles Google login)

Architecture decisions (full ADRs in docs/adrs/):

  • ADR-001 — Hybrid OAuth: Quick Connect (shared client) + BYO (user-provided client)
  • ADR-002 — Electron safeStorage token storage (OS keychain)
  • ADR-003 + addendum — MCP server stdio lifecycle + plaintext credentials sidecar
  • ADR-005 — Multi-account storage model (per-account folder + index)

Features

LLM Knowledge Base

  • Multi-terminal split layouts — single, side-by-side, stacked, 2×2, 2×3, 2×4. Up to 8 sessions.
  • Claude Code + Codex — toggle AI provider in settings; auto-launch on new terminal.
  • Skills sidebar — 3 primary skills (full-width), rest in secondary grid. One-click launches.
  • Agent tracker — Working / To Review / Standby states per session.
  • Session glyphs — unique geometric shape per terminal. Skills inherit their icon.
  • Compact mode — 48px icon-only sidebar, maximum terminal real estate.
  • Fullscreen overlay — terminal fills Obsidian; sidebar docks right. Esc to exit.
  • Real PTY — zsh in a pseudo-terminal, not a basic runner.
  • Wiki-link autocomplete — [[ inside terminal searches vault notes.
  • Drag-and-drop — Finder / Obsidian → terminal as shell-escaped paths.
  • Session persistence — tab names, glyphs, layouts survive restarts.
  • Smart Session Restore — on reopen, picker modal classifies saved sessions (Needs attention / Idle / Archive) instead of silent auto-resume. You choose what materializes — no accidental skill re-runs.
  • Auto-onboarding — first install triggers a setup agent that scaffolds your vault.

G-Suite MCP Server (v2.1 — 25 tools)

  • Multi-account — unlimited Google accounts in parallel (Testing mode: up to 100 test users per account)
  • 25 tools for Claude Code across 6 Workspace products (Gmail ×4, Calendar ×6, Drive ×4, Docs ×3, Sheets ×5, Slides ×3 — see table below)
  • Zero telemetry — no metrics, no crash reports, no external calls beyond OAuth + Google API
  • Local-first — tokens encrypted via OS keychain (macOS Keychain / Windows DPAPI / Linux libsecret via libsecret)
  • Auto-refresh — 50-minute timer per account, 5-minute expiry buffer
  • Error taxonomy — TOKEN_EXPIRED, ACCOUNT_NOT_FOUND, SCOPE_OUTDATED, RATE_LIMITED, PERMISSION_DENIED, QUOTA_EXCEEDED, NETWORK_ERROR
  • Hot reload — server re-reads credentials per tool call, zero-downtime refresh

3 primary skills (post-onboarding)

SkillPurposeUses
Synthesise FilesTurn raw files (transcripts, notes, backlog) into vault modules — categorize, tag, update, reweave neighborsYour vault, optional _transcripts-backlog/
WhatsApp DigestAnalyze WhatsApp groups for action items, blindspots, staleness vs vaultmacOS WhatsApp.app
Gmail + G-SuiteInbox sweep, stale follow-ups, calendar gap analysis, meeting prep, doc extraction, sheet logging, deck prepMCP tools below

All three write artifacts to _workspace/{YYYY-MM}/w{N}/. Secondary skills (Pulse, Brief, Log, Reweave, Graph, Graduate, Ideas, Vault-Audit) available in sidebar grid.


25 MCP tools

Gmail (4)

ToolPurpose
gmail_searchQuery with Gmail syntax (is:unread, from:X, after:2026-04-01). Optional body extraction.
gmail_draftCreate draft — not sent. User opens webUrl in Gmail UI to send.
gmail_sendSend immediately. Skip draft for trusted, scripted sends.
gmail_modify_labelsAdd/remove labels — system presets (INBOX, UNREAD, STARRED, IMPORTANT, SPAM, TRASH) + custom labels by name.

Calendar (6)

ToolPurpose
calendar_list_calendarsEnumerate all calendars user has access to.
calendar_list_eventsEvents in time range.
calendar_create_eventCreate event (sendUpdates: "none" default — no auto-invite spam).
calendar_update_eventPatch existing (only provided fields changed).
calendar_delete_eventDelete.
calendar_freebusyQuery busy windows across multiple calendars — ideal for "find time to meet".

Drive (4)

ToolPurpose
drive_list_filesList with Drive query syntax filter, pagination, ordering.
drive_searchFull-text search across file content + names. Optional mimeType filter. Excludes trashed.
drive_download_fileGet file content. Google-native files auto-exported as text; binary returned as base64.
drive_upload_fileCreate file with content + optional parentFolderId. Supports utf-8 / base64.

Docs (3)

ToolPurpose
docs_read_docPlain-text extraction from doc body (walks paragraphs + tables).
docs_create_docNew doc with title + optional initialContent.
docs_update_docmode: "append" (at document end) or mode: "replace" (wipe body + insert).

Sheets (5)

ToolPurpose
sheets_list_sheetsSpreadsheet metadata + list of sheet tabs.
sheets_read_rangeRead A1-notation range. Supports majorDimension + valueRenderOption.
sheets_write_rangeOverwrite values at range. USER_ENTERED parses formulas + dates.
sheets_append_rowAppend row(s) to data region end.
sheets_create_spreadsheetNew spreadsheet with optional initial sheet titles.

Slides (3)

ToolPurpose
slides_read_presentationMetadata + plain-text summary per slide.
slides_create_presentationNew presentation with title.
slides_add_slideInsert slide with layout (BLANK / TITLE / TITLE_AND_BODY / SECTION_HEADER / TITLE_AND_TWO_COLUMNS / CAPTION_ONLY).

Every tool accepts optional account param (email, case-insensitive). Omit → primary account. Unknown email → ACCOUNT_NOT_FOUND error.

OAuth scopes required (10 total): gmail.modify, calendar, drive.file, drive.metadata.readonly, documents, spreadsheets, presentations, plus OIDC openid email profile.

Google Cloud setup: Enable 6 APIs in your OAuth project — Gmail, Calendar, Drive, Docs, Sheets, Slides. Missing API returns PERMISSION_DENIED with direct enable link.


Install

Plugin

Requires Obsidian ≥ 0.15 and macOS (Linux + Windows may work; untested).

Via BRAT (Beta Reviewer plugin, recommended for now):

  1. Install BRAT from Community Plugins
  2. Cmd+P → "BRAT: Add a beta plugin" → klemensgc/modular-context-obsidian-plugin
  3. Enable in Settings → Community plugins

Manual:

  1. Download main.js, manifest.json, styles.css, mcp-server.js from latest release
  2. Copy to <vault>/.obsidian/plugins/modular-context/
  3. Enable plugin in Settings → Community plugins → Modular Context

MCP server

Auto-installed on first Google Workspace: Connect. Plugin copies bundled binary to ~/.modular-context/mcp-google/dist/index.js (~100 MB one-time).


Repo structure

Monorepo with three packages:

modular-context-obsidian-plugin/
├── packages/
│   ├── plugin/        ← Obsidian plugin (main.ts, manifest, features + MCP client glue)
│   ├── mcp-google/    ← standalone MCP server (25 Google Workspace tools, Node)
│   ├── shared/        ← portable types + AgentTracker + PTY helper + UI primitives
│   └── app/           ← experimental standalone Electron app (WIP, not shipped)
├── README.md          ← you are here
├── banner.png
└── package.json       ← monorepo scripts (build:shared → build:mcp-google → build:plugin)

Connect Google Workspace

Two paths:

  • Quick Connect (no GCP setup) — use the shared OAuth client bundled with the pre-built release. Comment your email on #3 — Quick Connect: request test-user access to be added as a test user (usually within 24h). Then skip to step 5 below.
  • BYO (your own GCP project) — full control, no test-user limit. Follow all 6 steps below.

6 steps (BYO path)

  1. Create GCP OAuth Client

    • Google Cloud Console → new project (e.g. modular-context-gcp)
    • Enable APIs: Gmail API, Google Calendar API
    • OAuth consent screen → External, Testing mode → add scopes: gmail.modify, calendar, plus openid, email, profile
    • Add yourself as test user
    • Create credentials → OAuth 2.0 Client ID → Desktop app
    • Copy Client ID + Client Secret
  2. Fill .env.local in the plugin's build folder:

    GOOGLE_OAUTH_CLIENT_ID=...
    GOOGLE_OAUTH_CLIENT_SECRET=...
  3. Rebuild (npm run build in packages/plugin) if self-building. Pre-built release uses the shared Quick Connect client.

  4. Reload plugin — Cmd+P → "Reload app without saving"

  5. Connect — Cmd+P → "Google Workspace: Connect (or add account)" → browser OAuth → authorize → done

  6. Add more accounts — "Google Workspace: Add another account" any time

The plugin writes .mcp.json to your vault root + per-account sidecars to ~/.modular-context/mcp-google/accounts/{filename}/. Restart Claude Code session to pick up the MCP server.


Plugin commands

CommandPurpose
Google Workspace: Connect (or add account)Launch OAuth flow for new/additional account
Google Workspace: Add another accountAlias for above — clearer intent
Google Workspace: Reconnect (upgrade scopes)Nuke tokens, re-auth all accounts with current scope set
Google Workspace: Disconnect all accountsRemove all credentials + .mcp.json entry
Google Workspace: StatusList connected accounts, expiry times, scope status
Google Workspace: Show MCP server logsOpen ~/.modular-context/mcp-google/logs/server.log

Plus 5+ non-Google commands for terminal / skill management. See Command Palette.


Security

  • Tokens encrypted via Electron safeStorage (OS keychain). Never leave disk in plaintext.
  • Credentials sidecar for MCP server: plaintext JSON at 0600 perms in user-scope folder (comparable to ~/.aws/credentials, ~/.config/gcloud/). Plugin may re-encrypt in v2.1 (see ADR-003 addendum).
  • No telemetry. No crash reports. No metrics. Zero phone-home.
  • Logs scrub tokens, emails, subjects via regex on every line.
  • Multi-account isolation. Each account has separate credentials; MCP server honors account param strictly.

Full threat model in docs/adrs/ADR-003-addendum-shared-state.md.


What's new in v2.0

  • 3 primary skills reorganization — Synthesise Files (was "Ingest Data"), WhatsApp Digest, Gmail + Calendar
  • New gsuite-analysis skill — orchestrates 10 MCP tools with 4 playbook patterns
  • Graduated v1.5 / v1.6 / v1.7 beta milestones: OAuth + storage + MCP server + multi-account + full control
  • OAuth scope upgrade: gmail.modify + calendar full (replaces gmail.readonly, gmail.send, calendar.events)
  • mcp-google-workspace @ 1.1.0 stable (from 1.1.0-beta.1)
  • New tools: gmail_send, gmail_modify_labels, calendar_list_calendars, calendar_update_event, calendar_delete_event, calendar_freebusy
  • Smart Session Restore Picker — replaces silent auto-resume on plugin reopen. Modal classifies saved sessions into Needs attention / Idle / Archive buckets; you pick what materializes. No accidental skill re-runs, no hidden respawns.

Full list in packages/plugin/CHANGELOG.md.


Troubleshooting

IssueFix
Notice: "Reconnect required for {email}"Google Workspace: Reconnect (upgrade scopes) — scopes changed
TOKEN_EXPIRED from MCP toolUser revoked access or refresh token rotated — Reconnect
ACCOUNT_NOT_FOUNDAccount not connected — Add another account
MCP server not visible in Claude CodeRestart Claude Code session. .mcp.json loaded at session start.
Plugin reloaded but old behaviorHard reload: Cmd+P → "Reload app without saving" (not just disable+enable)
Server logs emptyNormal — server only runs when Claude Code calls a tool. Not a daemon.

Contributing

Plugin: modular-context-obsidian-plugin

Skills library: modular-context-skills (separate repo, auto-synced)

PRs welcome. Issues welcome. No support contract, but I read everything.


License

MIT © klemensgc / receptionOS

Modular Context Obsidian Plugin MCP mat verschiddene KI-Modeller benotzen

TypingMind verbënnt MCP-Tools um Niveau vum Aarbechtsberäich. Soubal Modular Context Obsidian Plugin verbonnen ass, kënnt Dir et mat verschiddene KI-Modeller an TypingMind benotzen, amplaz et fir all Modell separat anzeriichten. Dës MCP-Integratioun leeft lokal iwwer den TypingMind-MCP-Connector op Ärem Apparat.

Ariichtungsuleedung fir de lokale Connector ze benotzen

Benotzt dës Optioun, wann den MCP-Server Zougrëff op lokal Fichieren, Appen oder privat Ressourcen op Ärem Computer brauch.

1

D'MCP-Astellungen opmaachen

Gitt an TypingMind op „Astellungen“, „Erweidert Astellungen“, dann op „Model Context Protocol“ a wielt „Connector ariichten“.

  1. Maacht TypingMind an Ärem Browser op.
  2. Klickt op d'Astellungssymbol.
  3. Gitt op „Erweidert Astellungen“.
  4. Maacht d'Sektioun „Model Context Protocol“ op.
  5. Klickt op „Connector ariichten“ a wielt „Dësen Apparat“.
Ariichtungsbildschierm vum TypingMind-MCP-Connector mat „Dësen Apparat“ ausgewielt
2

De Connector-Befeel ausféieren

Wielt „Dësen Apparat“, kopéiert de Befeel aus TypingMind a féiert en am Terminal aus. Loosst de Prozess lafen, wärend Dir MCP benotzt.

  1. Kopéiert den Ariichtungsbefeel, deen TypingMind uweist.
  2. Maacht Terminal op macOS oder Windows Terminal op Windows op.
  3. Pescht de Befeel an a féiert en aus.
  4. Bestätegt d'Installatioun vum Package, wann den Terminal Iech freet, ob Dir weiderfuere wëllt.
  5. Loosst den Terminal an de Prozess doranner lafen, wärend Dir MCP-Tools benotzt.
3

Modular Context Obsidian Plugin als Server derbäisetzen

Wann de Connector-Status „Prett“ ass, klickt op „Serveren änneren“ a pescht d'MCP-Serverkonfiguratioun an.

  1. Waart, bis de Connector-Status „Prett“ weist.
  2. Klickt op „Serveren änneren“.
  3. Pescht d'MCP-Serverkonfiguratioun vu Modular Context Obsidian Plugin an.
  4. Späichert d'Serverlëscht.
  5. Aktualiséiert, wann Dir kontrolléiere wëllt, ob de Connector nach ëmmer prett ass.
MCP-Astellunge vun TypingMind mat aktivem Server an dem Knäppchen „Serveren änneren“
{
  "mcpServers": {
    "modular-context-obsidian-plugin": {
      "command": "npx",
      "args": [
        "-y",
        "<mcp-server-package>"
      ]
    }
  }
}
4

D'Verbindung mat verschiddene Modeller benotzen

Späichert d'Serverlëscht, maacht „Plugins“ op an aktivéiert d'MCP-Tools vu Modular Context Obsidian Plugin. Wielt dann e belibegen ënnerstëtzte KI-Modell an TypingMind a benotzt d'Tools am Chat oder weist se engem KI-Agent zou.

  1. Maacht d'Säit „Plugins“ an TypingMind op.
  2. Aktivéiert d'MCP-Tools vu Modular Context Obsidian Plugin.
  3. Start e Chat a wielt de KI-Modell, deen Dir benotze wëllt.
  4. Benotzt d'MCP-Tools am Chat oder weist se engem KI-Agent zou.
  5. Wiesselt bei Bedarf op en anere KI-Modell, ouni MCP nei ze verbannen.
TypingMind-Chat mat aktivéierte MCP-Tools an engem ausgewielte KI-Modell
Hëlleft Dir mir bei dëser Aufgab mat Modular Context Obsidian Plugin?
Modular Context Obsidian Plugin
Jo. Ech hunn et gelies.
Dat hunn ech mat Modular Context Obsidian Plugin fonnt.

Heefeg gestallte Froen

Fir wat gëtt de MCP-Server Modular Context Obsidian Plugin benotzt?

Modular Context Obsidian Plugin ass e MCP-Server, deen et kompatibele KI-Clienten erlaabt, sech mat externen Tools a Kontext ze verbannen. An TypingMind kënnt Dir dëse MCP-Server eemol derbäisetzen a seng Tools an Ärem KI-Aarbechtsberäich zur Verfügung stellen.

Kann ech Modular Context Obsidian Plugin MCP mat méi KI-Modeller an TypingMind benotzen?

Jo. TypingMind verbënnt MCP-Tools um Niveau vum Aarbechtsberäich. Sou kënnt Dir Modular Context Obsidian Plugin mat verschiddene KI-Modeller wéi Claude, ChatGPT, Gemini oder anere Modeller benotzen, déi Dir an TypingMind konfiguréiert hutt, ouni de MCP-Server fir all Modell separat anzeriichten.

Firwat Modular Context Obsidian Plugin MCP mat TypingMind benotzen?

TypingMind ass eng vun de beschte Benotzeruewerfläche fir LLM-Chat, well et méi KI-Modeller, Prompts, Plugins, KI-Agenten, API-Schlësselen a MCP-Tools an engem Aarbechtsberäich zesummebréngt. Wann Modular Context Obsidian Plugin verbonnen ass, kënnt Dir seng MCP-Tools mat Äre bevorzugte Modeller benotzen a gläichzäiteg Är Chataarbecht an TypingMind organiséieren.

Wéi verbannen ech Modular Context Obsidian Plugin MCP mat TypingMind?

Modular Context Obsidian Plugin leeft iwwer de lokale MCP-Connector vun TypingMind. Dat eegent sech am beschten, wann de MCP-Server Zougrëff op lokal Fichieren, Desktop-Apps, Kommandozeilen-Tools oder privat Ressourcen op Ärem Computer brauch.

Wéi eng Tools stellt Modular Context Obsidian Plugin MCP an TypingMind zur Verfügung?

Modular Context Obsidian Plugin stellt MCP-Funktiounen zur Verfügung, déi Dir op der Plugins-Säit vun TypingMind aktivéiere kënnt, fir se am Chat ze benotzen oder KI-Agenten zouzeweisen.

Muss ech meng API-Schlëssele mat TypingMind deelen, fir Modular Context Obsidian Plugin MCP ze benotzen?

Nee. TypingMind setzt op lokal Veraarbechtung a léisst Iech d'Kontroll iwwer Är Modellubidder, API-Schlësselen, Prompts a MCP-Konfiguratioun. Wann Modular Context Obsidian Plugin eng Authentifizéierung verlaangt, setzt déi néideg Headeren, OAuth-Astellungen oder lokal Konfiguratioun fir dee MCP-Server derbäi, wann Dir d'Verbindung erstallt.

Änlech MCP-Serveren

All weisen

Elo Ären eegene KI-Workspace ariichten

Abonnéiert Iech op eisen Newsletter, fir iwwer nei Funktiounen an zukünfteg Gewënnspiller informéiert ze ginn 👇