Obsidian Integration
STDIOA Model Context Protocol server for Obsidian integration
A Model Context Protocol server for Obsidian integration
A Model Context Protocol server for Obsidian integration
This is a TypeScript-based MCP server that implements integration with Obsidian. It demonstrates core MCP concepts by providing:
src/tool-handlers.ts
(76 lines)src/resource-handlers.ts
(45 lines)src/server.ts
(32 lines)src/api-client.ts
(25 lines)obsidian-mcp/
├── .codegpt/
│ └── head
├── src/
│ ├── api-client.ts
│ ├── index.ts
│ ├── resource-handlers.ts
│ ├── server.ts
│ └── tool-handlers.ts
├── .SourceSageignore
├── package.json
├── README.md
└── tsconfig.json
obsidian://server-info
URIget_vault_contents
- Retrieve contents of Obsidian vault
# Install dependencies npm install # Build the server npm run build # Start development server with auto-rebuild npm run watch
To use with Claude Desktop, add the server config:
On MacOS: ~/Library/Application Support/Claude/claude_desktop_config.json
On Windows: %APPDATA%/Claude/claude_desktop_config.json
{ "mcpServers": { "obsidian-mcp": { "command": "/path/to/obsidian-mcp/build/index.js", "env": { "OBSIDIAN_API_KEY": "your-api-key-here" } } } }
We recommend using the MCP Inspector:
npm run inspector
The Inspector will provide a URL to access debugging tools in your browser.