Integrate Obsidian with MCP server for seamless vault management via REST API tools
The MCP (Model Context Protocol) server for Obsidian enables AI applications to interact seamlessly with your Obsidian vault through a standardized interface. Built on top of the Local REST API community plugin, this server provides essential tools that extend the capabilities of Obsidian by allowing advanced searches, file operations, and content manipulations directly from powerful AI systems like Claude Desktop.
The core features of the MCP server for Obsidian are designed to enhance and extend the functionality of your Obsidian vault. The server implements a suite of tools that cater to various needs within an Obsidian vault:
These tools are complemented by an intuitive configuration framework that integrates easily with leading AI applications via the MCP protocol.
The MCP server architecture is centered around enabling seamless interaction between AI systems and Obsidian through the Model Context Protocol. The protocol ensures secure, efficient communication and is designed to be extensible for future integrations.
Configuration of the server involves setting up environment variables or specifying them directly in the server's configuration file. Key environmental settings required include:
Configuration examples are provided in both JSON (preferred) and .env file formats, ensuring flexibility in deployment scenarios.
To get started, you need:
claude_desktop_config.json
file are necessary for connecting to the MCP server.{
"mcpServers": {
"mcp-obsidian": {
"command": "uvx",
"args": [
"mcp-obsidian"
],
"env": {
"OBSIDIAN_API_KEY" : "<YOUR_OBSIDIAN_API_KEY>"
}
}
}
}
uv sync
command to ensure all dependencies are up-to-date.By leveraging the tools provided by the MCP server, developers can create sophisticated AI-driven workflows that integrate seamlessly with Obsidian:
The server supports integration with major AI clients such as Claude Desktop:
Integrations like these empower users to harness the full potential of their Obsidian vault in conjunction with sophisticated AI, ensuring that data remain organized and accessible through intelligent automation.
M CP Client | Resources | Tools | Prompts |
---|---|---|---|
Claude Desktop | ✅ | ✅ | ✅ |
Continue | ✅ | ✅ | ✅ |
Cursor | ❌ | ✅ | ❌ |
This matrix provides a clear view of which MCP clients are fully supported and where partial functionality may apply.
The server runs via stdio, making debugging less straightforward. For the best debugging experience, use the MCP Inspector.
Launch the MCP Inspector with this command:
npx @modelcontextprotocol/inspector uv --directory /path/to/mcp-obsidian run mcp-obsidian
This will display a URL you can visit in your web browser.
For real-time server logs, use:
tail -20 -f ~/Library/Logs/Claude/mcp-server-mcp-obsidian.log
Ensure environment variables like OBSIDIAN_API_KEY
are kept secure, and do not expose them in public repositories.
.env
file or specify it directly in your configuration JSON.append_content
tool?
patch_content
only available in certain versions?
To contribute to the development of this project:
All contributions should be in line with the community guidelines to maintain code quality and compatibility.
graph TD
A[AI Application] -->|MCP Client| B[MCP Protocol]
B --> C[MCP Server]
C --> D[Data Source/Tool]
style A fill:#e1f5fe
style C fill:#f3e5f5
style D fill:#e8f5e8
graph TD
A[Obsidian Vault] --> B[MCP Server]
B --> C[MCP Client]
C --> D[Auxiliary Tools/Scripts]
style A fill:#d2f3e6
style B fill:#bdddff
style C fill:#f5ddc1
This MCP server offers a robust framework for integrating advanced AI functionalities with Obsidian, enhancing productivity and data management.
Learn to connect to MCP servers over HTTP with Python SDK using SSE for efficient protocol communication
Next-generation MCP server enhances documentation analysis with AI-powered neural processing and multi-language support
Python MCP client for testing servers avoid message limits and customize with API key
Discover easy deployment and management of MCP servers with Glutamate platform for Windows Linux Mac
Expose Chicago Public Schools data with a local MCP server accessing SQLite and LanceDB databases
Learn how to use MCProto Ruby gem to create and chain MCP servers for custom solutions