obsidian-markdown
Provides viewing and source editing for Excalidraw .excalidraw.md and .excalidraw files, including a RoughJS SVG pan/zoom viewer for json/compressed-json drawing blocks, bound text, arrowheads, embedded images, and dark-mode stroke adaptation.
Provides Obsidian Flavored Markdown preview and raw editing, including YAML properties, callouts, wikilinks/embeds, transclusions, KaTeX math, Mermaid diagrams, PrismJS code blocks, PDF previews, and block/heading navigation.
Provides an Obsidian vault browser and vault-aware file resolution, with support for Obsidian Flavored Markdown, wikilinks, embeds, transclusions, callouts, properties, and write-back to vault files.
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
Obsidian Markdown for Antigravity
Antigravity 2.0 Desktop App plugin (obsidian-markdown) for viewing, navigating, and editing Obsidian Flavored Markdown (.md), Excalidraw (.excalidraw.md / .excalidraw), and JSON Canvas 1.0 (.canvas) files via an MCP App (ui://obsidian-markdown/viewer.html).
为 Antigravity 2.0 桌面端提供 Obsidian Flavored Markdown、Excalidraw 绘图和 JSON Canvas 白板预览与源码编辑支持的 MCP App 插件。
Features / 核心特性
Obsidian Flavored Markdown (
.md)Collapsible YAML Frontmatter Properties card (
tags,aliases,cssclasses, dates, checkboxes, and clickable[[wikilink]]values)All 13 canonical Callout types + aliases (
> [!note],> [!tip]+,> [!warning]-), including foldable<details>callouts and nested callouts (> > [!info])Code-safe
[[wikilinks]],![[embeds]],==highlights==,%%comments%%stripping,#tags, and^block-idanchors (ignores fenced code blocks and inline backticks)Table-escaped modifiers (
[[Note#Heading\|Alias]],![[image.png\|300]],![[doc.pdf#page=2\|800]])Note / heading / block transclusions (
![[Note#Heading]],![[Note#^block]]) with recursion depth and cycle guardsInlined KaTeX math (
$...$/$$...$$,.woff2fonts embedded), Mermaid diagrams with automatic light/dark theme sync, PrismJS syntax highlighting + copy button, and inline PDF rendering (pdfjs-distin CSP-safe fake-worker main-thread mode)
Excalidraw (
.excalidraw.md&.excalidraw)Lightweight RoughJS SVG pan/zoom viewer supporting
jsonandcompressed-json(lz-string) drawing blocks, bound text, arrowheads, embedded images, and dark-mode stroke adaptation
JSON Canvas 1.0 (
.canvas)Interactive infinite pan/zoom canvas with dot grid,
group/text/file/linknodes, preset colors1–6, cubic Bezier edges, and lazy file/image previews
Dual/Raw Editing & Vault Browser
CodeMirror 6 raw editor (
Preview | Split | Rawfor Markdown,Drawing | Split | Sourcefor Excalidraw,Canvas | JSONfor Canvas)Savebutton andCmd+S/Ctrl+Swrite-back viacom.google.antigravity/resources/writewhen permitted by the hostAntigravity-Native Quote & Comment:
Text selection floating pill (
Comment⌘⌥M|Quote⌘L) in both Preview and Raw editor modesComponent hover actions on Markdown blocks (callouts, Mermaid diagrams, code blocks, tables, images, PDFs, headings, properties), Canvas nodes, and Excalidraw drawings
Anchored comment highlights and clickable comment badges (with edit/delete card popover) synced to the chat composer via
app.updateModelContext(Send to Chatalso available whenhostCapabilities.messageis present)
Empty /
aux_pane/globalObsidian Vault Browser with live search, type filters, vault root filter chips (basename+ full wrapped path & copy button in Vaults modal), and inline preview drawer
Related MCP server: second-brain-mcp
Build & Install / 构建与安装
git clone https://github.com/Realtyxxx/antigravity-obsidian-markdown.git
cd antigravity-obsidian-markdown
npm install
npm run typecheck
npm test
npm run build
npm run install:localWhat each step does:
npm run build(scripts/build.mjs):Bundles
src/server/mcp-server.tsintodist/server.mjs(Node ESM)Bundles
src/app/main.ts,src/app/styles.css, PrismJS light/dark themes, and KaTeX CSS (with.woff2fonts inlined asdata:URIs) into a single self-containeddist/viewer.htmland enforces the< 10 MiBAntigravity resource limit
npm run install:local(scripts/install-local.mjs):Symlinks
~/.gemini/config/plugins/obsidian-markdownto your local clone without modifying~/.gemini/config/plugins/config.jsonVerify the plugin manifest from the repository root with:
agy plugin validate .Reload Antigravity / refresh MCP servers, then open any
.mdor.canvasfile and select Obsidian Markdown, or launch Obsidian Vault from the aux pane / global launcher.
Vault Resolution / Vault 路径解析
Because Antigravity passes an opaque antigravity-file://<uuid>/<basename> URI on file launch, the MCP server resolves vault context and relative links across configured roots:
Discovered default roots:
OBSIDIAN_VAULT_PATHSenvironment variable (path-delimited list)Registered Obsidian vaults in
~/Library/Application Support/obsidian/obsidian.jsonMCP client
roots/listworkspace roots (when exposed by the host)Non-home / non-root
process.cwd()fallback
Custom roots:
Added/removed via the Vaults modal (
obsidian_manage_vaults) and persisted in${PLUGIN_DATA}/vaults.json
Context & target resolution order:
Context matching (
obsidian_resolve_context): matches filename candidates using SHA-256 content hash (raw and\r\n-normalized), falling back to line-overlap scoring for edited/unsaved buffersTarget resolution (
obsidian_resolve_targets):Relative to the current note's directory
Co-located
./assets/<basename>and./images/<basename>Relative to the matched Vault root
Shortest-path / closest-hop match across configured Vault roots
Limitations (Antigravity 2.0) / 已知限制
fileViewvs Chat & Artifacts: Thefileentrypoint (extensions: [".md", ".canvas"], which also captures*.excalidraw.md) applies when opening files in AntigravityfileView. Antigravity plugins cannot override the built-in Chat message markdown renderer or Artifacts preview cards.Read-Only Contexts: Saving (
com.google.antigravity/resources/write) is enabled only whenhostContext["com.google.antigravity/resources"]?.writeis truthy (local, non-cloud conversations outside/brain/). When absent, the toolbar displays a Read-only badge and disablesSave.Sandbox & Bundle Constraints: Antigravity enforces a strict iframe CSP (
default-src 'none', noworker-src, no'unsafe-eval'), blocks persistentlocalStorage/IndexedDBacross frame closures (vault config lives server-side in${PLUGIN_DATA}/vaults.json), and capsui://HTML resources at10 MiB.
License
MIT License — see LICENSE.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
This server cannot be deployed
Maintenance
Related MCP Connectors
Search, read, and safely update Markdown notes in your connected Phasoric knowledge vaults.
Agent-native notes, tasks, dev-docs, vaults, sync & handoffs. MCP + OpenAPI dual surface.
Hosted MCP server for Obsidian Sync vaults: read, search, edit notes. Not affiliated with Obsidian.
Notes and memory assistant: one Markdown vault that Claude, ChatGPT and any MCP client can share.
Related MCP Servers
- AlicenseBqualityDmaintenanceEnables comprehensive access to Obsidian vaults through MCP, supporting multi-vault management, knowledge graph analysis, canvas manipulation, dataview queries, template rendering, and periodic notes creation. Provides both local filesystem and remote API connectivity for complete Obsidian integration.2922MIT
- AlicenseAqualityDmaintenanceEnables MCP clients to search and read notes from an Obsidian or markdown vault through four governed tools, with enforced read-only access, a page budget, and path sandboxing.410 npm1MIT
- AlicenseAqualityBmaintenanceEnables any MCP client to semantically search, traverse, and manage a local markdown note vault through a shared LanceDB-backed RAG index. It supports natural-language queries, backlink and wikilink traversal, link repair, daily journaling, and note creation, editing, and frontmatter updates.18MIT
- AlicenseNot gradedqualityBmaintenanceEnables MCP clients to search, read, create, and link notes in a local-first Markdown vault, with indexing, backlinks, and safe writes underneath.MIT