Context7
Up-to-date docs for AI agents
作者による説明(英語の原文)
A searchable second brain for AI agents: ranked keyword and semantic search over your Markdown.
この3つを1つのスコアにまとめることはしません。意見、測定、人気はそれぞれ別のものだからです。
このサーバーのやさしい解説はまだ書いていません。以下はレジストリから読み取った事実です。
使っているAIアプリを選んで、設定をコピーしてください。
必要なもの
どのアプリを使っていますか?
上でアプリを選んでください。選んだアプリを覚えておくので、次からはボタンに「…にインストール」と表示されます。
Claude Desktop → Settings → Developer → Edit Config を開き、claude_desktop_config.json にこれを貼り付けます
{
"mcpServers": {
"kbdb": {
"command": "npx",
"args": [
"-y",
"@dikolab/kbdb",
"mcp",
"--db",
"your-value"
]
}
}
}ターミナルでこれを実行します
claude mcp add kbdb -- npx -y @dikolab/kbdb mcp --db your-valueこのサーバーは起動コマンドに値を入れる必要があるので、設定をコピーして入力してください。
プロジェクトの .cursor/mcp.json、または ~/.cursor/mcp.json に貼り付けます
{
"mcpServers": {
"kbdb": {
"command": "npx",
"args": [
"-y",
"@dikolab/kbdb",
"mcp",
"--db",
"your-value"
]
}
}
}ブラウザがアプリを開いてよいか確認し、そのあとアプリが設定を表示して確認を求めます。キーの値は空欄のままなので、自分で入力してください。
このサーバーは起動コマンドに値を入れる必要があるので、設定をコピーして入力してください。
プロジェクトの .vscode/mcp.json に貼り付けます
{
"servers": {
"kbdb": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"@dikolab/kbdb",
"mcp",
"--db",
"your-value"
]
}
}
}ブラウザがアプリを開いてよいか確認し、そのあとアプリが設定を表示して確認を求めます。キーの値は空欄のままなので、自分で入力してください。
これはパソコンで動くサーバーですが、ChatGPTがつなげるのはインターネット上のサーバーだけです。ほかのアプリを選んでください。
選んだアプリは、この端末のCookieに保存されます。アカウントは不要です。
この設定は、作者のレジストリ登録情報から作成しています。READMEと違う場合は、READMEに従ってください。
パソコンで動くサーバーです。インストールすると、ツール一覧がAIアプリに表示されます。
誰でも見られる情報をチェックしており、コードは読んでいません。当てはまらない項目は数に入れていません。 · 2026年11月7日にチェック
レジストリ名は、リポジトリを所有するGitHubアカウント diko316 で確認済みです
このリポジトリはまだGitHubから読み取っていません
このリポジトリはまだGitHubから読み取っていません
これはパソコンで動くため、インターネット上のエンドポイントはありません
パソコンで動き、代わりにローカルの設定を使います
パソコンで動くサーバーです。ツール一覧を読み取れるのは、インターネット上のエンドポイントがある場合だけです
レジストリでこのカテゴリにある有効なすべてのサーバーと比較しています。スターは、公開者がリポジトリの所有者である場合だけ数えます。
当てはまる基本チェック1項目のうち1項目に合格しました。コードは読んでいません。キーやトークンを追加する前に、サーバーがどんなアクセスを求めているかを確認し、必要な権限だけを持つキーを使ってください。
レジストリには必須のキーは載っていません。ただし、最初に使うときにサインインを求めるサーバーもあります。
あなたのパソコンで動きます。必要なときにAIアプリが起動し、データは作者のサーバーを通りません(サーバー自体がオンラインサービスを呼び出す場合を除きます)。
GitHubリポジトリの最終更新は–、最新バージョン(1.0.3)がレジストリに届いたのは2 か月前です。
Claude Desktop、Claude Code、Cursor、VS CodeなどのMCP対応アプリで使えます。パソコンにNode.jsも必要です。
同じカテゴリには:Context7, Codebase Memory, Exa
同じカテゴリで、ほかの作者が作ったサーバー。スターの多い順。
カードの見方:★ GitHubスターi3つの柱:レビュー · チェック · 利用状況i更新=最新バージョンをレジストリに公開した日i
Up-to-date docs for AI agents
Codebase knowledge graph for AI agents — 162 languages, sub-ms queries, 99% fewer tokens.
Connect AI agents to Exa for web search, content fetching, and multi-step research.
作者のリポジトリから書かれたとおりにコピーしたものです。PopNx MCPは内容を確認・推奨していません。HTML、画像、スクリプトは取り除いています。リンクはこのサイトの外へ移動します。
A file-based knowledge base with ranked keyword and semantic (hybrid) search -- learn your documents, then recall the relevant knowledge. No external server. Runs as a CLI and MCP server.
📖 [Documentation](https://diko316.gitlab.io/knowledge-base-db/) · MCP Setup · CLI Reference
GitLab | NPM | JSR | License: AGPL-3.0
Runs on Node.js 20+ or Deno 2.6+. No database
server, no cloud account -- just files on disk.
kbdb gives AI agents a persistent, searchable second brain. Point it at your Markdown docs and it indexes them into a file-based knowledge base -- then agents (and you) recall the most relevant knowledge by ranked keyword and semantic search, not exact-key lookup. It is a *living* store: agents learn new facts, update them, and recall them across sessions.
No external server to install, no cloud account -- just files on disk. It runs anywhere Node.js or Deno runs, and works as an MCP server, so agents like Claude can plug it in as a memory tool.
How search works: kbdb uses keyword search by default -- synonyms are expanded, terms are ranked by relevance, and headings carry 2× weight in scoring. When an exact query finds nothing, kbdb automatically loosens the match so you still get the best available results.
Want smarter results? Use --algo hybrid to blend keyword matching with similarity search -- finding results even when different words describe the same concept. The default TF-IDF embedding provider works offline with zero setup. Swap it for a third-party provider (local ONNX model or remote API) in worker.toml when you need richer embeddings.
Knowledge stays fresh: Re-learn a file and kbdb replaces the old version automatically. Near-duplicate detection warns you when you are learning something you already have -- by embedding similarity, so it catches the same fact reworded, not just the same bytes. kbdb contradictions reports sections that cover the same ground so you can read them together. Integrity checks verify checksums, orphans and references. Confidence scores help agents tell strong matches from weak ones.
One of these (pick whichever you already have):
deno install. Older Deno fails with a misleading Module not found naming a .wasm file that is present.)That's it. No database server. No extra tools.
Using Node.js:
CLI build hosted on NPM.
npm install -g @dikolab/kbdb
Using Deno:
CLI build hosted on JSR.
deno install -Agf jsr:@dikolab/kbdb/cli
See the CLI Installation Guide for prerequisites and verification steps.
1. Create a knowledge base
kbdb db init --db ./my-kb
This creates a .kbdb folder that holds all your data.
2. Feed it your docs
kbdb learn ./docs
Point it at a folder of Markdown files. kbdb reads them, breaks them into sections, and builds a search index. Add --tags design,v2 to tag sections for scoping, --replace to update existing sections from the same source, or --level 2 to set the hierarchical depth (1 = broadest, 6 = narrowest). When learning a directory, level is auto-detected from folder depth.
3. Search
kbdb search "how does auth work"
Results are ranked by relevance with snippets showing where your terms matched. Output defaults to --format rec (recfile: one field: value per line) for easy grepping. Other formats: json (machine-readable), text (numbered list), and mcp (JSON-RPC 2.0 envelope). Use --offset to page through large result sets.
To try hybrid search (keyword + AI similarity):
kbdb search "how does auth work" --algo hybrid
Tip: `--db` is optional for the CLI. kbdb
walks up from your working directory to the
nearest
.kbdbfolder, so commands just work
anywhere inside a project. Point at a specific
base with
--db(the parent of.kbdb),
or set
KBDB_DB_DIR. Only themcpserver
requires an explicit
--db-- it never searches
the working directory.
Search across bases: enrich results with read-only knowledge from other databases using --other-db (repeatable), or add --cascade to also pull from .kbdb folders in parent directories:
kbdb search "how does auth work" \
--other-db ~/shared-kb --cascade
Every result carries a source_db field -- the database root it came from -- which you can paste straight back into --db or --other-db.
Scripting: Add
--format jsonto get
structured JSON output for parsing. Use
--non-interactiveor set
KBDB_NON_INTERACTIVE=1to suppress prompts in
CI pipelines.
4. Recall context
kbdb recall <kbid> --depth 1
Start with a search result's kbid and expand context progressively: depth 0 gives the section content, depth 1 adds parent documents and back-references, depth 2 adds siblings and forward references, depth 3 includes full text of referenced sections.
Build, search, and maintain your knowledge store.
kbdb history walks the chain from either end, and an old kb-id still resolves--max-tokens budget allowskbdb eval scores Recall@k, MRR and nDCG@k against your own dataset, and exits non-zero when a change makes ranking worsekbdb neighbourhood says what relates to a section *and how*: eight typed edges, seven of them recorded facts and one inferredkbdb consolidate proposes groups of sections that could become one. It proposes only; you write the merge and apply it yourselfSee the Knowledge Base Guide for the full walkthrough, including export and backup.
Integrate kbdb with AI agents and custom tools.
MCP quick-start (Claude CLI):
claude mcp add kbdb -- \
npx @dikolab/kbdb mcp --db /path/to/project
See the MCP Installation Guide for Claude Code, VS Code, and Claude Desktop config files, plus troubleshooting.
sampling capability, and Claude Code does not advertise it, so auto-capture is inert there. Every other feature in this list is unaffected -- see Host Support--allow-all..) in export/importWhat the server tells an agent. The initialize response carries an instructions string -- the one channel every compliant MCP host receives without any setup. kbdb spends it on capture policy: search before answering, treat an unanswered verdict as a gap to investigate rather than guess at, store decisions and corrections that cost real effort to find, and do not store what the code already says. The same sentences are quoted in the learn, revise and search tool descriptions rather than paraphrased, so there is one source for all of them.
See the Agent Tooling Guide for MCP setup, skills, agents, and the library API, and Capture Policy for the six clauses in full and why they are written once.
Use kbdb programmatically in your Node.js or Deno project:
import { createWorkerClient } from '@dikolab/kbdb';
// Spawns a background worker if not already running const client = await createWorkerClient({ contextPath: '/path/to/.kbdb', requestTimeoutMs: 30_000, });
const results = await client.search({ query: 'authentication', limit: 10, offset: 0, });
console.log(results.items); client.disconnect();
Pass contextPath (the .kbdb directory itself) or dbPath (the parent directory -- kbdb discovers .kbdb inside it).
See the Library API Reference for the full API.
git clone https://gitlab.com/diko316/knowledge-base-db.git
cd knowledge-base-db npm install npm test
Two Dockerfiles, and they are not interchangeable.
Dockerfile at the repository root builds the MCP server -- that is the one MCP directories build, and the one to use if you want kbdb in a container. See [Install MCP S
冒頭だけを表示しています。続きはリポジトリで読めます