Logseq API MCP Server
About
A MCP server that uses Logseq API to extract and interact with Logseq notes.
Details
- Author
- gustavo-meilus
- GitHub stars
- 30
- Downloads
- 419
- Categories
- Knowledge Base
Jump to
- 21 tools: 12 read (search, query, page/block retrieval) and 10 write (create, edit, delete pages/blocks)
- Automatic tool discovery: drop a Python file into src/tools/ — no registration needed
- Privacy filter: pages tagged with tags from LOGSEQ_EXCLUDE_TAGS are hidden from all read operations
- DB‑mode support: set LOGSEQ_DB_MODE=true to enable database‑format API paths and Datalog‑powered queries
- Full‑text search across blocks, pages, and file names
- Backlink analysis including block‑level references
Setting up with Highlight
This MCP is not yet compatible with Highlight’s one-click setup. However, you can still use it with Highlight by following these steps:
- Download and install Highlight from highlightai.com/download
- Navigate to the plugins tab and select "Add Custom Plugin"
-
Configure the plugin with the settings below
Plugin Name
Logseq API MCP ServerCommand (node, npx, python, etc.)Please refer to the README for specific instructions on how to obtain API keys or other required environment variables.
- Enable "Start Automatically" if you want the plugin to start when Highlight launches
From the repository
Clone the repository, run uv sync, copy .env.template to .env, and set LOGSEQ_API_ENDPOINT (default http://127.0.0.1:12315/api) and LOGSEQ_API_TOKEN (obtain from Logseq Settings → Features → Developer mode). Then add the server to your Claude Desktop config (~/.claude/claude_desktop_config.json) with uv run --directory /path/to/logseq-api-mcp python src/server.py. Restart Claude Desktop; all 21 tools become available.
Claude Desktop / Cursor
Paste into your MCP client config file to install this server.
{
"mcpServers": {
"logseq api mcp server": {
"logseq-api-mcp": {
"command": "uv",
"args": [
"sync"
]
}
}
}
}
McpServers
{
"logseq-api-mcp": {
"command": "uv",
"args": [
"sync"
]
}
}
logseq-api-mcp
Your AI assistant starts every session blind to your Logseq knowledge graph. logseq-api-mcp fixes that: 21 tools to read, write, query, and search your notes — auto-registered the moment you drop a Python file into src/tools/.
<picture>
<source media="(prefers-color-scheme: dark)" srcset="assets/architecture-dark.svg">
<source media="(prefers-color-scheme: light)" srcset="assets/architecture-light.svg">
</picture>
---
Quick Start
Step 1 — Install
git clone https://github.com/gustavo-meilus/logseq-api-mcp.git
cd logseq-api-mcp
uv sync
Step 2 — Configure
```bash
cp .env.template .env
Sign in to leave a review
Use Google, GitHub, or an email account so ratings stay tied to real people.
No reviews posted yet.


