mcp-obsidian is an MCP server for interacting with Obsidian through Obsidian's Local REST API community plugin. It implements several tools: list_files_in_vault (lists all files and directories in the root directory of the Obsidian vault), list_files_in_dir (lists all files and directories in a specified Obsidian directory), get_file_contents (returns the contents of a single file in the vault), search (searches all files in the vault for documents matching a specified text query), patch_content (inserts content into an existing note relative to a heading, block reference, or frontmatter field), append_content (appends content to a new or existing file in the vault), delete_file (deletes a file or directory from the vault).
In terms of usage, the official recommendation is to first instruct Claude to use Obsidian, so that it will always call the tool. Example prompts include: get the contents of the last architecture discussion note and summarize it; search all files mentioning Azure CosmosDb and quickly explain their context; summarize the last meeting notes and put them into a new note 'summary meeting.md', adding an introduction so it can be sent by email.
Regarding environment dependencies, mcp Python SDK >=1.1.0,<2.0.0 is required (pinned in pyproject.toml). mcp-obsidian currently registers tool handlers through the mcp 1.x low-level Server API (@app.list_tools() / @app.call_tool()), which was removed in mcp 2.0. Installing with an unconstrained mcp>=2.0 will crash on import with the error AttributeError: 'Server' object has no attribute 'list_tools'.
There are two ways to configure the Obsidian REST API Key: add it to the server configuration (preferred); or create a .env file in the working directory and fill in the required variables. Sometimes Claude has problems detecting the location of uv / uvx; in that case, you can use which uvx to find the full path and paste it into the configuration. API key can be found in the Obsidian plugin configuration. The default port is 27124 (when unspecified), and the default host is 127.0.0.1 (when unspecified). You need to run the Obsidian REST API community plugin and install and enable it in settings, then copy the API key.
Claude configuration file locations: on macOS it is ~/Library/Application Support/Claude/claude_desktop_config.json; on Windows it is %APPDATA%/Claude/claude_desktop_config.json.
You can also run the server using a container without installing uv / Python locally. Copy .env.example to .env and fill in the Obsidian REST API key. The default OBSIDIAN_HOST is set to host.docker.internal, which resolves to the host machine inside the container (applicable to Linux, Mac, and Windows). After building the image, point the MCP client at the container. Because MCP uses JSON-RPC over stdio, the client must run it with stdin attached and without a pseudo-TTY—use docker compose run --rm -T, not docker compose up. You can also run it manually to check whether the container starts (it will wait for JSON-RPC messages on stdin; press Ctrl+C to exit).
When preparing a distribution package, dependencies need to be synchronized and the lock file updated. Because the MCP server runs over stdio, debugging can be difficult. The official recommendation strongly suggests using MCP Inspector for the best debugging experience, which can be started via an npm command. After startup, Inspector will display a URL that can be accessed in a browser to begin debugging. You can also use a command to view server logs.