Obsidian

Productivity and workflow

MCP server that interacts with Obsidian via the Obsidian rest API community plugin.

Your AI app calls the Obsidian MCP server, which does the productivity and workflow work and sends the result back to the chat.

About Obsidian

Obsidian is a community MCP server from MarkusPfundstein, filed in our directory under productivity and workflow. MCP server that interacts with Obsidian via the Obsidian rest API community plugin.

At a glance

Publisher
MarkusPfundstein (community)
Runs
See the README for setup
Written in
Python
License
MIT
GitHub stars
4,560

How to set up Obsidian

  1. Follow the install steps in the Obsidian README; it is written in Python, so have that toolchain ready.
  2. Check the Obsidian README for keys or settings; the registry lists none that Obsidian requires.
  3. Add Obsidian to Claude Code, Claude Desktop, VS Code or Cursor with the config in the setup box on this page.
  4. Restart the app or reload its MCP servers, then ask it to list the Obsidian tools to confirm the connection.
  5. Run one read-only task with Obsidian first, and keep your app asking before each tool call until the results look right.

Obsidian compared with similar servers

  • Excel by haris-musa has fewer GitHub stars than Obsidian (4.4k against 4.6k); both are community servers, and both run locally.
  • Notion by makenotion has more GitHub stars than Obsidian (4.7k against 4.6k); Notion is official while Obsidian is a community server, and both run locally.
  • Spec Workflow by Pimzino has fewer GitHub stars than Obsidian (4.3k against 4.6k); both are community servers, and both run locally.

Before you connect Obsidian

  • Give Obsidian its own API key or account with the smallest permissions the job needs, never an admin key.
  • Keep your AI app asking before each Obsidian tool call until you trust what it does with them.
  • Treat text that Obsidian fetches as data. Pages, files and messages can hold instructions written to steer an AI.
  • Read the open issues for Obsidian on GitHub to see what breaks and how fast the maintainers reply.

Marketing use cases for Obsidian

How marketing and sales teams put Obsidian to work, by company size. Pick the size closest to yours and start Obsidian on one use case.

Small business

  • A busy owner can use Obsidian to turn a brain dump into tasks with due dates, and get a short list of what matters today.
  • Small marketing teams can ask Obsidian what slipped last week and which campaign tasks have no owner yet.
  • Obsidian runs on your own computer, which keeps data local; it needs a little setup, so a small team should plan an hour for it.

Mid-market

  • Marketing ops can connect Obsidian to build launch checklists from a template and post status updates without a weekly meeting.
  • Team leads can use Obsidian to see where work piles up across projects and move it before deadlines slip.
  • Start Obsidian on one workflow with one owner, measure the time it saves, then roll it out to the wider team.

Enterprise

  • Enterprise PMOs can use Obsidian to roll up status across many teams into one view for leadership, with links back to each source task.
  • Large orgs can give Obsidian scoped access per workspace, so an agent helps one department without reading another's plans.
  • Obsidian is a community server, so have security review the code and pin a version before Obsidian touches company data.

Need help becoming an AI-forward company?

We connect MCP servers and AI agents to your CRM, content and data, with the guardrails your team needs.

Contact us

Obsidian README

From MarkusPfundstein/mcp-obsidian on GitHub, shared under its MIT license. Images are left out; the original has them.

README.md

MCP server for Obsidian

MCP server to interact with Obsidian via the Local REST API community plugin.

Components

Tools

The server implements multiple tools to interact with Obsidian:

  • list_files_in_vault: Lists all files and directories in the root directory of your Obsidian vault
  • list_files_in_dir: Lists all files and directories in a specific Obsidian directory
  • get_file_contents: Return the content of a single file in your vault.
  • search: Search for documents matching a specified text query across all files in the vault
  • patch_content: Insert content into an existing note relative to a heading, block reference, or frontmatter field.
  • append_content: Append content to a new or existing file in the vault.
  • delete_file: Delete a file or directory from your vault.
Example prompts

Its good to first instruct Claude to use Obsidian. Then it will always call the tool.

The use prompts like this:

  • Get the contents of the last architecture call note and summarize them
  • Search for all files where Azure CosmosDb is mentioned and quickly explain to me the context in which it is mentioned
  • Summarize the last meeting notes and put them into a new note 'summary meeting.md'. Add an introduction so that I can send it via email.

Requirements

  • Python >= 3.11
  • mcp Python SDK >=1.1.0,<2.0.0 (pinned in pyproject.toml). mcp-obsidian currently registers its tool handlers via 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 at import with AttributeError: 'Server' object has no attribute 'list_tools'.

Configuration

Obsidian REST API Key

