Obsidian MCP Server
About
This TypeScript-based MCP server enables users to manage and summarize text notes, providing tools for note creation and summarization prompts.
Details
- Author
- Sunwood-ai-labs
- Repository
- Sunwood-ai-labs/obsidian-mcp
- GitHub stars
- 10
- Downloads
- 15
- Categories
- AI, Productivity
Jump to
Setting up with Highlight
Follow these steps to add this server as a custom Highlight plugin:
- Download and install Highlight from highlightai.com/download
- Navigate to the plugins tab and select "Add Custom Plugin"
-
Configure the plugin with the settings below
Plugin Name
Obsidian MCP ServerCommand (node, npx, python, etc.)/path/to/obsidian-mcp/build/index.jsEnvironment-
OBSIDIAN_API_KEY
your-api-key-here
Please refer to the README for specific instructions on how to obtain API keys or other required environment variables.
-
OBSIDIAN_API_KEY
- Enable "Start Automatically" if you want the plugin to start when Highlight launches
From the repository
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"
}
}
}
}
npm install
get_vault_contents
Retrieve contents of Obsidian vault. Takes path as optional parameter (default: root directory) and returns structured JSON response.
- get_vault_contents - Retrieve contents of Obsidian vault
- Takes path as optional parameter (default: root directory)
- Returns structured JSON response
Claude Desktop / Cursor
Paste into your MCP client config file to install this server.
{
"mcpServers": {
"obsidian mcp server": {
"env": {
"OBSIDIAN_API_KEY": "your-api-key-here"
},
"args": [],
"command": "/path/to/obsidian-mcp/build/index.js"
}
}
}
Linux
{
"env": {
"OBSIDIAN_API_KEY": "your-api-key-here"
},
"args": [],
"command": "/path/to/obsidian-mcp/build/index.js"
}
Macos
{
"env": {
"OBSIDIAN_API_KEY": "your-api-key-here"
},
"args": [],
"command": "/path/to/obsidian-mcp/build/index.js"
}
Windows
{
"env": {
"OBSIDIAN_API_KEY": "your-api-key-here"
},
"args": [],
"command": "/path/to/obsidian-mcp/build/index.js"
}
<div align="center">
<h1>obsidian-mcp MCP Server</h1>
<p>
<a href="https://github.com/Sunwood-ai-labs/obsidian-mcp">
</a>
<a href="https://github.com/Sunwood-ai-labs/obsidian-mcp/issues">
</a>
<a href="https://github.com/Sunwood-ai-labs/obsidian-mcp/blob/main/LICENSE">
</a>
</p>
<p>
</p>
</div>
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:
- Resources representing Obsidian vault contents
- Tools for accessing vault data
- API integration with Obsidian
Project Statistics
- Total lines of code: 345
- Main files:
- src/tool-handlers.ts (76 lines)
- src/resource-handlers.ts (45 lines)
- src/server.ts (32 lines)
- src/api-client.ts (25 lines)
Directory Structure
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
Features
Resources
- Access Obsidian server info viaobsidian://server-info URI
- Get vault contents with metadata
- JSON format for easy integration
Tools
-get_vault_contents - Retrieve contents of Obsidian vault
- Takes path as optional parameter (default: root directory)
- Returns structured JSON response
API Integration
- Secure HTTPS connection with Obsidian API - Custom axios client with error handling - Windows path normalization supportDevelopment
Prerequisites
- Node.js v18+ - TypeScript 5.3+ - Obsidian API key (set as OBSIDIAN_API_KEY environment variable)Setup
# Install dependencies
npm install
Build the server
npm run build
Start development server with auto-rebuild
npm run watch
Installation
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"
}
}
}
}
Debugging
We recommend using the MCP Inspector:
npm run inspector
The Inspector will provide a URL to access debugging tools in your browser.
Dependencies
Runtime
- @modelcontextprotocol/sdk: MCP server implementation - axios: HTTP client for API communicationDevelopment
- @types/node: TypeScript definitions for Node.js - typescript: TypeScript compilerSign in to leave a review
Use Google, GitHub, or an email account so ratings stay tied to real people.
No reviews posted yet.

