Obsidian MCP是一款工具,它允许你通过模型上下文协议与你的Obsidian知识库进行交互。借助标准化接口,该工具能让AI助手读取、写入和操作你Obsidian知识库中的笔记。
npm install
npm run build
{
"mcpServers": {
"Obsidian": {
"command": "node",
"args": ["/Users//obsisian-mcp/build/index.js" ],
"env": {
"apiKey": "" ,
"port": "27123",
"host": "127.0.0.1"
}
}
}
}
创建 .env 文件,并按上述说明配置 "apiKey"、"port" 和 "host"。
以下是已实现的工具:
{
"path": "path/to/note.md"
}
{}
{
"path": "optional/folder/path"
}
{
"path": "path/to/note.md",
"operation": "append|prepend|replace",
"targetType": "heading|block|frontmatter",
"target": "target_identifier",
"content": "content to insert"
}
{
"query": {
// JsonLogic查询对象
}
}