MCP Obsidian Server MCP Server

1

Add it to Claude Code

Run this in a terminal.

Run in terminal
claude mcp add -e "OBSIDIAN_API_KEY=${OBSIDIAN_API_KEY}" mcp-obsidian-ef80 -- bunx @fazer-ai/mcp-obsidian@latest
Required:OBSIDIAN_API_KEY+ 3 optional
README.md

Interact with your Obsidian vault through the Local REST API plugin

MCP server for Obsidian (TypeScript + Bun)

A Model-Context-Protocol (MCP) server that lets Claude (or any MCP-compatible LLM) interact with your Obsidian vault through the **Local REST API** community plugin – written in TypeScript and runnable with bunx.


✨ Components

Tools

Tool name Description
obsidian_status Returns basic details about the Obsidian Local REST API server and your authentication status
obsidian_delete_active Deletes the note that is currently active in the Obsidian UI
obsidian_get_active Retrieves the full content of the active note (Markdown or JSON view)
obsidian_patch_active Inserts, replaces or prepends content in the active note relative to a heading, block reference, or front-matter field
obsidian_post_active Appends Markdown to the end of the active note
obsidian_put_active Replaces the entire body of the active note
obsidian_get_commands Lists every command available in Obsidian’s command palette
obsidian_execute_command Executes a specific Obsidian command by its ID
obsidian_open_file Opens the given file inside Obsidian (creates it if missing); optional flag to open in a new leaf
obsidian_delete_periodic Deletes the current daily / weekly / monthly / quarterly / yearly note for the requested period
obsidian_get_periodic Returns the content of the current periodic note for the requested period
obsidian_patch_periodic Inserts / replaces content in a periodic note relative to a heading, block reference, or front-matter field
obsidian_post_periodic Appends Markdown to the periodic note (creates it if it doesn’t exist)
obsidian_put_periodic Replaces the entire body of a periodic note
obsidian_search_dataview Runs a Dataview-DQL query across the vault and returns matching rows
obsidian_search_json_logic Runs a JsonLogic query against structured note metadata
obsidian_simple_search Performs a plain-text fuzzy search with optional surrounding context
obsidian_list_vault_root Lists all files and directories at the root of your vault
obsidian_list_vault_directory Lists files and directories inside a specific folder of the vault
obsidian_delete_file Deletes a specific file (or directory) in the vault
obsidian_get_file Retrieves the content of a file in the vault (Markdown or JSON view)
obsidian_patch_file Inserts / replaces content in an arbitrary file relative to a heading, block reference, or front-matter field
obsidian_post_file Appends Markdown to a file (creates it if it doesn’t exist)
obsidian_put_file Creates a new file or replaces the entire body of an existing file

See Obsidian's Local REST API specifications for more details.


Example prompts

# Summarize the latest “architecture call” note
# (Claude will transparently call list_files_in_vault → get_file_contents)
Get the contents of the last “architecture call” note and summarize them.

# Find all mentions of Cosmos DB
Search for all files where “Azure CosmosDb” is mentioned and explain the context briefly.

# Create a summary note
Summarize yesterday’s meeting and save it as “summaries/2025-04-24-meeting.md”. Add a short intro suitable for e-mail.

⚙️ Configuration

Obsidian REST API key

There are two ways to pass the Obsidian API key to the server:

  1. Server config (recommended) – pass it via the env field in your Claude (or other client) MCP-server declaration:
// claude_desktop_config.json
{
  "mcpServers": {
    "@fazer-ai/mcp-obsidian": {
      "command": "bunx",
      "args": ["@fazer-ai/mcp-obsidian@latest"],
      "env": {
        "OBSIDIAN_API_KEY": "your-obsidian-api-key"
      }
    }
  }
}

[!NOTE] Use @fazer-ai/mcp-obsidian@latest to ensure you always run the most up to date version of the server.

  1. Alternatively, you can use an .env file. Place the key in the .env you created above. Note it must be placed in the working directory where the MCP server is running.

Environment variables

You can use the .env.example file as reference to create your own .env file.

