Skip to main content
Glama
knowledgelib-mcp

knowledgelib-mcp

by peterbeck111

knowledgelib.io

AIナレッジライブラリ — AIエージェント向けの構造化され、引用元が明記されたナレッジユニット。トークンを節約し、ハルシネーションを低減し、すべてのソースを引用する事前検証済みの回答を提供します。

これは何ですか?

16のドメイン(家電、ソフトウェア、ビジネス戦略、ERP統合、コンプライアンス、エネルギー、金融など)にわたる1,564のナレッジユニット。各ユニットは1つの標準的な質問に対し、以下を提供します:

  • 信頼度スコア (0.0-1.0)(公開された手法に基づく)

  • インラインソース引用(5〜8つの権威あるソースから)

  • 鮮度追跡(検証済み日付と時間的妥当性付き)

  • 品質ステータス — verified(検証済み)、needs_review(要レビュー)、またはunreliable(信頼性なし)

  • ナレッジグラフ — 型付きエッジを持つ関連ユニット

1回のAPI呼び出しで、5回のWeb検索と8,000トークンの解析を置き換えます。

Related MCP server: Scientific Tools MCP Server

クイックスタート

MCPサーバー (Claude, Cursor, Windsurf)

npx knowledgelib-mcp

または claude_desktop_config.json に追加します:

{
  "mcpServers": {
    "knowledgelib": {
      "command": "npx",
      "args": ["knowledgelib-mcp"]
    }
  }
}

HTTP経由のMCP (インストール不要)

POST https://knowledgelib.io/mcp

ストリーミング可能なHTTPトランスポート、JSON-RPC 2.0、MCP仕様 2025-03-26。

REST API

# Search
curl https://knowledgelib.io/api/v1/query?q=best+wireless+earbuds+under+150

# Batch search (up to 10 queries)
curl -X POST https://knowledgelib.io/api/v1/batch \
  -H "Content-Type: application/json" \
  -d '{"queries":[{"q":"earbuds"},{"q":"headphones"}]}'

# Get full unit
curl https://knowledgelib.io/api/v1/units/consumer-electronics/audio/wireless-earbuds-under-150/2026.md

# Health check
curl https://knowledgelib.io/api/v1/health

LangChain (Python)

pip install langchain-knowledgelib
from langchain_knowledgelib import KnowledgelibRetriever
retriever = KnowledgelibRetriever()
docs = retriever.invoke("best wireless earbuds")

n8n

npm install n8n-nodes-knowledgelib

MCPツール

ツール

説明

読み取り専用

query_knowledge

フィルターを使用してすべてのナレッジユニットを検索

はい

batch_query

1回の呼び出しで複数のトピックを検索(最大10)

はい

get_unit

IDで完全なMarkdownコンテンツを取得

はい

list_domains

ユニット数を含むすべてのドメインを一覧表示

はい

suggest_question

新しいユニット作成のためのトピックリクエストを送信

いいえ

report_issue

不正確、古い、または壊れたコンテンツを報告

いいえ

すべての読み取り専用ツールには、MCP仕様 2025-03-26 に基づき readOnlyHint: true および idempotentHint: true がマークされており、エージェントによる並列実行が可能です。

API機能

  • 構造化されたエラーコード(再試行フラグとretry_after_ms付き)

  • ETag / If-None-Match キャッシュ (304 Not Modified)

  • 相関ID(すべてのレスポンスにX-Request-Idヘッダー)

  • 品質ステータス(すべての結果にverified / needs_review / unreliableを表示)

  • 関連ユニット(ナレッジグラフのトラバース用)

  • コンテンツプレビュー(ユニット全体を取得せずに150文字の要約を表示)

  • トークン予算管理(結果全体のtotal_tokens)

  • 書き込みエンドポイントのレート制限(1時間あたり10件の提案、20件のフィードバック)

  • Zodバリデーション(フィールドごとのエラーメッセージ付き)

エンティティタイプ

タイプ

数

説明

product_comparison

418

意思決定ロジックと購入リンク付きのベストバイまとめ

concept

336

エージェントが誤解しやすい用語の定義

