cross-memory-one-brain

mcp
Security Audit
Warn
Health Warn
  • License — License: MIT
  • Description — Repository has a description
  • Active repo — Last push 0 days ago
  • Low visibility — Only 5 GitHub stars
Code Pass
  • Code scan — Scanned 12 files during light audit, no dangerous patterns found
Permissions Pass
  • Permissions — No dangerous permissions requested

No AI report is available for this listing yet.

SUMMARY

Shared memory for Hermes, Codex, Google Antigravity, and Claude Code in a single Obsidian vault via a local MCP server.

README.md

CM1B · Cross Memory One Brain. Many minds, one memory.

Windows, Linux, and Apple Silicon macOS Python 3.10 and later MCP over stdio MIT license

Cross Memory One Brain (CM1B)

CM1B is a shared second brain for project decisions and the plans, routines, and commitments of everyday life. Hermes, Codex, Google Antigravity, and Claude Code connect to one Obsidian vault. Save a note in one client, find it in another, and edit the same Markdown file in Obsidian.

Fast, accurate recall is central to CM1B. Local search caches unchanged notes between queries and prioritizes strong matches in note titles and aliases. Each result points to the source note so agents can verify what they retrieve.

Windows download · Install with an agent · Everyday workflows · Quick start · Platform support · Connect a client · Troubleshooting

Install with an agent

Open this repository in Hermes, Codex, Claude Code, Google Antigravity, or another agent with terminal access. You can also send the repository link with the request below. The agent needs a terminal on the machine that runs your MCP client. Agent installation instructions

Install CM1B from this repository. Follow AGENTS.md to preview the setup,
connect my MCP client, and verify the connection. Use the vault path I give
you, or create a new local example vault.

Include your MCP client if it differs from the agent you're asking. For a Hermes install, include the path to your initialized Hermes profile. To make the core vault tools immediately available to the model, ask the agent to use --hermes-direct-tools. Direct tool loading

How it works

Four clients connect to a local MCP server and share an Obsidian vault. Hermes saves a decision that Codex reads in a later session.

Each client launches CM1B as a local subprocess with the same vault path. The server reads and writes Markdown and searches note text and aliases, including Unicode text. Obsidian opens those same files. Model Context Protocol transport

Example Obsidian graph

Purple, cyan, and amber nodes linked into the shape of a brain

Each dot represents a fictional note, and each line represents a link between notes.

Everyday workflows

  • Weekly planning. Review unfinished tasks, plan recurring errands, and save your priorities for the week.
  • Appointments and follow-ups. Save prep notes and questions with Hermes, then find them in Codex before the appointment. Record follow-up actions in the same note afterward.
  • Trip planning. Keep itinerary ideas, booking details, and open tasks together so you can pick up where you left off.

Quick start

Install uv and a 64-bit build of Python 3.10 or later. Get the Windows ZIP below or clone the repository. Run the commands from the project root, where you will find CM1B.cmd, setup.py, verify.py, and uv.lock. The commands work in PowerShell, Bash, and zsh. Keep CM1B in a stable location because client settings point to it. Store vaults, client profiles, and backups separately. Install uv · Download Obsidian

Desktop setup

On Windows, extract the ZIP to a folder you plan to keep and double-click CM1B.cmd. The launcher uses uv to install the locked dependencies on first run and needs a Python installation with Tk support. Download the Windows ZIP

From a source checkout, use this command with Tk-enabled Python.

uv run --locked python -B -m cm1b_install.desktop
  1. Select a Target vault or use Choose folder to browse for an Obsidian vault.
  2. Select an app to see its connection and next step. Use Install connection to set it up, Switch vault to change an active connection, or Disable and Enable to pause and restore it.
  3. Reopen the app or reload its MCP servers.

