Obsidian Claude Code

by iansinnott

Not rated
GitHub

About

An Obsidian plugin that integrates Claude Code into your vaults via an MCP server.

Details

Author
iansinnott
Categories
Developer Tools, Other, AI

Setup

Install Obsidian Claude Code in your MCP client (Claude Desktop, Cursor, Windsurf, and others).

Repository: https://github.com/iansinnott/obsidian-claude-code-mcp

Follow the installation instructions in the repository README, then restart your MCP client.

An Obsidian plugin that implements an MCP (Model Context Protocol) server to enable Claude Code integration with Obsidian vaults.

This plugin allows Claude Code and other MCP clients (like Claude Desktop) to interact with your Obsidian vault, providing AI-powered assistance with direct access to your notes and files.

- Dual Transport MCP Server: Supports both WebSocket (for Claude Code) and HTTP/SSE (for Claude Desktop)
- Auto-Discovery: Claude Code automatically finds and connects to your vault
- File Operations: Read and write vault files through MCP protocol
- Workspace Context: Provides current active file and vault structure to Claude
- Multiple Client Support: Connect both Claude Code and Claude Desktop simultaneously
- Configurable Ports: Avoid conflicts when running multiple vaults

This plugin serves as an MCP server that various Claude clients can connect to. Here's how to configure different clients:

Claude Desktop requires a special configuration to connect to the Obsidian MCP server because it does not directly support HTTP transports. We will usemcp-remote, a tool that creates a localstdiobridge to the server's HTTP endpoint.
-

Install and enablethis plugin in Obsidian.

Make sure you have Node.js installed, asnpx(which comes with Node.js) is used to run the bridge tool.

Locate your Claude Desktop config file:

- macOS:$HOME/Library/Application Support/Claude/claude_desktop_config.json
- Windows:%APPDATA%\Claude\claude_desktop_config.json

Add the Obsidian MCP serverto your config using themcp-remotecommand.npxwill automatically download and run it for you.

{ "mcpServers": { "obsidian": { "command": "npx", "args": ["mcp-remote", "http://localhost:22360/sse"], "env": {} } } }

Restart Claude Desktopafter making the configuration change.

Test the connectionby asking Claude about your vault: "What files are in my Obsidian vault?"

Other MCP Clients (with direct HTTP support)

If you are using an MCP client that directly supports the legacy "HTTP with SSE" transport, you can use a simpler configuration without themcp-remotebridge.

{ "mcpServers": { "obsidian": { "url": "http://localhost:22360/sse", "env": {} } } }

Claude Code automatically discovers and connects to Obsidian vaults through WebSocket.
- Install and enablethis plugin in Obsidian
- Run Claude Codein your terminal:claude
- Select your vaultusing the/idecommand
- Choose "Obsidian"from the IDE list
- Claude Code will automatically connect via WebSocket

Default Port: The plugin uses port22360by default to avoid conflicts with common development services.
- Go toObsidian SettingsCommunity PluginsClaude CodeSettings
- Change the"HTTP Server Port"in the MCP Server Configuration section
- Update your Claude Desktop configto use the new port:

{ "mcpServers": { "obsidian": { "url": "http://localhost:22360/mcp", "env": {} } } }
NOTE: You can change the port in the settings.

Multiple Vaults: If you run multiple Obsidian vaults with this plugin, each vault needs a unique port. The plugin will automatically detect port conflicts and guide you to configure different ports.

[!IMPORTANT] This plugin intentionally uses an older MCP specification for HTTP transport. The latest"Streamable HTTP" protocol (2025-03-26)is not yet supported by most MCP clients, including Claude Code and Claude Desktop.

To ensure compatibility, we use the legacy"HTTP with SSE" protocol (2024-11-05). Adhering to the newest specification will lead to connection failures with current tools.

- Verify the config file path and JSON syntax
- Ensure Obsidian is running with the plugin enabled
- Check that the port (22360) isn't blocked by firewall
- Restart Claude Desktop after config changes

- Verify the plugin is enabled in Obsidian
- Check for.lockfiles in Claude config directory:

- $CLAUDE_CONFIG_DIR/ide/if environment variable is set
- ~/.config/claude/ide/(default since Claude Code v1.0.30)
- ~/.claude/ide/(legacy location)

