Obsidian MCP Server (TypeScript + Bun) logo

Obsidian MCP Server (TypeScript + Bun)

Organization
fazer-ai

MCP server for Obsidian (TypeScript + Bun)

Publisherfazer-ai
Repositorymcp-obsidian
LanguageTypeScript
Forks
30
Stars
52
Available tools
0
Transport typestdio
Categories
LicenseMIT
Links
  • Connect tools to AI workflows

    Obsidian MCP Server (TypeScript + Bun) exposes MCP capabilities that can be used by compatible AI clients and agents.

  • 0 available tools

    Browse the callable actions below, including names and descriptions when provided by the server.

  • Ready-to-copy setup

    Use the installation snippets to configure this server in your preferred MCP client.

  • Open source signals

    52 stars and 30 forks from the linked repository.

MCP server for Obsidian (TypeScript + Bun)

NPM Version

A Model-Context-Protocol (MCP) server that lets Claude (or any MCP-compatible LLM) interact with your Obsidian vault through the Local REST API community plugin – written in TypeScript and runnable with bunx.


✨ Components

Tools

Tool nameDescription
obsidian_statusReturns basic details about the Obsidian Local REST API server and your authentication status
obsidian_delete_activeDeletes the note that is currently active in the Obsidian UI
obsidian_get_activeRetrieves the full content of the active note (Markdown or JSON view)
obsidian_patch_activeInserts, replaces or prepends content in the active note relative to a heading, block reference, or front-matter field
obsidian_post_activeAppends Markdown to the end of the active note
obsidian_put_activeReplaces the entire body of the active note
obsidian_get_commandsLists every command available in Obsidian’s command palette
obsidian_execute_commandExecutes a specific Obsidian command by its ID
obsidian_open_fileOpens the given file inside Obsidian (creates it if missing); optional flag to open in a new leaf
obsidian_delete_periodicDeletes the current daily / weekly / monthly / quarterly / yearly note for the requested period
obsidian_get_periodicReturns the content of the current periodic note for the requested period
obsidian_patch_periodicInserts / replaces content in a periodic note relative to a heading, block reference, or front-matter field
obsidian_post_periodicAppends Markdown to the periodic note (creates it if it doesn’t exist)
obsidian_put_periodicReplaces the entire body of a periodic note
obsidian_search_dataviewRuns a Dataview-DQL query across the vault and returns matching rows
obsidian_search_json_logicRuns a JsonLogic query against structured note metadata
obsidian_simple_searchPerforms a plain-text fuzzy search with optional surrounding context
obsidian_list_vault_rootLists all files and directories at the root of your vault
obsidian_list_vault_directoryLists files and directories inside a specific folder of the vault
obsidian_delete_fileDeletes a specific file (or directory) in the vault
obsidian_get_fileRetrieves the content of a file in the vault (Markdown or JSON view)
obsidian_patch_fileInserts / replaces content in an arbitrary file relative to a heading, block reference, or front-matter field
obsidian_post_fileAppends Markdown to a file (creates it if it doesn’t exist)
obsidian_put_fileCreates a new file or replaces the entire body of an existing file

See Obsidian's Local REST API specifications for more details.


Example prompts

text
# Summarize the latest “architecture call” note
# (Claude will transparently call list_files_in_vault → get_file_contents)
Get the contents of the last “architecture call” note and summarize them.

# Find all mentions of Cosmos DB
Search for all files where “Azure CosmosDb” is mentioned and explain the context briefly.

# Create a summary note
Summarize yesterday’s meeting and save it as “summaries/2025-04-24-meeting.md”. Add a short intro suitable for e-mail.

⚙️ Configuration

Obsidian REST API key

There are two ways to pass the Obsidian API key to the server:

  1. Server config (recommended) – pass it via the env field in your Claude (or other client) MCP-server declaration:
jsonc
// claude_desktop_config.json
{
  "mcpServers": {
    "@fazer-ai/mcp-obsidian": {
      "command": "bunx",
      "args": ["@fazer-ai/mcp-obsidian@latest"],
      "env": {
        "OBSIDIAN_API_KEY": "your-obsidian-api-key"
      }
    }
  }
}

[!NOTE] Use @fazer-ai/mcp-obsidian@latest to ensure you always run the most up to date version of the server.

  1. Alternatively, you can use an .env file. Place the key in the .env you created above. Note it must be placed in the working directory where the MCP server is running.

Environment variables

You can use the .env.example file as reference to create your own .env file.

bash
OBSIDIAN_API_KEY=   # Obtain this from the plugin settings in Obsidian
OBSIDIAN_PROTOCOL=http
OBSIDIAN_HOST=localhost
OBSIDIAN_PORT=27123 # Port the Local REST API plugin is bound to

🛠 Development

Running local version on Claude Desktop

After cloning this repo, you can update Claude's config to run your local version of the server instead of pulling from npm. This is useful for quickly testing changes before publishing.

[!NOTE] Keep in mind any changes you make on the code will only take effect after restarting the Claude Desktop app.

  1. Clone this repo and run bun install to install dependencies.
  2. Update your claude_desktop_config.json to point to your local version of the server:
jsonc
// claude_desktop_config.json
{
  "mcpServers": {
    "@fazer-ai/mcp-obsidian": {
      "command": "bun",
      "args": ["/path/to/repo/src/index.ts"],
      "env": {
        "OBSIDIAN_API_KEY": "your-obsidian-api-key"
      }
    }
  }
}

[!IMPORTANT] Note we use bun instead of bunx here.

