This MCP server enables AI assistants like Claude to interact with your Obsidian vault, allowing for reading, creating, editing, and managing notes and tags. It provides a seamless way to use AI capabilities with your knowledge management system.
Add the MCP server to your Claude Desktop configuration file located at:
~/Library/Application Support/Claude/claude_desktop_config.json
%APPDATA%\Claude\claude_desktop_config.json
Add the following configuration, replacing the vault path with your own:
{
"mcpServers": {
"obsidian": {
"command": "npx",
"args": ["-y", "obsidian-mcp", "/path/to/your/vault", "/path/to/your/vault2"]
}
}
}
MacOS/Linux:
"/Users/username/Documents/MyVault"
Windows:
"C:\\Users\\username\\Documents\\MyVault"
You can also install via Smithery with a single command:
npx -y @smithery/cli install obsidian-mcp --client claude
After saving the configuration, restart Claude Desktop. You should see a hammer icon appear, indicating the MCP server is connected.
The MCP server provides several tools you can use with Claude:
Note Management:
read-note
- Read the contents of a notecreate-note
- Create a new noteedit-note
- Edit an existing notedelete-note
- Delete a notemove-note
- Move a note to a different locationcreate-directory
- Create a new directorySearch and Navigation:
search-vault
- Search notes in the vaultlist-available-vaults
- List all available vaults (for multi-vault setups)Tag Management:
add-tags
- Add tags to a noteremove-tags
- Remove tags from a noterename-tag
- Rename a tag across all notesmanage-tags
- List and organize tagsWhen chatting with Claude, you can ask it to perform actions in your Obsidian vault. For example:
Claude will use the appropriate tool to execute your request.
Server Not Connecting
Permission Errors
If you encounter issues, check the logs at:
~/Library/Logs/Claude/mcp*.log
%APPDATA%\Claude\logs\mcp*.log
Important: This MCP has read and write access to your vault. Always backup your Obsidian vault before using this tool. Using git is recommended, but any backup method will work.
When configuring the server, make sure to:
To add this MCP server to Claude Code, run this command in your terminal:
claude mcp add-json "obsidian" '{"command":"npx","args":["-y","obsidian-mcp","/path/to/your/vault"]}'
See the official Claude Code MCP documentation for more details.
There are two ways to add an MCP server to Cursor. The most common way is to add the server globally in the ~/.cursor/mcp.json
file so that it is available in all of your projects.
If you only need the server in a single project, you can add it to the project instead by creating or adding it to the .cursor/mcp.json
file.
To add a global MCP server go to Cursor Settings > Tools & Integrations and click "New MCP Server".
When you click that button the ~/.cursor/mcp.json
file will be opened and you can add your server like this:
{
"mcpServers": {
"obsidian": {
"command": "npx",
"args": [
"-y",
"obsidian-mcp",
"/path/to/your/vault"
]
}
}
}
To add an MCP server to a project you can create a new .cursor/mcp.json
file or add it to the existing one. This will look exactly the same as the global MCP server example above.
Once the server is installed, you might need to head back to Settings > MCP and click the refresh button.
The Cursor agent will then be able to see the available tools the added MCP server has available and will call them when it needs to.
You can also explicitly ask the agent to use the tool by mentioning the tool name and describing what the function does.
To add this MCP server to Claude Desktop:
1. Find your configuration file:
~/Library/Application Support/Claude/claude_desktop_config.json
%APPDATA%\Claude\claude_desktop_config.json
~/.config/Claude/claude_desktop_config.json
2. Add this to your configuration file:
{
"mcpServers": {
"obsidian": {
"command": "npx",
"args": [
"-y",
"obsidian-mcp",
"/path/to/your/vault"
]
}
}
}
3. Restart Claude Desktop for the changes to take effect