Uses environment variables for configuration, supporting .env files to store connection settings like vault path, API token, and port for the Obsidian Local REST API.
Supports installation via Git clone and includes configuration for version control with .gitignore to protect sensitive configuration files.
Hosts the project repository with links to related projects and installation instructions for cloning from GitHub.
Requires Node.js as the runtime environment for the MCP server, with specific version requirements (v16 or higher).
Provides tools for reading, creating, updating, and deleting notes in an Obsidian knowledge base, as well as managing folder structures and performing full-text searches across the vault.
Obsidian MCP (Model Context Protocol) Server
English | 中文
This project implements a Model Context Protocol (MCP) server for connecting AI models with Obsidian knowledge bases. Through this server, AI models can directly access and manipulate Obsidian notes, including reading, creating, updating, and deleting notes, as well as managing folder structures.
Created by huangyihe
- Prompt House: https://prompthouse.app/
- YouTube: https://www.youtube.com/@huanyihe777
- Twitter: https://x.com/huangyihe
- Community: https://t.zsxq.com/19IaNz5wK
Features
- Seamless integration with Obsidian knowledge bases
- Support for reading, creating, updating, and deleting notes
- Support for creating, renaming, moving, and deleting folders
- Full-text search functionality
- Compliance with the Model Context Protocol specification
Supported Tools
The MCP server provides the following tools:
list_notes
: List all notes in the Obsidian vaultread_note
: Read the content of a note in the Obsidian vaultcreate_note
: Create a new note in the Obsidian vaultsearch_vault
: Search for content in the Obsidian vaultdelete_note
: Delete a note from the Obsidian vaultmove_note
: Move or rename a note to a new location in the Obsidian vaultmanage_folder
: Create, rename, move, or delete a folder in the Obsidian vault
Prerequisites
- Node.js (v16 or higher)
- Obsidian desktop application
- Obsidian Local REST API plugin (needs to be installed in Obsidian)
Installation Options
Choose the most suitable installation method based on your technical level and usage needs:
Method | Target Users | Advantages | Disadvantages |
---|---|---|---|
🎯 One-Click Install (DXT) | General users | Simplest, GUI configuration | Requires DXT-enabled client |
📦 Remote Install (NPM) | Node.js users | Auto-updates, no installation | Requires network connection |
🔧 Local Deploy | Advanced users | Offline use, full control | Manual updates required |
Method 1: One-Click Install (DXT Package) - Recommended
Suitable for: General users who want the simplest installation experience
Step 1: Download DXT File
Download the pre-built extension package: obsidian-mcp.dxt
Step 2: Install and Configure
Double-click the downloaded .dxt
file and the system will automatically install the extension. Then fill in the configuration interface:
- Vault Path: Your Obsidian vault path (e.g.,
/Users/username/Documents/MyVault
) - API Token: Obsidian Local REST API plugin token
- API Port: API port number (default:
27123
)
Method 2: Remote Install (NPM Package)
Suitable for: Node.js developers who want automatic updates and version management
Simply add the following configuration to your MCP client config file:
Using npx (recommended, no pre-installation required):
Note: First run will automatically download the package, subsequent runs use cache, ensuring you always use the latest version.
Method 3: Local Deploy
Suitable for: Users who need customization, advanced control, or offline usage
Option A: Global Install (Recommended)
Step 1: Global Install
Step 2: MCP Client Configuration
Option B: Source Deploy
Step 1: Clone Repository
Step 2: Install Dependencies
Step 3: Build Project
Step 4: Configure Environment Variables
Step 5: Start Server
Option C: Docker Deploy
Using Docker Compose (Recommended)
Using Docker Command
Configuration Guide
Environment Variables
All installation methods require the following configuration:
OBSIDIAN_VAULT_PATH
: Path to your Obsidian vaultOBSIDIAN_API_TOKEN
: API token for Obsidian Local REST API pluginOBSIDIAN_API_PORT
: API port for Obsidian Local REST API (default: 27123)
⚠️ Important: For remote NPM installation and global installation, you MUST use the OBSIDIAN_
prefix for environment variables. The variables VAULT_PATH
, API_TOKEN
without the prefix will not work correctly.
Getting API Token
- Install "Local REST API" plugin in Obsidian
- Generate API Token in plugin settings
- Note the port number (default 27123)
Testing
The project includes a test script to verify server functionality:
Development
- Use
npm run dev
to run the server in development mode - Source code is located in the
src
directory
License
MIT
Contributing
Pull Requests and Issues are welcome!
Related Projects
This server cannot be installed
local-only server
The server can only run on the client's local machine because it depends on local resources.
This project implements a Model Context Protocol (MCP) server for connecting AI models with Obsidian knowledge bases. Through this server, AI models can directly access and manipulate Obsidian notes, including reading, creating, updating, and deleting notes, as well as managing folder structures.
- Features
- Supported Tools
- Prerequisites
- Installation Options
- Method 1: One-Click Install (DXT Package) - Recommended
- Method 2: Remote Install (NPM Package)
- Method 3: Local Deploy
- Configuration Guide
- Testing
- Development
- License
- Contributing
- Related Projects
Related Resources
Related MCP Servers
- -securityFlicense-qualityImplements the Model Context Protocol (MCP) to provide AI models with a standardized interface for connecting to external data sources and tools like file systems, databases, or APIs.Last updated -90Python
- -securityAlicense-qualityA Model Context Protocol server that enables AI assistants to read, write, and manipulate notes in your Obsidian vault through a standardized interface.Last updated -366TypeScriptISC License
- -securityFlicense-qualityAn open-source server implementing the Model Context Protocol (MCP) that enables capturing insights from AI sessions and transforming them into persistent, searchable knowledge accessible across tools.Last updated -TypeScript
- AsecurityAlicenseAqualityA Model Context Protocol server that enables AI assistants like Claude to interact with your Obsidian vault through the Local REST API plugin, allowing reading, creating, searching, and managing notes.Last updated -1918PythonMIT License