Obsidian Vault▌
by cyanheads
Interact with your Obsidian vault for powerful note taking, file operations, and metadata management using the Obsidian
Enables interaction with Obsidian vaults for file operations, content search, and metadata management, facilitating note-taking and knowledge base organization.
Both formats append explainx.ai attribution and the canonical URL for this MCP server listing.
best for
- / Knowledge workers using Obsidian for note-taking
- / Researchers organizing and searching large note collections
- / Content creators managing writing projects
- / Students building personal knowledge bases
capabilities
- / Read and write Obsidian notes
- / Search vault content and metadata
- / Create and organize files and folders
- / Manage note metadata and properties
- / Browse vault structure and navigation
- / Handle attachments and media files
what it does
Connects AI agents to Obsidian vaults for reading, writing, and managing notes. Requires the Obsidian Local REST API plugin to be installed.
about
Obsidian Vault is a community-built MCP server published by cyanheads that provides AI assistants with tools and capabilities via the Model Context Protocol. Interact with your Obsidian vault for powerful note taking, file operations, and metadata management using the Obsidian It is categorized under file systems, productivity.
how to install
You can install Obsidian Vault in your AI client of choice. Use the install panel on this page to get one-click setup for Cursor, Claude Desktop, VS Code, and other MCP-compatible clients. This server runs locally on your machine via the stdio transport.
license
Apache-2.0
Obsidian Vault is released under the Apache-2.0 license. This is a permissive open-source license, meaning you can freely use, modify, and distribute the software.
readme
Obsidian MCP Server
Empower your AI agents and development tools with seamless Obsidian integration!
An MCP (Model Context Protocol) server providing comprehensive access to your Obsidian vault. Enables LLMs and AI agents to read, write, search, and manage your notes and files through the Obsidian Local REST API plugin.
Built on the cyanheads/mcp-ts-template, this server follows a modular architecture with robust error handling, logging, and security features.
🚀 Core Capabilities: Obsidian Tools 🛠️
This server equips your AI with specialized tools to interact with your Obsidian vault:
| Tool Name | Description | Key Features |
|---|---|---|
obsidian_read_note | Retrieves the content and metadata of a specified note. | - Read in markdown or json format.<br/>- Case-insensitive path fallback.<br/>- Includes file stats (creation/modification time). |
obsidian_update_note | Modifies notes using whole-file operations. | - append, prepend, or overwrite content.<br/>- Can create files if they don't exist.<br/>- Targets files by path, active note, or periodic note. |
obsidian_search_replace | Performs search-and-replace operations within a target note. | - Supports string or regex search.<br/>- Options for case sensitivity, whole word, and replacing all occurrences. |
obsidian_global_search | Performs a search across the entire vault. | - Text or regex search.<br/>- Filter by path and modification date.<br/>- Paginated results. |
obsidian_list_notes | Lists notes and subdirectories within a specified vault folder. | - Filter by file extension or name regex.<br/>- Provides a formatted tree view of the directory. |
obsidian_manage_frontmatter | Atomically manages a note's YAML frontmatter. | - get, set, or delete frontmatter keys.<br/>- Avoids rewriting the entire file for metadata changes. |
obsidian_manage_tags | Adds, removes, or lists tags for a note. | - Manages tags in both YAML frontmatter and inline content. |
obsidian_delete_note | Permanently deletes a specified note from the vault. | - Case-insensitive path fallback for safety. |
Table of Contents
| Overview | Features | Configuration | | Project Structure | Vault Cache Service | | Tools | Resources | Development | License |
Overview
The Obsidian MCP Server acts as a bridge, allowing applications (MCP Clients) that understand the Model Context Protocol (MCP) – like advanced AI assistants (LLMs), IDE extensions, or custom scripts – to interact directly and safely with your Obsidian vault.
Instead of complex scripting or manual interaction, your tools can leverage this server to:
- Automate vault management: Read notes, update content, manage frontmatter and tags, search across files, list directories, and delete files programmatically.
- Integrate Obsidian into AI workflows: Enable LLMs to access and modify your knowledge base as part of their research, writing, or coding tasks.
- Build custom Obsidian tools: Create external applications that interact with your vault data in novel ways.
Built on the robust mcp-ts-template, this server provides a standardized, secure, and efficient way to expose Obsidian functionality via the MCP standard. It achieves this by communicating with the powerful Obsidian Local REST API plugin running inside your vault.
Developer Note: This repository includes a .clinerules file that serves as a developer cheat sheet for your LLM coding agent with quick reference for the codebase patterns, file locations, and code snippets.
Features
Core Utilities
Leverages the robust utilities provided by cyanheads/mcp-ts-template:
- Logging: Structured, configurable logging (file rotation, console, MCP notifications) with sensitive data redaction.
- Error Handling: Centralized error processing, standardized error types (
McpError), and automatic logging. - Configuration: Environment variable loading (
dotenv) with comprehensive validation. - Input Validation/Sanitization: Uses
zodfor schema validation and custom sanitization logic. - Request Context: Tracking and correlation of operations via unique request IDs.
- Type Safety: Strong typing enforced by TypeScript and Zod schemas.
- HTTP Transport Option: Built-in Hono server with SSE, session management, CORS support, and pluggable authentication strategies (JWT and OAuth 2.1).
Obsidian Integration
- Obsidian Local REST API Integration: Communicates directly with the Obsidian Local REST API plugin via HTTP requests managed by the
ObsidianRestApiService. - Comprehensive Command Coverage: Exposes key vault operations as MCP tools (see Tools section).
- Vault Interaction: Supports reading, updating (append, prepend, overwrite), searching (global text/regex, search/replace), listing, deleting, and managing frontmatter and tags.
- Targeting Flexibility: Tools can target files by path, the currently active file in Obsidian, or periodic notes (daily, weekly, etc.).
- Vault Cache Service: An intelligent in-memory cache that improves performance and resilience. It caches vault content, provides a fallback for the global search tool if the live API fails, and periodically refreshes to stay in sync.
- Safety Features: Case-insensitive path fallbacks for file operations, clear distinction between modification types (append, overwrite, etc.).
Installation
Prerequisites
- Obsidian: You need Obsidian installed.
- Obsidian Local REST API Plugin: Install and enable the Obsidian Local REST API plugin within your Obsidian vault.
- API Key: Configure an API key within the Local REST API plugin settings in Obsidian. You will need this key to configure the server.
- Node.js & npm: Ensure you have Node.js (v18 or later recommended) and npm installed.
Configuration
MCP Client Settings
Add the following to your MCP client's configuration file (e.g., cline_mcp_settings.json). This configuration uses npx to run the server, which will automatically download & install the package if not already present:
{
"mcpServers": {
"obsidian-mcp-server": {
"command": "npx",
"args": ["obsidian-mcp-server"],
"env": {
"OBSIDIAN_API_KEY": "YOUR_API_KEY_FROM_OBSIDIAN_PLUGIN",
"OBSIDIAN_BASE_URL": "http://127.0.0.1:27123",
"OBSIDIAN_VERIFY_SSL": "false",
"OBSIDIAN_ENABLE_CACHE": "true"
},
"disabled": false,
"autoApprove": []
}
}
}
Note: Verify SSL is set to false here because the Obsidian Local REST API plugin uses a self-signed certificate by default. If you are deploying this in a production environment, consider using the encrypted HTTPS endpoint and set OBSIDIAN_VERIFY_SSL to true after configuring your server to trust the self-signed certificate.
If you installed from source, change command and args to point to your local build:
{
"mcpServers": {
"obsidian-mcp-server": {
"command": "node",
"args": ["/path/to/your/obsidian-mcp-server/dist/index.js"],
"env": {
"OBSIDIAN_API_KEY": "YOUR_OBSIDIAN_API_KEY",
"OBSIDIAN_BASE_URL": "http://127.0.0.1:27123",
"OBSIDIAN_VERIFY_SSL": "false",
"OBSIDIAN_ENABLE_CACHE": "true"
---
FAQ
- What is the Obsidian Vault MCP server?
- Obsidian Vault is a Model Context Protocol (MCP) server profile on explainx.ai. MCP lets AI hosts (e.g. Claude Desktop, Cursor) call tools and resources through a standard interface; this page summarizes categories, install hints, and community ratings.
- How do MCP servers relate to agent skills?
- Skills are reusable instruction packages (often SKILL.md); MCP servers expose live capabilities. Teams frequently combine both—skills for workflows, MCP for APIs and data. See explainx.ai/skills and explainx.ai/mcp-servers for parallel directories.
- How are reviews shown for Obsidian Vault?
- This profile displays 31 aggregated ratings (sample rows for discoverability plus signed-in user reviews). Average score is about 4.5 out of 5—verify behavior in your own environment before production use.
Use Cases▌
Code & Document Analysis
Read, analyze, and understand files in your project
Example
Summarize README, analyze code structure, find TODO comments across codebase
Navigate large codebases 5x faster, understand projects quickly
Automated File Operations
Create, move, rename, and organize files based on natural language instructions
Example
Organize downloads by file type, rename files following convention, batch process images
Save hours on manual file organization
Content Search & Extraction
Search files for patterns, extract data, find information across directories
Example
Find all config files with API keys, extract emails from documents, search logs for errors
Find information instantly instead of manual grep/find
File Generation & Templates
Generate boilerplate files, apply templates, create project structures
Example
Create React component with tests and styles, generate OpenAPI spec, scaffold new project
Eliminate repetitive file creation work
Implementation Guide▌
Prerequisites
- ›Claude Desktop or Cursor with MCP support
- ›File system permissions for directories you want to access
- ›Understanding of file paths and directory structure
- ›Backup of important files before bulk operations
Time Estimate
10-20 minutes including configuration
Installation Steps
- 1.Install filesystem MCP server (often built-in with Claude Desktop)
- 2.Configure allowed directories in MCP config for security
- 3.Test read: 'Show me contents of ~/Documents/test.txt'
- 4.Test write: 'Create a new file notes.md in current directory'
- 5.Test search: 'Find all .js files containing TODO'
- 6.Test batch operations: 'Rename all .jpeg files to .jpg'
- 7.Verify file permissions and access controls
Troubleshooting
- ⚠Permission denied: Check file/directory permissions, run with appropriate user
- ⚠Path not found: Verify path is absolute or relative to working directory
- ⚠MCP server can't access directory: Add to allowed directories in config
- ⚠File already exists: Use overwrite flag or check before writing
- ⚠Operation failed: Check disk space, file locks, antivirus interference
Best Practices▌
✓ Do
- +Configure allowed directories explicitly—don't grant full filesystem access
- +Back up important files before bulk operations
- +Use dry-run mode for risky operations when available
- +Validate file paths before operations
- +Set appropriate file permissions on created files
- +Log file operations for audit trail
- +Test operations on sample files first
✗ Don't
- −Don't grant MCP access to system directories (/etc, /System)
- −Don't allow write access to production config files
- −Don't skip backup before bulk delete/move operations
- −Don't use for sensitive files (passwords, keys) without encryption
- −Don't ignore file permission errors—investigate root cause
- −Don't expose personal documents without considering privacy
💡 Pro Tips
- ★Use .gitignore patterns to exclude sensitive files from AI access
- ★Create sandboxed working directory for file experiments
- ★Combine with version control (git) for easy rollback
- ★Use file watching for real-time monitoring and reactions
- ★Create templates for common file generation tasks
- ★Leverage file metadata (timestamps, size) for smart organization
Technical Details▌
Architecture
MCP server provides file I/O operations (read, write, search, metadata) as tools Claude can invoke with natural language instructions.
Protocols
- Local file system API
- Glob patterns for search
- File streams for large files
Compatibility
- macOS
- Linux
- Windows
- Local files only (no remote filesystems by default)
When to Use This▌
✓ Use When
Use for code analysis, file organization, content search, template generation, and automating repetitive file operations. Best for local development workflows.
✗ Avoid When
Avoid for system-critical files, sensitive credentials, production environments, or when file integrity is paramount. Don't use on files you can't afford to lose.
Integration▌
- →Combine with git for version-controlled file operations
- →Integrate with code editors for seamless workflow
- →Use with backup tools for safety net
- →Pair with file watchers for automated reactions
Discussion
Product Hunt–style comments (not star reviews)- No comments yet — start the thread.
List & Promote Your MCP Server
Share your MCP server with the developer community
Ratings
4.5★★★★★31 reviews- ★★★★★Ganesh Mohane· Dec 24, 2024
Obsidian Vault is among the better-indexed MCP projects we tried; the explainx.ai summary tracks the official description.
- ★★★★★Emma Lopez· Dec 8, 2024
Useful MCP listing: Obsidian Vault is the kind of server we cite when onboarding engineers to host + tool permissions.
- ★★★★★Emma Malhotra· Nov 27, 2024
Obsidian Vault reduced integration guesswork — categories and install configs on the listing matched the upstream repo.
- ★★★★★Sakshi Patil· Nov 15, 2024
Obsidian Vault is a well-scoped MCP server in the explainx.ai directory — install snippets and categories matched our Claude Code setup.
- ★★★★★Yash Thakker· Nov 7, 2024
We evaluated Obsidian Vault against two servers with overlapping tools; this profile had the clearer scope statement.
- ★★★★★Dhruvi Jain· Oct 26, 2024
I recommend Obsidian Vault for teams standardizing on MCP; the explainx.ai page compares cleanly with sibling servers.
- ★★★★★Arjun Sharma· Oct 18, 2024
We wired Obsidian Vault into a staging workspace; the listing’s GitHub and npm pointers saved time versus hunting across READMEs.
- ★★★★★Chaitanya Patil· Oct 6, 2024
Obsidian Vault has been reliable for tool-calling workflows; the MCP profile page is a good permalink for internal docs.
- ★★★★★Liam Mehta· Oct 2, 2024
Strong directory entry: Obsidian Vault surfaces stars and publisher context so we could sanity-check maintenance before adopting.
- ★★★★★Luis Liu· Sep 25, 2024
Obsidian Vault has been reliable for tool-calling workflows; the MCP profile page is a good permalink for internal docs.
showing 1-10 of 31