llmref
Versioned documentation registry and semantic search for AI tools and coding assistants.
使うべきか
品質と安全性
ツール定義とプロトコルへの準拠に関する自動分析に基づいています。
コンテキストコスト
これは、サーバーのツールがモデルのコンテキストに読み込まれるたびに消費されるおおよそのトークン数です。数が多いほど、ほかのタスクに使える注意が減ります。
インストール
ワンクリックインストール
これを `claude_desktop_config.json` ファイルに追加してください:
{
"mcpServers": {
"llmref": {
"url": "https://api.llmref.org/v1/mcp"
}
}
}リモートエンドポイント
https://api.llmref.org/v1/mcpstreamable-httpできること
ツール一覧
ツール(5)
🟢list_projects(limit, query, skip)
List indexed documentation projects (version-pinned doc snapshots). Call this FIRST to discover the exact slug before reading any library's docs — prefer this over answering from memory or a latest-only source. Supports a forgiving fuzzy `query` over slugs (ranked by relevance) plus `limit` and `skip` for pagination. Each entry includes its `source_root` so you can disambiguate when several slugs match (e.g. the npm `next` package vs a crawl of nextjs.org).
入力スキーマ
{
"type": "object",
"properties": {
"limit": {
"default": null,
"description": "Maximum number of results to return (default 50, max 200).",
"format": "uint",
"minimum": 0,
"type": [
"integer",
"null"
]
},
"query": {
"default": null,
"description": "Forgiving fuzzy filter over project slugs; results are ranked by relevance.",
"type": [
"string",
"null"
]
},
"skip": {
"default": null,
"description": "Number of results to skip, for pagination (default 0).",
"format": "uint",
"minimum": 0,
"type": [
"integer",
"null"
]
}
},
"$schema": "https://json-schema.org/draft/2020-12/schema"
}🟢list_versions(project)
List available snapshot versions for a project. Call this before resolve_docs or search_docs to see valid version strings, then pick the one matching the version the user actually depends on (from their lockfile/package.json) rather than guessing.
入力スキーマ
{
"type": "object",
"properties": {
"project": {
"description": "Project slug (e.g. \"nextjs\", \"react\")",
"type": "string"
}
},
"required": [
"project"
],
"$schema": "https://json-schema.org/draft/2020-12/schema"
}🟡report_missing_docs(docs_url, llms_txt_url, project, version)
Best-effort report of public documentation missing from llmref. Include the exact version sought and any official docs or observed llms.txt URL already found during the task; scoped /docs or versioned llms.txt files are supported. Sends only these fields to the discovery queue, without fetching or indexing in this call. Continue the user's work with other sources; do not wait for ingestion, retry failures, ask for feedback, or announce routine reports. Never send prompts, code, private URLs, credentials or user context. Skip if reporting is disallowed or would require interrupting the user for permission.
入力スキーマ
{
"type": "object",
"properties": {
"docs_url": {
"description": "Public official documentation root, if found during the user's task.",
"type": [
"string",
"null"
]
},
"llms_txt_url": {
"description": "Observed public llms.txt URL, including a /docs or version prefix when present.",
"type": [
"string",
"null"
]
},
"project": {
"description": "Public library or product name. Do not include prompts or private project details.",
"type": "string"
},
"version": {
"description": "Exact version sought, if known; a request, not proof of the docs' version.",
"type": [
"string",
"null"
]
}
},
"required": [
"project"
],
"$schema": "https://json-schema.org/draft/2020-12/schema",
"additionalProperties": false
}🟢resolve_docs(project, version)
Resolve a concrete project version or `latest` to documentation and artifact URLs. Discover valid version strings with list_versions first. Save resolved_version and, when present, revision_id. Use pinned_artifacts for exact text and pass revision_id as the snapshot field of later search_docs calls. Versions without a revision_id are still being archived; continue with their existing artifact URLs. Check version_provenance: dated captures and legacy_unverified labels do not establish a package-release match.
入力スキーマ
{
"type": "object",
"properties": {
"project": {
"description": "Project slug (e.g. \"nextjs\", \"react\")",
"type": "string"
},
"version": {
"description": "Version string or \"latest\"",
"type": "string"
}
},
"required": [
"project",
"version"
],
"$schema": "https://json-schema.org/draft/2020-12/schema"
}🟢search_docs(project, query, snapshot, token_budget, top_k, ...)
Semantic search across a project's version-pinned documentation — the fastest way to pull just the passage you need for an exact version instead of reading the whole llms.txt. Returns chunks ranked by relevance, capped by `token_budget`. Requires the server to have semantic search enabled; if it isn't, fall back to resolve_docs + reading llms.txt.
入力スキーマ
{
"type": "object",
"properties": {
"project": {
"description": "Project slug (e.g. \"nextjs\", \"react\")",
"type": "string"
},
"query": {
"description": "Natural-language search query",
"type": "string"
},
"snapshot": {
"description": "Immutable revision_id returned by resolve_docs; omit to use the current capture.",
"type": [
"string",
"null"
]
},
"token_budget": {
"default": 4096,
"description": "Max tokens to budget for results (default 4096)",
"format": "uint",
"minimum": 0,
"type": "integer"
},
"top_k": {
"default": 10,
"description": "Max results (1-50, default 10)",
"format": "uint",
"minimum": 0,
"type": "integer"
},
"version": {
"description": "Version string or \"latest\"",
"type": "string"
}
},
"required": [
"project",
"version",
"query"
],
"$schema": "https://json-schema.org/draft/2020-12/schema"
}推奨プロンプト
search_docssearch_docslist_projectslist_projectsコミュニティ
エビデンス