Provides tools for accessing and managing Obsidian vault contents through a local REST API, including reading and writing notes, listing vault contents, searching notes, and retrieving note metadata.
Obsidian MCP REST Server
An MCP (Model Context Protocol) server implementation that provides access to Obsidian vaults through a local REST API. This server allows AI assistants to interact with Obsidian notes and manage vault content through a standardized interface.
Features
Access Obsidian vault contents through MCP
Read and write notes
List vault contents
Search functionality
Secure local REST API integration
Compatible with Claude Desktop and other AI assistants
Prerequisites
Node.js 16 or higher
Obsidian with Local REST API plugin installed and configured
An Obsidian vault with Local REST API enabled
Installation
Install the package globally:
Or if you prefer using a specific version/branch:
Configuration
First, configure Obsidian Local REST API plugin:
Install the Local REST API plugin in Obsidian
Configure the API port (default: 27123)
Generate and save an API key
Create a configuration file
config.json
:
Usage
Start the server:
The server will start and listen for MCP requests via stdin/stdout.
Using with Claude Desktop
Configure Claude Desktop to use this MCP server:
Open Claude Desktop settings
Navigate to the MCP section
Add new server configuration:
Claude can now access your Obsidian vault through commands like:
Available Tools
listNotes
: List all notes in the vault or a specific folderreadNote
: Read the contents of a specific notewriteNote
: Create or update a notesearchNotes
: Search for notes using a query stringgetMetadata
: Get metadata for a specific note
Security
The server only runs locally and communicates through stdin/stdout
All requests to Obsidian REST API are authenticated with your API key
No external network access is required
Data remains local to your machine
Development
Clone the repository:
Install dependencies:
Build the project:
Run tests:
Troubleshooting
Installation Issues
If you encounter any installation issues, try these alternatives:
Clone and install locally:
If you see TypeScript-related errors, ensure TypeScript is installed globally:
Contributing
Contributions are welcome! Please feel free to submit a Pull Request. For major changes, please open an issue first to discuss what you would like to change.
License
MIT License - see LICENSE file for details
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.
Provides a standardized interface for AI assistants to interact with Obsidian vaults through a local REST API, enabling reading, writing, searching, and managing notes.
- Features
- Prerequisites
- Installation
- Configuration
- Usage
- Available Tools
- Security
- Development
- Troubleshooting
- Contributing
- License
Related Resources
Related MCP Servers
- -securityAlicense-qualityEnables AI assistants to interact with Obsidian vaults, providing tools for reading, creating, editing and managing notes and tags.Last updated -852531MIT License
- -securityAlicense-qualityA server implementation that allows AI assistants to read, create, and manipulate notes in Obsidian vaults through the Model Context Protocol.Last updated -6395MIT License
- AsecurityAlicenseAqualityA server that enables AI agents to perform sophisticated knowledge discovery and analysis across Obsidian vaults through the Local REST API plugin, supporting complex multi-step workflows with advanced filtering and full content retrieval.Last updated -317MIT License
- -securityAlicense-qualityAllows AI models to interact with Obsidian notes through the Local REST API, enabling creation, reading, updating, searching of notes, and Git-based automatic backups.Last updated -372MIT License