software_reference

239

コード例、アンチパターン、決定木

execution_recipe

202

ステップバイステップの実装計画

erp_integration

166

API機能、レート制限、データマッピング

agent_prompt

55

パイプラインサブエージェント用のシステムプロンプト

assessment

54

構造化されたスコアリングフレームワーク

decision_framework

35

トレードオフを伴う決定木

benchmark

28

セグメント別の業界ベンチマーク

rule

28

証拠に基づく実行可能な指示

ディスカバリー

リンク

ライセンス

CC BY-SA 4.0

Available Tools

6 tools
batch_queryA
Read-onlyIdempotent

Search multiple topics in a single call. More efficient than calling query_knowledge multiple times — shares a single catalog parse. Max 10 queries per batch.

Inputs: queries (required).

get_unitA
Read-onlyIdempotent

Retrieve a specific knowledge unit by ID. Returns the full raw markdown with YAML frontmatter, inline source citations, product comparisons, and use-case recommendations.

Inputs: unit_id (required).

list_domainsA
Read-onlyIdempotent

List all available knowledge domains with unit counts. Use this to discover what topics are covered before querying.

Inputs: no named parameters.

query_knowledgeA
Read-onlyIdempotent

STEP 1: Search across all knowledgelib.io knowledge units. Returns matching units ranked by relevance with metadata (confidence scores, source counts, token estimates). If no results are found, use suggest_question to request the topic.

Inputs: query (required), domain, region, jurisdiction, +2 more.

report_issueA

Flag incorrect, outdated, or broken content on a knowledge unit. Use this when you notice factual errors, dead links, outdated information, or missing details in a knowledge unit. Reports are reviewed and used to prioritize content updates.

Inputs: card_id (required), type (required), description (required), severity, +1 more.

suggest_questionA
Idempotent

STEP 3: Submit a question or topic request to knowledgelib.io. ALWAYS call this when query_knowledge returned no results, or when a user asks about a topic that should be covered. Popular suggestions are prioritized for new knowledge unit creation. The next agent that asks the same question will get an answer.

Inputs: question (required), context, domain.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    A4.3/5.0

    Scored across 6 tools

    Disambiguation4/5

    Tools are mostly distinct with clear purposes. The only potential overlap is between batch_query and query_knowledge (both perform searches), but descriptions clarify that batch_query is for efficiency when searching multiple topics, while query_knowledge is the standard single search entry point. Other tools like report_issue (quality flags) and suggest_question (new content requests) have clearly separated concerns.

    Naming Consistency5/5

    All six tools follow a consistent verb_noun pattern using snake_case: batch_query, get_unit, list_domains, query_knowledge, report_issue, suggest_question. Action verbs (batch, get, list, query, report, suggest) are used predictably with clear target nouns.

    Tool Count5/5

    Six tools is an appropriate, well-scoped count for a knowledge retrieval server. The set covers discovery (list_domains), retrieval (query_knowledge, batch_query, get_unit), and feedback loops (report_issue, suggest_question) without bloat or redundancy.

    Completeness4/5

    The surface covers the essential knowledge retrieval lifecycle: domain discovery, flexible search (single and batch), specific unit retrieval, and feedback mechanisms for both corrections and new content requests. Minor gaps include no domain-specific browsing tool and the odd 'STEP 1/STEP 3' labeling suggesting a missing intermediate step, but core workflows are supported.

    Related MCP Connectors

    Related MCP Servers

    • F
      license
      A
      quality
      D
      maintenance
      High-value scientific tools for AI agents — literature search (PubMed, arXiv, Semantic Scholar), chemical compound lookup (PubChem, ChEMBL), patent prior art search (USPTO, EPO), GPU spot prices across 4 providers, and real-time earth science data (USGS, NASA, OpenAQ). Per-call billing via API key. Keys issued instantly at https://mcp-site.com/keys/request
      6
      -
    • A
      license
      Not graded
      quality
      D
      maintenance
      Enables AI agents to fact-check claims, verify citations, and check source freshness using Wikipedia, Wikidata, Crossref, and Wayback Machine.
      1
      MIT