OBSIDIAN_API_KEY=   # Obtain this from the plugin settings in Obsidian
OBSIDIAN_PROTOCOL=http
OBSIDIAN_HOST=localhost
OBSIDIAN_PORT=27123 # Port the Local REST API plugin is bound to

🛠 Development

Running local version on Claude Desktop

After cloning this repo, you can update Claude's config to run your local version of the server instead of pulling from npm. This is useful for quickly testing change

Tools (24)

obsidian_statusReturns basic details about the Obsidian Local REST API server and your authentication status
obsidian_delete_activeDeletes the note that is currently active in the Obsidian UI
obsidian_get_activeRetrieves the full content of the active note
obsidian_patch_activeInserts, replaces or prepends content in the active note
obsidian_post_activeAppends Markdown to the end of the active note
obsidian_put_activeReplaces the entire body of the active note
obsidian_get_commandsLists every command available in Obsidian’s command palette
obsidian_execute_commandExecutes a specific Obsidian command by its ID
obsidian_open_fileOpens the given file inside Obsidian
obsidian_delete_periodicDeletes the current daily, weekly, monthly, quarterly, or yearly note
obsidian_get_periodicReturns the content of the current periodic note
obsidian_patch_periodicInserts or replaces content in a periodic note
obsidian_post_periodicAppends Markdown to the periodic note
obsidian_put_periodicReplaces the entire body of a periodic note
obsidian_search_dataviewRuns a Dataview-DQL query across the vault
obsidian_search_json_logicRuns a JsonLogic query against structured note metadata
obsidian_simple_searchPerforms a plain-text fuzzy search
obsidian_list_vault_rootLists all files and directories at the root of your vault
obsidian_list_vault_directoryLists files and directories inside a specific folder
obsidian_delete_fileDeletes a specific file or directory in the vault
obsidian_get_fileRetrieves the content of a file in the vault
obsidian_patch_fileInserts or replaces content in an arbitrary file
obsidian_post_fileAppends Markdown to a file
obsidian_put_fileCreates a new file or replaces the entire body of an existing file

Environment Variables

OBSIDIAN_API_KEYrequiredAPI key obtained from the Local REST API plugin settings in Obsidian
OBSIDIAN_PROTOCOLProtocol for the REST API (e.g., http)
OBSIDIAN_HOSTHost address for the REST API
OBSIDIAN_PORTPort the Local REST API plugin is bound to

Configuration

claude_desktop_config.json
{"mcpServers": {"@fazer-ai/mcp-obsidian": {"command": "bunx", "args": ["@fazer-ai/mcp-obsidian@latest"], "env": {"OBSIDIAN_API_KEY": "your-obsidian-api-key"}}}}

Try it

Get the contents of the last 'architecture call' note and summarize them.
Search for all files where 'Azure CosmosDb' is mentioned and explain the context briefly.
Summarize yesterday’s meeting and save it as 'summaries/2025-04-24-meeting.md'.
List all files in my 'projects' folder and tell me which ones were modified recently.

Frequently Asked Questions

What are the key features of MCP Obsidian Server?

Full CRUD operations for notes and files within an Obsidian vault. Support for Dataview-DQL and JsonLogic queries for advanced searching. Ability to execute Obsidian command palette commands programmatically. Management of periodic notes (daily, weekly, monthly, etc.). Integration with Obsidian Local REST API for secure vault access.

What can I use MCP Obsidian Server for?

Automating the summarization of daily meeting notes into a structured format. Querying complex project metadata across a vault using Dataview. Quickly appending research findings to specific project files without leaving the chat. Managing vault organization by programmatically listing and moving files.

How do I install MCP Obsidian Server?

Install MCP Obsidian Server by running: bunx @fazer-ai/mcp-obsidian@latest

What MCP clients work with MCP Obsidian Server?

MCP Obsidian Server works with any MCP-compatible client including Claude Desktop, Claude Code, Cursor, and other editors with MCP support.

Turn this server into reusable context

Keep MCP Obsidian Server docs, env vars, and workflow notes in Conare so your agent carries them across sessions.

Need the old visual installer? Open Conare IDE.
Open Conare