# mcp-obsidian-via-rest [Health: Active]

**Category:** 🧠 Knowledge & Memory  
**Repository:** https://github.com/OleksandrKucherenko/mcp-obsidian-via-rest  
**GitHub Stars:** 13  
**npm Downloads (last month):** 1240  
**Views:** 8  
**Installs:** 0  
**Upvotes:** 0  
**Directory Page:** https://allmcps.com/mcp/mcp-obsidian-via-rest

## Description
MCP Server for Obsidian Vault Access via Local REST API

## Tools
Capabilities this server exposes over MCP:

- **get_note_content** — Retrieve content and metadata of an Obsidian note
- **obsidian_search** — Search notes using a query string
- **obsidian_semantic_search** — Semantic search for notes

## Claude Desktop Quick Installation
Install path detected from listing signals. Uses `bunx` (confidence: high):

```json
"mcpServers": {
  "mcp-obsidian-via-rest": {
    "command": "bunx",
    "args": ["-y","@oleksandrkucherenko/mcp-obsidian"],
    "env": {
      "OBSIDIAN_API_KEY": "",
      "API_KEY": "",
      "API_URLS": "",
      "DEBUG": "",
      "MCP_HTTP_PATH": ""
    }
  }
}
```

**Requires environment variables:** `OBSIDIAN_API_KEY`, `API_KEY`, `API_URLS`, `DEBUG`, `MCP_HTTP_PATH` — the values above are empty placeholders; fill in real credentials before running (see the repository for what each one is for).

## Documentation

## What mcp-obsidian-via-rest does

mcp-obsidian-via-rest exposes an Obsidian vault to MCP-compatible AI assistants through the Obsidian Local REST API. Its tools cover three common read operations: retrieving a note and its metadata, searching notes with a query string, and performing semantic search across notes.

The server also publishes notes through the `obsidian://{path}` resource pattern. A client can use a URI such as `obsidian://Daily/2025-01-16.md` to address a specific note.

This is a fit for assistants that need to locate reference material, summarize vault content, or answer questions from an existing Obsidian knowledge base. The listed capabilities focus on reading and searching notes.

## How it works

The MCP process acts as a bridge between an MCP client and the Obsidian REST API. An Obsidian REST API key is supplied to authenticate requests, while one or more API URLs identify the REST service. The server can test multiple URLs in parallel, select the fastest reachable endpoint, monitor the connection, and switch endpoints when a connection fails. Reconnection uses exponential backoff.

Two MCP transports are available:

- `stdio`, the default option for local MCP clients
- `http`, which uses HTTP JSON-RPC with SSE streaming for remote access

For HTTP transport, the MCP endpoint path defaults to `/mcp` and can be changed with configuration.

## Setup and configuration

The project can be run through the published npm package with `bunx`, or from the Docker image `ghcr.io/oleksandrkucherenko/obsidian-mcp:latest`. A basic CLI setup passes the server command to an MCP client, for example:

```bash
claude mcp add obsidian -- bunx -y @oleksandrkucherenko/mcp-obsidian
```

Set `OBSIDIAN_API_KEY` for the quick-test command shown for CLI use. Docker-based configurations use `API_KEY` for the credential and `API_URLS` for a JSON array of REST API endpoints, such as local, WSL, or host-accessible addresses. `DEBUG` can enable `mcp:*` logging.

For HTTP mode, set `MCP_HTTP_PATH` when a path other than `/mcp` is needed. Docker examples publish port `3000` and pass the MCP configuration through environment variables. Multiple URLs are useful when Obsidian is reachable through different host, container, or WSL network addresses.

## Tools and capabilities

- `get_note_content`: retrieves a note's content and metadata using its `filePath`.
- `obsidian_search`: searches notes using a string supplied as `query`.
- `obsidian_semantic_search`: performs semantic note search using a `query` string.
- `obsidian://{path}` resources: addresses notes by vault path.
- Stdio and HTTP MCP transports.
- Multi-URL endpoint selection, health monitoring, failover, and backoff behavior.

## Limitations and notes

The server depends on an accessible Obsidian Local REST API and a valid API key. Network setup matters when the MCP process runs in Docker, WSL2, or on a different host; the configuration examples include separate URLs for these environments. The documented tools are retrieval and search tools, so workflows requiring note creation or mutation are outside the listed interface.

The Docker examples use interactive standard input for stdio mode and expose port `3000` for HTTP mode. HTTP access should be configured with care because it is intended for remote access rather than only local client processes.

_Full upstream README: https://allmcps.com/mcp/mcp-obsidian-via-rest/readme_

