obsidian-mcp
Single-container MCP server for an Obsidian vault, providing 14 tools to manage notes, directories, tags, and trash with authentication, CORS, and SSE streaming.
README
obsidian-mcp
Single-container MCP server for an Obsidian vault. Handles authentication, CORS, SSE streaming, and exposes 14 vault-management tools — no nginx or supergateway needed.
Quick start
docker run -d --name mcp \
-p 127.0.0.1:3000:3000 \
-v /path/to/your/vault:/vault \
-e VAULT_PATH=/vault/Obsidian\ Vault \
ghcr.io/lpfchan/mcp
Or with docker-compose:
services:
mcp:
build: .
container_name: mcp
ports:
- 127.0.0.1:3000:3000
environment:
- VAULT_PATH=/vault/Obsidian Vault
volumes:
- ./vault:/vault
Configuration
| Variable | Default | Description |
|---|---|---|
VAULT_PATH |
(required) | Path to the Obsidian vault inside the container |
MCP_TOKEN |
f304...fcb |
API token for Bearer or URL-path auth |
PORT |
3000 |
HTTP listen port |
ALLOWED_ORIGIN |
https://chat.lost.plus |
CORS allowed origin |
HOST |
0.0.0.0 |
Bind address |
Authentication supports both Authorization: Bearer <token> headers and URL-path tokens (/<token>/mcp).
Tools
| Tool | Description |
|---|---|
list-available-vaults |
Lists available vault names |
read-note |
Reads a note's content |
create-note |
Creates a new note |
edit-note |
Edits a note (append, prepend, overwrite, or targeted replace) |
search-vault |
Searches content, filenames, or tags (with fuzzy mode) |
list-notes |
Lists all .md files with optional stats |
move-note |
Moves or renames a note |
create-directory |
Creates a directory in the vault |
delete-note |
Moves a note to .trash |
add-tags |
Adds tags to frontmatter |
remove-tags |
Removes tags from frontmatter |
rename-tag |
Renames a tag across all notes |
delete-directory |
Permanently deletes a directory |
open-trash |
Lists files in .trash |
recover-from-trash |
Recovers a file from .trash |
Testing
npm install
npm test
59 tests across 18 suites covering every tool, auth, CORS, and edge cases.
Recommended Servers
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.
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.
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.
VeyraX MCP
Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.
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.
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.
E2B
Using MCP to run code via e2b.
Neon Database
MCP server for interacting with Neon Management API and databases
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.
Qdrant Server
This repository is an example of how to create a MCP server for Qdrant, a vector search engine.