mcp-logseq
by ergut·★ 267·Score 51
An MCP server connecting Claude to LogSeq knowledge bases with read/write capabilities and optional vector search.
Overview
The mcp-logseq server enables Claude to interact directly with LogSeq knowledge graphs via its HTTP API. It provides comprehensive tools for reading, creating, updating, and organizing pages within LogSeq, along with advanced features like semantic vector search and DB-mode graph support. The server implements intelligent markdown parsing to convert structured content into LogSeq's native block format, maintaining hierarchy and metadata.
Try asking AI
After installing, here are 5 things you can ask your AI assistant:
When to choose this
Choose this if you're already using LogSeq and want to integrate AI directly into your knowledge workflow without data export or context switching.
When NOT to choose this
Don't choose this if you need cross-platform support beyond LogSeq, or if you're uncomfortable with running a local HTTP API server with full access to your notes.
Tools this server exposes
12 tools extracted from the READMElist_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)
Comparable tools
Installation
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 Claude (No Installation Required!)
Claude Desktop
Add to your config file (Settings → Developer → Edit Config):
{
"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
- How do I set up vector search with this MCP server?
- Vector search is optional and requires Ollama (for embeddings) and LanceDB (vector database). See the [VECTOR_SEARCH.md](VECTOR_SEARCH.md) guide for full setup instructions.
- What LogSeq features does this server support?
- The server supports page management, block operations, property queries, namespaces, backlinks, DB-mode properties, and optional semantic vector search. It also includes smart markdown parsing to maintain hierarchical structure.
Compare mcp-logseq with
Last updated · Auto-generated from public README + GitHub signals.