Skip to main content
MCP server CX Codex

Obsidian Vault MCP Server — Claude Code MCP server: how to install

Connects AI assistants to an Obsidian vault using the Local REST API. Useful for finding, reading, and extracting notes directly during development.

Install into Claude Code · Platform CLI All methods and platforms ↓
claude mcp add --env API_KEY=<API_KEY> --env API_URLS=<API_URLS> --env API_HOST=<API_HOST> --env API_PORT=<API_PORT> --env MCP_TRANSPORTS=<MCP_TRANSPORTS> --transport stdio obsidian-vault-mcp-server -- npx -y @oleksandrkucherenko/mcp-obsidian
Open on GitHub

What Obsidian Vault MCP Server does

This MCP server links the coding assistant to an Obsidian vault. Communication relies on the Obsidian Local REST API. Once configured, the assistant can query notes, read markdown files, and inspect stored knowledge.

Configuration requires setting API_KEY and API_URLS. It also accepts API_HOST, API_PORT, and MCP_TRANSPORTS when standard network settings need adjustment. The server runs via npx using @oleksandrkucherenko/mcp-obsidian.

Without an active Local REST API plugin and valid authentication key, the server fails immediately. Ensure the REST endpoint is running in Obsidian before adding the tool.

What it helps with

  • search notes inside a local Obsidian vault
  • inspect note contents from the agent prompt
  • feed personal project documentation into context

Example prompts for the agent

  • Search my Obsidian vault for notes mentioning deployment steps.
  • Read the contents of architecture.md from my Obsidian vault.
  • Find notes tagged with meeting from last week and summarize them.

How to install Obsidian Vault MCP Server

Platform CLI

claude mcp add --env API_KEY=<API_KEY> --env API_URLS=<API_URLS> --env API_HOST=<API_HOST> --env API_PORT=<API_PORT> --env MCP_TRANSPORTS=<MCP_TRANSPORTS> --transport stdio obsidian-vault-mcp-server -- npx -y @oleksandrkucherenko/mcp-obsidian

Replace <…> with your own values. 3 more environment variables are in the server README

Step by step, with commands for each platform: How to add an MCP server to Claude Code, Codex, Cursor, VS Code, Gemini CLI and more

Questions about Obsidian Vault MCP Server

How to install Obsidian Vault MCP Server in Claude Code?

Run claude mcp add mcp-obsidian-via-rest -e API_KEY=<API_KEY> -e API_URLS=<API_URLS> -- npx -y @oleksandrkucherenko/mcp-obsidian with your own credentials.

What does Obsidian Vault MCP Server do?

It connects coding agents to Obsidian vaults through a REST interface. The agent can search notes, retrieve markdown files, and use that context.

What environment variables are required?

You must supply API_KEY and API_URLS. Optional variables include API_HOST, API_PORT, and MCP_TRANSPORTS.

Similar MCP servers

All MCP servers for Notes, tasks and projects →

Project sponsors

Companies that keep this analytics open
Gold sponsor

Impressions, clicks and code copies — open statistics. We keep the numbers public for the same reason NeBlask itself is public. Become a sponsor