obsidian-cli-mcp
Provides tools for interacting with Obsidian vaults, including reading and searching notes, inspecting outlines, backlinks, links, tags, and tasks, creating and editing notes, setting frontmatter properties, updating tasks, listing files/folders/templates, retrieving vault metadata, and triggering or checking sync status.
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-cli-mcp
MCP server that wraps the Obsidian CLI (obsidian) and headless sync client (ob) so any MCP-compatible AI tool can interact with Obsidian vaults.
Requires Obsidian 1.12+ which introduced the CLI tools.
Install
git clone <repo-url> && cd obsidian-cli-mcp
npm install && npm run buildRelated MCP server: Obsidian MCP Server
Configure
Add to your MCP client config (e.g. Claude Code ~/.mcp.json):
{
"mcpServers": {
"obsidian": {
"command": "node",
"args": ["/path/to/obsidian-cli-mcp/dist/index.js"],
"env": {
"OBSIDIAN_VAULT": "My Vault Name",
"OBSIDIAN_VAULT_PATH": "/path/to/My Vault Name"
}
}
}
}Environment Variables
Variable | Default | Description |
| (none) | Default vault name (used by |
| (none) | Vault filesystem path (used by |
|
| Path to |
|
| Path to |
|
| CLI timeout (ms) |
|
| Sync timeout (ms) |
Tools (18)
Reading
obsidian_read— Read note contentsobsidian_search— Full-text search with contextobsidian_outline— Heading structureobsidian_backlinks— Incoming linksobsidian_links— Outgoing linksobsidian_tags— Tags with countsobsidian_tasks— Todo/done tasks
Writing
obsidian_create— Create noteobsidian_append— Append to noteobsidian_prepend— Prepend to noteobsidian_property_set— Set frontmatter propertyobsidian_task_update— Toggle/complete task
Navigation
obsidian_files— List filesobsidian_folders— List foldersobsidian_templates— List templatesobsidian_vault_info— Vault metadata
Sync
obsidian_sync— Trigger syncobsidian_sync_status— Check sync status
Development
npm test # run all tests
npm run test:security # security tests only
npm run build # compile TypeScriptLicense
MIT
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
Hosted MCP server for Obsidian Sync vaults: read, search, edit notes. Not affiliated with Obsidian.
Search your AI chat history (ChatGPT, Claude, Codex) from any MCP client. Remote, private, read-only
Agent-native notes, tasks, dev-docs, vaults, sync & handoffs. MCP + OpenAPI dual surface.
Markdown-based note-taking with a hosted MCP server. Your notes serve you and your AI.
Related MCP Servers
- AlicenseNot gradedqualityCmaintenanceProvides an MCP server that allows AI assistants to interact with Obsidian vaults, enabling reading/writing notes, managing metadata, searching content, and working with daily notes.37MIT
- AlicenseNot gradedqualityDmaintenanceEnables AI assistants to search, read, and append content to notes in an Obsidian vault via the MCP protocol.BSD Zero Clause
- AlicenseBqualityCmaintenanceBridges Obsidian vaults with MCP-compatible AI tools, enabling read/write/search of notes, task management, and vault operations through 34 tools and prompt templates.3462 npm4MIT
- AlicenseNot gradedqualityBmaintenanceEnables programmatic control of Obsidian vaults via REST API and MCP server for automation and AI assistant integration.20MIT