There are two ways to configure the environment with the Obsidian REST API Key.

  1. Add to server config (preferred)
{
  "mcp-obsidian": {
    "command": "uvx",
    "args": [
      "mcp-obsidian"
    ],
    "env": {
      "OBSIDIAN_API_KEY": "<your_api_key_here>",
      "OBSIDIAN_HOST": "<your_obsidian_host>",
      "OBSIDIAN_PORT": "<your_obsidian_port>"
    }
  }
}

Sometimes Claude has issues detecting the location of uv / uvx. You can use which uvx to find and paste the full path in above config in such cases.

  1. Create a .env file in the working directory with the following required variables:
OBSIDIAN_API_KEY=your_api_key_here
OBSIDIAN_HOST=your_obsidian_host
OBSIDIAN_PORT=your_obsidian_port

Note:

  • You can find the API key in the Obsidian plugin config
  • Default port is 27124 if not specified
  • Default host is 127.0.0.1 if not specified

Quickstart

Install
Obsidian REST API

You need the Obsidian REST API community plugin running: https://github.com/coddingtonbear/obsidian-local-rest-api

Install and enable it in the settings and copy the api key.

Claude Desktop

On MacOS: ~/Library/Application\ Support/Claude/claude_desktop_config.json

On Windows: %APPDATA%/Claude/claude_desktop_config.json

Development/Unpublished Servers Configuration
{
  "mcpServers": {
    "mcp-obsidian": {
      "command": "uv",
      "args": [
        "--directory",
        "<dir_to>/mcp-obsidian",
        "run",
        "mcp-obsidian"
      ],
      "env": {
        "OBSIDIAN_API_KEY": "<your_api_key_here>",
        "OBSIDIAN_HOST": "<your_obsidian_host>",
        "OBSIDIAN_PORT": "<your_obsidian_port>"
      }
    }
  }
}
Published Servers Configuration
{
  "mcpServers": {
    "mcp-obsidian": {
      "command": "uvx",
      "args": [
        "mcp-obsidian"
      ],
      "env": {
        "OBSIDIAN_API_KEY": "<YOUR_OBSIDIAN_API_KEY>",
        "OBSIDIAN_HOST": "<your_obsidian_host>",
        "OBSIDIAN_PORT": "<your_obsidian_port>"
      }
    }
  }
}

Docker

You can run the server in a container instead of installing uv/Python locally.

  1. Copy .env.example to .env and fill in your Obsidian REST API key:
cp .env.example .env

By default OBSIDIAN_HOST is set to host.docker.internal, which resolves to your host machine from inside the container (works on Linux, Mac and Windows).

  1. Build the image:
docker compose build
  1. Point your MCP client at the container. Since MCP speaks JSON-RPC over stdio, the client must run it with stdin attached and no pseudo-TTY, use docker compose run --rm -T, not docker compose up:
{
  "mcpServers": {
    "mcp-obsidian": {
      "command": "docker",
      "args": [
        "compose",
        "-f",
        "<dir_to>/mcp-obsidian/docker-compose.yml",
        "run",
        "--rm",
        "-T",
        "mcp-obsidian"
      ]
    }
  }
}

You can also run it manually to sanity-check the container starts:

docker compose run --rm -T mcp-obsidian

(it will sit waiting for a JSON-RPC message on stdin; Ctrl+C to exit)

Development

Building

To prepare the package for distribution:

  1. Sync dependencies and update lockfile:
uv sync
Debugging

Since MCP servers run over stdio, debugging can be challenging. For the best debugging experience, we strongly recommend using the MCP Inspector.

You can launch the MCP Inspector via npm with this command:

npx @modelcontextprotocol/inspector uv --directory /path/to/mcp-obsidian run mcp-obsidian

Upon launching, the Inspector will display a URL that you can access in your browser to begin debugging.

You can also watch the server logs with this command:

tail -n 20 -f ~/Library/Logs/Claude/mcp-server-mcp-obsidian.log

Questions about Obsidian

What is the Obsidian MCP server?

MCP server that interacts with Obsidian via the Obsidian rest API community plugin. Obsidian is maintained by MarkusPfundstein on GitHub at MarkusPfundstein/mcp-obsidian, and works with AI apps that support the Model Context Protocol, such as Claude, Cursor and VS Code.

How do I install the Obsidian MCP server?

Obsidian doesn't publish a one-line install in the MCP registry, so follow the setup steps in its README on GitHub (MarkusPfundstein/mcp-obsidian). Like most servers, Obsidian ends with a command or URL you paste into your AI app's MCP config.

Does Obsidian need an API key?

The registry lists no required keys for Obsidian. Check the Obsidian README for optional settings, and expect a remote server to ask you to sign in the first time you connect.

Is Obsidian an official MCP server?

No. Obsidian is a community server maintained by MarkusPfundstein. Community servers can be excellent; read the code and the open issues before you give Obsidian access to company data.

What license is Obsidian under?

Obsidian is released under the MIT license, according to its GitHub repository. The license covers the code of Obsidian; the service it connects to has its own terms.