The window manages local MCP settings for Codex, Claude Desktop, Claude Code, Hermes, and Antigravity. It uses user settings for Codex, Claude Code and Antigravity, and the initialized profile selected by HERMES_HOME or the platform default for Hermes. Use a separate Hermes profile when connecting another vault alongside a managed profile with backup settings. Use the client instructions for project-specific settings or optional Hermes maintenance and direct tool loading.

To try the app with disposable vaults and settings, run CM1B.cmd --sandbox from the extracted Windows ZIP or run this command from a source checkout.

uv run --locked python -B -m cm1b_install.desktop --sandbox

Command-line setup

Both command-line routes use ../CM1B Example Vault as a new vault beside the source directory. Supply your vault's path to reuse it. After setup, use Open folder as vault in Obsidian and follow Connect a client for your client.

Automatic setup (prototype)

Preview the resolved vault path and the folders the installer would create. The command first syncs the project's Python environment from uv.lock. uv locking and syncing

uv run --locked python -B setup.py --quick-start --vault "../CM1B Example Vault"

Apply after reviewing the preview.

uv run --locked python -B setup.py --quick-start --vault "../CM1B Example Vault" --apply

The installer creates any missing Inbox/, wiki/, boards/, and Logs/ directories. It checks those directories, saves a test note in a temporary vault, and searches for and reads the note from a second MCP process. It prints the client settings after the checks pass. If verification fails, it rolls back the empty directories created during that run.

Use these settings to register Codex, Antigravity, or Claude Code in the client. For an automatic install into a selected Hermes profile, see Hermes.

Manual setup

Install the locked dependencies and preview the vault setup.

uv sync --locked
uv run --no-sync python -B setup.py --vault "../CM1B Example Vault" --vault-only --dry-run

Review the resolved path, apply, and run verification.

uv run --no-sync python -B setup.py --vault "../CM1B Example Vault" --vault-only --apply
uv run --no-sync python -B verify.py --vault "../CM1B Example Vault" --vault-only

When verification passes, print the client settings.

uv run --no-sync python -B setup.py --vault "../CM1B Example Vault" --print-mcp-config

Platform support

Operating system Terminal for setup Default Hermes profile File locking
Windows PowerShell %LOCALAPPDATA%\hermes msvcrt
Linux Bash ~/.hermes fcntl.flock
macOS (Apple Silicon) zsh or Bash ~/.hermes fcntl.flock

uv sync --locked installs the dependencies from uv.lock. The Python installer resolves native filesystem paths and emits an absolute executable path and a separate argument array for each client to launch the server. In WSL, run the client and Python in the same OS environment. Platform details

CI runs on Windows, Ubuntu, and Apple Silicon macOS with Python 3.10 and 3.14. Intel macOS needs a different dependency stack and separate verification because the locked cryptography release ships only Apple Silicon wheels for macOS. CI workflow · Cryptography platform changes

Connect a client

Both vault setup routes print an obsidian entry under mcpServers. For the commands below, take PYTHON_PATH from command and take SERVER_PATH and VAULT_PATH from args. Use the literal paths in your shell and preserve the generated escaping when editing JSON. The client examples call the connection cm1b. Hermes uses the installer-managed name obsidian.

Codex CLI · Google Antigravity · Claude Code · Hermes

Codex CLI

codex mcp add cm1b -- "PYTHON_PATH" -B "SERVER_PATH" --vault "VAULT_PATH"
codex mcp get cm1b

Open a new session and check /mcp. The command writes a user-level entry. For a trusted project's own entry, use [mcp_servers.cm1b] in its .codex/config.toml with the same executable and argument array. Keep machine-specific paths private. Codex MCP setup

Google Antigravity CLI and IDE

Merge the generated entry into mcpServers. Rename the entry to cm1b and keep its generated command and args alongside existing entries.

  • CLI uses .agents/mcp_config.json in the workspace or ~/.gemini/config/mcp_config.json for all workspaces. Open /mcp to reload and check the connection.
  • IDE opens the config from MCP Servers → Manage MCP Servers → View raw config. Current builds share the global and workspace paths above. If an older IDE opens a different file, select Legacy IDE settings in CM1B or edit the file the IDE opens. Check the connection in the MCP server list. Antigravity MCP setup

