MCP server for LogSeq
LogSeq 的 MCP 服务器
MCP 服务器通过其 API 与 LogSeq 交互。
成分
工具
服务器实现了多个工具来与 LogSeq 交互:
list_graphs:列出所有可用的图表
list_pages:列出当前图表中的所有页面
get_page_content:返回单个页面的内容
搜索:搜索所有页面的内容
create_page:创建新页面
update_page:更新现有页面的内容
delete_page:删除页面
示例提示
最好先指示 Claude 使用 LogSeq。这样它就会始终调用该工具。
提示示例:
获取我最新会议记录的内容并进行总结
搜索所有提及项目 X 的页面并解释上下文
使用今天的会议记录创建新页面
使用最新更新更新项目状态页面
Related MCP server: SQLite MCP Server
配置
LogSeq API 配置
您可以通过两种方式使用 LogSeq API 设置配置环境:
添加到服务器配置(首选)
{
"mcp-logseq": {
"command": "uvx",
"args": [
"mcp-logseq"
],
"env": {
"LOGSEQ_API_TOKEN": "<your_api_token_here>",
"LOGSEQ_API_URL": "http://localhost:12315"
}
}
}在工作目录中创建一个包含所需变量的
.env文件:
LOGSEQ_API_TOKEN=your_token_here
LOGSEQ_API_URL=http://localhost:12315发展
建筑
准备分发包:
同步依赖项并更新锁文件:
uv sync调试
由于 MCP 服务器通过 stdio 运行,调试起来可能比较困难。为了获得最佳调试体验,我们建议使用MCP Inspector 。
您可以通过npm启动 MCP Inspector:
npx @modelcontextprotocol/inspector uv --directory /path/to/mcp-logseq run mcp-logseqMaintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Latest Blog Posts
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/ergut/mcp-logseq'
If you have feedback or need assistance with the MCP directory API, please join our Discord server