Claude Code IDE for Obsidian

Claude Code IDE for Obsidian

Enables Claude Code CLI to interact with Obsidian by reading selections, opening files, showing diffs, and running an embedded terminal.

Category
Visit Server

README

Claude Code IDE for Obsidian

Connects the Claude Code CLI to Obsidian the same way the VS Code extension does: Claude can read your selection and open files, open files, show diffs you keep/reject, and run inside an embedded terminal.

Protocol is the WebSocket MCP variant reverse-engineered from the VS Code extension — compatible with coder/claudecode.nvim.

Build

npm install
npm run build        # -> main.js + styles.css
npm test             # protocol self-check (no Obsidian needed)

Install: copy main.js, styles.css, manifest.json into <vault>/.obsidian/plugins/obsidian-claude-code-ide/, then enable it in Settings → Community plugins.

Use

Enabling the plugin starts a WebSocket server on 127.0.0.1, writes ~/.claude/ide/<port>.lock, and is ready. Two ways to connect Claude:

  • Embedded terminal (auto-connect): ribbon icon → Claude Code terminal, or the command palette. Spawns claude with the env vars already set; it connects on its own.
  • Passive mode (no native deps): in any terminal, cd into the vault and run claude, then /ide → pick Obsidian.

node-pty (embedded terminal only)

The terminal needs node-pty, a native module that must match Obsidian's Electron ABI. It's an optional dependency — if it can't load, the terminal pane prints the passive-mode steps instead and everything else still works.

To enable it, rebuild against Obsidian's Electron:

npx electron-rebuild -v <obsidian-electron-version> -m node_modules/node-pty

Find the Electron version in Obsidian via Help → Debug info. Copy the rebuilt node_modules/node-pty next to main.js in the plugin folder.

Layout

File Concern
src/ide-server.ts WS server, JSON-RPC/MCP, auth, lock file (Obsidian-free, tested)
src/tools.ts The 11 MCP tool handlers (Obsidian-free, tested)
src/main.ts Plugin lifecycle + Obsidian EditorContext implementation + selection bridge
src/diff-modal.ts openDiff keep/reject UI
src/terminal-view.ts xterm.js + node-pty terminal

Not done

  • executeCode / getDiagnostics — no Obsidian equivalent (getDiagnostics returns []).
  • isDirty is always false (Obsidian autosaves; real dirty state isn't exposed).

Recommended Servers

playwright-mcp

playwright-mcp

A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.

Official
Featured
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.

Official
Featured
Local
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.

Official
Featured
Local
TypeScript
VeyraX MCP

VeyraX MCP

Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.

Official
Featured
Local
graphlit-mcp-server

graphlit-mcp-server

The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.

Official
Featured
TypeScript
Kagi MCP Server

Kagi MCP Server

An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.

Official
Featured
Python
E2B

E2B

Using MCP to run code via e2b.

Official
Featured
Neon Database

Neon Database

MCP server for interacting with Neon Management API and databases

Official
Featured
Exa Search

Exa Search

A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.

Official
Featured
Qdrant Server

Qdrant Server

This repository is an example of how to create a MCP server for Qdrant, a vector search engine.

Official
Featured