Skip to main content
Glama

MCP server for LogSeq

by ergut

LogSeq 的 MCP 服务器

MCP 服务器通过其 API 与 LogSeq 交互。

成分

工具

服务器实现了多个工具来与 LogSeq 交互:

  • list_graphs:列出所有可用的图表
  • list_pages:列出当前图表中的所有页面
  • get_page_content:返回单个页面的内容
  • 搜索:搜索所有页面的内容
  • create_page:创建新页面
  • update_page:更新现有页面的内容
  • delete_page:删除页面

示例提示

最好先指示 Claude 使用 LogSeq。这样它就会始终调用该工具。

提示示例:

  • 获取我最新会议记录的内容并进行总结
  • 搜索所有提及项目 X 的页面并解释上下文
  • 使用今天的会议记录创建新页面
  • 使用最新更新更新项目状态页面

配置

LogSeq API 配置

您可以通过两种方式使用 LogSeq API 设置配置环境:

  1. 添加到服务器配置(首选)
{ "mcp-logseq": { "command": "uvx", "args": [ "mcp-logseq" ], "env": { "LOGSEQ_API_TOKEN": "<your_api_token_here>", "LOGSEQ_API_URL": "http://localhost:12315" } } }
  1. 在工作目录中创建一个包含所需变量的.env文件:
LOGSEQ_API_TOKEN=your_token_here LOGSEQ_API_URL=http://localhost:12315

发展

建筑

准备分发包:

  1. 同步依赖项并更新锁文件:
uv sync

调试

由于 MCP 服务器通过 stdio 运行,调试起来可能比较困难。为了获得最佳调试体验,我们建议使用MCP Inspector

您可以通过npm启动 MCP Inspector:

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.

通过其 API 与LogSeq交互。

  1. 成分
    1. 工具
    2. 示例提示
  2. 配置
    1. LogSeq API 配置
  3. 发展
    1. 建筑
    2. 调试

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
    86
    2
    TypeScript
    MIT License
    • Linux
    • Apple

View all related MCP servers

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/ergut/mcp-logseq-server'

If you have feedback or need assistance with the MCP directory API, please join our Discord server