obsidian
Universal MCP server for Obsidian vault integration with OpenAI - works with Windsurf, Claude Desktop, Cursor, and any MCP client
claude mcp add --transport stdio sethdavis512-obsidian-mcp-server node /path/to/obsidian-mcp-server/dist/index.js \ --env OBSIDIAN_VAULT_PATH="/path/to/your/vault"
How to use
The Obsidian MCP Server provides a set of tools to interact with an Obsidian vault via the MCP protocol. It supports vault operations such as listing, reading, creating, updating, and deleting notes, along with tag management and link navigation. The server can run in two transports: a local stdio mode for direct use and a remote HTTP mode for network access. To get started, ensure your Obsidian vault path is correctly set via OBSIDIAN_VAULT_PATH. Then start the server in stdio mode or HTTP mode depending on your workflow. You can connect with MCP clients like Claude Desktop, Cursor, Windsurf, or VS Code to use the provided tools.
Key tools include note operations (obsidian_list_notes, obsidian_read_note, obsidian_write_note, obsidian_delete_note, obsidian_search_notes), vault information tools (obsidian_vault_stats, obsidian_list_tags, obsidian_get_tagged_notes), and link navigation tools (obsidian_get_links, obsidian_get_backlinks). Tools return data in JSON by default or can be rendered as Markdown if you request response_format=markdown. Use the tools to paginate results, filter by folder, or search by content, tags, or metadata.
How to install
Prerequisites
- Node.js (and npm) installed on your machine
- Access to a path where you want to mount your Obsidian vault
Installation steps
- Install dependencies and build the server
npm install
npm run build
- Prepare the environment
- Ensure OBSIDIAN_VAULT_PATH points to your Obsidian vault directory Optional: set TRANSPORT to http for HTTP mode and adjust HOST/PORT as needed
- Run in stdio mode (local integration)
export OBSIDIAN_VAULT_PATH=/path/to/your/vault
npm start
- Run in HTTP mode (remote access)
export OBSIDIAN_VAULT_PATH=/path/to/your/vault
export TRANSPORT=http
export PORT=3000
npm run start:http
- Optional: verify the server is responding via the MCP endpoint (default /mcp) with a client command or curl
Additional notes
Environment variables
- OBSIDIAN_VAULT_PATH: required. Absolute path to the Obsidian vault.
- TRANSPORT: optional. stdio or http. Default is stdio.
- PORT: optional. HTTP server port (default 3000).
- HOST: optional. HTTP server host (default 127.0.0.1). Common issues
- Ensure the vault path is accessible by the running process; permissions errors are common when the path is invalid.
- When using HTTP transport, ensure the specified port is open and not blocked by a firewall.
- If you update the vault contents externally, consider refreshing or re-reading to keep client state consistent. Configuration tips
- Use obsidian_list_notes with folder filters to limit results for large vaults.
- Use obsidian_get_links and obsidian_get_backlinks to explore note relationships for better navigation.
- For large note sets, rely on pagination provided by list_notes tools to avoid excessive payloads.
Related MCP Servers
git
Put an end to code hallucinations! GitMCP is a free, open-source, remote MCP server for any GitHub project
basic-memory
AI conversations that actually remember. Never re-explain your project to your AI again. Join our Discord: https://discord.gg/tyvKNccgqN
mcp
Persistent memory and cross-session learning for AI coding assistants. Cloud-based context management via MCP.
mcp -templates
A flexible platform that provides Docker & Kubernetes backends, a lightweight CLI (mcpt), and client utilities for seamless MCP integration. Spin up servers from templates, route requests through a single endpoint with load balancing, and support both deployed (HTTP) and local (stdio) transports — all with sensible defaults and YAML-based configs.
mult-fetch
A versatile MCP-compliant web content fetching tool that supports multiple modes (browser/node), formats (HTML/JSON/Markdown/Text), and intelligent proxy detection, with bilingual interface (English/Chinese).
obsidian
MCP server for Obsidian vault management - enables Claude and other AI assistants to read, write, search, and organize your notes