Modular Context

v1.0.0Knowledge & Memorystable

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

aiclaudeclaude-codeelectrongmail
Share:
88
Stars
0
Downloads
0
Weekly
0/5

What is Modular Context?

Modular Context is a Model Context Protocol (MCP) server that allows AI assistants like Claude, Cursor, and VS Code to modular context | karpathy llm knowledge base + gmail & g-cal — multi-account mcp server for claude code, encrypted local-first

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

This server falls under the Knowledge & Memory category on MCPgee, the world's largest MCP server directory with 33,000+ servers.

Features

  • Modular Context | Karpathy LLM Knowledge Base + Gmail & G-Ca

Use Cases

Encrypted local knowledge base access
Gmail and Google Calendar integration
Multi-account knowledge management
klemensgc

Maintainer

LicenseMIT
Languagetypescript
Versionv1.0.0
UpdatedMay 15, 2026
Statushealthy
Maintenanceactive

Works with

ClaudeOpenAIwindowsmacoslinux

Installation

Manual Installation

npx modular-context-obsidian-plugin

Configuration

Configuration Details

Config File

claude_desktop_config.json

Performance

Response Metrics

Response Time< 200ms
ThroughputMedium

Resource Usage

Memory UsageLow
CPU UsageLow

How to Set Up and Use Modular Context

Modular Context is an Obsidian plugin that turns your Obsidian vault into a local-first, encrypted knowledge base accessible to Claude Code and other MCP clients, while simultaneously providing 25 MCP tools for Gmail, Google Calendar, Google Drive, Google Docs, Google Sheets, and Google Slides. It follows the Karpathy LLM knowledge base philosophy — keeping your notes and credentials on your own machine rather than uploading them to cloud services. Multi-account support lets you connect several Google accounts and route tool calls to specific accounts by email address.

Prerequisites

  • Obsidian version 0.15 or higher installed
  • macOS (Linux and Windows are untested per the project)
  • A Google Cloud project with Gmail, Calendar, Drive, Docs, Sheets, and Slides APIs enabled
  • Google OAuth client credentials (client ID and secret) from Google Cloud Console
  • An MCP-compatible client such as Claude Code or Claude Desktop
1

Install the plugin via BRAT

In Obsidian, install the BRAT community plugin, then use BRAT to add the Modular Context beta plugin from the GitHub repository.

# In Obsidian:
# 1. Settings → Community plugins → Browse → install BRAT
# 2. Cmd+P → 'BRAT: Add a beta plugin'
# 3. Enter: klemensgc/modular-context-obsidian-plugin
2

Enable the plugin

Go to Settings → Community plugins and toggle Modular Context to enabled.

3

Configure Google OAuth credentials

If using your own Google Cloud project (recommended for production), create a .env.local file in the plugin's build folder with your OAuth client credentials.

GOOGLE_OAUTH_CLIENT_ID=your_client_id_here
GOODLE_OAUTH_CLIENT_SECRET=your_client_secret_here
4

Connect your Google account

In Obsidian, open the command palette and run 'Google Workspace: Connect (or add account)' to complete the OAuth flow and authorize access to your Google services.

5

Configure your MCP client to use the generated config

The plugin auto-generates an .mcp.json file in your vault root. Point your MCP client at this configuration file or copy its mcpServers entry into your client's existing config.

Modular Context Examples

Client configuration

The plugin auto-generates .mcp.json in your vault root. A typical Claude Code configuration referencing the plugin's MCP server looks like this.

{
  "mcpServers": {
    "modular-context": {
      "command": "node",
      "args": ["/path/to/vault/.obsidian/plugins/modular-context/mcp-server.js"]
    }
  }
}

Prompts to try

Example prompts using the 25 Google Workspace MCP tools exposed by the plugin.

- "Search my Gmail for emails from the finance team about the Q4 budget"
- "List my Google Calendar events for next week"
- "Create a new Google Doc titled 'Meeting Notes 2026-06-13' with the content I provide"
- "Check my availability on Friday afternoon using Google Calendar freebusy"
- "Upload this file to my Google Drive in the Projects folder"
- "Read the data in cells A1:D10 from my Budget spreadsheet on Google Sheets"

Troubleshooting Modular Context

OAuth flow fails with redirect URI mismatch error

In Google Cloud Console, add http://localhost as an authorized redirect URI for your OAuth client. The plugin uses a local callback server for the authorization code exchange.

Plugin does not appear after BRAT installation

After adding the beta plugin via BRAT, you must separately enable it under Settings → Community plugins. BRAT installs it but does not auto-enable it.

MCP server tools are not visible in Claude Code

Check that the auto-generated .mcp.json in your vault root is valid JSON and that the path to mcp-server.js is correct. Run 'Google Workspace: Show MCP server logs' from the Obsidian command palette to see startup errors.

Frequently Asked Questions about Modular Context

What is Modular Context?

Modular Context is a Model Context Protocol (MCP) server that modular context | karpathy llm knowledge base + gmail & g-cal — multi-account mcp server for claude code, encrypted local-first It connects AI assistants to external tools and data sources through a standardized interface.

How do I install Modular Context?

Follow the installation instructions on the Modular Context GitHub repository. Clone the repo, install dependencies, and add the server config to your AI client.

Which AI clients work with Modular Context?

Modular Context works with all major MCP-compatible AI clients including Claude Desktop, Claude Code, Cursor, VS Code (GitHub Copilot), Windsurf, and Cline.

Is Modular Context free to use?

Yes, Modular Context is open source and available under the MIT license. You can use it freely in both personal and commercial projects.

Browse More Knowledge & Memory MCP Servers

Explore all knowledge & memory servers available in the MCPgee directory. Each server includes setup guides for Claude, Cursor, and VS Code.

Quick Config Preview

{ "mcpServers": { "modular-context-obsidian-plugin": { "command": "npx", "args": ["-y", "modular-context-obsidian-plugin"] } } }

Add this to your claude_desktop_config.json or .cursor/mcp.json

Read the full setup guide →

Ready to use Modular Context?

Browse our complete directory of 33,000+ MCP servers, read setup guides for your editor, and start building with the Model Context Protocol.

33,000+ ServersFree & Open SourceStep-by-Step Guides