Claude Code

Run these commands in the project where you want to use the vault.

claude mcp add --scope local --transport stdio cm1b -- "PYTHON_PATH" -B "SERVER_PATH" --vault "VAULT_PATH"
claude mcp get cm1b

Use --scope user to share the connection across your projects on this machine. Check /mcp from the intended project and follow any client prompts. Claude Code MCP setup

Hermes

Initialize a Hermes profile. Close that profile's sessions and gateway before applying the setup. Replace PROFILE_PATH with the profile directory containing config.yaml and VAULT_PATH with the selected vault path. Hermes installation and paths

Automatic Hermes setup (prototype)

The profile path selects Hermes setup in the automatic flow. Run the first command to review the vault and profile paths, then run the second to install and verify the integration.

uv run --locked python -B setup.py --quick-start --vault "VAULT_PATH" --hermes-home "PROFILE_PATH"
uv run --locked python -B setup.py --quick-start --vault "VAULT_PATH" --hermes-home "PROFILE_PATH" --apply

Manual Hermes setup

Install the dependencies described in Manual setup, then preview and apply. When --hermes-home is omitted in this flow, the installer uses HERMES_HOME or the platform default, %LOCALAPPDATA%\hermes on Windows and ~/.hermes on Linux and macOS.

uv run --no-sync python -B setup.py --vault "VAULT_PATH" --hermes-home "PROFILE_PATH" --dry-run
uv run --no-sync python -B setup.py --vault "VAULT_PATH" --hermes-home "PROFILE_PATH" --apply

Both flows install the integration files, register the obsidian server in config.yaml, and add a managed block to SOUL.md. The installer can adopt an existing desktop app connection to the same vault. It backs up changed profile files and verifies the installed integration. Add --skip-soul to both commands to skip the block. Add --with-cron to both commands to schedule maintenance and backups with a compatible Hermes CLI. If the preview reports missing cron options, upgrade Hermes or apply the core integration without --with-cron. Open a new session after applying. Hermes MCP · Hermes scheduled tasks

Direct tool loading

Add --hermes-direct-tools to either setup flow to give the model the full schemas for obsidian_search, obsidian_read_note, and obsidian_save_note as soon as the session starts. The model can call them directly without loading a skill or discovering them through Tool Search. Use --skip-soul as shown to skip the managed prompt block.

uv run --locked python -B setup.py --quick-start --vault "VAULT_PATH" --hermes-home "PROFILE_PATH" --hermes-direct-tools --skip-soul --dry-run
uv run --locked python -B setup.py --quick-start --vault "VAULT_PATH" --hermes-home "PROFILE_PATH" --hermes-direct-tools --skip-soul --apply

Selective loading with Tool Search active requires a Hermes build that supports tools.tool_search.keep. The installer adds any missing entries to that list. For earlier Hermes builds, --hermes-direct-tools=all turns off Tool Search for the selected profile and sends the full schemas of all enabled tools. Open a fresh Hermes session after applying. Hermes Tool Search

Other stdio MCP clients

Add a local stdio server in your client's MCP settings. Use the generated command as the executable and pass args as separate arguments. If the client uses mcpServers JSON, merge the generated entry alongside your existing servers. Reload MCP or open a new session to check that the Obsidian tools are available.

Verify the handoff

Ask one client to save a test note to Inbox/cm1b-test.md using its MCP tools. In another connected client, search for the note by title and read it back. Both clients must point to the same vault. You can also open the file directly in Obsidian.

For a question whose answer spans several notes, call obsidian_search with "evidence": true and a limit above one. With a working semantic index and embedding endpoint, this option combines keyword and semantic results for broader coverage. Use the default ranking for a single note or a direct lookup. Text search remains available when the semantic provider is unavailable.

