MCP server for LogSeq

by ergut

Integrations

  • Allows interaction with LogSeq via its API, including listing graphs and pages, getting, creating, updating, and deleting pages, and searching content across all pages

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:

  1. 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" } } }
  1. Create a .env file 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:

  1. 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

You must be authenticated.

A
security – no known vulnerabilities
F
license - not found
A
quality - confirmed to work

local-only server

The server can only run on the client's local machine because it depends on local resources.

Interacts with LogSeq via its API.

  1. Components
    1. Tools
    2. Example prompts
  2. Configuration
    1. LogSeq API Configuration
  3. Development
    1. Building
    2. Debugging

Related MCP Servers

  • -
    security
    F
    license
    -
    quality
    Integrates with Sumo Logic's API to enable log search with configurable queries and time ranges, supporting error handling and easy deployment via Docker.
    Last updated -
    TypeScript
  • -
    security
    A
    license
    -
    quality
    A tool that captures browser console logs and makes them available in Cursor IDE through the Model Context Protocol (MCP).
    Last updated -
    5
    JavaScript
    MIT License
  • A
    security
    A
    license
    A
    quality
    A server that enables LLMs to programmatically interact with Logseq knowledge graphs, allowing creation and management of pages and blocks.
    Last updated -
    10
    17
    Python
    MIT License
  • A
    security
    A
    license
    A
    quality
    An MCP interface that allows AI assistants to query and analyze Grafana Loki logs using LogQL, with support for authentication and various output formats.
    Last updated -
    3
    83
    TypeScript
    MIT License
    • Linux
    • Apple

View all related MCP servers

ID: obfu4x8dc1