Pkm Logseq
FreeNot checkedEnables interaction with your Logseq personal knowledge management system via MCP, allowing retrieval of tagged notes and todo lists through Logseq's HTTP API.
About
Enables interaction with your Logseq personal knowledge management system via MCP, allowing retrieval of tagged notes and todo lists through Logseq's HTTP API.
README
A MCP server for interacting with your Logseq Personal Knowledge Management system using custom instructions
Components
Resources
logseq://guide- Initial instructions on how to interact with this knowledge base
Tools
get_personal_notes_instructions()- Get instructions on how to use the personal notes toolget_personal_notes(topics, from_date, to_date)- Retrieve personal notes from Logseq that are tagged with the specified topicsget_todo_list(done, from_date, to_date)- Retrieve the todo list from Logseq
Configuration
The following environment variables can be configured:
LOGSEQ_API_KEY: API key for authenticating with Logseq (default: "this-is-my-logseq-mcp-token")LOGSEQ_URL: URL where the Logseq HTTP API is running (default: "http://localhost:12315")
Quickstart
Install
Claude Desktop and Cursor
On MacOS: ~/Library/Application\ Support/Claude/claude_desktop_config.json
On Windows: %APPDATA%/Claude/claude_desktop_config.json
Published Servers Configuration
"mcpServers": {
"mcp-pkm-logseq": {
"command": "uvx",
"args": [
"mcp-pkm-logseq"
],
"env": {
"LOGSEQ_API_TOKEN": "your-logseq-api-token",
"LOGSEQ_URL": "http://localhost:12315"
}
}
}
Claude Code
claude mcp add mcp-pkm-logseq uvx mcp-pkm-logseq
Start Logseq server
Logseq's HTTP API is an interface that runs within your desktop Logseq application. When enabled, it starts a local HTTP server (default port 12315) that allows programmatic access to your Logseq knowledge base. The API supports querying pages and blocks, searching content, and potentially modifying content through authenticated requests.
To enable the Logseq HTTP API server:
- Open Logseq and go to Settings (upper right corner)
- Navigate to Advanced
- Enable "Developer mode"
- Enable "HTTP API Server"
- Set your API token (this should match the
LOGSEQ_API_KEYvalue in the MCP server configuration)
For more detailed instructions, see: https://logseq-copilot.eindex.me/doc/setup
Create MCP PKM Logseq Page
Create a page named "MCP PKM Logseq" in your Logseq graph to serve as the guide for AI assistants. Add the following content:
- Description of your tagging system (e.g., which tags represent projects, areas, resources)
- List of frequently used tags and what topics they cover
- Common workflows you use to organize information
- Naming conventions for pages and blocks
- Instructions on how you prefer information to be retrieved
- Examples of useful topic combinations for searching
- Any context about your personal knowledge management approach
This page will be displayed whenever the AI thinks it needs to understand the user.
Development
Building and Publishing
To prepare the package for distribution:
- Sync dependencies and update lockfile:
uv sync
- Build package distributions:
uv build
This will create source and wheel distributions in the dist/ directory.
- Publish to PyPI:
uv publish
Note: You'll need to set PyPI credentials via environment variables or command flags:
- Token:
--tokenorUV_PUBLISH_TOKEN - Or username/password:
--username/UV_PUBLISH_USERNAMEand--password/UV_PUBLISH_PASSWORD
Debugging
Since MCP servers run over stdio, debugging can be challenging. For the best debugging experience, we strongly recommend using the MCP Inspector.
You can launch the MCP Inspector via npm with this command:
npx @modelcontextprotocol/inspector uv --directory /Users/ronie/MCP/mcp-pkm-logseq run mcp-pkm-logseq
Upon launching, the Inspector will display a URL that you can access in your browser to begin debugging.
Add Development Servers Configuration to Claude Desktop
"mcpServers": {
"mcp-pkm-logseq": {
"command": "uv",
"args": [
"--directory",
"/<parent-directories>/mcp-pkm-logseq",
"run",
"mcp-pkm-logseq"
],
"env": {
"LOGSEQ_API_TOKEN": "your-logseq-api-token",
"LOGSEQ_URL": "http://localhost:12315"
}
}
}
Installing Pkm Logseq
This server has no published package — it is built from source. Open the repository and follow its README.
▸ github.com/ruliana/mcp-pkm-logseqFAQ
Is Pkm Logseq MCP free?
Yes, Pkm Logseq MCP is free — one-click install via Unyly at no cost.
Does Pkm Logseq need an API key?
No, Pkm Logseq runs without API keys or environment variables.
Is Pkm Logseq hosted or self-hosted?
Self-hosted: the server runs locally on your machine via the install command above.
How do I install Pkm Logseq in Claude Desktop, Claude Code or Cursor?
Open Pkm Logseq on unyly.org, pick your client tab (Claude Desktop, Claude Code, Cursor) and press Install — the config is generated automatically, no JSON editing.
Related MCPs
Notion
Read and write pages in your workspace
by NotionLinear
Issues, cycles, triage — from Claude
by LinearGoogle Drive
Search and read your Drive files
by Googlemindsdb/mindsdb
Connect and unify data across various platforms and databases with [MindsDB as a single MCP server](https://docs.mindsdb.com/mcp/overview).
by mindsdbfulcradynamics/fulcra-context-mcp
Access personal health and biometric data (sleep stages, heart rate, HRV, glucose, workouts), calendar and location via the Fulcra Life API.
by fulcradynamicsrinadelph/Agent-MCP
Framework for building multi-agent systems that coordinate over MCP, with task management, shared context and RAG.
by rinadelphWhenLabs-org/when
Developer toolkit: stack detection for AI context files, port conflicts, .env schema validation, docs drift, dependency license audits and task timing.
by WhenLabs-orgBeltran12138/wecom-docs-mcp-server
WeCom (Enterprise WeChat) document operations via MCP: create, read, and edit Docs and Smartsheets (9 tools). Fills the doc-CRUD gap — existing WeCom MCP server
by Beltran12138freema/mcp-gsheets
Google Sheets API integration for reading, writing, formatting and sheet management.
by freemamattijsdp/dbt-docs-mcp
dbt-core (OSS) project metadata, model and column-level lineage, and dbt documentation.
by mattijsdpCompare Pkm Logseq with
Not sure what to pick?
Find your stack in 60 seconds
Author?
Embed badge for your README
Browse similar
All productivity MCPs
