Obsidian MCP Server enables seamless AI integration with Obsidian vaults for file management, search, and property control
Obsidian MCP Server is a robust server designed to enable AI applications, such as Claude Desktop, Continue, Cursor, and others, to interact with external tools like Obsidian vaults. Built using TypeScript, it provides secure API communication, efficient file operations, and comprehensive search capabilities, allowing for the seamless management of knowledge bases within AI workflows.
Obsidian MCP Server offers a range of powerful features that ensure seamless integration between AI applications and Obsidian tools:
The Obsidian MCP Server follows a modular architecture, designed for clear separation of concerns:
src/
├── index.ts # Main entry point
├── mcp/ # MCP server implementation
├── obsidian/ # Obsidian API client and types
├── resources/ # MCP resource implementations
├── tools/ # MCP tool implementations
│ ├── files/ # File operations tools
│ ├── search/ # Search tools
│ └── properties/ # Property management tools
└── utils/ # Shared utilities
File Management:
obsidian_list_files_in_vault
obsidian_list_files_in_dir
obsidian_get_file_contents
Search Operations:
obsidian_find_in_file
with context length configurable via contextLength
.obsidian_complex_search
using JsonLogic queries for advanced search.Content Modification:
obsidian_append_content
: Appends content to a file in the vault.obsidian_patch_content
: Updates or replaces existing content in a file.Property Management:
obsidian_get_properties
: Retrieves properties of a note.obsidian_update_properties
: Updates properties with specified values, handling automatic timestamp updates.To get started with the Obsidian MCP Server, follow these steps:
git clone [email protected]:cyanheads/obsidian-mcp-server.git
cd obsidian-mcp-server
npm install
npm run build
npm install obsidian-mcp-server
By integrating Obsidian MCP Server into an AI workflow, developers can automate the management of knowledge bases. APIs allow AI assistants to search and update notes within the vault seamlessly, ensuring that information is always up-to-date.
Technical Implementation:
obsidian_find_in_file
to query for specific metadata or tags.obsidian_append_content
to add new insights into existing knowledge base entries.In scenarios where data needs to be dynamically ingested from multiple sources, Obsidian MCP Server can act as a centralized hub. It allows AI applications to pull relevant information from various tools and repositories, ensuring that the vault is always in sync with real-world data.
Technical Implementation:
obsidian_list_files_in_dir
to monitor changes in directories.obsidian_update_properties
for automatic updates based on external data sources.Obsidian MCP Server is compatible with a wide range of MCP clients, including Claude Desktop, Continue, Cursor, and others. Below is the MCP client compatibility matrix:
MCP Client | Resources | Tools | Prompts |
---|---|---|---|
Claude Desktop | ✅ | ✅ | ✅ |
Continue | ✅ | ✅ | ✅ |
Cursor | ❌ | ✅ | ❌ |
The server ensures high performance and compatibility across different environments:
For advanced configuration and security, you can configure the server as shown below:
{
"mcpServers": {
"[server-name]": {
"command": "npx",
"args": ["-y", "@modelcontextprotocol/server-[name]"],
"env": {
"API_KEY": "your-api-key"
}
}
}
}
Can Obsidian MCP Server work with different AI clients?
How does the server handle file operations efficiently?
Can I customize property updates in Obsidian MCP Server?
obsidian_update_properties
.Is SSL support available out of the box?
How do I integrate prompts with my AI application using Obsidian MCP Server?
Contributions are welcome! To contribute to this project:
git clone https://github.com/your-username/obsidian-mcp-server.git
npm install
npm run build
For more information on the Model Context Protocol and related tools, visit:
Join the community to stay updated on latest Developments and contributions.
graph TD
A[AI Application] -->|MCP Client| B[MCP Server]
B --> C[Data Source/Tool]
style A fill:#e1f5fe
style C fill:#f3e5f5
graph TB
subgraph "Model Context Protocol"
mcpServer(MCP Server)
obsidianClient(Obsidian Client)
apiResources(Data Source/Tool)
promptHandler(Prompt Handler)
mcpProtocol(MCP Protocol)
mcpServer -->|mcpRequest| mcpProtocol
mcpProtocol -->|mcpResponse| obsidianClient
obsidianClient -->|API Request| apiResources
end
This documentation positions Obsidian MCP Server as a critical component for integrating AI applications with Obsidian vaults, providing detailed insights into its capabilities and implementation.
RuinedFooocus is a local AI image generator and chatbot image server for seamless creative control
Learn to set up MCP Airflow Database server for efficient database interactions and querying airflow data
Simplify MySQL queries with Java-based MysqlMcpServer for easy standard input-output communication
Access NASA APIs for space data, images, asteroids, weather, and exoplanets via MCP integration
Explore CoRT MCP server for advanced self-arguing AI with multi-LLM inference and enhanced evaluation methods
Build stunning one-page websites track engagement create QR codes monetize content easily with Acalytica