Pre-verified answers that save tokens, reduce hallucinations, and cite every source. One API call replaces 5 web searches and 8,000 tokens of parsing.
Product comparisons, software references, business strategy, ERP integrations, compliance rules, and more.
Consumer electronics, computing, software, home, baby, fitness, outdoor, business, finance, energy, compliance, consulting.
No API key required. Free. Every unit is CC BY-SA 4.0 licensed.
vs. 3,000-8,000 tokens for web search + parse. Every claim cited with source links.
When an AI agent needs to answer "What are the best wireless earbuds under $150?", it typically:
Total cost: $0.50-$5.00 in compute. Total tokens: 15,000-40,000. Confidence: unknown.
With knowledgelib.io:
GET /api/v1/query?q=best+wireless+earbuds+under+150Total cost: $0.02. Total tokens: ~600. Confidence: 0.88 (scored per published methodology).
The fastest way. Install once, get 6 tools directly in your agent.
Or add to claude_desktop_config.json:
{
"mcpServers": {
"knowledgelib": {
"command": "npx",
"args": ["knowledgelib-mcp"]
}
}
}
Tools: query_knowledge, batch_query, get_unit, list_domains, suggest_question, report_issue
No installation needed. Connect any MCP client to:
Streamable HTTP transport, JSON-RPC 2.0, MCP protocol versions 2025-11-25, 2025-06-18 and 2025-03-26. The 6 stdio tools plus get_product_picks (see Assistant connectors).
# Search
curl https://knowledgelib.io/api/v1/query?q=best+wireless+earbuds
# Batch search (up to 10 queries in one call)
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
Full OpenAPI spec: /api/v1/openapi.json
Import the Actions schema into any Custom GPT:
6 operations: searchKnowledge, batchSearch, getUnit, suggestTopic, reportIssue, checkHealth.
from langchain_knowledgelib import KnowledgelibRetriever
retriever = KnowledgelibRetriever(
region="US",
entity_type="product_comparison"
)
docs = retriever.invoke("best wireless earbuds")
Community node with 5 operations. Drag-and-drop in any n8n workflow.
Endpoint for Meta Muse:
For Grok, use https://knowledgelib.io/mcp?src=grok. MCP Streamable HTTP, JSON-RPC 2.0, protocol versions 2025-11-25, 2025-06-18 and 2025-03-26. No account, sign-in or API key; free. The guides are written for shoppers in the US.
These two endpoints offer one tool, get_product_picks. It is read-only: it changes no guide or other content; each call is logged (see What we record). Every other tool name gets the JSON-RPC error -32602.
| Field | Type | Meaning |
|---|---|---|
query | string, 1–300 characters | A product buying question, e.g. “robot vacuum for pet hair”. Used when unit_id is not given. |
unit_id | string | A guide id, e.g. consumer-electronics/audio/wireless-earbuds-under-150/2026 |
Give one of the two; when both are given, unit_id is used.
One JSON object. It comes as text content and, from protocol version 2025-06-18, also as structuredContent matching the tool's outputSchema, followed by a resource_link to the guide page.
| Field | Contents |
|---|---|
guide | unit_id, title, question, url, region, last_verified (date), confidence, products_evaluated, sources_reconciled, how_we_pick |
summary | The guide's summary with its sources, or null |
picks | For each pick: product; role (for example Best overall, Best value, Best budget, Alternative); reason (the guide's cited reason with its sources, or null); tested_by (the outlets whose hands-on reviews the guide used); specs (maker specifications with their source and the date checked, or null) |
best_for | For each need the guide covers: need, product, reason with its sources |
omitted_picks | How many picks were left out because the name reads as a retailer listing title, the name or role carries a price, a stock or availability state (such as “sold out” or “discontinued”), an ASIN, an Amazon link, a tag= parameter or a /go/ link, or the name or role is missing |
prices | Always: “Not included in this reply. The guide page shows dated prices where available.” |
disclosure | Always: “knowledgelib.io earns a commission on purchases made through links on its guide pages. Commissions never change the picks.” |
other_guides | For a query, up to 3 other matching guides (unit_id, title, url) |
Replies contain no product prices, no availability and no Amazon or affiliate links. A guide’s title, question or best-for need, or another guide’s title, can name a budget ceiling (for example “under $300”), and a specification’s source link can be the maker’s own product or store page. Guide URLs carry utm_source=muse (or grok) and utm_medium=mcp.
isError: true and one sentence: “get_product_picks needs a query or a unit_id.”, “query must be a string of 1 to 300 characters.”, “unit_id must be a string.”, “unit_id is not a valid guide id.”, “No knowledgelib.io product guide matches this query.”, “No guide found with unit_id …”, “… is not a product guide.”, “The picks of … cannot be returned by this tool.” or “Catalog unavailable.” An unexpected failure also comes back with isError: true, as “Error: ” followed by the message.application/json (HTTP 415).MCP-Protocol-Version header on ping, tools/list, tools/call and notifications; initialize and unknown methods ignore the header, and a batch that contains any of those methods gets the 400 as a whole. HTTP 405 for GET, because the server opens no SSE stream.None per user, per key or per assistant. Cloudflare's network protection can block traffic it treats as abusive. If the semantic search service is unavailable, a query is matched by keywords instead.
For each call through these endpoints we record the time, the tool name, the guide returned and a client label worked out from the User-Agent header (for example “bot” or “unknown”). When an assistant connects, we also record the client name and version it reports, the requested and agreed protocol version, and the endpoint’s src tag. If a call fails unexpectedly, our error log keeps the tool name, the error message and its stack trace. We do not store the question text or the IP address. To find the guide, the question is sent to Cloudflare Workers AI, which returns a search embedding; we do not store the embedding.
knowledgelib.io earns a commission from Amazon Associates when people buy through links on its guide pages. Commissions never change the picks. Connector replies contain no affiliate links.
| Feature | knowledgelib.io | Web Search | Wikipedia API |
|---|---|---|---|
| Structured metadata | YAML frontmatter + JSON-LD | None | Partial |
| Confidence scores | 0.0-1.0 per unit | None | None |
| Source citations | Every claim cited inline | Page-level only | Footnotes |
| Freshness tracking | Verified date + temporal_validity | Unknown | Edit date only |
| Quality warnings | verified / needs_review / unreliable | None | None |
| Knowledge graph | related_units with typed edges | None | Wikilinks |
| Token efficiency | ~600 tokens per answer | 3,000-8,000 | 1,000-5,000 |
| Agent-specific formats | MCP, REST, LangChain, n8n, GPT Actions | HTML only | REST only |
| ETag caching | 304 Not Modified on repeat access | None | Partial |
| Batch queries | Up to 10 in one call | Sequential only | Limited |
| Type | Count | What It Is |
|---|---|---|
| product_comparison | 418 | Best-of product roundups with decision logic and buy links |
| concept | 336 | Definitions and explanations of terms agents often get wrong |
| software_reference | 239 | Code examples, anti-patterns, debugging guides, decision trees |
| execution_recipe | 202 | Step-by-step implementation plans with gates and deliverables |
| erp_integration | 166 | API capabilities, rate limits, authentication, data mapping |
| agent_prompt | 55 | System prompts for startup pipeline sub-agents |
| assessment | 54 | Structured scoring frameworks for maturity and readiness |
| decision_framework | 35 | Decision trees with trade-offs and anti-patterns |
| benchmark | 28 | Industry benchmarks with segment-specific data |
| rule | 28 | Actionable directives with evidence and scope |
Agents can find knowledgelib.io through any of these standard paths:
knowledgelib.io improves from agent usage:
/api/v1/query, /api/v1/batch) are automatically recorded as topic suggestionsunreliable in query resultsThe more agents use it, the better it gets. Your queries shape what gets built next.