Obsidian CLI MCP Server

Obsidian CLI MCP Server

MCP server that exposes Obsidian vault operations over HTTP via the Obsidian CLI, enabling note management, search, and daily note operations.

Category
Visit Server

README

Obsidian CLI MCP Server

MCP server that exposes Obsidian vault operations over HTTP. Uses the obsidian CLI via subprocess — requires the Obsidian desktop app to be running.

Placeholders: Examples use <project-root>, <vault-root>, and localhost:3100 — replace with your actual paths and host/port. All examples are generic and safe for public use.

Prerequisites

  • Obsidian desktop app installed and running
  • gtimeout (GNU coreutils): brew install coreutils on macOS
  • Python 3.10+

Quick Start

cd <project-root>   # e.g. ~/projects/obsidian-cli-mcp
pip install -r requirements.txt
cp .env.example .env   # edit .env with your vault path
python -m src.server

Server listens on http://localhost:3100/mcp.

Dev mode (auto-restart on file changes):

make dev

Smoke test (run all read operations; edit hardcoded paths in scripts/smoke_test.py to match your vault):

python scripts/smoke_test.py

Tools

Tool Purpose
health Check obsidian CLI and vault status
obsidian_base_query Query .base database files
obsidian_base_views List views in a .base file
obsidian_read Read a note by name or path
obsidian_search Full-text search with context
obsidian_search_json Full-text search as JSON
obsidian_daily_read Read today's daily note
obsidian_daily_append Append to today's note (write-gated)
obsidian_files List files in a folder
obsidian_backlinks Notes that link to this note
obsidian_links Outgoing links from a note
obsidian_tags All tags with counts
obsidian_tags_file Tags for a specific file
obsidian_properties Frontmatter properties
obsidian_create Create a note (write-gated)

Environment Variables

Variable Default Purpose
OBSIDIAN_VAULT_PATH (in .env) Vault directory (cwd for obsidian CLI); see .env.example
OBSIDIAN_VAULT (none) Vault name when multiple vaults exist
OBSIDIAN_TIMEOUT_SECONDS 10 Timeout for obsidian CLI (base queries use 30s)
ALLOW_WRITE_COMMANDS false Enable create, append, property:set
MCP_HOST 0.0.0.0 Bind address
MCP_PORT 3100 Server port
MCP_TRANSPORT streamable-http stdio for Cursor command; streamable-http for URL

Connect from Continue

Place config at <vault-root>/.continue/mcpServers/obsidian-cli-mcp.yaml:

name: Obsidian CLI
version: 1.0.0
schema: v1
mcpServers:
  - name: obsidian-cli-mcp
    type: streamable-http
    url: http://localhost:3100/mcp

Start the server before using Continue. Or use cn --mcp http://localhost:3100/mcp.

Connect from Cursor

Option A – Command (recommended) – Cursor spawns the server; no manual start needed:

{
  "mcpServers": {
    "obsidian-cli-mcp": {
      "command": "python",
      "args": ["-m", "src.server"],
      "cwd": "<project-root>",
      "env": { "MCP_TRANSPORT": "stdio" }
    }
  }
}

Use your actual project path for cwd, or omit it if the project is your workspace root.

Option B – URL – Start the server manually first (python -m src.server), then add:

{
  "mcpServers": {
    "obsidian-cli-mcp": {
      "url": "http://localhost:3100/mcp"
    }
  }
}

Recommended Servers

playwright-mcp

playwright-mcp

A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.

Official
Featured
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.

Official
Featured
Local
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.

Official
Featured
Local
TypeScript
VeyraX MCP

VeyraX MCP

Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.

Official
Featured
Local
graphlit-mcp-server

graphlit-mcp-server

The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.

Official
Featured
TypeScript
Kagi MCP Server

Kagi MCP Server

An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.

Official
Featured
Python
E2B

E2B

Using MCP to run code via e2b.

Official
Featured
Neon Database

Neon Database

MCP server for interacting with Neon Management API and databases

Official
Featured
Exa Search

Exa Search

A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.

Official
Featured
Qdrant Server

Qdrant Server

This repository is an example of how to create a MCP server for Qdrant, a vector search engine.

Official
Featured