LogSeq 的 MCP 服务器
MCP 服务器通过其 API 与 LogSeq 交互。
成分
工具
服务器实现了多个工具来与 LogSeq 交互:
list_graphs:列出所有可用的图表
list_pages:列出当前图表中的所有页面
get_page_content:返回单个页面的内容
搜索:搜索所有页面的内容
create_page:创建新页面
update_page:更新现有页面的内容
delete_page:删除页面
示例提示
最好先指示 Claude 使用 LogSeq。这样它就会始终调用该工具。
提示示例:
获取我最新会议记录的内容并进行总结
搜索所有提及项目 X 的页面并解释上下文
使用今天的会议记录创建新页面
使用最新更新更新项目状态页面
配置
LogSeq API 配置
您可以通过两种方式使用 LogSeq API 设置配置环境:
添加到服务器配置(首选)
在工作目录中创建一个包含所需变量的
.env
文件:
发展
建筑
准备分发包:
同步依赖项并更新锁文件:
调试
由于 MCP 服务器通过 stdio 运行,调试起来可能比较困难。为了获得最佳调试体验,我们建议使用MCP Inspector 。
您可以通过npm
启动 MCP Inspector:
local-only server
The server can only run on the client's local machine because it depends on local resources.
通过其 API 与LogSeq交互。
Related MCP Servers
- AsecurityAlicenseAqualityA server that enables LLMs to programmatically interact with Logseq knowledge graphs, allowing creation and management of pages and blocks.Last updated -1024MIT License
- -securityFlicense-qualityEnables querying log data stored in SQLite databases through the Model Context Protocol, allowing natural language interactions with log analysis.Last updated -
- -securityFlicense-qualityA Model Context Protocol server that provides AI assistants with structured access to your Logseq knowledge graph, enabling retrieval, searching, analysis, and creation of content within your personal knowledge base.Last updated -50
- AsecurityAlicenseAqualityEnables interaction with Datadog's monitoring platform to search logs, search trace spans, and perform trace span aggregation for analysis.Last updated -3MIT License