Semantic Atlas MCP
OfficialREADME.md
# Semantic Atlas MCP companion
An optional **desktop-only** Obsidian plugin exposing a local MCP Streamable HTTP endpoint backed by Semantic Atlas. The companion is separate from the mobile-compatible plugin and requires a Semantic Atlas build with the `read-api-v1` discovery contract (introduced in [commit 2318f8c](https://github.com/SemanticAtlas/semantic-atlas-obsidian/commit/2318f8c)). Both plugins must be enabled in the same open vault. The server is stopped after every Obsidian start and when the companion is disabled.
## Build and install
From the repository root, run `npm ci` and `npm run build`. Install the main Semantic Atlas build in its own plugin folder as usual. Copy `main.js`, `manifest.json`, and `styles.css` into the vault's `.obsidian/plugins/semantic-atlas-mcp/` folder. This is a separate plugin. It has not yet been published to the community directory. Restart or reload plugins when it is safe to do so.
In **Settings → Semantic Atlas MCP**:
1. Create a long, random secret in Obsidian's secret storage and select it. Use a unique random token with at least 32 characters. The setting stores the secret's identifier, not its value.
2. Enter authorized folder paths, one per line. An empty list grants no access. A single `.` authorizes all normal Markdown notes in the vault. Hidden paths, including the Obsidian configuration folder, are always excluded. Folder matching uses path boundaries; paths containing traversal are rejected.
3. Choose **Read only** (default), or **Read and propose edits**. Changes to settings stop the server. Select **Start** when ready. The port defaults to 27124.
4. Configure an MCP client supporting Streamable HTTP with endpoint `http://127.0.0.1:27124/mcp` and `Authorization: Bearer <secret value>`. Client setup differs: some support only stdio, OAuth or remote endpoints. The server offers a fixed Bearer token and does not implement OAuth or direct internet access; check client compatibility. Keep client configuration containing the token private.
Loopback limits network exposure but other processes running as the same user may be able to access the token or endpoint. Origin and Host validation mitigate browser-origin attacks. A local client can still send returned data to a remote model provider; inspect the client's privacy settings. The server does not log note content, queries, or tokens.
## Tools and approval
- `index_status`: index phase and readiness; total indexed count only when the whole vault is authorized.
- `semantic_search`: hybrid search using Semantic Atlas, filtered to authorized folders. Filtering occurs after fetching up to 100 global candidates, so results can be incomplete.
- `related_notes`: related indexed notes filtered to authorized folders.
- `read_note`: read one authorized Markdown note, bounded to 100,000 characters.
- `propose_edit`: in read/write mode only, propose replacing an existing authorized note; provide the exact original content and complete replacement. One proposal may await review at a time. This tool **never writes directly**.
- `edit_status`: check whether a proposal is pending review, applied, rejected, cancelled, in conflict, or unknown. Proposals and their status are held only in memory.
Obsidian shows additions and removals. The user must click **Apply**; closing the review rejects the proposal. The plugin checks the note's original content and open editor before applying via an atomic vault operation. If the note, permissions, server state or proposal changes, it refuses the write. Stopping the server cancels pending proposals. New notes, deletions and edits without human review are not supported.
Search and related-note operations wait until indexing is no longer active. This avoids competing with a long-running indexing pass; reading authorized notes and checking status remain possible. No reindexing is started by the companion.
Technical details and the compatibility contract are in [the documentation](docs/ARCHITECTURE.md).
Development assistance: Assisted-by: AI.
This server cannot be deployed
Maintenance
ActivityMaintained
ResponsivenessNo recent community issues