Search...Search plugins and themes...
⌘K
Sign in
  • Get started
  • Download
  • Pricing
  • Enterprise
  • Account
  • Obsidian
  • Overview
  • Sync
  • Publish
  • Canvas
  • Mobile
  • Web Clipper
  • CLI
  • Learn
  • Help
  • Developers
  • Changelog
  • About
  • Roadmap
  • Blog
  • Resources
  • System status
  • License overview
  • Terms of service
  • Privacy policy
  • Security
  • Community
  • Plugins
  • Themes
  • Discord
  • Forum / 中文论坛
  • Merch store
  • Brand guidelines
Follow us
DiscordTwitterBlueskyThreadsMastodonYouTubeGitHub
© 2026 Obsidian

MCP REST

swaroganswarogan2k downloads

MCP server that connects AI assistants to your vault via the local REST API.

Add to Obsidian
  • Overview
  • Scorecard
  • Updates2

A lightweight MCP (Model Context Protocol) server for Obsidian, built as a thin wrapper over the Obsidian REST API.

Also available as an Obsidian plugin with settings UI, auto-detection of obsidian-api, and one-click MCP server installation.

Zero npm dependencies. Node.js built-ins only.

Features

  • 18 MCP tools — full vault CRUD, search, templates, active file operations
  • MCP prompts — auto-discovery of prompt templates from vault
  • Obsidian plugin — settings tab with auto-detect, install, and copyable config
  • Zero dependencies — uses only Node.js built-in modules
  • UTF-8 correct — all markdown operations preserve Unicode properly
  • PATCH v3 — heading/block/frontmatter targeting + search-replace for precise text substitution
  • Web fetch — built-in HTML to Markdown conversion

Requirements

  • Node.js >= 20
  • obsidian-api plugin (or obsidian-local-rest-api)
  • API key configured in the plugin settings
  • Optionally: Smart Connections plugin (for search_vault_smart)
  • Optionally: Templater plugin (for execute_template and prompts)

Installation

As MCP server

npx -y @swarogan/obsidian-mcp-rest

As Obsidian plugin

  1. Download main.js, manifest.json, and styles.css from the latest release
  2. Create <vault>/.obsidian/plugins/obsidian-mcp-rest/ and place the files there
  3. Enable the plugin in Obsidian settings
  4. The plugin auto-detects obsidian-api settings and provides a copyable MCP config

Configuration

Set environment variables:

Variable Required Default Description
OBSIDIAN_API_KEY Yes — Bearer token from plugin settings
OBSIDIAN_REST_URL No https://127.0.0.1:27124 Obsidian REST API URL
OBSIDIAN_REQUEST_TIMEOUT_MS No 30000 Request timeout in ms

MCP Client Configuration

Claude Code

claude mcp add obsidian -e OBSIDIAN_API_KEY="your-api-key" -- npx -y @swarogan/obsidian-mcp-rest

Claude Desktop / other MCP clients

{
  "mcpServers": {
    "obsidian": {
      "command": "npx",
      "args": ["-y", "@swarogan/obsidian-mcp-rest"],
      "env": {
        "OBSIDIAN_API_KEY": "your-api-key",
        "OBSIDIAN_REST_URL": "https://127.0.0.1:27124"
      }
    }
  }
}

Available MCP Tools

Server

  • get_server_info — API status (no auth required)

Active File

  • get_active_file — read current file (markdown or JSON)
  • update_active_file — replace entire content
  • append_to_active_file — append content
  • patch_active_file — patch heading/block/frontmatter or search-replace text
  • delete_active_file — delete current file
  • show_file_in_obsidian — open file in Obsidian UI

Vault Files

  • list_vault_files — list directory contents
  • get_vault_file — read file by path
  • create_vault_file — create or overwrite file
  • append_to_vault_file — append to file
  • patch_vault_file — patch heading/block/frontmatter or search-replace text
  • delete_vault_file — delete file

Search

  • search_vault — Dataview DQL or JsonLogic queries
  • search_vault_simple — full-text search with context
  • search_vault_smart — semantic search (requires Smart Connections)

Other

  • execute_template — run Templater templates with arguments
  • fetch — download web content, convert HTML to markdown

MCP Prompts

The server supports MCP prompts capability:

  • Auto-discovers .md files in Prompts/ directory with obsidian-mcp-rest-prompt tag
  • Parses tp.mcpTools.prompt(...) calls for argument definitions
  • Executes templates via Templater plugin
  • Strips frontmatter from output

Tests

npm test

28 tests covering tools, prompts, client, UTF-8, PATCH operations, and stdio transport.

Network Usage

This MCP server communicates only with the local Obsidian REST API (default 127.0.0.1:27124). It does not connect to any external services.

The fetch tool makes outbound HTTP requests only when explicitly invoked by the user.

Support

If this project is useful to you and you'd like to support further development, you can do so on Ko-fi.

License

MIT

HealthGood
ReviewSatisfactory
About
Expose Obsidian vault operations through a lightweight MCP server that wraps the Obsidian REST API and can run standalone or as an Obsidian plugin with a settings UI. Perform full vault CRUD, search, templates and active-file operations; auto-discover prompt templates; apply precise PATCH v3 edits (headings, blocks, frontmatter) with search-replace; preserve UTF-8 and convert HTML to Markdown on web fetch.
IntegrationsDevelopersFiles
Details
Current version
0.1.1
Last updated
6 months ago
Created
6 months ago
Updates
2 releases
Downloads
2k
Compatible with
Obsidian 1.0.0+
Platforms
Desktop only
License
MIT
Report bugRequest featureReport plugin
Sponsor
Ko-fi
Author
swaroganswarogan
github.com/vigeron
GitHubswarogan
  1. Community
  2. Plugins
  3. Integrations
  4. MCP REST

Related plugins

Local REST API with MCP

Unlock your automation needs by interacting with your notes over a secure REST API.

BRAT

Easily install a beta version of a plugin for testing.

Claudian

Embeds Claude Code/Codex and other local Agents as AI collaborators in your vault.

Google Drive Sync

Syncs a vault into Google Drive for cross-platform use (works for iOS).

Terminal

Integrate consoles, shells, and terminals.

Sync Engine

The extensible vault synchronization engine: Fast · Free · Reliable. Supports WebDAV, S3, and Google Drive.

Nutstore Sync

Sync your vault with Nutstore (坚果云) using WebDAV protocol.

Claude Code IDE

Connect your vault to Claude Code and share editor context with the CLI.

Notebook Navigator

A better file browser and calendar inspired by Apple Notes, Bear, Evernote and Day One.

LanguageTool Integration

Advanced grammar and spell checking, powered by LanguageTool.