Logseq MCP Server

Logseq Model Context Protocol Agent

Local serverstdio

What is the Logseq MCP server?

Logseq Model Context Protocol Agent. The logseq mcp server wraps that behind the Model Context Protocol, so an assistant can use it through 3 defined tools rather than through you.

What it actually does

A powerful AI assistant that connects Logseq with Claude and other LLMs using the Model Context Protocol (MCP).

Logseq MCP Agent lets AI assistants like Claude directly interact with your Logseq knowledge graph - search your notes, create content, organize information, and manage tasks.

Its toolset

Everything the assistant can do here goes through one of these:

  • Prerequisites — The Prerequisites tool exposed by this server
  • Debugging — Since MCP servers run over stdio, debugging can be challenging. For the best debugging experience, we recommend using the MCP Inspector
  • Building — The Building tool exposed by this server

Adding it to your client

logseq-mcp on npm is all you need. Most clients run it directly, so configuration is a few lines and a restart.

Configuration

You will need 2 environment variables: LOGSEQ_TOKEN, LOGSEQ_HOST. The server will not start without them, which is usually why the tools fail to appear on a first run. Keep credentials in your client's env block or a secrets manager rather than in a file you might commit.

  • Logseq with HTTP API enabled - A Logseq API token - Claude Desktop or other MCP-compatible AI assistant

When to reach for it

This sits in the developer tooling group, where several servers overlap in what they claim to do but differ sharply once you actually set them up. Logseq's toolset — Prerequisites, Debugging, Building — is a fair guide to whether it matches your workflow. It is maintained by briansunter; worth a glance at recent repository activity before you build anything load-bearing on it.

We check each listing at SyncDev against the project's documentation before it goes live — if something here drifts out of date, it is a bug worth reporting.

Caveats

  • It runs with your machine's permissions. That is convenient and also the reason to think about what you point it at before you approve a tool call.
  • Missing credentials fail quietly in some clients — if no tools show up, check the environment block first.
  • MCP clients confirm each tool call by default. Leave that on until you have watched what the logseq mcp server does with a few real requests.

Available tools

ToolWhat it does
PrerequisitesThe Prerequisites tool exposed by this server.
DebuggingSince MCP servers run over stdio, debugging can be challenging. For the best debugging experience, we recommend using the MCP Inspector.
BuildingThe Building tool exposed by this server.

How to install the Logseq MCP server

{
     "mcpServers": {
       "logseq": {
         "command": "npx",
         "args": [
           "logseq-mcp"
         ],
         "env": {
           "LOGSEQ_TOKEN": "your_logseq_token"
         }
       }
     }
   }

Configuration as documented by the project. Restart the client after saving.

Configuration

  • Logseq with HTTP API enabled - A Logseq API token - Claude Desktop or other MCP-compatible AI assistant
VariableDescriptionRequired
LOGSEQ_TOKENCredential the server authenticates with.Yes
LOGSEQ_HOSTEndpoint or connection string the server talks to.Optional

Example prompts to try

  • Use Logseq to Prerequisites.
  • Use Logseq to Debugging.
  • Use Logseq to Building.

Frequently asked questions

It connects Logseq to MCP-compatible AI assistants such as Claude and Cursor, exposing 3 tools (Prerequisites, Debugging, Building) that the assistant can call on your behalf. Instead of copying data back and forth by hand, the assistant works with Logseq directly.