https://github.com/aaronsb/obsidian-mcp-plugin
High-performance Model Context Protocol (MCP) server for Obsidian that provides AI tools with direct vault access through semantic operations and HTTP transport.
https://github.com/aaronsb/obsidian-mcp-plugin
Last synced: about 1 month ago
JSON representation
High-performance Model Context Protocol (MCP) server for Obsidian that provides AI tools with direct vault access through semantic operations and HTTP transport.
- Host: GitHub
- URL: https://github.com/aaronsb/obsidian-mcp-plugin
- Owner: aaronsb
- License: mit
- Created: 2025-06-27T15:59:38.000Z (12 months ago)
- Default Branch: main
- Last Pushed: 2025-08-31T06:15:17.000Z (10 months ago)
- Last Synced: 2025-08-31T07:19:35.166Z (10 months ago)
- Language: TypeScript
- Size: 890 KB
- Stars: 61
- Watchers: 3
- Forks: 3
- Open Issues: 7
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- Contributing: CONTRIBUTING.md
- Funding: .github/FUNDING.yml
- License: LICENSE
- Security: SECURITY.md
Awesome Lists containing this project
README
# Semantic Notes Vault MCP





π¦ **[Available in the Obsidian Community Plugin directory β](https://community.obsidian.md/plugins/semantic-vault-mcp)**
**Give AI semantic agency over your knowledge graph**
This plugin connects your Obsidian vault to AI assistants through MCP (Model Context Protocol), giving them the ability to understand and navigate your notes as a connected knowledge graph, not just isolated files. Through semantic hints and graph traversal, AI gains the agency to explore concepts, follow connections, and synthesize information across your entire vault.
**MCP (Model Context Protocol)** is the open standard that lets AI assistants interact with external tools and data sources. This plugin works with any MCP-compatible client including:
- Claude Desktop (Anthropic)
- Claude Code/Continue.dev (VS Code)
- Any platform that supports local MCP servers
## Why Semantic MCP?
Traditional file access gives AI a narrow view - one document at a time. This plugin transforms that into **semantic agency**:
- **Graph Navigation**: AI follows links between notes, understanding relationships and context
- **Concept Discovery**: Semantic search finds related ideas across your vault
- **Contextual Awareness**: AI understands where information lives in your knowledge structure
- **Intelligent Synthesis**: Combine fragments from multiple notes to answer complex questions
## Quick Start
**Prerequisites:** You need an MCP-compatible AI client like Claude Desktop, Claude Code, or Continue.dev.
### 1. Install the Plugin
**Via Obsidian Community Plugins**
- Open Settings β Community plugins β Browse
- Search for "Semantic Notes Vault MCP"
- Install and enable β or install straight from the [plugin listing](https://community.obsidian.md/plugins/semantic-vault-mcp)
**Via BRAT** (for beta testing)
- Install [BRAT](https://github.com/TfTHacker/obsidian42-brat)
- Add beta plugin: `aaronsb/obsidian-mcp-plugin`
### 2. Configure Your AI Client
Three onboarding paths, ordered by audience. All three are also shown in the plugin's Settings tab with copy-ready values.
**Claude Desktop β one-click `.mcpb` install (recommended)**
Download `obsidian-mcp-.mcpb` from the [latest release](https://github.com/aaronsb/obsidian-mcp-plugin/releases/latest), then either drag it onto the Claude Desktop window or double-click it. Claude Desktop opens an install dialog with two fields β paste the URL and API key shown in the plugin's Settings tab, hit Save, and you're done.
> *Cross-platform note:* `.mcpb` files install via Claude Desktop's bundled handler. If double-click doesn't trigger Claude on your system, drag the file onto Claude Desktop's window instead, or right-click β "Open withβ¦" and pick Claude Desktop (then "always open with" if your OS asks). Behavior varies by platform: macOS usually auto-associates, Windows may need a one-time association, Linux varies by desktop environment.
**Claude Code (CLI)**
```bash
claude mcp add --transport http obsidian http://localhost:3001/mcp --header "Authorization: Bearer YOUR_API_KEY"
```
**Other MCP clients (Cline, Continue, custom integrations, multi-vault setups)**
Add an entry to the client's MCP config file β one entry per vault if you run multiple Obsidian instances on different ports:
```json
{
"mcpServers": {
"obsidian-vault": {
"transport": {
"type": "http",
"url": "http://localhost:3001/mcp",
"headers": {
"Authorization": "Bearer YOUR_API_KEY"
}
}
}
}
}
```
**Advanced: custom `.mcpb` per vault**
For multi-vault setups that want one-click install per vault, clone this repo and run the maker:
```bash
node scripts/make-mcpb.mjs
# Prompts for display name, URL, and API key
# Outputs obsidian-mcp-.mcpb with everything pre-filled
```
Drop the resulting bundle into Claude Desktop and click Install β no fields to type.
### 3. Start Using
Once connected, simply chat with your AI assistant about your notes! For example:
- "What are my recent thoughts on project X?"
- "Find connections between my psychology and philosophy notes"
- "Summarize my meeting notes from this week"
- "Create a new note linking my ideas about Y"
Your AI assistant now has these capabilities:
- Navigate your vault's link structure
- Search across all notes semantically
- Read, edit, and create notes
- Analyze your knowledge graph
- Work with Dataview queries (if installed)
- Manage Obsidian Bases (database views)
## Core Tools
The plugin provides 8 semantic tool groups that give AI comprehensive vault access:
| Tool | Purpose | Key Actions |
|------|---------|-------------|
| **π vault** | File operations | list, read, create, search, move, split, combine |
| **βοΈ edit** | Content modification | window editing, append, patch sections |
| **ποΈ view** | Content display | view files, windows, active note |
| **πΈοΈ graph** | Link navigation | traverse, find paths, analyze connections |
| **π‘ workflow** | Contextual hints | suggest next actions based on state |
| **π dataview** | Query notes | Execute DQL queries (if installed) |
| **ποΈ bases** | Database views | Query and export Bases (if available) |
| **βΉοΈ system** | Vault info | Server status, commands, web fetch |
## Documentation
Detailed documentation for each tool and feature:
- [π Vault Operations](docs/tools/vault.md) - File management and search
- [βοΈ Edit Operations](docs/tools/edit.md) - Content modification strategies
- [πΈοΈ Graph Navigation](docs/tools/graph.md) - Link traversal and analysis
- [π Dataview Integration](docs/tools/dataview.md) - Query language support
- [π Security & Authentication](docs/security.md) - API keys and permissions
- [π§ Configuration](docs/configuration.md) - Server settings and options
- [β Troubleshooting](docs/troubleshooting.md) - Common issues and solutions
## The Semantic Advantage
This plugin doesn't just give AI access to files - it provides **semantic understanding**:
### Example: Research Assistant
```
User: "Summarize my research on machine learning optimization"
AI uses semantic tools to:
1. Search for notes with ML optimization concepts
2. Traverse graph to find related papers and techniques
3. Follow backlinks to discover applications
4. Synthesize findings from multiple connected notes
```
### Example: Knowledge Explorer
```
User: "What connections exist between my notes on philosophy and cognitive science?"
AI uses graph tools to:
1. Find notes tagged with both topics
2. Analyze shared concepts via graph traversal
3. Identify bridge notes that connect domains
4. Map the conceptual overlap
```
## Features
### Semantic Search
- Advanced query operators: `tag:`, `path:`, `content:`
- Regular expressions and phrase matching
- Relevance ranking and snippet extraction
### Graph Intelligence
- Multi-hop traversal with depth control
- Backlink and forward-link analysis
- Path finding between concepts
- Tag-based navigation
### Content Operations
- Fuzzy text matching for edits
- Structure-aware modifications (headings, blocks)
- Batch operations (split, combine, move)
- Template support
### Integration
- Dataview query execution
- Bases database operations
- Web content fetching
- Read-only mode for safety
## Plugin Settings
Access settings via: Settings β Community plugins β Semantic MCP
Key configuration options:
- **Server Ports**: HTTP (3001) and HTTPS (3443)
- **Authentication**: API key protection
- **Security**: Path validation and permissions
- **Performance**: Connection pooling and caching
## Support
- **Issues**: [GitHub Issues](https://github.com/aaronsb/obsidian-mcp-plugin/issues)
- **Discussions**: [GitHub Discussions](https://github.com/aaronsb/obsidian-mcp-plugin/discussions)
- **Sponsor**: [GitHub Sponsors](https://github.com/sponsors/aaronsb)
## License
[MIT](LICENSE)