Mcp Obsidian Server — independently scanned and version-tracked by SaferSkills.
SaferSkills independently audited Mcp Obsidian Server (Agent Skill) and scored it 100/100 (green). The audit ran 55 deterministic rules across Security, Supply Chain, Maintenance, Transparency, and Community; it found 0 high-severity and 0 lower-severity findings. The full rule-by-rule trace and per-finding evidence are below. Free, methodology-open.
Findings & checks · 0 flagged
Every scanned point with the score it earned and what moved between them.
First recorded scan — no prior version to compare against.
The primary manifest — the file an agent reads to learn what this artifact does.
一个基于Model Context Protocol (MCP)的Obsidian Local REST API服务器,允许AI助手与你的Obsidian笔记进行交互。
npx -y github:cupkappu/mcp-obsidian-servernpm install -g github:cupkappu/mcp-obsidian-server
mcp-obsidian-server# 克隆项目
git clone https://github.com/cupkappu/mcp-obsidian-server.git
cd mcp-obsidian-server
# 安装依赖
npm install
# 构建项目
npm run build在使用MCP服务器之前,你需要:
127.0.0.127124,HTTP端口是 27123创建一个 .env 文件或设置以下环境变量:
# 必需 - 你的Obsidian API密钥
export OBSIDIAN_API_KEY="your-api-key-here"
# 可选 - 服务器配置(如果使用默认值则可省略)
export OBSIDIAN_HOST="127.0.0.1" # 默认: 127.0.0.1
export OBSIDIAN_PORT="27124" # 默认: 27124 (HTTPS) 或 27123 (HTTP)
export OBSIDIAN_SECURE="true" # 默认: true (使用HTTPS)# 设置环境变量并运行
OBSIDIAN_API_KEY="your-api-key" npm start将以下配置添加到你的MCP客户端配置文件中:
#### Claude Desktop配置示例
编辑 ~/Library/Application Support/Claude/claude_desktop_config.json:
{
"mcpServers": {
"obsidian": {
"command": "npx",
"args": ["-y", "github:cupkappu/mcp-obsidian-server"],
"env": {
"OBSIDIAN_API_KEY": "your-api-key-here",
"OBSIDIAN_HOST": "127.0.0.1",
"OBSIDIAN_PORT": "27124",
"OBSIDIAN_SECURE": "true"
}
}
}
}或者如果你全局安装了:
{
"mcpServers": {
"obsidian": {
"command": "mcp-obsidian-server",
"env": {
"OBSIDIAN_API_KEY": "your-api-key-here"
}
}
}
}#### Continue.dev配置示例
在你的 continue.json 配置文件中:
{
"mcpServers": {
"obsidian": {
"command": "npx",
"args": ["@cupkappu/mcp-obsidian-server"],
"env": {
"OBSIDIAN_API_KEY": "your-api-key-here"
}
}
}
}MCP服务器提供以下工具:
get_server_info - 获取服务器信息和认证状态update_active_file - 更新当前活动文件append_to_active_file - 向当前活动文件追加内容get_file - 获取指定文件内容create_or_update_file - 创建或更新文件append_to_file - 向文件追加内容delete_file - 删除文件list_directory - 列出目录内容search_simple - 简单文本搜索get_commands - 获取可用命令列表execute_command - 执行Obsidian命令open_file - 在Obsidian中打开文件get_periodic_note - 获取周期性笔记append_to_periodic_note - 向周期性笔记追加内容一旦配置完成,你就可以在AI助手中使用类似以下的指令:
"请帮我查看今天的日记内容"
"在我的学习笔记中搜索'机器学习'"
"创建一个新的项目笔记,标题为'新项目计划'"
"列出我的笔记库根目录下的所有文件"OBSIDIAN_SECURE=false)启用详细日志:
DEBUG=1 OBSIDIAN_API_KEY="your-api-key" npm startnpm run devnpm run buildsrc/
├── index.ts # MCP服务器主文件
├── client.ts # Obsidian API客户端
└── types.ts # TypeScript类型定义
build/ # 编译后的JavaScript文件MIT License
欢迎提交Pull Request和Issue!
如果你遇到问题:
注意: 这个MCP服务器需要Obsidian Local REST API插件正常运行。请确保插件已正确安装并配置。
~30 seconds. Free. No account. Every finding cites a rule and a line of evidence.