Modular Context
Modular Context | Karpathy LLM Knowledge Base + Gmail & G-Cal — multi-account MCP server for Claude Code, encrypted local-first
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
Maintainer
Works with
Installation
Manual Installation
npx modular-context-obsidian-pluginConfiguration
Configuration Details
claude_desktop_config.json
Performance
Response Metrics
Resource Usage
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
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-pluginEnable the plugin
Go to Settings → Community plugins and toggle Modular Context to enabled.
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_hereConnect 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.
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.
Modular Context Alternatives — Similar Knowledge & Memory Servers
Looking for alternatives to Modular Context? Here are other popular knowledge & memory servers you can use with Claude, Cursor, and VS Code.
MemPalace
★ 52.6kA local AI memory system that stores all conversations verbatim and organizes them into navigable structures. It provides 19 MCP tools for AI assistants to search and retrieve past decisions, debugging sessions, and architecture debates automatically
Kratos
★ 25.7k🏛️ Memory System for AI Coding Tools - Never explain your codebase again. MCP server with perfect project isolation, 95.8% context accuracy, and the Four Pillars Framework.
Context Mode
★ 15.4kAn MCP server that preserves LLM context by intercepting large data outputs and returning only concise summaries or relevant sections. It enables efficient sandboxed code execution, file processing, and documentation indexing across multiple programm
Memu
★ 13.7kMemory for 24/7 proactive agents like OpenClaw.
MemOS
★ 9.3kMemOS (Memory Operating System) is a memory management operating system designed for AI applications. Its goal is: to enable your AI system to have long-term memory like a human, not only remembering what users have said but also actively invoking, u
Everos
★ 5.4kBuild, evaluate, and integrate long-term memory for self-evolving agents.
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.
Set Up Modular Context in Your Editor
Choose your AI client for step-by-step setup instructions.
Quick Config Preview
Add this to your claude_desktop_config.json or .cursor/mcp.json
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.