mcp-logseq
by ergut·★ 267·综合分 51
一个连接 Claude 和 LogSeq 知识库的 MCP 服务器,支持读写功能及可选的向量搜索。
概述
mcp-logseq 服务器通过 LogSeq 的 HTTP API 使 Claude 能够直接与知识图谱交互。它提供了全面的工具来读取、创建、更新和组织 LogSeq 中的页面,以及语义向量搜索和 DB 模式图谱支持等高级功能。服务器实现了智能 markdown 解析,将结构化内容转换为 LogSeq 的原生块格式,同时保持层次结构和元数据完整性。
试试问 AI
装完之后,这里有 5 个你可以让 AI 做的事:
什么时候选它
如果您已经使用 LogSeq 并希望将 AI 直接集成到您的知识工作流中,无需数据导出或切换上下文,请选择此服务器。
什么时候不要选它
如果您需要 LogSeq 之外的跨平台支持,或者不愿运行具有完整笔记访问权限的本地 HTTP API 服务器,请不要选择此选项。
此 server 暴露的工具
从 README 抽取出 12 个工具list_pagesBrowse your LogSeq graph pages
get_page_contentRead the content of a specific LogSeq page
create_pageCreate a new LogSeq page with structured markdown content
update_pageModify an existing LogSeq page with append or replace modes
delete_pageRemove a page from the LogSeq graph
searchFind content across the LogSeq graph by keywords
queryExecute LogSeq DSL queries to find specific content
find_pages_by_propertySearch pages by their properties (DB-mode only)
get_page_backlinksFind pages that link to a specific page
rename_pageRename a page and update all references to it
update_blockEdit block content by its UUID
vector_searchSemantic search by meaning (requires vector setup)
可对比工具
安装
第一步:启用 LogSeq API
- **设置** → **功能** → 勾选"启用 HTTP API 服务器"
- 在 LogSeq 中点击 **API 按钮 (🔌)** → **"启动服务器"**
- **生成 API 令牌**:API 面板 → "授权令牌" → 创建新令牌
第二步:添加到 Claude(无需安装!)
Claude Desktop
添加到您的配置文件(设置 → 开发者 → 编辑配置):
{
"mcpServers": {
"mcp-logseq": {
"command": "uv",
"args": ["run", "--with", "mcp-logseq", "mcp-logseq"],
"env": {
"LOGSEQ_API_TOKEN": "your_token_here",
"LOGSEQ_API_URL": "http://localhost:12315"
}
}
}
}FAQ
- 如何设置此 MCP 服务器的向量搜索功能?
- 向量搜索是可选功能,需要 Ollama(用于嵌入)和 LanceDB(向量数据库)。完整设置说明请参阅 [VECTOR_SEARCH.md](VECTOR_SEARCH.md) 指南。
- 此服务器支持哪些 LogSeq 功能?
- 该服务器支持页面管理、块操作、属性查询、命名空间、反向链接、DB 模式属性以及可选的语义向量搜索。它还包括智能 markdown 解析以保持层次结构。
mcp-logseq 对比
最后更新于 · 由 README + GitHub 公开数据自动生成。