obsidian-http
First HTTP-native MCP server for Obsidian - Compatible with any MCP client (Claude Code, Codex, Gemini, etc.) without stdio bugs
claude mcp add --transport stdio nasandnora-obsidian-http-mcp npx -y obsidian-http-mcp
How to use
Obsidian HTTP MCP is a dedicated HTTP-native MCP server that translates between MCP clients (like Claude Code CLI, Claude Desktop, Codex, Gemini, and other MCP-enabled AI tools) and Obsidian's REST API. This eliminates stdio transport issues and BrokenPipeError by serving requests over HTTP and proxying them to Obsidian, so your AI can read, create, edit, move, and delete notes directly in your Obsidian vault. Your AI can connect via the MCP protocol to http://localhost:3000/mcp by default, after you start the server and configure the transport in your AI client. The server is designed to be fast (sub-200ms responses) and token-conscious, making it suitable for large vaults with thousands of notes. To use it, install the MCP server globally, start obsidian-http-mcp, and then register the MCP transport in your AI tool to point to the server’s MCP endpoint. The project supports cross-platform setups (Windows, Linux, WSL2) and can be run on the same system as Obsidian or remotely.
How to install
Prerequisites:
- Node.js v18+ installed on the machine where you will run the server
- Obsidian installed if you want to connect directly to a local vault
- Access to a terminal/command prompt
Step-by-step:
- Install the MCP server globally via npm:
npm install -g obsidian-http-mcp
- Start the server (default port is 3000):
obsidian-http-mcp
-
If you need to customize the port or API key, you can pass CLI options or use environment variables as described in the README (e.g., OBSIDIAN_API_KEY, OBSIDIAN_BASE_URL, PORT). The server exposes an MCP endpoint at http://<host>:3000/mcp.
-
Connect your MCP-enabled AI to the server by configuring the MCP transport to the server URL, e.g.: http://localhost:3000/mcp. On remote machines, use the appropriate IP address.
-
Optional: If you need to reconfigure, see the setup/config options described in the README and run obsidian-http-mcp --setup to save configuration to ~/.obsidian-mcp/config.json.
Additional notes
Tips and common issues:
- The server binds to 0.0.0.0 for cross-platform compatibility; avoid exposing it directly to the open internet without a reverse proxy and TLS.
- Default MCP port is 3000; if you encounter port conflicts, you can start the server on a different port (e.g., obsidian-http-mcp --port 3001).
- If you are using WSL2 with Obsidian on Windows, install and run the MCP server on Windows for best performance, or ensure proper networking between the WSL2 and Windows hosts.
- Ensure Obsidian's Local REST API plugin is configured and enabled with the API key accessible to the MCP server if you are using a local Obsidian REST API.
- For AI integration, remember to configure your AI’s MCP transport with the server URL and port (e.g., http://SERVER_IP:3000/mcp).
- If you run into connectivity issues from an external network, consider using a reverse proxy (nginx or Caddy) with TLS and proper firewall rules.
Related MCP Servers
rohlik
MCP server that lets you shop groceries across the Rohlik Group platforms (Rohlik.cz, Knuspr.de, Gurkerl.at, Kifli.hu, Sezamo.ro)
mcp -chart-minio
mcp-server-chart私有化部署方案
modular
A Model Context Protocol (MCP) proxy server that enables efficient management of large tool collections across multiple MCP servers by grouping them and loading tool schemas on-demand.
kanban
MCP Kanban is a specialized middleware designed to facilitate interaction between Large Language Models (LLMs) and Planka, a Kanban board application. It serves as an intermediary layer that provides LLMs with a simplified and enhanced API to interact with Planka's task management system.
pubnub
PubNub MCP Model Context Protocol Server for use in Cursor, Windsurf, Claude Desktop, Claude Code and OpenAI Codex and more!
cco
Real-time audit and approval system for Claude Code tool calls.