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 Tool Server
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.
Latest Blog Posts
- 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