Obsidian Local REST API

Obsidian Local REST API is an MCP server that connects AI assistants to local Obsidian vaults via a local REST API endpoint. Designed for knowledge workers, researchers, and developers who rely on Obsidian for personal note-taking, the server allows Large Language Models to interact directly with markdown files, frontmatter metadata, and directory structures. Instead of relying on raw CRUD operations that quickly exhaust context windows, this server exposes high-level, AI-native tools. Users can perform paginated directory exploration, unified note writing with append, prepend, or overwrite modes, and automated upserting of notes with frontmatter. It also provides specialized routines for retrieving daily notes by relative dates, fetching recently updated documents, discovering related files through shared tags or wikilinks, and executing multi-scope vault searches. The server communicates locally over standard input/output (stdio), ensuring that knowledge bases remain private while enabling conversational agents to search, read, and organize personal documentation.

Category: Files, Documents & PDFs

Tags: knowledge-management, markdown, obsidian, rest-api

Visit Obsidian Local REST API

How to install and configure Obsidian Local REST API

  1. Ensure Node.js (version 18 or higher) or the Bun runtime is installed, along with a running instance of the Obsidian Local REST API plugin. 2. Configure your MCP client, such as Claude Desktop, by opening claude_desktop_config.json. 3. Add obsidian-vault under mcpServers with command npx and args ["obsidian-local-rest-api-mcp"]. 4. Under the env section, set OBSIDIAN_API_URL to your local API address (such as http://obsidian-local-rest-api.test or http://localhost:8000) and provide OBSIDIAN_API_KEY if authentication is configured. 5. Save the configuration and restart the client.

What you can do with Obsidian Local REST API

  • Creating or updating meeting notes and project logs using intelligent upsert tools that handle frontmatter metadata automatically. - Searching markdown vaults across tags, content, and filenames using scoped filters to retrieve relevant project research. - Fetching today's or yesterday's daily note using relative date queries to quickly append new tasks or logs. - Discovering conceptual connections between existing documents by analyzing shared tags and internal markdown links. - Exploring directory hierarchies incrementally with paginated file listings to prevent context overflow in client conversations.

Key facts

  • Open Source
  • https://github.com/j-shelfwood/obsidian-local-rest-api-mcp
  • Files, Documents & PDFs, Notes & Knowledge Management
  • knowledge-management, markdown, obsidian, rest-api

Part of MCP Servers

Related MCP servers

  • MCP LaTeX Server — MCP LaTeX Server is an MCP server that provides tools for creating, editing, validating, and compiling LaTeX documents directly through…
  • MCP JSON — MCP JSON is an MCP server collection that bundles tools for file system operations, Google search, browser-based web automation, and…
  • MCP MD2PDF Server — MCP MD2PDF Server is an MCP server that enables automated conversion of Markdown documents into formatted PDF files with full…
  • MCP Media Processing Server — MCP Media Processing Server is an MCP server that connects AI assistants like Claude Desktop to local media manipulation utilities,…
  • MCP Knowledge Base — MCP Knowledge Base is an MCP server that processes local documents and answers queries based on their contents through similarity…
  • MCP Music Analysis — MCP Music Analysis is an MCP server that enables AI clients like Claude to inspect and process sound recordings using…

How do I install Obsidian Local REST API?

You can run it directly using npx by specifying obsidian-local-rest-api-mcp in your client configuration. Alternatively, clone the repository from GitHub, run bun install to set up dependencies, compile the TypeScript source with bun run build, and run the server using node build/index.js.

What prerequisites are needed to use this server?

You need Node.js 18 or later or the Bun runtime installed on your machine. You also need Obsidian running locally alongside the Obsidian Local REST API plugin accessible via HTTP on your configured port or local test domain.

What can Obsidian Local REST API do?

The server allows AI models to browse vault directories with pagination, read and write files in overwrite or append modes, upsert notes with frontmatter, query daily notes, retrieve recently edited files, discover related notes through links, and search vault content.

Which MCP clients work with Obsidian Local REST API?

Any client supporting the Model Context Protocol over standard input and output (stdio) can use this server. It includes documented configurations for Claude Desktop, VS Code with an MCP extension, and Cherry Studio.

Is Obsidian Local REST API open source?

Yes, this MCP server is an open-source project distributed under the MIT license on GitHub.

  • AI Tools
  • Categories
  • Industries
  • CLI Coding Agents
  • MCP Servers
  • MCP Categories