obsidian-rest-api
Skill by davepoon
Calls the Obsidian Local REST API directly over HTTP for vault operations the obsidian MCP tools do not expose. It is for users who need to move notes, overwrite files atomically, run commands, or manage periodic notes.
Install obsidian-rest-api
Built from the published package, never by AI.
git clone --depth 1 https://github.com/davepoon/buildwithclaude /tmp/buildwithclaude && mkdir -p ~/.claude/skills && cp -r /tmp/buildwithclaude/plugins/all-skills/skills/obsidian-rest-api ~/.claude/skills/obsidian-rest-apiRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
git clone --depth 1 https://github.com/davepoon/buildwithclaude /tmp/buildwithclaude && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/buildwithclaude/plugins/all-skills/skills/obsidian-rest-api ~/.gemini/antigravity-cli/skills/obsidian-rest-apiAntigravity CLI loads skills from ~/.gemini/antigravity-cli/skills, or .agents/skills for one project.
Skills can run scripts on your machine. Some need an API key: check the README.
About
The obsidian-rest-api skill lets an AI assistant call the Obsidian Local REST API directly over HTTP. It covers vault operations that the connected obsidian MCP tools do not expose, such as moving or renaming a note, overwriting a whole file with PUT, acting on the active file, running Obsidian commands, opening a note in the UI, listing tags with counts, and managing date-specific periodic notes.
A wrapper script, scripts/olrapi.sh, reads the host, port and key from the obsidian MCP server config or OBSIDIAN_* environment variables and handles the plugin's self-signed TLS certificate. The skill says to prefer the mcp__obsidian__* tools for plain read, append, patch, delete and search, and to use it only when a method is missing from MCP. It is aimed at users who run the Obsidian Local REST API plugin and want fuller API coverage from their assistant.
Written from the project's SKILL.md and checked against it.
What it can do
- Move or rename notesMoves a note with the custom MOVE method, preserving history and updating internal links.
- Atomic file overwriteOverwrites a whole note with PUT instead of delete and recreate.
- Active file actionsActs on the currently open active file in the Obsidian UI.
- Run Obsidian commandsRuns an Obsidian command from the command palette through the API.
- Open notes in the UIOpens or focuses a note in the Obsidian interface.
- List vault tagsLists all vault tags with their counts.
- Periodic note CRUDCreates, updates and deletes date-specific periodic notes.
- Structured note readsReads a note as JSON with frontmatter, tags and stat using the note JSON accept header.
What you need
- Obsidian Local REST API plugin (obsidian-local-rest-api)
- A connected obsidian MCP server or OBSIDIAN_* environment variables
- API key for the Local REST API plugin
Try asking
- Rename 3-Resources/Draft.md to 3-Resources/Final.md in my vault
- List all tags in my Obsidian vault with their counts
- Open my Inbox todo note in Obsidian in a new tab
Good to know
- Intended as a fallback for operations that have no mcp__obsidian__* tool.
- MOVE returns 409 if the destination exists unless Allow-Overwrite is set.
- The plugin uses a self-signed certificate, so HTTPS calls need curl -k.
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: plugins/all-skills/skills/obsidian-rest-api/SKILL.md, plugins/all-skills/skills/obsidian-rest-api/scripts/olrapi.sh. This looks for known risky patterns and is not a full audit. How grades work
Inside the skill
-
SKILL.md4 KB -
references/api_reference.md8 KB -
scripts/olrapi.sh2 KB
Alternatives to obsidian-rest-api
All alternatives →Creates importable JSON templates for the Obsidian Web Clipper. It is for users who want to clip a site, understand the available variables, or format clipped content.
Harness Creator builds, audits, and improves the instruction and state files that help AI coding agents stay reliable across sessions. It is for developers whose agents forget context, drift out of scope, or claim work is done too early.
Guides an assistant through extracting text from scanned PDFs, photographed pages, and images with OCR. Covers backends, language packs, force-OCR, and performance tuning.
Edits a named local file in place to remove AI-writing patterns, using minimal targeted changes and post-edit verification. Built for users who explicitly ask to clean, rewrite, or humanize that specific file.
Polishes, translates, or tightens existing academic manuscript prose while preserving facts, terminology, and evidence boundaries. Made for researchers revising drafts, including Chinese-to-English translation and LaTeX layout fixes.
Adds PDF form analysis and filling, table extraction, OCR, validation and batch processing to an AI assistant. Aimed at developers who run complex or high-volume PDF workflows.
Compare with obsidian-clipper-template-creator, harness-creator or xberg-extracting-with-ocr
obsidian-rest-api: common questions
Does this replace the obsidian MCP tools?
No. The skill says to use the mcp__obsidian__* tools first for read, append, patch, delete and search, and to fall back to this skill only for operations with no MCP tool.
What happens if the move destination already exists?
The MOVE call returns HTTP 409. Adding the header Allow-Overwrite: true forces the move.
Which ports does the Local REST API use?
The source says the API serves HTTPS on port 27124 and HTTP on port 27123, with HTTPS using a self-signed certificate.
How do I install obsidian-rest-api?
Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.
Is obsidian-rest-api free?
The code is published under the MIT licence. The service it connects to may have its own pricing.
Is obsidian-rest-api safe to use?
It scores 81 of 100. Grades: maintenance A, licence A, quality A. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.
What are alternatives to obsidian-rest-api?
Similar skills: obsidian-clipper-template-creator, harness-creator, xberg-extracting-with-ocr, file-edit-in-place.
