Obsidian CLI MCP Server
Provides tools for reading, searching, creating, and managing notes in an Obsidian vault via the obsidian CLI.
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 CLI MCP Servershow today's daily note"
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 CLI MCP Server
MCP server that exposes Obsidian vault operations over HTTP. Uses the obsidian CLI via subprocess — requires the Obsidian desktop app to be running.
Placeholders: Examples use <project-root>, <vault-root>, and localhost:3100 — replace with your actual paths and host/port. All examples are generic and safe for public use.
Prerequisites
Obsidian desktop app installed and running
gtimeout (GNU coreutils):
brew install coreutilson macOSPython 3.10+
Related MCP server: obsidian-mcp
Quick Start
cd <project-root> # e.g. ~/projects/obsidian-cli-mcp
pip install -r requirements.txt
cp .env.example .env # edit .env with your vault path
python -m src.serverServer listens on http://localhost:3100/mcp.
Dev mode (auto-restart on file changes):
make devSmoke test (run all read operations; edit hardcoded paths in scripts/smoke_test.py to match your vault):
python scripts/smoke_test.pyTools
Tool | Purpose |
| Check obsidian CLI and vault status |
| Query .base database files |
| List views in a .base file |
| Read a note by name or path |
| Full-text search with context |
| Full-text search as JSON |
| Read today's daily note |
| Append to today's note (write-gated) |
| List files in a folder |
| Notes that link to this note |
| Outgoing links from a note |
| All tags with counts |
| Tags for a specific file |
| Frontmatter properties |
| Create a note (write-gated) |
Environment Variables
Variable | Default | Purpose |
| (in | Vault directory (cwd for obsidian CLI); see |
| (none) | Vault name when multiple vaults exist |
|
| Timeout for obsidian CLI (base queries use 30s) |
|
| Enable create, append, property:set |
|
| Bind address |
|
| Server port |
|
|
|
Connect from Continue
Place config at <vault-root>/.continue/mcpServers/obsidian-cli-mcp.yaml:
name: Obsidian CLI
version: 1.0.0
schema: v1
mcpServers:
- name: obsidian-cli-mcp
type: streamable-http
url: http://localhost:3100/mcpStart the server before using Continue. Or use cn --mcp http://localhost:3100/mcp.
Connect from Cursor
Option A – Command (recommended) – Cursor spawns the server; no manual start needed:
{
"mcpServers": {
"obsidian-cli-mcp": {
"command": "python",
"args": ["-m", "src.server"],
"cwd": "<project-root>",
"env": { "MCP_TRANSPORT": "stdio" }
}
}
}Use your actual project path for cwd, or omit it if the project is your workspace root.
Option B – URL – Start the server manually first (python -m src.server), then add:
{
"mcpServers": {
"obsidian-cli-mcp": {
"url": "http://localhost:3100/mcp"
}
}
}This server cannot be installed
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
- Flicense-qualityDmaintenanceA local MCP server that wraps the Obsidian CLI to give AI assistants direct access to read, edit, and manage notes within an Obsidian vault. It enables advanced operations such as frontmatter property management, context-aware searching, and the execution of internal Obsidian commands.Last updated2
- Alicense-qualityCmaintenanceMCP server that provides read and write access to an Obsidian vault by interacting directly with markdown files on disk. Supports searching, listing, reading, creating, editing, and appending notes without requiring any Obsidian plugins.Last updated3,555ISC
- Flicense-qualityBmaintenanceMCP server that exposes an Obsidian vault (search, read, create, and update notes) via Streamable HTTP.Last updated
- Alicense-qualityBmaintenanceMCP server for interacting with Obsidian via the Local REST API, enabling file operations, search, and content editing in your vault.Last updatedMIT
Related MCP Connectors
Markdown-first MCP server for Notion API with 8 composite tools and 39 actions.
Serve a folder of Markdown notes as an MCP server: hybrid search, reading, and sourced answers.
A basic MCP server to operate on the Postman API.
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/brettwinterflood/obsidian-cli-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server