- Configure a different port in plugin settings
- Update client configurations to match the new port
- Common alternative ports: 22361, 22362, 8080, 9090

This plugin implements a flexible tool system that allows different tools to be exposed to different MCP clients:
-

Shared Tools(available to both IDE and MCP clients):

- File operations:view,str_replace,create,insert
- Workspace operations:get_current_file,get_workspace_files
- Obsidian API access:obsidian_api

IDE-specific Tools(only available via Claude Code WebSocket):

- getDiagnostics- System and vault diagnostics
- openDiff- Diff view operations (stub for Obsidian)
- close_tab- Tab management (stub for Obsidian)
- closeAllDiffTabs- Bulk tab operations (stub for Obsidian)

MCP-only Tools(only available via HTTP/SSE):

- Currently none, but the architecture supports adding them

For Shared Tools (available to both IDE and MCP):

- Add the tool definition tosrc/tools/general-tools.tsin theGENERAL_TOOL_DEFINITIONSarray - Add the implementation in thecreateImplementations()method ofGeneralToolsclass - The tool will automatically be available to both WebSocket and HTTP clients - Add the tool definition tosrc/ide/ide-tools.tsin theIDE_TOOL_DEFINITIONSarray - Add the implementation in thecreateImplementations()method ofIdeToolsclass - The tool will only be available to Claude Code via WebSocket - Add the tool definition tosrc/tools/mcp-only-tools.tsin theMCP_ONLY_TOOL_DEFINITIONSarray - Create an implementation class similar toGeneralToolsorIdeTools - Updatesrc/mcp/dual-server.tsto register the tools only to the HTTP registry

- WebSocket Registry: Contains shared tools + IDE-specific tools
- HTTP Registry: Contains shared tools + MCP-only tools

- Claude Code gets access to IDE-specific functionality
- Standard MCP clients only see appropriate tools
- Shared functionality is available to all clients

This project uses TypeScript to provide type checking and documentation. The repo depends on the latest plugin API (obsidian.d.ts) in TypeScript Definition format, which contains TSDoc comments describing what it does.

- Update yourmanifest.jsonwith your new version number, such as1.0.1, and the minimum Obsidian version required for your latest release.
- Update yourversions.jsonfile with"new-plugin-version": "minimum-obsidian-version"so older versions of Obsidian can download an older version of your plugin that's compatible.
- Create new GitHub release using your new version number as the "Tag version". Use the exact version number, don't include a prefixv. See here for an example:
https://github.com/obsidianmd/obsidian-sample-plugin/releases
- Upload the filesmanifest.json,main.js,styles.cssas binary attachments. Note: The manifest.json file must be in two places, first the root path of your repository and also in the release.
- Publish the release.

This is a web browser that enables your coding agent, such as Claude Code, to visit websites on your behalf and assist you in identifying bugs or creating UI test cases.

next-devtools-mcp is a MCP server that provides Next.js development tools and utilities for AI coding assistants like Claude and Cursor.

A demonstration server for ActionKit, providing access to Slack actions via Claude Desktop.

MCP server that lets Claude Code agents delegate tasks to agents in other project directories, with parallel dispatch, sessions, and async jobs.

Anchor Browser (https://anchorbrowser.io) is secure infrastructure for computer-use agents — stealth cloud browsers, authentication, captcha bypass, and a hosted MCP server for Cursor, Claude, and Windsurf.

Open-source Claude Code plugin replacing Read/Grep/Edit/Bash with token-efficient versions. Independently benchmarked at 57% token reduction on real codebases. 40 MCP tools.

Connects Blender to Claude AI via the Model Context Protocol (MCP), enabling direct interaction and control for prompt-assisted 3D modeling, scene creation, and manipulation.

Context-optimized security plugin for Claude Code that builds architecture maps and redacts secrets.

Charon gives AI clients scoped, auditable access to Lethe memory. connect to Chatgpt or Claude to store memories locally.

Score CLAUDE.md/AGENTS.md, validate clarx-manifest.json, generate CI workflows, and pull repo scan findings into Cursor, Claude, or Grok.

No reviews yet — be the first

Sign in to leave a review

Use Google, GitHub, or an email account so ratings stay tied to real people.

Email sign in

No reviews posted yet.