Context7
Up-to-date docs for AI agents
作者提供的说明(英文原文)
Let a planning agent hand bounded language work to a local Ollama model.
这三项永远不会合并成一个分数:意见、测量和人气是不同的东西。
我们还没有为它写通俗的介绍。下面是我们从注册中心读取到的事实。
选择你使用的 AI 应用,然后复制设置。
SEZZLEE_LLM_MODEL, SEZZLEE_LLM_BASE_URL, SEZZLEE_LLM_NUM_CTX, SEZZLEE_LLM_TIMEOUT_MS, SEZZLEE_LLM_KEEP_ALIVE, SEZZLEE_LLM_ROOT, SEZZLEE_LLM_OUTPUT_DIR你需要
你用的是哪个应用?
在上方选择你的应用。我们会记住它,下次按钮会显示“安装到 …”。
打开 Claude Desktop → Settings → Developer → Edit Config,把下面的内容粘贴到 claude_desktop_config.json
{
"mcpServers": {
"llm": {
"command": "npx",
"args": [
"-y",
"@sezzlee/llm-mcp"
],
"env": {
"SEZZLEE_LLM_MODEL": "your-value",
"SEZZLEE_LLM_BASE_URL": "your-value",
"SEZZLEE_LLM_NUM_CTX": "your-value",
"SEZZLEE_LLM_TIMEOUT_MS": "your-value",
"SEZZLEE_LLM_KEEP_ALIVE": "your-value",
"SEZZLEE_LLM_ROOT": "your-value",
"SEZZLEE_LLM_OUTPUT_DIR": "your-value"
}
}
}
}在终端中运行这条命令
claude mcp add llm --env SEZZLEE_LLM_MODEL=your-value --env SEZZLEE_LLM_BASE_URL=your-value --env SEZZLEE_LLM_NUM_CTX=your-value --env SEZZLEE_LLM_TIMEOUT_MS=your-value --env SEZZLEE_LLM_KEEP_ALIVE=your-value --env SEZZLEE_LLM_ROOT=your-value --env SEZZLEE_LLM_OUTPUT_DIR=your-value -- npx -y @sezzlee/llm-mcp运行前请先填写空着的值。
粘贴到项目中的 .cursor/mcp.json,或 ~/.cursor/mcp.json
{
"mcpServers": {
"llm": {
"command": "npx",
"args": [
"-y",
"@sezzlee/llm-mcp"
],
"env": {
"SEZZLEE_LLM_MODEL": "your-value",
"SEZZLEE_LLM_BASE_URL": "your-value",
"SEZZLEE_LLM_NUM_CTX": "your-value",
"SEZZLEE_LLM_TIMEOUT_MS": "your-value",
"SEZZLEE_LLM_KEEP_ALIVE": "your-value",
"SEZZLEE_LLM_ROOT": "your-value",
"SEZZLEE_LLM_OUTPUT_DIR": "your-value"
}
}
}
}浏览器会先询问是否打开应用,然后应用会显示设置并请你确认。密钥的值会留空,由你自己填写。
粘贴到项目中的 .vscode/mcp.json
{
"servers": {
"llm": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"@sezzlee/llm-mcp"
],
"env": {
"SEZZLEE_LLM_MODEL": "your-value",
"SEZZLEE_LLM_BASE_URL": "your-value",
"SEZZLEE_LLM_NUM_CTX": "your-value",
"SEZZLEE_LLM_TIMEOUT_MS": "your-value",
"SEZZLEE_LLM_KEEP_ALIVE": "your-value",
"SEZZLEE_LLM_ROOT": "your-value",
"SEZZLEE_LLM_OUTPUT_DIR": "your-value"
}
}
}
}浏览器会先询问是否打开应用,然后应用会显示设置并请你确认。密钥的值会留空,由你自己填写。
这个服务器在你的电脑上运行,而 ChatGPT 只能连接互联网上的服务器。请选择其他应用。
你的选择通过 Cookie 保存在这台设备上,无需账户。
SEZZLEE_LLM_BASE_URL envSEZZLEE_LLM_NUM_CTX envSEZZLEE_LLM_TIMEOUT_MS envSEZZLEE_LLM_KEEP_ALIVE envSEZZLEE_LLM_ROOT envSEZZLEE_LLM_OUTPUT_DIR env这些设置是根据作者在注册中心的条目生成的。如果 README 的写法不同,请以 README 为准。
它在你的电脑上运行;安装后,工具列表会显示在你的 AI 应用中。
我们检查的是任何人都能看到的信息;我们没有阅读代码。不适用的检查项不计入总数。 · 检查于 2026年11月7日
注册名称已通过 GitHub 账户 sezzlee 验证,该账户拥有此仓库
我们还没有从 GitHub 读取这个仓库
我们还没有从 GitHub 读取这个仓库
它在你的电脑上运行,没有互联网端点
在你的电脑上运行,改用本地设置
它在你的电脑上运行;我们只能读取互联网端点的工具列表
与注册中心里这个分类中所有活跃的服务器比较。只有当发布者拥有该仓库时,星标数才计入。
它在 1 项适用的基础检查中通过了 1 项。我们没有阅读代码。在添加密钥或令牌之前,请先看看这个服务器要求哪些权限,并使用只具备所需权限的密钥。
你需要填写:SEZZLEE_LLM_MODEL
它在你的电脑上运行。你的 AI 应用会在需要时启动它,数据不会经过作者的服务器(除非它自己调用在线服务)。
GitHub 仓库最后更新于–,最新版本(0.1.3)于26天前进入注册中心。
支持 MCP 的应用,例如 Claude Desktop、Claude Code、Cursor 和 VS Code。你的电脑上还需要有 Node.js。
同一分类中有:Context7, Codebase Memory, Exa
同一分类中其他作者的服务器,按星标数排序。
如何看卡片:★ GitHub 星标i三大支柱:评价 · 检查 · 使用情况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、图片和脚本已被移除。链接会离开本站。
MCP server that lets a planning agent (Codex, Claude Code, Cursor) hand off bounded language work to a local model. It builds on @sezzlee/mcp-core and names no other @sezzlee/* package.
{
"mcpServers": { "local": { "command": "npx", "args": ["-y", "@sezzlee/llm-mcp"], "env": { "SEZZLEE_LLM_BASE_URL": "http://127.0.0.1:11434", "SEZZLEE_LLM_MODEL": "qwen3:8b" } } } }
In Codex, the same block goes under mcp_servers.local. If it runs with approval_policy = "never", default_tools_approval_mode = "auto" is also required, or Codex refuses the call.
Three tools. Two are read-only; local_map only adds new files to the server's own output directory.
| Tool | What it does | Key arguments |
|---|---|---|
local_task | Runs one bounded language task on the local model: classify, extract, summarize, transform, or free. The server reads any file arguments itself — their contents never enter the calling agent's context. With jsonSchema the answer is JSON matching that schema (returned as result); otherwise it is text (returned as answer). summarize and extract split an oversized input into chunks and read all of it (up to 32 chunks, 1 MiB total); every other kind refuses an oversized input as input_too_large. Nothing is ever silently truncated. | kind, instruction, text?, files? (up to 8, paths relative to the working directory), jsonSchema? |
local_map | Labels every row of a CSV file with one of the given labels. The agent never sees the rows: it passes a path, and the server writes a new file (the original columns plus one label column) under the output directory, returning that file's path, the per-label counts, and up to 4 sample rows per label. Up to 2,000 rows. | file, instruction, labels (2–50), labelColumn? (defaults to label) |
local_status | Reports whether the local model is reachable and loaded, its context window, one call's input budget, and how many calls are queued. Call it when unsure the local model is available before delegating to it. | none |
SEZZLEE_LLM_MODEL=qwen3:8b
SEZZLEE_LLM_ROOT=. # default: the working directory SEZZLEE_LLM_OUTPUT_DIR=.llm-mcp/out # default; relative to root, must stay inside it SEZZLEE_LLM_BASE_URL=http://127.0.0.1:11434 # default SEZZLEE_LLM_NUM_CTX=16384 # default; at least 4096 SEZZLEE_LLM_KEEP_ALIVE=30m # default SEZZLEE_LLM_TIMEOUT_MS=300000 # default; one request
npx -y @sezzlee/llm-mcp
| Variable | Default | Meaning |
|---|---|---|
SEZZLEE_LLM_MODEL | none — required | The Ollama model name. There is no built-in default; it must be set explicitly (see Model choice). |
SEZZLEE_LLM_ROOT | working directory | Workspace root. Every file argument a tool accepts is resolved against it. |
SEZZLEE_LLM_OUTPUT_DIR | .llm-mcp/out | Where local_map writes its output. Relative to the root, and must stay inside it. |
SEZZLEE_LLM_BASE_URL | http://127.0.0.1:11434 | Base URL of the Ollama host. |
SEZZLEE_LLM_NUM_CTX | 16384 | Context window in tokens. Must be an integer of at least 4096. |
SEZZLEE_LLM_KEEP_ALIVE | 30m | Value forwarded to Ollama's keep_alive. |
SEZZLEE_LLM_TIMEOUT_MS | 300000 | Timeout for a single request to the model. |
Only the model name is required. Parsing is fatal, reaching the host is not: the server still starts and answers tools/list with the host down, and local_status reports reachable: false. The model is warmed up right after the server starts serving.
Set SEZZLEE_LLM_NUM_CTX to what the GPU actually delivers. Ollama does not refuse an oversized input — it silently drops the head — and the input budget is derived from this value.
| Limit | Value | Why |
|---|---|---|
| Input budget | 45% of the context window | Ollama silently drops the head of an oversized prompt instead of refusing it, so the server refuses first. |
| Output budget | 40% of the context window | Caps a runaway completion; without an id-bearing schema the model was measured looping into 12,600 tokens of garbage. |
| Chars-per-token estimate | ~1.8 | Measured on Turkish text; English runs closer to 4 characters per token, so the estimate errs toward refusing rather than truncating. |
local_task files | up to 8 | Per-call file argument cap. |
local_task long input (summarize/extract) | up to 32 chunks, 1 MiB total | Other kinds refuse an over-budget input outright as input_too_large. |
| Chunk merge rounds | up to 3 | A merge that still does not fit after 3 rounds fails as input_too_large. |
local_map rows | up to 2,000 | Labelling was measured at ~270 ms per row — about nine minutes for 2,000 rows, inside the 900 s tool timeout Codex allows. |
local_map file size | up to 8 MiB | Refused up front rather than timed out halfway with nothing written. |
src splits into platform/ (the mcp-core and Node boundary), backend/ (the model host), and tools/ (the MCP surface). tools/ sees the host only through backend/port.ts; the concrete backend is wired in cli.ts.fetch. That global and the node:http/net/tls family are lint-banned everywhere else.realpath are checked separately, so a symlink pointing outside the workspace is refused too. readText accepts only a WorkspacePath-branded path that has passed both checks. In error envelopes, the workspace's absolute path appears as ..num_ctx × 0.45 never reaches the host; an input that could not fit under any circumstances is refused before it is even read. The answer is capped at num_ctx × 0.4.createOutput: it re-checks the output directory's realpath, the server itself picks the file name, lowers it to a safe alphabet and fixes the extension to .csv, and opens it wx — so it never overwrites an existing file or a symlink, and nothing is ever deleted (mcp-core).input_too_large.createSerialBackend queues requests: the GPU does not run them in parallel, while Codex fires calls concurrently. probe bypasses the queue.The measurements below are what the rules above are built on.
Four ways of getting Codex to a local model were tried; only the MCP server worked.
| Approach | Result |
|---|
只显示了开头部分;其余内容请在仓库中阅读