obsidian-surface
Turns an active Obsidian vault into a display surface and knowledge workspace for AI tools, backed by the Obsidian CLI. Provides tools to create and display rich rendered artifacts (documents, diagrams, tables, comparisons) as persistent surfaces with a queryable frontmatter index, plus note CRUD and search, window layout and navigation control (splits, tabs, panes, sidebars), vault info and command execution, full-text search with backlinks/links/outline/orphan analysis, frontmatter property management, daily notes, tags, tasks, templates, and multi-step compose workflows that run as a single atomic call.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@obsidian-surface Create a comparison table of REST vs GraphQL in my Obsidian vault"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
obsidian-surface
MCP server that turns Obsidian into a display surface and knowledge workspace for AI tools.
What is this?
An MCP (Model Context Protocol) server that lets AI assistants like Claude, Cursor, or any MCP-compatible tool use your Obsidian vault as a rich display surface. Instead of dumping text in a terminal, your AI can create formatted documents, diagrams, tables, and research notes — and show them to you in Obsidian.
It also provides a surfaces system — a running log of research, decisions, and analysis that persists across sessions, so your AI remembers what you've worked on.
Backed by the Obsidian CLI (v1.12+).
Related MCP server: Obsidian MCP Server
Quick Start
1. Prerequisites:
Obsidian v1.12+ installed and running
CLI enabled: Obsidian → Settings → General → Command line interface → turn it on
Node.js 20+
2. Add to your AI tool's MCP config:
Add to ~/.claude/settings.json under mcpServers:
{
"mcpServers": {
"obsidian-surface": {
"command": "npx",
"args": ["-y", "obsidian-surface"]
}
}
}Or add per-project in .mcp.json at your project root.
Add to claude_desktop_config.json:
{
"mcpServers": {
"obsidian-surface": {
"command": "npx",
"args": ["-y", "obsidian-surface"]
}
}
}Follow your client's MCP server configuration docs. The server command is:
npx -y obsidian-surfaceNo arguments needed. The server auto-detects your Obsidian CLI.
3. Verify it works:
Restart your AI tool, then ask:
"What's in my Obsidian vault?"
If it answers with your vault name and file count, you're set.
How It Works
You talk to your AI normally. When it needs to show you something or save research, it uses obsidian-surface to create and display content in Obsidian.
Example prompts:
"Research the pros and cons of REST vs GraphQL and save your findings" → creates a surface in your vault with a formatted comparison
"Show me a side-by-side of the old and new API design" → creates two notes and splits the Obsidian pane
"What did we discuss about the database migration last week?" → queries the surfaces index to find prior research
The AI handles all the MCP calls — you never write JSON or call tools manually.
Environment Variables
All optional. Most users don't need any of these:
Variable | Default | Description |
| Auto-detected | Override the Obsidian CLI binary path |
| Current directory name | Set the default surfaces project |
Add env vars to your MCP config if needed:
{
"obsidian-surface": {
"command": "npx",
"args": ["-y", "obsidian-surface"],
"env": {
"OBSIDIAN_DEFAULT_PROJECT": "my-project"
}
}
}Which Vault Does It Connect To?
The Obsidian CLI connects to whichever vault is currently open in Obsidian. If you have multiple vaults, make sure the one you want is open and active.
Tools
obsidian-surface exposes 12 tools, each with multiple actions. Your AI uses these automatically — you don't need to call them directly.
surface — Display Surfaces
Rich rendered artifacts (documents, diagrams, tables, comparisons) that persist across sessions.
Action | Description | Params |
| Create a surface with frontmatter, opens in Obsidian |
|
| List surfaces in a project with metadata |
|
| Query the frontmatter index |
|
| Get N most recent surfaces across all projects |
|
| Update a surface's frontmatter without changing content |
|
| Rebuild the index by scanning all surface files | — |
| Delete all surfaces in a project |
|
| Set the active project |
|
| List all projects | — |
| Rename a project |
|
note — Vault Notes
Persistent note CRUD and search.
Action | Description | Params |
| Create a note |
|
| Read note content |
|
| Overwrite note content |
|
| Append to a note |
|
| Prepend to a note |
|
| Delete a note |
|
| Move/rename a note |
|
| Search notes |
|
| List files in a folder |
|
layout — Window Layout & Navigation
Control tabs, panes, and navigation.
Action | Description | Params |
| Show workspace layout tree with tab IDs | — |
| Split the current pane |
|
| Close tab(s) |
|
| Toggle a sidebar |
|
| Focus tab group by direction |
|
| Open a file |
|
| Open a new tab or list all tabs |
|
| List recently opened files | — |
vault — Vault Info & Commands
Vault metadata and Obsidian command execution.
Action | Description | Params |
| Show vault info — name, path, file count, size | — |
| List folders |
|
| Execute an Obsidian command by ID |
|
| List available commands |
|
search — Search & Analysis
Full-text search and note relationship exploration.
Action | Description | Params |
| Search for text in the vault |
|
| Search with surrounding line context |
|
| List notes that link to a file |
|
| List outgoing links from a note |
|
| Show heading tree of a note |
|
| List files with no incoming links | — |
| List files with no outgoing links | — |
property — Frontmatter Properties
Read and write YAML frontmatter on notes.
Action | Description | Params |
| Read a property |
|
| Set a property |
|
| Remove a property |
|
| List all properties on a note |
|
daily — Daily Notes
Action | Description | Params |
| Open the daily note | — |
| Read the daily note content | — |
| Append content to the daily note |
|
tag — Tags
Action | Description | Params |
| Get usage info for a tag |
|
| List all tags in the vault | — |
task — Tasks
Action | Description | Params |
| List tasks in the vault or a file |
|
| Update a task's status |
|
template — Templates
Action | Description | Params |
| List available templates | — |
| Insert a template into the active file |
|
| Read template content |
|
dev — Developer Tools
Action | Description | Params |
| Execute JavaScript in the Obsidian app context |
|
| Take a screenshot of the Obsidian window |
|
compose — Multi-Step Operations
Execute multiple operations sequentially as a single atomic action. The AI uses this to set up layouts, create multiple notes, or perform multi-step workflows — all in one call, without focus-stealing between steps.
Example: You say "Create a comparison of REST vs GraphQL and show it next to my existing API notes". The AI internally calls:
{
"steps": [
{ "tool": "note", "action": "create", "params": { "path": "research/rest-vs-graphql.md", "content": "# REST vs GraphQL\n\n..." } },
{ "tool": "layout", "action": "split", "params": { "direction": "vertical" } },
{ "tool": "layout", "action": "open", "params": { "path": "research/rest-vs-graphql.md" } }
]
}You see the final result in Obsidian — two panes, side by side.
Surfaces System
The surfaces system is a running log organized by project. Your AI uses it to save research, decisions, and analysis that persist across sessions.
_surfaces/
├── my-project/
│ ├── api-research.md
│ ├── design-decisions.md
│ └── performance-notes.md
└── another-project/
└── ...Each surface includes YAML frontmatter:
---
project: my-project
created: 2026-04-08T14:30:00
summary: Analysis of REST vs GraphQL tradeoffs
cwd: /home/user/my-project
type: research
tags: [api, architecture]
---Project is auto-derived from your working directory name (e.g. if you're in
/home/user/my-project, the project ismy-project). Can also be set explicitly.A frontmatter index (
_surfaces/_index.json) tracks all surfaces' metadata for fast querying without reading every file.The AI uses
indexat session start to see what prior knowledge exists, andrecentto catch up on latest work.
CLI Path Resolution
The Obsidian CLI binary is auto-detected. You only need OBSIDIAN_CLI_PATH if auto-detection fails.
Resolution order:
OBSIDIAN_CLI_PATHenvironment variableobsidianon PATHPlatform auto-detection:
Platform | Auto-detected Path |
Windows |
|
macOS |
|
Linux |
|
WSL |
|
WSL is automatically detected and handles UNC path workarounds.
Privacy
All data stays local in your Obsidian vault
The
cwdfield in surface frontmatter records which directory you were working in — stored only in your vaultNo data is transmitted to external services
Communication uses stdio transport only (stdin/stdout between MCP client and this server)
The server does not access the internet
Development
git clone https://github.com/sespinosa/obsidian-surface.git
cd obsidian-surface
npm install
npm run build
npm test
npm run lintLicense
Available Tools
12 toolscomposeA
Execute multiple operations sequentially as a single atomic action. Eliminates intermediate focus shifts and reduces round-trips.
Each step specifies a tool, action, and optional params. Execution stops on first error. Returns results for all executed steps.
Example: steps: [ { tool: "surface", action: "create", params: { name: "demo", content: "Hello", summary: "Demo" } }, { tool: "layout", action: "open", params: { path: "my/note.md" } }, { tool: "layout", action: "split", params: { direction: "vertical" } } ]
Inputs: steps (required).
dailyA
Open, read, or append to the daily note.
Actions:
open: Open the daily note (no params)
read: Read the daily note content (no params)
append: Append content to the daily note (content required)
Inputs: action (required), content.
devC
Developer tools for Obsidian.
Actions:
eval: Execute JavaScript in the Obsidian app context (code required)
screenshot: Take a screenshot of the Obsidian window (path optional)
Inputs: action (required), code, path.
layoutB
Control Obsidian window layout, tabs, and navigation.
Actions:
workspace: Show workspace layout tree with tab IDs (no params)
split: Split current pane (direction required: "vertical" or "horizontal")
close: Close tab(s) (target optional: "current", "others", or "all")
sidebar: Toggle a sidebar (side required: "left" or "right")
focus: Focus tab group by direction (direction required: "left", "right", "top", or "bottom")
open: Open a file (path required)
tabs: Open a new tab or list tabs (path optional; omit to list all tabs)
recents: List recently opened files (no params)
Inputs: action (required), path, side, target, +1 more.
noteA
Manage notes in the vault.
Actions:
create: Create a note (path required; content, open, newtab optional)
read: Read note content (path required)
write: Overwrite note content (path, content required)
append: Append to a note (path, content required)
prepend: Prepend to a note (path, content required)
delete: Delete a note (path required)
move: Move/rename a note (path, destination required)
search: Search notes (query required; format optional)
list: List files in a folder (folder optional, defaults to vault root)
Inputs: action (required), open, path, query, +5 more.
propertyB
Manage frontmatter properties on notes.
Actions:
get: Read a property (path, key required)
set: Set a property (path, key, value required)
remove: Remove a property (path, key required)
list: List all properties (path required)
Inputs: action (required), key, path, value.
searchB
Search the vault and explore note relationships.
Actions:
text: Search for text (query required; format optional: "json" or "text")
context: Search with surrounding line context (query required)
backlinks: List notes that link to a file (path required)
links: List outgoing links from a note (path required)
outline: Show heading tree of a note (path required)
orphans: List files with no incoming links (no params)
deadends: List files with no outgoing links (no params)
Inputs: action (required), path, query, format.
surfaceA
Create and manage display surfaces — rich rendered artifacts (documents, diagrams, tables, comparisons) shown to the user in Obsidian. Surfaces persist as a timeline of what was communicated across sessions. Use create whenever rendering in Obsidian is better than terminal text. Use index at session start to discover prior surfaces.
Actions:
create: Create a surface with frontmatter and open it in Obsidian (name, content, summary required; type, tags, cwd_override optional)
list: List surfaces in a project with metadata (project optional, defaults to active)
index: Query the frontmatter index (project, type, tags, since, query — all optional filters)
recent: Get N most recent surfaces across all projects (limit optional, default 10)
enrich: Update a surface's frontmatter without changing content (path required; type, tags, summary optional)
reindex: Rebuild the index by scanning all surface files (no params)
clear: Delete all surfaces in a project and remove from index (project optional)
project_set: Set active project (name required)
project_list: List all projects (no params)
project_rename: Rename a project (from, to required)
Inputs: action (required), to, from, name, +10 more.
tagB
Manage tags in the vault.
Actions:
info: Get usage info for a tag (tag required, with or without #)
list: List all tags in the vault (no params)
Inputs: action (required), tag.
taskA
Manage tasks in the vault.
Actions:
list: List tasks (path optional for specific file; status optional to filter)
update: Update a task's status (path, line, status required)
Inputs: action (required), line, path, status.
templateB
Manage templates in the vault.
Actions:
list: List available templates (no params)
insert: Insert a template into the active file (name required)
read: Read template content (name required)
Inputs: action (required), name.
vaultB
Vault information and Obsidian commands.
Actions:
info: Show vault info — name, path, file count, size (no params)
folders: List folders (folder optional, defaults to vault root)
command: Execute an Obsidian command (id required; args optional)
commands: List available commands (filter optional)
Inputs: action (required), id, args, filter, +1 more.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 12 tools
Tools are grouped by resource/domain and action subcommands make most intent clear. The main ambiguity is between note.search and search.text/context, plus convenience overlaps like daily.open/read/append versus note operations and surface.create opening notes in Obsidian.
All top-level tools are lowercase single-word domain groups with action subcommands, giving a consistent dispatch pattern. Minor inconsistency: top-level names mix resource nouns (note, tag, property) with verbs/actions (search, compose), and some action names are nouns (info, workspace, tabs).
Twelve top-level tools is well-scoped for managing an Obsidian vault: notes, search, layout, vault, templates, tasks, tags, properties, daily notes, surfaces, dev, and compose. Each tool corresponds to a coherent area rather than an excessive or trivial surface.
Core note CRUD, move/search/list, properties, layout, vault commands, relationship search, and surfaces are well covered. Gaps exist in tag, task, and template management—mostly list/read/update/insert without create/delete lifecycle—but these can often be worked around through note content or Obsidian commands.
Maintenance
Related MCP Connectors
Connect AI assistants to your GitHub-hosted Obsidian vault to seamlessly access, search, and analy…
Search your Obsidian vault to quickly find notes by title or keyword, summarize related content, a…
Turn your notes, links and conversations into a Living Brain your AI tools share and build on.
Markdown notes in folders, with files, that your AI assistant can read, write and organise.
Related MCP Servers
- FlicenseNot gradedqualityNot gradedmaintenanceEnables AI assistants to read, write, search, and navigate Obsidian vault notes with support for CRUD operations, full-text search, graph navigation, daily notes, and frontmatter management.4,114 npm-
- FlicenseCqualityDmaintenanceProvides LLM agents with comprehensive access to Obsidian vaults via the official Obsidian CLI bridge. It enables users to read, search, and modify notes, tasks, properties, and plugins while the Obsidian desktop app is running.5416-
- AlicenseNot gradedqualityCmaintenanceEnables AI assistants to manage Obsidian vaults programmatically with 28 tools for reading, writing, editing, and analyzing notes.MIT
- AlicenseAqualityFmaintenanceEnables AI assistants to perform over 80 Obsidian vault operations locally via the Obsidian CLI, with a single tool and no network dependencies.2MIT