Obsidian MCP REST server enables secure local API access to manage and search your Obsidian vault content easily
The Obsidian MCP REST Server is an implementation that provides access to Obsidian vaults through a local REST API, enabling AI assistants like Claude Desktop and other tools to interact with Obsidian notes. This server leverages the Model Context Protocol (MCP), which acts as a universal adapter for AI applications, similar to how USB-C serves devices.
The Obsidian MCP REST Server includes a range of features tailored for seamless interaction between AI assistants and Obsidian vaults. Key capabilities include:
MCP architecture in the context of the Obsidian MCP REST Server involves several key components:
The server implementation adheres closely to the MCP specifications, ensuring compatibility with various AI clients and enhancing their ability to leverage Obsidian’s rich content management features.
To install and start using the Obsidian MCP REST Server, follow these steps:
Prerequisites:
npm install -g PublikPrinciple/obsidian-mcp-rest
Configuration:
Create a configuration file named config.json
:
{
"obsidian": {
"apiKey": "your-api-key-here",
"port": 27123,
"host": "localhost"
},
"server": {
"name": "obsidian-mcp",
"version": "1.0.0"
}
}
Start the Server:
obsidian-mcp-rest --config path/to/config.json
The server will initiate and listen for MCP requests through stdin/stdout, allowing AI applications to communicate with your Obsidian vaults.
Note Manipulation & Management:
Use Case Scenario: Using Claude Desktop, you can programmatically read, write, or update notes within an Obsidian vault.
{
"name": "obsidian-mcp",
"command": "obsidian-mcp-rest",
"args": ["--config", "/path/to/config.json"]
}
Technical Implementation: The server receives MCP commands, processes them against the Obsidian vaults, and returns appropriate responses.
Search & Data Analysis:
Use Case Scenario: Running queries to search for specific keywords or patterns within a vast collection of notes.
Read note "Projects/MyProject.md"
List all notes in "Projects" folder
Search for notes containing "typescript"
Technical Implementation: The server executes searches against the configured Obsidian vaults and outputs relevant results.
The Obsidian MCP REST Server is compatible with several AI clients, including:
Objective: To automate note updates and management within an Obsidian vault.
Setup Server:
Invoke Commands:
{
"name": "obsidian-mcp",
"command": "npx obsidian-mcp-rest",
"args": ["--config", "/path/to/config.json"]
}
Run Commands:
readNote "Projects/MyProject.md"
writeNote "Projects/MyProject.md" content
Monitor Status: The server outputs results directly to the console, helping you track changes.
Objective: To perform keyword searches within Obsidian notes for data analysis purposes.
Setup Server:
Invoke Commands:
{
"name": "obsidian-mcp",
"command": "npx obsidian-mcp-rest",
"args": ["--config", "/path/to/config.json"]
}
Run Commands:
searchNotes "typescript"
Analyze Results: Use the returned note details for further downstream processing.
MCP Client | Resources | Tools | Prompts | Status |
---|---|---|---|---|
Claude Desktop | ✅ | ✅ | ✅ | Full Support |
Continue | ✅ | ✅ | ✅ | Full Support |
Cursor | ❌ | ✅ | ❌ | Tools Only |
The Obsidian MCP REST Server supports real-time integration with various AI clients, ensuring seamless interaction and data flow.
To enhance security and functionality, you can configure the server to meet specific requirements:
MCP Configuration:
{
"mcpServers": {
"[server-name]": {
"command": "npx",
"args": ["-y", "@modelcontextprotocol/server-[name]"],
"env": {
"API_KEY": "your-api-key"
}
}
}
}
Secure Communication:
Q: Can I use multiple MCP servers with different versions of Obsidian?
Q: How do I troubleshoot connection issues between the AI client and server?
Q: Is data transferred over the REST API secure?
Q: Can I run multiple instances of the Obsidian MCP Server on a single machine?
Q: How do I ensure compatibility between the AI client and server protocols?
Contributions are welcome! If you wish to contribute, please follow these steps:
Clone the repository:
git clone https://github.com/PublikPrinciple/obsidian-mcp-rest.git
cd obsidian-mcp-rest
Install dependencies:
npm install
Build and test the project:
npm run build
npm test
The Obsidian MCP REST Server is part of a larger ecosystem designed to facilitate seamless integration between AI clients and data sources like Obsidian vaults.
By integrating the Obsidian MCP REST Server into your AI workflow, you enhance the capabilities of your tools, enabling more efficient data management and analysis.
RuinedFooocus is a local AI image generator and chatbot image server for seamless creative control
Build stunning one-page websites track engagement create QR codes monetize content easily with Acalytica
Simplify MySQL queries with Java-based MysqlMcpServer for easy standard input-output communication
Learn to set up MCP Airflow Database server for efficient database interactions and querying airflow data
Explore CoRT MCP server for advanced self-arguing AI with multi-LLM inference and enhanced evaluation methods
Access NASA APIs for space data, images, asteroids, weather, and exoplanets via MCP integration