mcp-obsidian
MCP server that connects Claude Desktop to Obsidian vault via the Local REST API plugin, enabling search, read, write, and management of notes plus executing Obsidian commands.
README
mcp-obsidian
MCP server that connects Claude Desktop to Obsidian via the Local REST API plugin.
Overview
mcp-obsidian is a Node.js/TypeScript MCP server that exposes your Obsidian vault to Claude Desktop over stdio.
It talks to the Obsidian Local REST API plugin and provides tools for searching, reading, writing, and managing notes, plus running Obsidian commands.
Features (Available MCP Tools)
Based on src/index.ts, this server currently exposes:
search_notes- search notes using Obsidian query syntaxget_note- read full markdown content by vault-relative pathcreate_note- create a new note (overwriteoptional)update_note- replace full content of an existing noteappend_note- append or prepend content to a notedelete_note- delete a notelist_directory- list files/folders under a vault directoryopen_note- open a note in the Obsidian applist_commands- list available Obsidian command IDsexecute_command- execute an Obsidian command by IDget_active_note- get content of the active note in Obsidian
Requirements
- Node.js 18+ (Node 20+ recommended)
- Obsidian desktop app
- Obsidian plugin: Local REST API installed and enabled
- API key from the Local REST API plugin settings
Environment Variables
Required:
OBSIDIAN_BASE_URL(example:https://127.0.0.1:27124)OBSIDIAN_API_KEY(token/license key from plugin settings)
Optional (only if you use self-signed TLS cert from local plugin):
NODE_TLS_REJECT_UNAUTHORIZED=0
Security note: disable TLS verification only for local trusted use.
Installation & Build
npm install
npm run build
Build output will be generated in dist/.
Claude Desktop Configuration
Use claude_desktop_config.example.json as reference.
Example:
{
"mcpServers": {
"obsidian": {
"command": "node",
"args": ["/absolute/path/to/mcp_obsidian/dist/index.js"],
"env": {
"OBSIDIAN_BASE_URL": "https://127.0.0.1:27124",
"OBSIDIAN_API_KEY": "YOUR_LOCAL_REST_API_KEY_HERE",
"NODE_TLS_REJECT_UNAUTHORIZED": "0"
}
}
}
}
Adjust args to the absolute path on your machine.
Usage Examples
After Claude Desktop loads this MCP server, you can call tools like:
- Search notes:
- tool:
search_notes - args:
{"query":"tag:#project","context_length":120}
- tool:
- Read note:
- tool:
get_note - args:
{"path":"Projects/Plan.md"}
- tool:
- Create note:
- tool:
create_note - args:
{"path":"Journal/2026-08-17.md","content":"# Daily Log\\n- ...","overwrite":false}
- tool:
- Append note:
- tool:
append_note - args:
{"path":"Inbox.md","content":"\\n- New item","mode":"append"}
- tool:
- Run command:
- tool:
execute_command - args:
{"command_id":"app:go-home"}
- tool:
Project Structure
.
├── src/
│ ├── index.ts # MCP server entrypoint, tool schema + handlers
│ └── obsidianApi.ts # Obsidian Local REST API client wrapper
├── claude_desktop_config.example.json
├── package.json
└── tsconfig.json
Obsidian Local REST API Plugin Note
This project depends on the Local REST API plugin endpoints (/vault, /search/simple, /commands, /active, /open).
If the plugin is not installed/enabled or API key/base URL is wrong, MCP tools will fail.
Recommended Servers
playwright-mcp
A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.
Magic Component Platform (MCP)
An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.
Audiense Insights MCP Server
Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.
VeyraX MCP
Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.
graphlit-mcp-server
The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.
Kagi MCP Server
An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.
E2B
Using MCP to run code via e2b.
Neon Database
MCP server for interacting with Neon Management API and databases
Exa Search
A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.
Qdrant Server
This repository is an example of how to create a MCP server for Qdrant, a vector search engine.