MCP Server for Obsidian for Cursor: Setup & Config
MCP Server for Obsidian connects Cursor to an Obsidian vault through the Local REST API plugin.
What you can do with MCP Server for Obsidian in Cursor
Let assistants search existing vault knowledge and write results back into structured Obsidian notes.
- Insert information under a heading or into frontmatter.
- List vault directories and organize note files.
Before you start: MCP Server for Obsidian in Cursor
- Obsidian with the Local REST API community plugin installed, enabled, and running
- The plugin's API key
- uvx
- An MCP-compatible client
Use the plugin settings to obtain the API key. If the client cannot locate uvx, replace the command with its absolute executable path.
MCP Server for Obsidian Cursor configuration
Choose Cursor configuration scope
For MCP Server for Obsidian, open Project: .cursor/mcp.json User: ~/.cursor/mcp.json. Merge into mcpServers at project or user scope.
Add MCP Server for Obsidian to Cursor
Use the mcp-obsidian entry below in mcpServers. Keep MCP Server for Obsidian's documented stdio connection fields and your other Cursor entries.
Check MCP Server for Obsidian in Cursor
MCP Server for Obsidian: Enable in Cursor’s MCP settings; inspect tools.
Config file · Project: .cursor/mcp.json
User: ~/.cursor/mcp.json
{
"mcpServers": {
"mcp-obsidian": {
"command": "uvx",
"args": [
"mcp-obsidian"
],
"env": {
"OBSIDIAN_API_KEY": "<API key from your Obsidian Local REST API plugin>",
"OBSIDIAN_HOST": "<Obsidian API host; defaults to 127.0.0.1>",
"OBSIDIAN_PORT": "<Obsidian API port; defaults to 27124>"
}
}
}
}MCP Server for Obsidian tools available to Cursor
MCP Server for Obsidian's stored tool list documents 7 tools; compare it with Cursor's connected tool list, because the stored list is not a live check.
- list_files_in_vault
Find list_files_in_vault under MCP Server for Obsidian in Cursor's MCP settings; inspect its arguments when the agent requests a call.
List files and directories at the vault root.
- list_files_in_dir
Find list_files_in_dir under MCP Server for Obsidian in Cursor's MCP settings; inspect its arguments when the agent requests a call.
- get_file_contents
Find get_file_contents under MCP Server for Obsidian in Cursor's MCP settings; inspect its arguments when the agent requests a call.
- search
Find search under MCP Server for Obsidian in Cursor's MCP settings; inspect its arguments when the agent requests a call.
- patch_content
Find patch_content under MCP Server for Obsidian in Cursor's MCP settings; inspect its arguments when the agent requests a call.
Use headings, frontmatter fields, or block references to locate an insertion point in a note.
- append_content
Find append_content under MCP Server for Obsidian in Cursor's MCP settings; inspect its arguments when the agent requests a call.
Add content at the end of a new or existing note.
- delete_file
Find delete_file under MCP Server for Obsidian in Cursor's MCP settings; inspect its arguments when the agent requests a call.
Remove a file or directory from the vault.
Troubleshooting MCP Server for Obsidian in Cursor
- Cursor must find uvx mcp-obsidian (from uv, for Python tools) for MCP Server for Obsidian. Enable the project/user entry in MCP settings and inspect its tools.
- Review OBSIDIAN_API_KEY, OBSIDIAN_HOST, OBSIDIAN_PORT for MCP Server for Obsidian before sharing project .cursor/mcp.json; project scope travels with the repository.
- MCP Server for Obsidian uses stdio here: Cursor must keep the configured process running; protocol output belongs on stdout and diagnostics on stderr.
- Known limitation: Requires the Obsidian Local REST API community plugin to be running.
- Known limitation: Setup needs the plugin API key and correct connection details.
- Known limitation: Deletion tools can remove vault files or directories.
- General Cursor troubleshooting lives in the /clients/cursor guide.
MCP Server for Obsidian — details. Cursor guide