Context7
Up-to-date docs for AI agents
作者による説明(英語の原文)
An MCP server for search and retrieval over a local LanceDB database
この3つを1つのスコアにまとめることはしません。意見、測定、人気はそれぞれ別のものだからです。
このサーバーのやさしい解説はまだ書いていません。以下はレジストリから読み取った事実です。
使っているAIアプリを選んで、設定をコピーしてください。
LANCEDB_PATH, OPENAI_API_KEY「秘密」と表示された値は、あなたのアカウントの鍵です。絶対に人に教えたり、チャットに貼り付けたりしないでください。
必要なもの
どのアプリを使っていますか?
上でアプリを選んでください。選んだアプリを覚えておくので、次からはボタンに「…にインストール」と表示されます。
ウェブ、デスクトップ、モバイルのClaudeで使えます:
https://mcp.ayers.repair/lancelotClaude Desktop → Settings → Developer → Edit Config を開き、claude_desktop_config.json にこれを貼り付けます
{
"mcpServers": {
"lancelot": {
"command": "npx",
"args": [
"-y",
"@ayerselectronics/lancelot"
],
"env": {
"LANCEDB_PATH": "your-value",
"OPENAI_API_KEY": "your-value"
}
}
}
}ターミナルでこれを実行します
claude mcp add --transport http lancelot https://mcp.ayers.repair/lancelotclaude mcp add lancelot --env LANCEDB_PATH=your-value --env OPENAI_API_KEY=your-value -- npx -y @ayerselectronics/lancelot動かす前に、空欄の値を入力してください。
プロジェクトの .cursor/mcp.json、または ~/.cursor/mcp.json に貼り付けます
{
"mcpServers": {
"lancelot": {
"url": "https://mcp.ayers.repair/lancelot"
}
}
}プロジェクトの .cursor/mcp.json、または ~/.cursor/mcp.json に貼り付けます
{
"mcpServers": {
"lancelot": {
"command": "npx",
"args": [
"-y",
"@ayerselectronics/lancelot"
],
"env": {
"LANCEDB_PATH": "your-value",
"OPENAI_API_KEY": "your-value"
}
}
}
}ブラウザがアプリを開いてよいか確認し、そのあとアプリが設定を表示して確認を求めます。キーの値は空欄のままなので、自分で入力してください。
プロジェクトの .vscode/mcp.json に貼り付けます
{
"servers": {
"lancelot": {
"type": "http",
"url": "https://mcp.ayers.repair/lancelot"
}
}
}プロジェクトの .vscode/mcp.json に貼り付けます
{
"servers": {
"lancelot": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"@ayerselectronics/lancelot"
],
"env": {
"LANCEDB_PATH": "your-value",
"OPENAI_API_KEY": "your-value"
}
}
}
}ブラウザがアプリを開いてよいか確認し、そのあとアプリが設定を表示して確認を求めます。キーの値は空欄のままなので、自分で入力してください。
ChatGPTがつなげるのは、インターネット上のサーバーだけです:
https://mcp.ayers.repair/lancelotメニューの名前は、プランや時期によって少し違うことがあります。
選んだアプリは、この端末のCookieに保存されます。アカウントは不要です。
この設定は、作者のレジストリ登録情報から作成しています。READMEと違う場合は、READMEに従ってください。
ツールの名前と説明は、サーバーが2026年11月6日に返したそのままの内容です。書いたのは作者で、私たちではありません。プレーンテキストとして表示しています。
lancedb_searchSearch LanceDB for relevant documents using vector or text search
lancedb_queryRAG query with context retrieval from LanceDB
lancedb_statusGet LanceDB status and statistics
lancedb_versionShow Lancelot version information
誰でも見られる情報をチェックしており、コードは読んでいません。当てはまらない項目は数に入れていません。 · 2026年11月7日にチェック
レジストリ名は、リポジトリを所有するGitHubアカウント ayers-software-repair で確認済みです
このリポジトリはまだGitHubから読み取っていません
このリポジトリはまだGitHubから読み取っていません
605ミリ秒で応答(HTTP 200)
サインイン不要
4件のツールの説明を読み、AIへの隠れた指示は見つかりませんでした
レジストリでこのカテゴリにある有効なすべてのサーバーと比較しています。スターは、公開者がリポジトリの所有者である場合だけ数えます。
当てはまる基本チェック3項目のうち3項目に合格しました。コードは読んでいません。キーやトークンを追加する前に、サーバーがどんなアクセスを求めているかを確認し、必要な権限だけを持つキーを使ってください。
入力が必要なもの:LANCEDB_PATH, OPENAI_API_KEY
どちらでも使えます。パソコンにインストールしても、クラウド版につないでもかまいません。
GitHubリポジトリの最終更新は–、最新バージョン(0.3.3)がレジストリに届いたのは8 日前です。
Claude Desktop、Claude Code、Cursor、VS CodeなどのMCP対応アプリで使えます。URLでつながるので、リモートMCPサーバーに対応したアプリ(開発者モードのChatGPTなど)でも使えます。
同じカテゴリには: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、画像、スクリプトは取り除いています。リンクはこのサイトの外へ移動します。
Search your documents from any MCP-compatible assistant. Lancelot connects an agent to a local LanceDB database and returns matching passages with their sources.
Quickstart · Install · Index documents · Tools · HTTP hosting · Privacy
Requires Node.js 20 or later. First, create a local LanceDB database from your documents (replace ./docs with a folder containing .md, .txt or .html files):
npx -y --package @ayerselectronics/lancelot lancelot-index ./docs ./lancelot-db
This creates the documents table in ./lancelot-db for local text search; no API key is needed. Running it again replaces that table with the folder's current contents.
Then, from the same directory, add the server to Claude Code using that database's absolute path:
claude mcp add --env LANCEDB_PATH="$PWD/lancelot-db" --transport stdio lancelot -- npx -y @ayerselectronics/lancelot
Ask Claude to search your documents with lancedb_search. For other MCP clients, see Install; for table options, see Index your documents.
Connect an MCP client to `https://mcp.ayers.repair/lancelot` to search the public Ayers documentation. This hosted instance does not read your files. To search your own documents, run the local server below.
Requires Node.js 20 or later and a LanceDB database folder. If you do not have a database, index a folder of documents first. Use the database's absolute path in your client configuration.
Claude Code, using the stdio form from the Claude Code MCP documentation:
claude mcp add --env LANCEDB_PATH=/path/to/db --transport stdio lancelot -- npx -y @ayerselectronics/lancelot
--transport stdio sits between the last --env and the server name on purpose: the CLI reads a name that follows --env directly as another variable. Everything after -- runs the server.
For vector search, add --env OPENAI_API_KEY=YOUR_KEY before --transport. Your table must contain vectors created with the configured embedding model. Query text is then sent to OpenAI.
Other MCP clients take the same command in their mcpServers configuration:
{
"mcpServers": { "lancelot": { "command": "npx", "args": ["-y", "@ayerselectronics/lancelot"], "env": { "LANCEDB_PATH": "/path/to/db" } } } }
Open one of these in a browser or on the command line to add the server to the editor. Set LANCEDB_PATH to your database folder afterwards.
vscode:mcp/install?%7B%22name%22%3A%22lancelot%22%2C%22command%22%3A%22npx%22%2C%22args%22%3A%5B%22-y%22%2C%22%40ayerselectronics%2Flancelot%22%5D%2C%22env%22%3A%7B%22LANCEDB_PATH%22%3A%22%2Fpath%2Fto%2Fdb%22%7D%7Dcursor://anysphere.cursor-deeplink/mcp/install?name=lancelot&config=eyJjb21tYW5kIjoibnB4IiwiYXJncyI6WyIteSIsIkBheWVyc2VsZWN0cm9uaWNzL2xhbmNlbG90Il0sImVudiI6eyJMQU5DRURCX1BBVEgiOiIvcGF0aC90by9kYiJ9fQ==The link formats are from the VS Code MCP guide and the Cursor install links documentation.
MCP Registry identity: io.github.ayers-software-repair/lancelot.
lancelot-init asks for the database folder and an OpenAI API key, and stores them for later runs. The key goes to the operating system keychain through keytar, or to an encrypted file when keytar is not available. Run it with npx -p @ayerselectronics/lancelot lancelot-init. Environment variables override what it stored.
lancelot-index builds the table the server reads from a folder of .md, .txt and .html files:
npx -p @ayerselectronics/lancelot lancelot-index ./docs ./db
npx -p @ayerselectronics/lancelot lancelot-index ./docs ./db --table documents
Rebuilding replaces the named table. Keep the original documents and choose a separate database folder for each collection you want to manage independently.
It walks the folder and its subfolders (skipping names that start with a dot), strips HTML to text, and splits each file into chunks of about 1,200 characters on paragraph boundaries. A paragraph longer than that is cut at a space. Each chunk becomes a row { id, path, title, text }: id is the relative path and chunk number, path is the relative path, and title is the first Markdown heading of the file, or the file name. There are no vectors, so search is text search.
--table names the table (default documents). The command replaces that table if it exists, so running it again rebuilds the table from the folder. It is the only part of the package that writes to a database; the server never does. Point LANCEDB_PATH at the database folder afterwards.
| Tool | What it does |
|---|---|
lancedb_search | Searches a table and returns ranked hits with short snippets. |
lancedb_query | Retrieves chunks for a question and returns them as one block of context, cut to a character budget. |
lancedb_status | Reports the connection, the tables with row counts, and whether embeddings are available. |
lancedb_version | Reports the Lancelot version, the MCP protocol version of the SDK it is built on, and what is enabled. |
lancedb_search| Parameter | Type | Required | Meaning |
|---|---|---|---|
query | string | yes | The search text. |
limit | number | no | Maximum hits, 1 to 200. Default: LANCEDB_DEFAULT_LIMIT, which is 20. |
searchType | vector, text or auto | no | vector embeds the query with OpenAI. text matches words in the text column. auto (the default) uses vector search when an API key is set and text search otherwise. |
table | string | no | Table to search. Default: LANCEDB_TABLE. |
textColumn | string | no | Column holding the text. Default: LANCEDB_TEXT_COLUMN. |
vectorColumn | string | no | Column holding the vectors. Default: LANCEDB_VECTOR_COLUMN. |
The reply is JSON. Its searchType field is the search that produced the hits, vector or text. When that is not the search you asked for, a note field says why: no API key, the vector search failed, or (in auto) it found nothing. For vector hits score is the distance, so lower is closer. For text hits score is the share of query words found in the hit, so higher is better.
Text search is a case-insensitive substring match on the words of the query. It does not use a full-text index and does not stem words.
lancedb_query| Parameter | Type | Required | Meaning |
|---|---|---|---|
question | string | yes | The question to retrieve context for. |
contextBudget | number | no | Maximum characters of context. Default: LANCEDB_CONTEXT_BUDGET, which is 8000. |
warmStart | boolean | no | Retrieve a general project overview instead of answering question. Default: false. |
table | string | no | Table to query. Default: LANCEDB_TABLE. |
limit | number | no | Maximum chunks to retrieve, 1 to 200. Default: LANCEDB_DEFAULT_LIMIT. |
The reply is a Markdown block: a header (mode, search type, query), then one section per chunk with its title, source and text. Chunks that would pass the budget are left out and the block says how many.
lancedb_status| Parameter | Type | Required | Meaning |
|---|---|---|---|
verbose | boolean | no | Include the column names of each table. Default: false. |
lancedb_versionNo parameters.
Lancelot reads the text from the text column (text by default). It reads title for the title, and chunkSource, docSource or path for the source, when a row has them; the first two are the layout AnythingLLM writes, and path is what lancelot-index writes. Other columns come back as metadata. Vector search needs vectors made with the same model as EMBEDDING_MODEL.
npx -y @ayerselectronics/lancelot --http # http://127.0.0.1:3000/mcp
npx -y @ayerselectronics/lancelot --http 8080 npx -y @ayerselectronics/lancelot --http 8080 --host 0.0.0.0 # all interfaces
Without --http the server uses stdio. With it, the server uses MCP Streamable HTTP. The SDK negotiates the protocol version with each client. --http takes an optional port (default 3000). The server binds 127.0.0.1 unless --host names another address, as the specification advises for a local server. The endpoint is /mcp; any other path is 404.
Origin header. A request that carries an Origin not listed in LANCELOT_ALLOWED_ORIGINS gets 403. With the variable unset, every request that carries an Origin gets 403. A request with no Origin header is allowed; an absent header is not an authentication check; the SDK's own origin check refuses those, so Lancelot does the check itself.LANCELOT_ALLOWED_HOSTS lists the Host header values that may call, for DNS rebinding protection. Left unset on a loopback bind, it defaults to 127.0.0.1: , localhost: and [::1]: . Left unset with --host 0.0.0.0, the Host header is not checked and a warning goes to stderr. A request with a Host not listed gets 403.GET (the optional event stream) and DELETE (ending a session) answer 405 with Allow: POST, which the specification permits.MCP-Protocol-Version header is checked by the SDK: a version it does not support is 400, and a missing header is taken as 2025-03-26, as the specification says.Both variables take comma-separated lists, for example LANCELOT_ALLOWED_ORIGINS=https://app.example,https://other.example. HTTP mode has no authentication; the tools are read-only, and a server open to a network should sit behind something that has it.
dist/lambda.js exports handler(event) for an API Gateway HTTP API with payload format 2.0. It turns the event into the request the SDK's transport expects and returns { statusCode, headers, body }. It reads LANCEDB_PATH, LANCELOT_BASE_PATH (the path the endpoint is served under, such as /lancelot; unset serves every path) and the two allow-list variables. The database connection is opened on the first invocation and reused on warm ones. The function may write only to /tmp, where Lancelot keeps its own settings file.
The Dockerfile builds the container image on the AWS Node.js 24 base image for arm64, with the handler dist/lambda.handler. Build dist first:
docker buildx build --platform linux/arm64 --provenance=false -t lancelot-lambda .
Settings come from, in order: the environment, the file written by lancelot-init, the defaults. A variable that is empty or only whitespace counts as not set; the stored value is checked next. Tex
冒頭だけを表示しています。続きはリポジトリで読めます