obsidian-ai-curator

obsidian-ai-curator

An MCP server that gives Claude AI direct access to your Obsidian vault, enabling natural language search, note creation, file management, and automated workflows.

Category
访问服务器

README

Obsidian AI Curator

Obsidian Plugin Claude AI MCP Server TypeScript License: MIT

The knowledge fragmentation problem: Your insights are scattered across hundreds of notes. The solution: AI-powered consolidation that actively merges related fragments into coherent knowledge. How it works: Claude AI analyzes your Obsidian vault via MCP and intelligently combines scattered thoughts.

What It Does

Gives Claude direct access to your Obsidian vault. Ask Claude to:

  • 🔍 "Search for notes about machine learning"
  • 📝 "Create a new project note with proper formatting"
  • 🏷️ "Find all notes tagged #active that need review"
  • 📁 "Move completed projects to archive"
  • 🔄 "Create a git checkpoint before making changes"
  • 🔗 "Rename this file and update all links"
  • 📅 "Add a task to today's daily note"

Quick Start

1. Install MCP Server

git clone https://github.com/nwant/obsidian-ai-curator.git
cd obsidian-ai-curator
npm install

2. Configure Your Vault Path

cp config/config.minimal.json config/config.json

Edit config/config.json and set your vault path:

{
  "vaultPath": "/path/to/your/obsidian/vault"
}

3. Add to Claude Desktop

Edit your Claude Desktop config:

  • macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
  • Windows: %APPDATA%\Claude\claude_desktop_config.json
  • Linux: ~/.config/Claude/claude_desktop_config.json
{
  "mcpServers": {
    "obsidian-vault": {
      "command": "node",
      "args": ["/absolute/path/to/obsidian-ai-curator/src/mcp-server.js"]
    }
  }
}

Important: Use the full absolute path, not relative paths or ~

4. Restart Claude Desktop

Completely quit and restart Claude Desktop to load the MCP server.

5. Verify Installation

In Claude, type:

What MCP tools do you have access to?

You should see tools like vault_scan, write_note, search_content, etc.

See Quick Start Guide for detailed instructions and optional plugin setup.

Features

  • Search & Query: Natural language search, metadata queries, Dataview integration
  • Smart Writing: Auto-formats links, validates tags, manages frontmatter
  • File Management: Rename/move files with automatic link updates
  • Tag Management: Analyze usage, validate tags, rename globally
  • Project Playbooks: Customizable structures for different project types
  • Git Integration: Checkpoint and rollback capabilities
  • Daily Notes: Quick capture and task management
  • 🚀 Automated Workflow: Claude Desktop → GitHub Issues → Claude Code → Pull Requests

See Examples for detailed use cases.

🚀 NEW: Automated Claude Code Integration

Turn errors into fixes and ideas into features - automatically!

This project now includes TWO ways to automate development with Claude Code:

Option 1: Local Execution (Recommended)

Run Claude Code on your machine - no GitHub Actions needed!

# Quick setup
bash scripts/setup-local-claude.sh

# Requirements:
# 1. Install Claude Code CLI from https://claude.ai/code
# 2. Install GitHub CLI: brew install gh
# 3. Authenticate both tools

Benefits:

  • ✅ No GitHub Actions costs
  • ✅ Runs immediately on your machine
  • ✅ Full control and visibility
  • ✅ Easy debugging

See Local Claude Code Guide for setup.

Option 2: GitHub Actions Automation

Use GitHub Actions to run Claude Code in the cloud

# Setup GitHub Actions workflow
bash scripts/setup-automation.sh

# Requires Claude Code OAuth token in GitHub Secrets

Benefits:

  • ✅ Runs in cloud, not on your machine
  • ✅ Triggered automatically by issues
  • ✅ Works even when you're offline

See GitHub Actions Workflow Guide for setup.

Documentation

Project Structure

This repository contains:

  • MCP Server (src/) - Core functionality for Claude integration
  • Obsidian Plugin (obsidian-ai-curator-plugin/) - Enhanced API performance
  • Documentation (docs/) - Comprehensive guides

Requirements

  • Node.js 18+
  • Obsidian (for vault)
  • Claude Desktop or Claude Code
  • Git (optional, for version control features)

Common Issues

"Claude doesn't see the MCP tools"

  • Did you restart Claude completely after editing the config?
  • Is the path to mcp-server.js absolute in your Claude config?

"Permission denied" errors

  • Check that your vault path in config.json is correct
  • Ensure you have read/write permissions to your vault

"Cannot find module" errors

  • Run npm install in the project directory
  • Make sure you're using Node.js 18 or higher

See Troubleshooting Guide for more help.

Testing

This project uses Jest as the test runner with a comprehensive test suite:

# Run all tests
npm test

# Run specific test suites
npm run test:unit        # Unit tests (parallel execution)
npm run test:integration # Integration tests (sequential execution)
npm run test:coverage    # With coverage report
npm run test:watch       # Watch mode for development
npm run test:verbose     # Detailed output

# Additional testing tools
npm run test:benchmark   # Performance benchmarks
npm run test:harness     # Verify test infrastructure

Jest Benefits:

  • ✅ Reliable integration tests - No vault conflicts
  • ✅ Fast unit tests - 4x parallel execution
  • ✅ Enhanced error messages - Better debugging
  • ✅ Modern tooling - Watch mode, coverage, verbose output

See test documentation for details on writing and running tests.

Contributing

Contributions welcome! Please read our contributing guidelines before submitting PRs.

License

MIT

推荐服务器

Baidu Map

Baidu Map

百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。

官方
精选
JavaScript
Playwright MCP Server

Playwright MCP Server

一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。

官方
精选
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。

官方
精选
本地
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。

官方
精选
本地
TypeScript
VeyraX

VeyraX

一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。

官方
精选
本地
graphlit-mcp-server

graphlit-mcp-server

模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。

官方
精选
TypeScript
Kagi MCP Server

Kagi MCP Server

一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。

官方
精选
Python
e2b-mcp-server

e2b-mcp-server

使用 MCP 通过 e2b 运行代码。

官方
精选
Neon MCP Server

Neon MCP Server

用于与 Neon 管理 API 和数据库交互的 MCP 服务器

官方
精选
Exa MCP Server

Exa MCP Server

模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。

官方
精选