Debugging

MCP servers talk over stdio, so normal debuggers aren’t helpful.
Use the MCP Inspector:

bash
npx @modelcontextprotocol/inspector bun /path/to/repo/src/index.ts

Open the URL it prints to step through requests (usually http://localhost:6274), inspect tool calls, and watch logs in real time.


📦 Publishing

  1. Update the version in package.json.
  2. Create GitHub release.
  3. Run bun publish.

License

MIT – see LICENSE.

Installation

TypingMind
{
  "mcpServers": {
    "fazer-ai-mcp-obsidian": {
      "command": "bunx",
      "args": [
        "@fazer-ai/mcp-obsidian@latest"
      ],
      "env": {
        "OBSIDIAN_API_KEY": "<OBSIDIAN_API_KEY>"
      }
    }
  }
}

Use Obsidian MCP Server (TypeScript + Bun) MCP with multiple AI models

TypingMind connects MCP tools at the workspace level, so once Obsidian MCP Server (TypeScript + Bun) is connected, you can use it with different AI models in TypingMind instead of setting it up separately for each model. This MCP runs locally through the TypingMind MCP connector on your device.

Setup guide to use the local connector

Use this when the MCP server needs access to local files, apps, or private resources on your computer.

1

Open the MCP settings

In TypingMind, go to Settings, Advanced Settings, then Model Context Protocol and choose Setup Connector.

  1. Open TypingMind in your browser.
  2. Click the Settings icon.
  3. Go to Advanced Settings.
  4. Open the Model Context Protocol section.
  5. Click Setup Connector and choose This Device.
TypingMind MCP connector setup screen with This Device selected
2

Run the connector command

Choose This Device, copy the command from TypingMind, and run it in Terminal. Keep the process running while you use MCP.

  1. Copy the setup command shown by TypingMind.
  2. Open Terminal on macOS or Windows Terminal on Windows.
  3. Paste and run the command.
  4. Approve the package install if Terminal asks you to proceed.
  5. Keep the Terminal window running while using MCP tools.
3

Add Obsidian MCP Server (TypeScript + Bun) as a server

When the connector status is Ready, click Edit Servers and paste the MCP server configuration.

  1. Wait until the connector status shows Ready.
  2. Click Edit Servers.
  3. Paste the Obsidian MCP Server (TypeScript + Bun) MCP server configuration.
  4. Save the server list.
  5. Refresh if you want to confirm the connector is still ready.
TypingMind MCP settings showing active server and Edit Servers button
{
  "mcpServers": {
    "fazer-ai-mcp-obsidian": {
      "command": "npx",
      "args": [
        "-y",
        "@fazer-ai/mcp-obsidian"
      ]
    }
  }
}
4

Use it across models

Save the server list, open Plugins, enable the Obsidian MCP Server (TypeScript + Bun) MCP tools, then select any supported AI model in TypingMind and use the tools in chat or assign them to an AI agent.

  1. Open the Plugins page in TypingMind.
  2. Enable the Obsidian MCP Server (TypeScript + Bun) MCP tools.
  3. Start a chat and choose the AI model you want to use.
  4. Use the MCP tools in chat or assign them to an AI agent.
  5. Switch to another AI model whenever needed without reconnecting MCP.
TypingMind chat using enabled MCP tools with a selected AI model
Can you use Obsidian MCP Server (TypeScript + Bun) to help me with this task?
Obsidian MCP Server (TypeScript + Bun)
Sure. I read it.
Here is what I found using Obsidian MCP Server (TypeScript + Bun).

Frequently asked questions

What is the Obsidian MCP Server (TypeScript + Bun) MCP server used for?

Obsidian MCP Server (TypeScript + Bun) is an MCP server that lets compatible AI clients connect to external tools and context. In TypingMind, you can add this MCP server once and make its tools available in your AI workspace.

Can I use Obsidian MCP Server (TypeScript + Bun) MCP with multiple AI models in TypingMind?

Yes. TypingMind connects MCP tools at the workspace level, so you can use Obsidian MCP Server (TypeScript + Bun) with different AI models such as Claude, ChatGPT, Gemini, or other models you have configured in TypingMind without setting up the MCP server separately for each model.

Why use Obsidian MCP Server (TypeScript + Bun) MCP with TypingMind?

TypingMind is one of the best frontends for LLM chat because it brings multiple AI models, prompts, plugins, AI agents, API keys, and MCP tools into one workspace. With Obsidian MCP Server (TypeScript + Bun) connected, you can use its MCP tools across your preferred models while keeping your chat workflow organized in TypingMind.

How do I connect Obsidian MCP Server (TypeScript + Bun) MCP to TypingMind?

Obsidian MCP Server (TypeScript + Bun) runs through the TypingMind local MCP connector. This is best when the MCP server needs access to local files, desktop apps, command-line tools, or private resources on your computer.

What tools does Obsidian MCP Server (TypeScript + Bun) MCP provide in TypingMind?

Obsidian MCP Server (TypeScript + Bun) exposes MCP capabilities that can be enabled from the TypingMind Plugins page and used in chat or assigned to AI agents.

Do I need to share my API keys with TypingMind to use Obsidian MCP Server (TypeScript + Bun) MCP?

No. TypingMind is local-first and lets you keep your model providers, API keys, prompts, and MCP configuration under your control. If Obsidian MCP Server (TypeScript + Bun) requires authentication, add the required headers, OAuth settings, or local configuration for that MCP server when you create the connection.

Related MCP Servers

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