KK

kibela/kibela-mcp-server

开发工具

本页由 AI 翻译,技术细节请以原文为准。 查看原文

16 stars 7 forks 质量 73 趋势 21MIT

Kibela's official MCP Server

概览

Kibela MCP Server is a Model Context Protocol (MCP) server for Kibela. Kibela MCP Server is currently available only as a local server using STDIO and can be used with any MCP client such as Claude Desktop or VSCode. Only those GraphQL APIs that are publicly available and suitable for MCP are implemented as tools. - Ask about information in Kibela - Organize folders and articles in Kibela - Using AI to help you write with Kibela 1. Docker is installed 2. Docker must be running 3. Kibela access tokens is issued 4. An application that implements the MCP client must be installed Write the following configuration to claude_desktop_config.json. Set the Kibela origin and access token as environment variables. Then set the script as the execution command. At this time, make sure that the path to the script is absolute.

README

以下为原文 README 节选,完整内容请查看原文。

Overview

Kibela MCP Server is currently available only as a local server using STDIO and can be used with any MCP client such as Claude Desktop or VSCode.

Only those GraphQL APIs that are publicly available and suitable for MCP are implemented as tools.

Use Cases

  • Ask about information in Kibela
  • Organize folders and articles in Kibela
  • Using AI to help you write with Kibela

Requirements

  1. Docker is installed
  2. Docker must be running
  3. Kibela access tokens is issued
  4. An application that implements the MCP client must be installed

Installation

Example: Claude Desktop

Write the following configuration to claude_desktop_config.json. Set the Kibela origin and access token as environment variables.

{
  "mcpServers": {
    "kibela": {
      "command": "docker",
      "args": [
        "run",
        "-i",
        "-e",
        "KIBELA_ORIGIN",
        "-e",
        "KIBELA_ACCESS_TOKEN",
        "ghcr.io/kibela/kibela-mcp-server"
      ],
      "env": {
        "KIBELA_ORIGIN": "https://your-subdomain.kibe.la",
        "KIBELA_ACCESS_TOKEN": "***"
      }
    }
  }
}

No Docker

Then set the script as the execution command. At this time, make sure that the path to the script is absolute.

{
  "mcpServers": {
    "kibela": {
      "command": "/path/to/kibela-mcp-server/bin/cli.mjs",
      "env": {
        "KIBELA_ORIGIN": "https://your-subdomain.kibe.la",
        "KIBELA_ACCESS_TOKEN": "***"
      }
    }
  }
}

Available Tools

Note Operations

  • search_kibela_note - Search notes

    • query: Search keyword (required)
    • resources: Resource type filter (optional)
    • coediting: Co-editing flag (optional)
    • updated: Update date range (optional)
    • groupIds: Group ID filter (optional)
    • folderIds: Folder ID filter (optional)
    • likerIds: Liker user ID filter (optional)
    • isArchived: Archive flag (optional)
    • sortBy: Sort order (optional)
  • get_kibela_note_by_relay_id - Get a note by Relay ID

    • id: Note’s Relay ID (required)
  • get_kibela_note_from_path_or_url - Get a note from path or URL

    • path: Note’s path or URL (required)
  • get_kibela_notes - Get notes in a folder

    • folderId: Folder ID (required)
在 GitHub 查看完整 README

安装

docker run -i -e KIBELA_ORIGIN -e KIBELA_ACCESS_TOKEN ghcr.io/kibela/kibela-mcp-server
新手?先看 mcpskill.org 教程 →

配置

{ "mcpServers": { "kibela": { "command": "docker", "args": [ "run", "-i", "-e", "KIBELA_ORIGIN", "-e", "KIBELA_ACCESS_TOKEN", "ghcr.io/kibela/kibela-mcp-server" ], "env": { "KIBELA_ORIGIN": "https://your-subdomain.kibe.la", "KIBELA_ACCESS_TOKEN": "***" } } } }