obsidian-agi-workspace-mcp
Provides tools for managing Obsidian vaults, including searching, reading, writing, and patching notes, managing folders and tasks, resolving wikilinks and backlinks, analyzing the workspace graph, and syncing with Obsidian Headless Sync.
Click on "Install 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-agi-workspace-mcpaggregate all unchecked tasks in my vault and show them by project"
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-agi-workspace-mcp
Model Context Protocol (MCP) Server for Obsidian Vaults
Turn your personal or collaborative Obsidian Vault into a persistent, bidirectional, and structured knowledge workspace for AGI agents (Claude Code, Codex, Hermes Agent, Cursor, VS Code ACP, and Roo-Cline) β fully integrated with official Obsidian Headless Sync (ob).
π Highlights
π Native Obsidian Headless Sync (
ob) Integration: Direct integration with the officialobsidian-headlessCLI. Supports automated background continuous synchronization and on-demand trigger/status tools (sync_vault_ob).π§ Bi-directional Wikilink & Backlink Resolution: Automatically detects
[[Wikilinks]], resolves target notes, maintains live backlink graphs, and discovers orphan notes and broken/dangling links.π·οΈ Structured Frontmatter & Tag Indexing: Full YAML frontmatter parsing, tag clustering (with support for
#nested/tagsand Unicode/Chinese tags), and exact frontmatter metadata filtering.π Directory & Hierarchy Management: Dedicated tools for folder creation (
create_folder), directory listing (list_folders), and recursive tree inspection (get_vault_tree).π‘οΈ Sandbox & Path Traversal Security: Strict root path boundary enforcement, jail containment, and optional
allowedSubpathsconfiguration (ideal for exposing only designated vault subdirectories).βοΈ Cloud & Cluster Native (SSE/HTTP & STDIO): Supports traditional CLI/IDE stdio pipes as well as HTTP/SSE transport modes with
/healthzand/readyzendpoints for Kubernetes cluster deployments.π Fine-Grained Note Patching: Append, prepend, regular-expression targeted replacements, frontmatter merging, and hierarchical markdown section replacement (e.g. updating a
## Taskssection without touching the rest of the note).β Cross-Vault Task Aggregation: Automatically extracts markdown checklist items (
- [ ]/- [x]) across notes with line tracking and status filters.β‘ High Performance & Zero Heavy Overhead: Built with TypeScript, fast-glob, and gray-matter for instant indexing and minimal memory footprint.
Related MCP server: Obsidian Knowledge Management MCP Server
π Quick Start
1. Local CLI & IDEs (Stdio Mode)
You can run directly via npx:
# Global installation via npm/pnpm
npm install -g obsidian-agi-workspace-mcp
# or
pnpm add -g obsidian-agi-workspace-mcpClaude Desktop (claude_desktop_config.json)
{
"mcpServers": {
"obsidian-workspace": {
"command": "npx",
"args": ["-y", "obsidian-agi-workspace-mcp"],
"env": {
"OBSIDIAN_VAULT_PATH": "/Users/username/Documents/Obsidian Vault",
"OBSIDIAN_ALLOWED_SUBPATHS": "vault,projects,research"
}
}
}
}Hermes Agent (~/.hermes/config.yaml)
mcp_servers:
obsidian-workspace:
command: npx
args: ["-y", "obsidian-agi-workspace-mcp"]
env:
OBSIDIAN_VAULT_PATH: "/home/yun/Desktop/docs/vault"2. Kubernetes Cluster Deployment with ob Sidecar (SSE Mode)
For team knowledge bases, remote agent clusters, or self-hosted GitOps setups (e.g. Talos / FluxCD / K8s):
Architecture
PVC 1 (
obsidian-vault-pvc): Persistent markdown storage mounted at/vault.PVC 2 (
obsidian-home-pvc): Persistent/home/mcpholding pinnedobsidian-headlessand E2EE auth tokens.Sidecar Container (
obsidian-sync-sidecar): Runsob sync --path /vault --continuousfor bidirectional sync with Obsidian Sync.MCP Server Container (
mcp-server): Serves SSE endpoint athttp://...:8080/ssewith/healthzand/readyzprobes.
Initial Interactive Bootstrap & Authentication
To connect the cluster vault with your Obsidian Sync account:
Apply the manifests:
kubectl apply -f deploy/k8s/deployment.yamlExec into the pod or run the helper script:
kubectl exec -it -n obsidian-workspace deployment/obsidian-agi-workspace-mcp -c obsidian-sync-sidecar -- /bin/sh # Inside the container, run: ob login ob sync-list-remote ob sync-setup --vault <Vault-Name-or-ID> --path /vault --device-name k8s-mcp-pod-01 ob sync-config --path /vault --mode bidirectional --conflict-strategy conflict ob sync --path /vault
(Authentication tokens and E2EE password hashes remain persisted in obsidian-home-pvc, surviving pod restarts).
π οΈ Available MCP Tools
Tool | Parameters | Description |
|
| Search notes by full-text keywords, tag matches (e.g. |
|
| Read note content with YAML frontmatter, raw body, metadata, outgoing wikilinks, and incoming backlinks. Supports both relative paths and wikilink titles. |
|
| Create or update a note with structured YAML frontmatter and markdown body. Auto-creates intermediate directories. |
|
| Apply atomic or targeted edits (e.g. rewrite under a |
|
| Create a new folder or directory hierarchy inside the vault. |
|
| List folder structures with relative paths and contained note counts. |
|
| Retrieve hierarchical tree representation of notes and folders. |
|
| Gather all markdown task checkboxes ( |
| None | Analyze topological note connections, count nodes/edges, and identify orphan notes and broken wikilinks. |
|
| Trigger on-demand sync cycle or inspect sync state with Obsidian Headless CLI ( |
|
| Safely remove a note or folder (moves to |
βοΈ Environment Variables & CLI Flags
CLI Flag | Env Variable | Default | Description |
|
| Required | Absolute filesystem path to the Obsidian vault root |
|
|
| Transport protocol: |
|
|
| Port for SSE/HTTP server |
|
|
| Bind host for SSE/HTTP server |
|
|
| Comma-separated list of permitted relative subfolders |
|
|
| When |
None |
|
| Custom binary path for Obsidian Headless CLI |
π§βπ» Development & Testing
This project uses go-task and pnpm:
# Clone repository
git clone https://github.com/yunzaixi-dev/obsidian-agi-workspace-mcp.git
cd obsidian-agi-workspace-mcp
# Install dependencies
pnpm install
# Run typechecks, unit tests & build
task check
# Start in SSE development mode
task dev -- --vault /path/to/vault --transport sse --port 8080π License
MIT License Β© 2026 yunzaixi-dev
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- AlicenseAqualityAmaintenanceEnables AI agents to explore, search, and manage local Obsidian vault documents with tools for document search, automatic frontmatter property generation, and attachment organization.5762ISC
- FlicenseNot gradedqualityDmaintenanceEnables LLMs to read, search, and manage Obsidian vault markdown files, including YAML frontmatter, wikilinks, and graph operations through a secure stateless I/O layer.
- 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,785
- AlicenseNot gradedqualityDmaintenanceEnables AI agents to manage Obsidian vaults through full CRUD operations, wikilink management, and section-level manipulation. It supports frontmatter editing, tag-based searching, and automated link updates to maintain vault integrity.MIT
Related MCP Connectors
Search and reason over your Obsidian-style Markdown vault, right from ChatGPT.
Connect AI assistants to your GitHub-hosted Obsidian vault to seamlessly access, search, and analyβ¦
Persistent memory and knowledge management for AI agents with semantic search and 50+ tools.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/yunzaixi-dev/obsidian-agi-workspace-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server