obsidian-mcp-server logo

Obsidian MCP Server

by cyanheads

7 forks
28 stars
Free

What is obsidian-mcp-server

The obsidian-mcp-server is a specialized server developed by Cyanheads, designed to facilitate seamless interaction between AI language models and Obsidian vaults. It leverages the Model Context Protocol (MCP), an open-source protocol that allows AI systems to securely connect with various data sources and tools. By using this server, AI assistants can manage knowledge bases efficiently through a streamlined and flexible interface. The server is built using TypeScript, ensuring robust and secure API communication, efficient file operations, and comprehensive search capabilities. This makes it an ideal choice for those looking to enhance their AI's capability to interact with stored information within Obsidian.

How to Use obsidian-mcp-server

To get started with the obsidian-mcp-server, ensure you have Node.js installed and the Local REST API plugin enabled in your Obsidian setup. You can install the server by cloning the repository and building it with npm, or simply install it directly from npm. Once installed, configure your MCP client settings to communicate with the server. You'll need to set various environment variables such as your Obsidian API key and connection settings like protocol, host, and port. The server is then ready to facilitate operations such as file management, advanced search queries, and property management within your Obsidian vault.

Key Features of obsidian-mcp-server

File Operations

  • Atomic Operations: Perform file and directory operations with validation to ensure data integrity.
  • Resource Monitoring: Efficiently manage resources with built-in monitoring and cleanup functionalities.
  • Error Handling: Gracefully handle errors to maintain system stability.

Search System

  • Full-Text Search: Conduct searches with configurable context for precise results.
  • Advanced Queries: Utilize JsonLogic for complex queries involving files, tags, and metadata.
  • Pattern Support: Leverage glob patterns and frontmatter fields for versatile search capabilities.

Property Management

  • YAML Parsing: Automatically parse and intelligently merge YAML frontmatter in notes.
  • Timestamp Management: Handle timestamps automatically with creation by Obsidian and modifications by the server.
  • Custom Fields: Support custom fields to tailor property management to specific needs.

Security & Performance

  • API Key Authentication: Secure access with API key authentication and optional SSL.
  • Rate Limiting: Implement rate limiting to prevent abuse and ensure efficient resource use.
  • Health Checks: Regular monitoring and health checks to ensure optimal performance and reliability.

By leveraging these features, the obsidian-mcp-server empowers users to enhance their AI's interaction with Obsidian vaults, providing a robust tool for managing and utilizing knowledge bases effectively.

How to Use

To use the obsidian-mcp-server, follow these steps:

  1. Visit https://github.com/cyanhe...
  2. Follow the setup instructions to create an account (if required)
  3. Connect the MCP server to your Claude Desktop application
  4. Start using obsidian-mcp-server capabilities within your Claude conversations

Additional Information

Created

January 23, 2025

Company

cyanheads

Start building your own MCP Server

Interested in creating your own MCP Server? Check out the official documentation and resources.

Learn More