knowledgelib-mcp
The knowledgelib-mcp server provides access to a structured AI knowledge library with 1,564 pre-verified knowledge units across 16 domains, enabling efficient information retrieval with confidence scores, source citations, and quality tracking.
Search knowledge units (
query_knowledge): Query by text with optional filters for domain, region, entity type, and jurisdiction. Returns ranked results with confidence scores, source counts, and token estimates.Batch search (
batch_query): Submit up to 10 queries in a single call for efficient multi-topic research.Retrieve full knowledge units (
get_unit): Fetch complete markdown content of a specific unit by ID, including YAML frontmatter, inline citations, product comparisons, and use-case recommendations.List available domains (
list_domains): Discover all knowledge domains and their unit counts to understand what topics are covered.Suggest new content (
suggest_question): Submit topic or question requests for new knowledge unit creation when a topic isn't covered (rate limited to 10/hour).Report content issues (
report_issue): Flag outdated information, factual errors, broken links, or missing details with severity levels from low to critical (rate limited to 20/hour).
Provides a KnowledgelibRetriever component for integrating the Knowledge Library into LangChain applications, enabling semantic search and retrieval of verified, cited knowledge units.
Provides nodes for integrating Knowledge Library queries into n8n automation workflows, enabling automated retrieval of structured knowledge units.
knowledgelib.io
AI Knowledge Library — structured, cited knowledge units for AI agents. Pre-verified answers that save tokens, reduce hallucinations, and cite every source.
What is this?
1,800+ knowledge units across 18 domains (consumer electronics, software, business strategy, ERP integration, compliance, energy, finance, and more). Each unit answers one canonical question with:
Confidence scores (0.0-1.0) per published methodology
Inline source citations from 5-8 authoritative sources
Freshness tracking with verified dates and temporal validity
Quality status — verified, needs_review, or unreliable
Knowledge graph — related units with typed edges
One API call replaces 5 web searches and 8,000 tokens of parsing.
Related MCP server: Scientific Tools MCP Server
Quick Start
MCP Server (Claude, Cursor, Windsurf)
npx knowledgelib-mcpOr add to claude_desktop_config.json:
{
"mcpServers": {
"knowledgelib": {
"command": "npx",
"args": ["knowledgelib-mcp"]
}
}
}MCP over HTTP (no install needed)
POST https://knowledgelib.io/mcpStreamable HTTP transport, JSON-RPC 2.0, MCP spec 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/healthLangChain (Python)
pip install langchain-knowledgelibfrom langchain_knowledgelib import KnowledgelibRetriever
retriever = KnowledgelibRetriever()
docs = retriever.invoke("best wireless earbuds")n8n
npm install n8n-nodes-knowledgelibMCP Tools
Tool | Description | Read-only |
| Search across all knowledge units with filters | Yes |
| Search multiple topics in one call (max 10) | Yes |
| Retrieve full markdown content by ID | Yes |
| List all domains with unit counts | Yes |
| Submit a topic request for new unit creation | No |
| Flag incorrect, outdated, or broken content | No |
All read-only tools are marked with readOnlyHint: true and idempotentHint: true per MCP spec 2025-03-26, enabling parallel execution by agents.
API Features
Structured error codes with retryable flag and retry_after_ms
ETag / If-None-Match caching (304 Not Modified)
Correlation IDs (X-Request-Id header on all responses)
Quality status (verified / needs_review / unreliable) on all results
Related units for knowledge graph traversal
Content previews (150-char summaries without fetching full unit)
Token budgeting (total_tokens across results)
Rate limiting on write endpoints (10 suggestions/hr, 20 feedback/hr)
Zod validation with per-field error messages
Entity Types
Type | Count | Description |
product_comparison | 418 | Best-of roundups with decision logic and buy links |
concept | 336 | Definitions of terms agents often get wrong |
software_reference | 239 | Code examples, anti-patterns, decision trees |
execution_recipe | 202 | Step-by-step implementation plans |
erp_integration | 166 | API capabilities, rate limits, data mapping |
agent_prompt | 55 | System prompts for pipeline sub-agents |
assessment | 54 | Structured scoring frameworks |
decision_framework | 35 | Decision trees with trade-offs |
benchmark | 28 | Industry benchmarks by segment |
rule | 28 | Actionable directives with evidence |
Discovery
/llms.txt — Plain-text guide for LLMs
/llms-full.txt — Complete index of all questions
/.well-known/ai-knowledge.json — Machine-readable manifest
/catalog.json — Full catalog with metadata
/for-agents — Integration guide
Links
Website: https://knowledgelib.io
HTTP MCP: https://knowledgelib.io/mcp
GPT Actions: https://knowledgelib.io/.well-known/openapi-gpt.json
License
CC BY-SA 4.0
Available Tools
6 toolsbatch_queryARead-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_unitARead-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_domainsARead-onlyIdempotent
List all available knowledge domains with unit counts. Use this to discover what topics are covered before querying.
Inputs: no named parameters.
query_knowledgeARead-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_questionAIdempotent
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
Scored across 6 tools
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.
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.
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.
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
Deterministic knowledge for AI agents: search, fetch, cite and verify a 48M-entry knowledge base.
Check whether a real-world fact can be verified before an agent acts on it. Free, no auth.
Cited web evidence and fact checking for AI agents. $0.01 per call, no API key.
Search Fragments is the gate before your agent answers. When a user half-remembers something your agent can't confidently place, one call returns a verdict: ORIGIN_OF_TRUTH (found and evidence-checked, with sources), PARTIAL_ORIGIN (leads worth following, not an answer) or NOT_REACHABLE (our search reached nothing; not a claim it can't be found). Your agent answers and cites, keeps looking, or says it can't place it, instead of inventing. Free, no signup. Also: verify_claim (check a specific factual claim against current sources) and submit_resolution_feedback.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceVerified knowledge base for AI agents. Stop hallucinations with certified, source-backed facts. Covers Swiss law, health, finance, climate, AI/ML, and more. 8 tools, no API key needed, public and free.MIT
- FlicenseAqualityDmaintenanceHigh-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/request6-
- AlicenseNot gradedqualityDmaintenanceEnables AI agents to fact-check claims, verify citations, and check source freshness using Wikipedia, Wikidata, Crossref, and Wayback Machine.1MIT
- FlicenseBqualityDmaintenanceEnables AI agents to query free biomedical and pharmaceutical APIs for clinical trials, drug data, molecular structures, adverse events, and research literature.14-