
MCP服务器通过本地HTTP API与LogSeq交互——使像Claude这样的AI助手能够无缝读取、写入和管理你的LogSeq图。
概览
LogSeq 的 MCP 服务器将 Claude 连接到您的 LogSeq 知识库。阅读、创建和管理页面——可选支持语义向量搜索和数据库模式图。 将您的LogSeq知识库转变为一个由AI驱动的工作空间!该MCP服务器使Claude能够无缝与您的LogSeq图表交互。 - : Claude 直接处理您的 LogSeq 数据 - : 无需手动导出或复制内容 - : AI 驱动的页面创建、链接和搜索 - : 自动化重复知识工作 - (可选):使用本地 Ollama 或托管的兼容 OpenAI 嵌入按意义查找笔记 - (选择加入):在 Logseq 数据库模式图上读写类属性 1. → → 勾选“启用HTTP APIs服务器” 2.点击 LogSeq → 3.: API 面板 → “授权令牌” → 创建新文件 添加到你的配置文件(设置→开发者 →编辑配置): 利用可配置嵌入对Logseq图进行语义搜索——通过意义而非关键词查找笔记。
概述(AI 翻译)
LogSeq 的 MCP 服务器 将Claude连接到您的LogSeq知识库。阅读、创建和管理页面——可选支持语义向量搜索和数据库模式图。
✨ 你能做什么
将您的LogSeq知识库转变为一个由AI驱动的工作空间!该MCP服务器使Claude能够无缝与您的LogSeq图表交互。
🎯 现实世界的例子
** 📊 智能知识管理**
** 📝 自动化内容创作**
** 🔍 智能研究与分析**
** 🧠 语义搜索** (可选,需向量设置)
** 🤝 会议与文档工作流程**
💡 主要优势
- 零上下文切换:Claude 直接处理你的 LogSeq 数据
- 保留您的工作流程:无需手动导出或复制内容
- 智能组织:AI驱动的页面创建、链接和搜索
- 提升生产力:自动化重复性知识工作
- 语义向量搜索 (可选):通过本地 Ollama 或托管兼容 OpenAI 嵌入查找笔记
- 数据库模式支持(选择加入)*:Logseq 数据库模式图上的读写类属性
🚀 快速启动
步骤1:启用LogSeq API
本页由 AI 翻译,技术细节请以原文为准。
README
以下为原文 README 节选,完整内容请查看原文。
✨ What You Can Do
Transform your LogSeq knowledge base into an AI-powered workspace! This MCP server enables Claude to seamlessly interact with your LogSeq graphs.
🎯 Real-World Examples
📊 Intelligent Knowledge Management
"Analyze all my project notes from the past month and create a status summary"
"Find pages mentioning 'machine learning' and create a study roadmap"
"Search for incomplete tasks across all my pages"
📝 Automated Content Creation
"Create a new page called 'Today's Standup' with my meeting notes"
"Add today's progress update to my existing project timeline page"
"Create a weekly review page from my recent notes"
🔍 Smart Research & Analysis
"Compare my notes on React vs Vue and highlight key differences"
"Find all references to 'customer feedback' and summarize themes"
"Create a knowledge map connecting related topics across pages"
🧠 Semantic Search (optional, requires vector setup)
"Find everything I wrote about burnout, even if I didn't use that word"
"What notes relate to my thoughts on deep work?"
"Search across my Dutch and English notes for ideas about productivity"
🤝 Meeting & Documentation Workflow
"Read my meeting notes and create individual task pages for each action item"
"Get my journal entries from this week and create a summary page"
"Search for 'Q4 planning' and organize all related content into a new overview page"
💡 Key Benefits
- Zero Context Switching: Claude works directly with your LogSeq data
- Preserve Your Workflow: No need to export or copy content manually
- Intelligent Organization: AI-powered page creation, linking, and search
- Enhanced Productivity: Automate repetitive knowledge work
- Semantic Vector Search (optional): Find notes by meaning using local Ollama or hosted OpenAI-compatible embeddings
- DB-mode Support (opt-in): Read and write class properties on Logseq DB-mode graphs
🚀 Quick Start
Step 1: Enable LogSeq API
- Settings → Features → Check “Enable HTTP APIs server”
- Click the API button (🔌) in LogSeq → “Start server”
- Generate API token: API panel → “Authorization tokens” → Create new
Step 2: Add to your MCP client (No Installation Required!)
Claude Code
claude mcp add mcp-logseq \
--env LOGSEQ_API_TOKEN=your_token_here \
--env LOGSEQ_API_URL=http://localhost:12315 \
-- uv run --with mcp-logseq mcp-logseq
Claude Desktop
Add to your config file (Settings → Developer → Edit Config):
{
"mcpServers": {
"mcp-logseq": {
"command": "uv",
"args": ["run", "--with", "mcp-logseq", "mcp-logseq"],
安装
npx @modelcontextprotocol/inspector uv run --with mcp-logseq mcp-logseq配置
{
"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"
}
}
}
}