Clear, practical technology insights BSOD Code Lookup · Windows Error Code Lookup · Wi-Fi Troubleshooting · PC Troubleshooting Checklist

How to connect a local AI model to Obsidian with MCP

Connect Obsidian’s Local REST API to LM Studio through Docker MCP Toolkit, then test note searches and edits with a local model.

Table of Contents

A local model in LM Studio can work with an Obsidian vault through a Model Context Protocol (MCP) server. The server exposes tools for operations such as reading and searching notes; supported write tools can also create or edit them. This setup connects three components: Obsidian's Local REST API plugin, an Obsidian MCP server managed by Docker, and LM Studio as the client.

What MCP adds to your note workflow

Instead of copying each note into a chat, you can ask the model to find relevant files and use their contents. The available operations depend on the MCP server you install. Check its tool list rather than assuming every server can search, move, or edit files.

How to connect a local AI model to Obsidian using MCP Picture 1 How to connect a local AI model to Obsidian using MCP Picture 2 How to connect a local AI model to Obsidian using MCP Picture 3 How to connect a local AI model to Obsidian using MCP Picture 4 How to connect a local AI model to Obsidian using MCP Picture 5

For example, ask it to locate meeting notes for a particular project and summarize the decisions with file names. This is different from simply attaching documents for retrieval: MCP can expose actions as well as information. Retrieval-augmented generation (RAG) supplies retrieved context to a model, and can be combined with MCP; neither approach guarantees accurate answers.

Downloaded models can run locally in LM Studio, but MCP itself is not a privacy guarantee. A server may call outside services. Review the server's configuration and dependencies if you need the entire workflow to stay on your computer.

Prepare the software and a test vault

  • Install Docker Desktop and LM Studio from their official sites.
  • Download a model that supports tool use and fits your computer's available memory. Model size alone does not tell you how reliably it will call tools.
  • Make a backup of your vault, or start with a separate vault containing a few disposable notes.
  • Keep Obsidian open with the intended vault while testing the connection.

The screenshots below show the original setup. Docker and LM Studio interfaces have changed over time, so some labels may differ.

How to connect a local AI model to Obsidian using MCP Picture 6 How to connect a local AI model to Obsidian using MCP Picture 7 How to connect a local AI model to Obsidian using MCP Picture 8 How to connect a local AI model to Obsidian using MCP Picture 9 How to connect a local AI model to Obsidian using MCP Picture 10 How to connect a local AI model to Obsidian using MCP Picture 11 How to connect a local AI model to Obsidian using MCP Picture 12 How to connect a local AI model to Obsidian using MCP Picture 13

1. Enable Obsidian's Local REST API

In Obsidian, open Settings → Community plugins, find Local REST API, and install and enable it. Open the plugin's settings to find the API key, endpoint, and certificate information.

The API key authorizes access to the vault. Enter it only in the MCP server's configuration field; do not paste it into a note, chat prompt, or screenshot you intend to share. Follow the plugin's connection documentation for its local HTTPS certificate.

2. Configure the Obsidian MCP server in Docker

Open MCP Toolkit in Docker Desktop. If it is unavailable, check Docker's settings for the Toolkit feature. In layouts that use profiles, create or select a profile, then use the catalog to add an Obsidian server.

Supply the API key and any required endpoint in that server's configuration. Run its connection check if available. A container has its own network context, so an endpoint that works on your desktop may need different configuration inside Docker. Use the chosen server's instructions for reaching the host's Obsidian plugin.

If the expected catalog entry is missing, consult that server's installation instructions rather than selecting an unrelated integration. Docker's MCP Toolkit guide covers profiles, server configuration, and client connections.

3. Connect LM Studio and enable the tools

In Docker's Clients tab, find LM Studio and choose Connect. This configures the connection; it is not a replacement for installing LM Studio. Restart LM Studio, load your downloaded model, and start a new chat.

Open the chat's integrations menu and enable mcp/mcp-docker if it appears. Check that the Obsidian tools are listed. You do not need to assume that starting LM Studio's API server is required for every chat-based MCP setup.

4. Test reading before editing

Start with a narrow request: “List the notes in my test folder, then read the note named Connection Test.” Compare the response with the actual file. Next, ask for a summary that names its source notes.

Only after reading works should you test a write: “Append a heading called MCP Test to my disposable test note.” Inspect the note in Obsidian and verify that existing content remains intact. If the model only describes steps, confirm that tools are enabled and try a model with documented tool support.

For a separate tagging workflow, see organizing Obsidian notes with a local LLM. If you are comparing local access with a cloud workflow, see connecting Obsidian notes to NotebookLM.

Discussion

Reader Comments 0

Sign in with email or Google to join the discussion.