MCP MCP Server

A fairly customizable MCP server for Logseq

Local serverstdioGo

What is the MCP MCP server?

Connect MCP to Claude, Cursor or any other MCP client and it stops being a tab you switch to. A fairly customizable MCP server for Logseq. The mcp mcp server is what makes that connection.

What the server does

A MCP server for interacting with your Logseq Personal Knowledge Management system using custom instructions

Available tools

The toolset is worth reading before you wire it up, because it tells you what the integration is really for:

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

Credentials and setup notes

Configuration is passed through the environment: LOGSEQ_API_TOKEN, LOGSEQ_URL, LOGSEQ_API_KEY, UV_PUBLISH_TOKEN. Treat anything key-shaped as a real credential — scope it to the minimum the server needs, and rotate it if it ever lands in a shared config.

Installation

The server ships on npm as @modelcontextprotocol/inspector, so your MCP client can launch it on demand — there is no separate build step. Add the server block to your client's configuration, restart it, and the tools register themselves.

Where it fits

Plenty of developer tooling servers cover similar ground. The differences that matter in practice are scope of access and how much setup stands between you and a working tool call. MCP's toolset — Resources, Tools, Debugging — is a fair guide to whether it matches your workflow. It is maintained by ruliana; 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.

Worth knowing first

  • 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.
  • Keep per-call confirmation enabled while you learn its behaviour; it is the cheapest safeguard you have.

Available tools

ToolWhat it does
ResourcesThe Resources tool exposed by this server.
ToolsThe Tools tool exposed by this server.
DebuggingSince MCP servers run over stdio, debugging can be challenging. For the best debugging experience, we strongly recommend using the [MCP Inspector](https://github.com/modelcontextprotocol/inspector).

How to install the MCP MCP server

"mcpServers": {
    "mcp-pkm-logseq": {
      "command": "uvx",
      "args": [
        "mcp-pkm-logseq"
      ],
      "env": {
        "LOGSEQ_API_TOKEN": "your-logseq-api-token",
        "LOGSEQ_URL": "http://localhost:12315"
      }
    }
  }

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

Configuration

VariableDescriptionRequired
LOGSEQ_API_TOKENCredential the server authenticates with.Yes
LOGSEQ_URLEndpoint or connection string the server talks to.Yes
LOGSEQ_API_KEYCredential the server authenticates with.Yes
UV_PUBLISH_TOKENCredential the server authenticates with.Yes

Example prompts to try

  • Use MCP to Resources.
  • Use MCP to Tools.
  • Use MCP to Debugging.

Frequently asked questions

`LOGSEQ_API_KEY` (default: `"this-is-my-logseq-mcp-token"`) for authentication and `LOGSEQ_URL` (default: `"http://localhost:12315"`) for the Logseq HTTP API endpoint.