The MCP (Model Context Protocol) server for Obsidian is designed to bridge the gap between AI assistants like Claude and Obsidian knowledge bases.
This integration allows AI models to interact with Obsidian notes securely and locally, leveraging the Obsidian Local REST API plugin.
The MCP server implements several tools to facilitate interaction with Obsidian vaults:
To utilize these tools effectively, you can instruct Claude to use Obsidian with prompts like:
To configure the environment, you need to set up the Obsidian REST API Key. This can be done in two ways:
{ "mcp-obsidian": { "command": "uvx", "args": [ "mcp-obsidian" ], "env": { "OBSIDIAN_API_KEY": "<your_api_key_here>" } } }
.env
file in the working directory. textOBSIDIAN_API_KEY=your_api_key_here
~/Library/Application Support/Claude/claude_desktop_config.json
on macOS) and add the MCP server configuration.For development and debugging purposes, ensure that dependencies are up-to-date and use tools like the MCP Inspector for a better debugging experience. The MCP Inspector can be launched via npm to monitor server logs and interactions.
bashnpx @modelcontextprotocol/inspector uv --directory /path/to/mcp-obsidian run mcp-obsidian
This setup allows developers to refine the MCP server’s functionality and troubleshoot issues efficiently.
Linux offers powerful command-line tools for system administrators to view and manage user accounts. Knowing…
User management is a critical aspect of Linux administration. Each user in a Linux system…
Managing users is an essential part of Linux system administration. Knowing how to list all…
Nmap (Network Mapper) is a free tool that helps you find devices on a network,…
Introduction to the Model Context Protocol (MCP) The Model Context Protocol (MCP) is an open…
While file extensions in Linux are optional and often misleading, the file command helps decode what a…