MCP server to work with LogSeq via the local HTTP server
Project description
MCP server for LogSeq
MCP server to interact with LogSeq via its API.
Components
Tools
The server implements multiple tools to interact with LogSeq:
- list_graphs: Lists all available graphs
- list_pages: Lists all pages in the current graph
- get_page_content: Return the content of a single page
- search: Search for content across all pages
- create_page: Create a new page
- update_page: Update content of an existing page
- delete_page: Delete a page
Example prompts
It's good to first instruct Claude to use LogSeq. Then it will always call the tool.
Example prompts:
- Get the contents of my latest meeting notes and summarize them
- Search for all pages where Project X is mentioned and explain the context
- Create a new page with today's meeting notes
- Update the project status page with the latest updates
Configuration
LogSeq API Configuration
You can configure the environment with LogSeq API settings in two ways:
- Add to server config (preferred)
{
"mcp-logseq": {
"command": "uvx",
"args": [
"mcp-logseq"
],
"env": {
"LOGSEQ_API_TOKEN": "<your_api_token_here>",
"LOGSEQ_API_URL": "http://localhost:12315"
}
}
}
- Create a
.envfile in the working directory with the required variables:
LOGSEQ_API_TOKEN=your_token_here
LOGSEQ_API_URL=http://localhost:12315
Development
Building
To prepare the package for distribution:
- Sync dependencies and update lockfile:
uv sync
Debugging
Since MCP servers run over stdio, debugging can be challenging. For the best debugging experience, we recommend using the MCP Inspector.
You can launch the MCP Inspector via npm with:
npx @modelcontextprotocol/inspector uv --directory /path/to/mcp-logseq run mcp-logseq
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file mseep_mcp_logseq-0.1.0.tar.gz.
File metadata
- Download URL: mseep_mcp_logseq-0.1.0.tar.gz
- Upload date:
- Size: 5.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.11.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
af6403ccf175cbec64673c091c587b0c62b584eef52f44533867c4b9764245c3
|
|
| MD5 |
6db40e5f7e2465c5bc5ca515501a47f8
|
|
| BLAKE2b-256 |
7c90efce1c91737325f709eb35be1c8005b15b35177cdcaab3e4460773fbd59f
|
File details
Details for the file mseep_mcp_logseq-0.1.0-py3-none-any.whl.
File metadata
- Download URL: mseep_mcp_logseq-0.1.0-py3-none-any.whl
- Upload date:
- Size: 6.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.11.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
91958abeff2ea0e8fb23f15b7f7a187d9bcbabaa83df131e066ca9e32b8edd8f
|
|
| MD5 |
112d65be0a9dfed30296c044180445dd
|
|
| BLAKE2b-256 |
2b1db379907a39115fc0340023bb61efb0ac8ea94e2ef9163f35461e702b4726
|