Disable or uninstall

Client Disable Remove the connection
Codex CLI Set enabled = false in the active [mcp_servers.cm1b] table, then start a new session. For a CLI-added user entry, run codex mcp remove cm1b. For a manual entry, remove its table in the same scope.
Antigravity Set "disabled": true on the cm1b entry and reload MCP. Remove that entry from the config you edited and reload.
Claude Code Toggle the server off in /mcp for the current project. From the project, run claude mcp remove cm1b --scope local, or use --scope user for a user entry.
Hermes Set enabled: false under mcp_servers.obsidian and reload MCP or restart the profile session and gateway. Pause the CM1B jobs by ID if you enabled scheduling. Remove the CM1B server entry and the installed block between the OBSIDIAN-BRAIN markers in SOUL.md, if present. Remove the CM1B jobs by ID if you enabled scheduling.

For a full Hermes uninstall, close the selected profile's sessions and gateway. Find the integration files under skills/obsidian-brain/ and scripts/ using the installer’s payload_mapping as a reference. Compare the profile's timestamped backups and remove only files created for this integration. Retain any backup settings needed to locate your archives. Installer file mapping · Upgrade and rollback guide

After disconnecting clients and stopping any scheduled jobs, close their sessions. Remove the source directory and its .venv when no client or job needs them. Keep the vault and backups.

Troubleshooting

Symptom Check
FastMCP import error or missing Python modules Run uv sync --locked from the source directory again. Regenerate the config so the client uses that environment's Python. CM1B currently expects MCP 1.x.
Server fails to start Confirm the absolute Python and script paths still exist. Regenerate the configuration if you moved the source or its environment. Review the client's MCP logs and restart or reload the client.
Tools absent or disabled Confirm the config scope, selected profile, and project trust state. Start a fresh session when the client reads config at startup. For direct loading in Hermes, check the profile's Tool Search settings and whether your build supports the selected mode.
Agents see different notes Compare the resolved vault path in each connection. Confirm the client and the server use the same operating-system environment, especially with WSL or a remote workspace.
No semantic results Text search is available immediately. Semantic search needs a compatible existing index and a reachable embedding endpoint. Set OBSIDIAN_SEARCH_SEMANTIC=0 in the server's environment for text-only search.
Write or lock error Check permissions on the vault and lock location. Retry on a local filesystem with support for locking, atomic replacement, and hard links. Platform support

Data and backups

  • A connected client can read and write Markdown in the selected vault. Connect clients you trust, and keep credentials outside the vault and source tree. Keep machine-specific MCP settings out of shared commits.
  • MCP transport is local stdio. A cloud-backed client can send note content or maintenance context to its model provider. A configured external embedding endpoint can receive search queries when semantic search is active.
  • Create a local backup with uv run --no-sync python -B payload/scripts/vault_backup.py --vault "VAULT_PATH". Repeat with --verify to check the latest archive. The default destination is a vault-specific folder under Backups/auto/ alongside the vault. On Linux and macOS, each backup run restricts this directory to its owner and creates archives with mode 0600. On Windows, keep the unencrypted ZIPs in a folder protected by your account's filesystem permissions.
  • Drive backup is optional. Install its dependencies with uv sync --locked --extra drive. Use uv run --no-sync python -B payload/scripts/vault_drive_backup.py --vault "VAULT_PATH" --dry-run to review the archive before supplying a private Drive folder and an authorized-user OAuth file. The script checks access before and after sending the ZIP. A failed new upload is permanently deleted. Exit code 3 reports the Drive file ID when deletion could not be confirmed.

Further reading

License and credits

CM1B adapts the MCP server and vault engine from Eugeniu Ghelbur's Obsidian Second Brain. Avenox's setup guide informed the example vault and cross-client read-back check. MIT license · Obsidian Second Brain · Avenox setup guide

Reviews (0)

No results found