obsidian-cli-rest
Enables programmatic control of an Obsidian vault by exposing all Obsidian CLI commands via REST API and MCP server, allowing automation of file operations, search, properties, daily notes, tags, tasks, links, templates, bookmarks, plugins, themes, sync, publish, workspaces, and more.
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-restcreate a note titled 'Meeting Notes' with content 'Discussed project timeline'"
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.
REST and MCP server
Control your Obsidian vault programmatically. This plugin turns all Obsidian CLI commands into a local HTTP API and MCP server, letting you automate your workflow from scripts, tools, and AI assistants.
Why use this plugin?
Automate note-taking: Create, read, search, and modify notes from any script or tool
Connect AI assistants: Let Claude, ChatGPT, or other AI tools interact with your vault via MCP
Build integrations: Hook Obsidian into your existing workflow with standard HTTP requests
Stay secure: Localhost-only by default, API key authentication, granular command controls
Related MCP server: Obsidian MCP Server
Requirements
Obsidian desktop app (v1.4.0 or later)
Obsidian CLI enabled in Obsidian: Settings > General > Advanced > Command line interface
Installation
Community plugins (recommended)
In Obsidian, go to Settings → Community plugins.
Disable Restricted mode if it's enabled.
Select Browse, search for REST and MCP server, install it, then enable it.
You can also browse the catalog on the Obsidian Community website.
Manual installation
If the plugin isn't listed in the community catalog yet (or you want a specific version):
Download
main.js,manifest.json, andstyles.cssfrom the latest release.Copy them into
<Vault>/.obsidian/plugins/cli-rest-mcp/.Reload Obsidian and enable REST and MCP server in Settings → Community plugins.
BRAT (bleeding edge)
BRAT (Beta Reviewers Auto-update Tool) installs plugins straight from a GitHub repo and keeps them updated automatically. Use this if you want the latest commits — things might break.
Install Obsidian42 - BRAT from Settings → Community plugins → Browse and enable it.
Run BRAT: Add a beta plugin for testing from the command palette.
Paste
https://github.com/dsebastien/obsidian-cli-rest.Select the latest version and confirm.
Enable REST and MCP server in Settings → Community plugins.
Once enabled, the server starts automatically on http://127.0.0.1:27124.
Quick start
Copy your API key from Settings > REST and MCP server > Security, then start making requests:
# List all files in your vault
curl -H "Authorization: Bearer YOUR_API_KEY" \
http://127.0.0.1:27124/api/v1/cli/files
# Search your vault
curl -H "Authorization: Bearer YOUR_API_KEY" \
"http://127.0.0.1:27124/api/v1/cli/search?query=meeting+notes"
# Create a new note
curl -X POST \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"params": {"name": "My Note", "content": "Hello world"}}' \
http://127.0.0.1:27124/api/v1/cli/create
# Read today's daily note
curl -H "Authorization: Bearer YOUR_API_KEY" \
http://127.0.0.1:27124/api/v1/cli/daily/read
# Append to your daily note
curl -X POST \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"params": {"content": "- Task from my script"}}' \
http://127.0.0.1:27124/api/v1/cli/daily/appendWhat you can do
The plugin exposes all CLI commands organized into categories:
Category | Examples |
Files | List, create, read, append, prepend, move, rename, delete |
Search | Full-text search, search with context |
Properties | Read, set, and remove frontmatter properties |
Daily notes | Open, read, append, prepend to daily notes |
Tags | List tags, get tag info |
Tasks | List and manage tasks |
Links | Outgoing links, backlinks, orphans, dead ends |
Templates | List, read, and insert templates |
Bookmarks | List and add bookmarks |
Plugins | List, install, enable, disable, uninstall |
Themes | List, set, install, uninstall |
Sync | Status, history, restore |
Publish | Status, publish, unpublish |
Workspaces | List, save, load, delete layouts |
And more | Bases, CSS snippets, file history, word count... |
Two ways to connect
REST API
Standard HTTP endpoints at /api/v1/cli/*. Use from any language or tool that can make HTTP requests.
GET /api/v1/cli/files # Read-only commands use GET
POST /api/v1/cli/create # Write commands use POST
DELETE /api/v1/cli/delete # Delete commands use DELETECLI colons become slashes in URLs: property:set becomes /api/v1/cli/property/set.
MCP server
An MCP endpoint at /mcp for AI assistant integration. Uses the Code Mode pattern — just 2 tools (search and execute) enable progressive discovery of all commands, keeping the tool count fixed regardless of how many CLI commands exist.
search— Discover commands by name, description, or categoryexecute— Run any CLI command by name
Configure your MCP client with:
URL:
http://127.0.0.1:27124/mcpTransport: StreamableHTTP
Auth: Bearer token (your API key)
Claude Desktop's config file only accepts stdio servers, so it needs the mcp-remote bridge instead of the URL directly. See MCP integration for client-specific setup.
Security
The plugin is designed with security in mind:
Localhost only by default — only your machine can reach the server
API key authentication — auto-generated 64-character key, required for all CLI commands
Dangerous commands disabled — commands like
eval,restart, anddevtoolsare blocked unless you explicitly opt inPer-command blocklist — block specific commands you don't want accessible
No shell injection — CLI commands use
execFile, notexec
To expose the server on your network, change the bind address to 0.0.0.0 in settings. An API key is enforced in this mode.
Configuration
All settings are accessible from Settings > REST and MCP server.
Setting | Default | Description |
Port |
| HTTP server port |
Bind address |
|
|
Auto-start | On | Start server when plugin loads |
REST API | On | Enable REST endpoints |
MCP server | On | Enable MCP endpoint |
Dangerous commands | Off | Allow eval, restart, devtools, etc. |
Blocked commands | (none) | Comma-separated list of commands to block |
CORS | Off | Allow cross-origin requests |
Request timeout | 30s | Max CLI command execution time |
Default vault | (none) | Fallback vault for requests without a vault parameter |
Documentation
User guide — Setup, usage, configuration, and troubleshooting
API reference — Endpoints, request/response formats, status codes
MCP integration — Setting up AI assistant connections
Command reference — All supported commands
What's new after updates. After a plugin update, a one-time dialog shows the release notes you just received (including skipped versions) with ways to support development. Never shown on fresh installs or regular restarts.
License
MIT License — see LICENSE for details.
My other Obsidian plugins
Plugin | What it does |
Local-first Agentic Resource Discovery publisher and registry that serves your AI skills and tools to agents over a local HTTP and MCP server | |
Export books (one manifest note + linked chapter notes) to EPUB and PDF via Pandoc | |
Display your notes as a visual bookshelf via a custom Bases view | |
Serialize Dataview queries to Markdown, and keep the Markdown representation up to date | |
Replace variables across your vault using HTML comment markers. Supports static values and dynamic functions | |
Publish your vault notes to a Ghost blog with configurable presets for tags, newsletters, and frontmatter conventions | |
A custom Bases view that renders notes as an interactive force-directed graph with explored/unexplored tracking | |
Index hidden root-level folders (e.g. .claude) so they appear in the file tree, metadata cache, and Bases | |
Custom Base views for journaling and periodic reviews | |
Render your notes as configurable Kanban boards and calendars inside Bases, with statuses, ordering, relationships, and scheduling | |
Capture and visualize the data that matters in your life | |
A 2D pixel art village where your notes become villagers you can explore and chat with using AI | |
Adds strong typing support and powerful automation support for notes | |
Connect to the reMarkable cloud, list, download, and sync notebook pages as images | |
Use AI models with ease via the Replicate.com integration | |
Browse, compare, and restore previous versions of your notes using built-in file-recovery snapshots | |
Transcribe images to markdown using Ollama vision models | |
Publish social media posts with ease using the Typefully integration | |
Automatically update front matter to include creation and last update times |
Everything I build is documented in my newsletter and on my YouTube channel.
News & support
To stay up to date about this plugin, Obsidian in general, Personal Knowledge Management and note-taking:
Subscribe to my newsletter
Subscribe to my YouTube channel
Join the Knowii community and learn to organize your notes and put your knowledge to work, together with fellow knowledge workers
If this plugin is useful to you, here are the best ways to support my work ❤️:
Found a bug or have an idea? Open an issue.
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
- Alicense-qualityDmaintenanceProvides 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.Last updated36MIT
- Alicense-qualityCmaintenanceEnables external applications to interact with an Obsidian vault through MCP tools, including semantic search and file operations.Last updated32713AGPL 3.0
- Alicense-qualityAmaintenanceAn Obsidian plugin that runs an MCP server, enabling external LLM tools to read, search, create, and modify notes in your vault via HTTP or stdio transport.Last updated1632MIT
- Flicense-qualityFmaintenanceEnables natural language interaction with Obsidian vaults through an MCP server, providing hybrid search, file management, and AI-powered analysis.Last updated2
Related MCP Connectors
Hosted MCP server connecting claude.ai, ChatGPT and other AI apps to your own computer
Connect AI assistants to your GitHub-hosted Obsidian vault to seamlessly access, search, and analy…
A comprehensive Model Context Protocol (MCP) server that enables AI assistants to interact with yo…
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/dsebastien/obsidian-cli-rest'
If you have feedback or need assistance with the MCP directory API, please join our Discord server