OpenSEO
Keyword research, site audits, rank tracking and AI visibility for your AI agent.
Run, fit, and route work to local LLMs (Ollama, LM Studio, llama.cpp, MLX, vLLM, and more).
选择你使用的 AI 应用,然后复制设置。
通过 2/3 项检查 · 在你的电脑上运行 · ✓ 命令已检查 2026年11月14日
第一步:你用哪个 AI?
选择你用的应用,步骤会显示在下方。
把这段话复制到 Claude 的对话里。AI 会先检查电脑,告诉你要改哪个文件,并且每次都等你同意。
请在这台电脑上为 Claude 安装 MCP server Local AI MCP,按顺序:1) 用 node -v 检查是否有 Node.js。没有的话,请让我从 https://nodejs.org/en/download 安装,不要自己安装。2) 只使用这份配置(已通过 PopNx MCP 检查):{ "mcpServers": { "local-ai": { "command": "npx", "args": [ "-y", "@tmhs/local-ai-mcp" ], "env": { "VLLM_API_KEY": "your-value", "OPENAI_COMPAT_API_KEY": "your-value", "MOONSHOT_API_KEY": "your-value" } } } } 3) 告诉我要修改的文件完整路径或要运行的命令,等我同意。4) VLLM_API_KEY, OPENAI_COMPAT_API_KEY, MOONSHOT_API_KEY 先保留 "your-value",请我自己把真实值粘贴到文件或应用的输入框里。不要让我在对话里输入密钥。5) 按约定执行,然后确认 Local AI MCP 的工具真的出现了。这段话不包含你的密钥。如果需要密钥,AI 会请你自己粘贴到文件或应用的输入框里。
已经装好了吗?先检查 · 打开终端,输入这条命令后按 Enter
node -vMac:按 ⌘ + Space,输入 Terminal 后按 Enter
Windows:打开“开始”菜单,输入 Windows PowerShell,然后选“打开”
还没安装: 打开官方下载页,选择 LTS 版本和点选式安装程序:Mac 用 .pkg · Windows 用 .msi。双击后一路下一步即可,不需要 curl 命令
装好后关掉终端再打开,重新运行同一条命令,应显示版本号: node -v
安装一次,所有需要 Node.js 的工具都能用
SettingsDeveloperEdit Config
{
"mcpServers": {
"local-ai": {
"command": "npx",
"args": [
"-y",
"@tmhs/local-ai-mcp"
],
"env": {
"VLLM_API_KEY": "your-value",
"OPENAI_COMPAT_API_KEY": "your-value",
"MOONSHOT_API_KEY": "your-value"
}
}
}
}只把密钥粘贴到应用的输入框里,不要粘贴到聊天中或发给任何人
用 Local AI MCP 告诉我你能帮我做什么,然后做一件给我看✓ 如果 Claude 说正在使用 Local AI MCP,或回答中出现 Local AI MCP 的工具名称,就表示连接成功
上面的命令不填这些也能用。想调整时再按开发者的说明添加。
OLLAMA_HOST Ollama base URL · 默认值 http://localhost:11434LMSTUDIO_HOST LM Studio server base URL · 默认值 http://localhost:1234LLAMACPP_HOST llama.cpp server (llama-server) base URL · 默认值 http://localhost:8080DOCKER_MODEL_RUNNER_HOST Docker Model Runner host TCP endpoint · 默认值 http://localhost:12434MLX_HOST mlx_lm.server base URL (opt-in; Apple Silicon)VLLM_HOST vLLM OpenAI server base URL (opt-in)FOUNDRY_LOCAL_HOST Foundry Local service URL (opt-in; port from `foundry service status`)OPENAI_COMPAT_HOST Any OpenAI-compatible /v1 server (opt-in)LOCAL_AI_ALLOW_HOSTED_FALLBACK Allow implicit routing to hosted providers (default: off)MOONSHOT_HOST Moonshot API base URL · 默认值 https://api.moonshot.ai/v1LOCAL_AI_DISABLE Comma-separated provider names to skip probingLOCAL_AI_PROVIDERS JSON array of extra provider instances: {type, host, name?, apiKey?, kind?}LOCAL_AI_DISABLE_NETWORK_SEARCH Keep search_models offline (catalog only)LOCAL_AI_BENCHMARK_CACHE Benchmark results file used to rank delegate by measured speed (default: per-user cache dir; off disables)说明仍为英文原文。
菜单名称已于 2026年11月11日 对照 Anthropic 帮助页面核实 · 你的界面可能因版本略有不同
ChatGPT 暂时无法连接 Local AI MCP
Local AI MCP 需要安装在你的电脑上,而 ChatGPT 只能连接在网上运行的服务器
A · 使用能连接 Local AI MCP 的应用
可连接 Claude Code,但需要先准备
需要 Local AI MCP 的密钥(在开发者网站创建) · 需要先在电脑上安装 Node.js(只需一次)
把这段话复制到 Claude Code 的对话里。AI 会先检查电脑,告诉你要改哪个文件,并且每次都等你同意。
请在这台电脑上为 Claude Code 安装 MCP server Local AI MCP,按顺序:1) 用 node -v 检查是否有 Node.js。没有的话,请让我从 https://nodejs.org/en/download 安装,不要自己安装。2) 只使用这份配置(已通过 PopNx MCP 检查):claude mcp add --scope user local-ai --env VLLM_API_KEY=your-value --env OPENAI_COMPAT_API_KEY=your-value --env MOONSHOT_API_KEY=your-value -- npx -y @tmhs/local-ai-mcp 3) 告诉我要修改的文件完整路径或要运行的命令,等我同意。4) VLLM_API_KEY, OPENAI_COMPAT_API_KEY, MOONSHOT_API_KEY 先保留 "your-value",请我自己把真实值粘贴到文件或应用的输入框里。不要让我在对话里输入密钥。5) 按约定执行,然后确认 Local AI MCP 的工具真的出现了。这段话不包含你的密钥。如果需要密钥,AI 会请你自己粘贴到文件或应用的输入框里。
已经装好了吗?先检查 · 打开终端,输入这条命令后按 Enter
node -vMac:按 ⌘ + Space,输入 Terminal 后按 Enter
Windows:打开“开始”菜单,输入 Windows PowerShell,然后选“打开”
还没安装: 打开官方下载页,选择 LTS 版本和点选式安装程序:Mac 用 .pkg · Windows 用 .msi。双击后一路下一步即可,不需要 curl 命令
装好后关掉终端再打开,重新运行同一条命令,应显示版本号: node -v
安装一次,所有需要 Node.js 的工具都能用
Mac:按 Command+空格,输入 Terminal · Windows:打开 PowerShell
claude mcp add --scope user local-ai --env VLLM_API_KEY=your-value --env OPENAI_COMPAT_API_KEY=your-value --env MOONSHOT_API_KEY=your-value -- npx -y @tmhs/local-ai-mcp按 Enter 前,把“your-value”改成你的密钥
只把密钥粘贴到应用的输入框里,不要粘贴到聊天中或发给任何人
应能看到 Local AI MCP 在列表中并显示已连接
用 Local AI MCP 告诉我你能帮我做什么,然后做一件给我看✓ 如果 Claude Code 说正在使用 Local AI MCP,或回答中出现 Local AI MCP 的工具名称,就表示连接成功
上面的命令不填这些也能用。想调整时再按开发者的说明添加。
OLLAMA_HOST Ollama base URL · 默认值 http://localhost:11434LMSTUDIO_HOST LM Studio server base URL · 默认值 http://localhost:1234LLAMACPP_HOST llama.cpp server (llama-server) base URL · 默认值 http://localhost:8080DOCKER_MODEL_RUNNER_HOST Docker Model Runner host TCP endpoint · 默认值 http://localhost:12434MLX_HOST mlx_lm.server base URL (opt-in; Apple Silicon)VLLM_HOST vLLM OpenAI server base URL (opt-in)FOUNDRY_LOCAL_HOST Foundry Local service URL (opt-in; port from `foundry service status`)OPENAI_COMPAT_HOST Any OpenAI-compatible /v1 server (opt-in)LOCAL_AI_ALLOW_HOSTED_FALLBACK Allow implicit routing to hosted providers (default: off)MOONSHOT_HOST Moonshot API base URL · 默认值 https://api.moonshot.ai/v1LOCAL_AI_DISABLE Comma-separated provider names to skip probingLOCAL_AI_PROVIDERS JSON array of extra provider instances: {type, host, name?, apiKey?, kind?}LOCAL_AI_DISABLE_NETWORK_SEARCH Keep search_models offline (catalog only)LOCAL_AI_BENCHMARK_CACHE Benchmark results file used to rank delegate by measured speed (default: per-user cache dir; off disables)说明仍为英文原文。
菜单名称已于 2026年11月11日 对照 Anthropic 帮助页面核实 · 你的界面可能因版本略有不同
可连接 Cursor,但需要先准备
需要 Local AI MCP 的密钥(在开发者网站创建) · 需要先在电脑上安装 Node.js(只需一次)
把这段话复制到 Cursor 的对话里。AI 会先检查电脑,告诉你要改哪个文件,并且每次都等你同意。
请在这台电脑上为 Cursor 安装 MCP server Local AI MCP,按顺序:1) 用 node -v 检查是否有 Node.js。没有的话,请让我从 https://nodejs.org/en/download 安装,不要自己安装。2) 只使用这份配置(已通过 PopNx MCP 检查):{ "mcpServers": { "local-ai": { "command": "npx", "args": [ "-y", "@tmhs/local-ai-mcp" ], "env": { "VLLM_API_KEY": "your-value", "OPENAI_COMPAT_API_KEY": "your-value", "MOONSHOT_API_KEY": "your-value" } } } } 3) 告诉我要修改的文件完整路径或要运行的命令,等我同意。4) VLLM_API_KEY, OPENAI_COMPAT_API_KEY, MOONSHOT_API_KEY 先保留 "your-value",请我自己把真实值粘贴到文件或应用的输入框里。不要让我在对话里输入密钥。5) 按约定执行,然后确认 Local AI MCP 的工具真的出现了。这段话不包含你的密钥。如果需要密钥,AI 会请你自己粘贴到文件或应用的输入框里。
已经装好了吗?先检查 · 打开终端,输入这条命令后按 Enter
node -vMac:按 ⌘ + Space,输入 Terminal 后按 Enter
Windows:打开“开始”菜单,输入 Windows PowerShell,然后选“打开”
还没安装: 打开官方下载页,选择 LTS 版本和点选式安装程序:Mac 用 .pkg · Windows 用 .msi。双击后一路下一步即可,不需要 curl 命令
装好后关掉终端再打开,重新运行同一条命令,应显示版本号: node -v
安装一次,所有需要 Node.js 的工具都能用
在 Local AI MCP 的设置中,VLLM_API_KEY, OPENAI_COMPAT_API_KEY, MOONSHOT_API_KEY 还是空的,填入你的密钥并保存
只把密钥粘贴到应用的输入框里,不要粘贴到聊天中或发给任何人
用 Local AI MCP 告诉我你能帮我做什么,然后做一件给我看✓ 如果 Cursor 说正在使用 Local AI MCP,或回答中出现 Local AI MCP 的工具名称,就表示连接成功
上面的命令不填这些也能用。想调整时再按开发者的说明添加。
OLLAMA_HOST Ollama base URL · 默认值 http://localhost:11434LMSTUDIO_HOST LM Studio server base URL · 默认值 http://localhost:1234LLAMACPP_HOST llama.cpp server (llama-server) base URL · 默认值 http://localhost:8080DOCKER_MODEL_RUNNER_HOST Docker Model Runner host TCP endpoint · 默认值 http://localhost:12434MLX_HOST mlx_lm.server base URL (opt-in; Apple Silicon)VLLM_HOST vLLM OpenAI server base URL (opt-in)FOUNDRY_LOCAL_HOST Foundry Local service URL (opt-in; port from `foundry service status`)OPENAI_COMPAT_HOST Any OpenAI-compatible /v1 server (opt-in)LOCAL_AI_ALLOW_HOSTED_FALLBACK Allow implicit routing to hosted providers (default: off)MOONSHOT_HOST Moonshot API base URL · 默认值 https://api.moonshot.ai/v1LOCAL_AI_DISABLE Comma-separated provider names to skip probingLOCAL_AI_PROVIDERS JSON array of extra provider instances: {type, host, name?, apiKey?, kind?}LOCAL_AI_DISABLE_NETWORK_SEARCH Keep search_models offline (catalog only)LOCAL_AI_BENCHMARK_CACHE Benchmark results file used to rank delegate by measured speed (default: per-user cache dir; off disables)说明仍为英文原文。
菜单名称已于 2026年11月11日 对照 Cursor 帮助页面核实 · 你的界面可能因版本略有不同
可连接 VS Code,但需要先准备
需要 Local AI MCP 的密钥(在开发者网站创建) · 需要先在电脑上安装 Node.js(只需一次)
把这段话复制到 VS Code 的对话里。AI 会先检查电脑,告诉你要改哪个文件,并且每次都等你同意。
请在这台电脑上为 VS Code 安装 MCP server Local AI MCP,按顺序:1) 用 node -v 检查是否有 Node.js。没有的话,请让我从 https://nodejs.org/en/download 安装,不要自己安装。2) 只使用这份配置(已通过 PopNx MCP 检查):{ "servers": { "local-ai": { "type": "stdio", "command": "npx", "args": [ "-y", "@tmhs/local-ai-mcp" ], "env": { "VLLM_API_KEY": "your-value", "OPENAI_COMPAT_API_KEY": "your-value", "MOONSHOT_API_KEY": "your-value" } } } } 3) 告诉我要修改的文件完整路径或要运行的命令,等我同意。4) VLLM_API_KEY, OPENAI_COMPAT_API_KEY, MOONSHOT_API_KEY 先保留 "your-value",请我自己把真实值粘贴到文件或应用的输入框里。不要让我在对话里输入密钥。5) 按约定执行,然后确认 Local AI MCP 的工具真的出现了。这段话不包含你的密钥。如果需要密钥,AI 会请你自己粘贴到文件或应用的输入框里。
已经装好了吗?先检查 · 打开终端,输入这条命令后按 Enter
node -vMac:按 ⌘ + Space,输入 Terminal 后按 Enter
Windows:打开“开始”菜单,输入 Windows PowerShell,然后选“打开”
还没安装: 打开官方下载页,选择 LTS 版本和点选式安装程序:Mac 用 .pkg · Windows 用 .msi。双击后一路下一步即可,不需要 curl 命令
装好后关掉终端再打开,重新运行同一条命令,应显示版本号: node -v
安装一次,所有需要 Node.js 的工具都能用
在 Local AI MCP 的设置中,VLLM_API_KEY, OPENAI_COMPAT_API_KEY, MOONSHOT_API_KEY 还是空的,填入你的密钥并保存
只把密钥粘贴到应用的输入框里,不要粘贴到聊天中或发给任何人
用 Local AI MCP 告诉我你能帮我做什么,然后做一件给我看✓ 如果 VS Code 说正在使用 Local AI MCP,或回答中出现 Local AI MCP 的工具名称,就表示连接成功
上面的命令不填这些也能用。想调整时再按开发者的说明添加。
OLLAMA_HOST Ollama base URL · 默认值 http://localhost:11434LMSTUDIO_HOST LM Studio server base URL · 默认值 http://localhost:1234LLAMACPP_HOST llama.cpp server (llama-server) base URL · 默认值 http://localhost:8080DOCKER_MODEL_RUNNER_HOST Docker Model Runner host TCP endpoint · 默认值 http://localhost:12434MLX_HOST mlx_lm.server base URL (opt-in; Apple Silicon)VLLM_HOST vLLM OpenAI server base URL (opt-in)FOUNDRY_LOCAL_HOST Foundry Local service URL (opt-in; port from `foundry service status`)OPENAI_COMPAT_HOST Any OpenAI-compatible /v1 server (opt-in)LOCAL_AI_ALLOW_HOSTED_FALLBACK Allow implicit routing to hosted providers (default: off)MOONSHOT_HOST Moonshot API base URL · 默认值 https://api.moonshot.ai/v1LOCAL_AI_DISABLE Comma-separated provider names to skip probingLOCAL_AI_PROVIDERS JSON array of extra provider instances: {type, host, name?, apiKey?, kind?}LOCAL_AI_DISABLE_NETWORK_SEARCH Keep search_models offline (catalog only)LOCAL_AI_BENCHMARK_CACHE Benchmark results file used to rank delegate by measured speed (default: per-user cache dir; off disables)说明仍为英文原文。
菜单名称已于 2026年11月11日 对照 VS Code 帮助页面核实 · 你的界面可能因版本略有不同
Claude Code
claude mcp add --scope user local-ai --env VLLM_API_KEY=your-value --env OPENAI_COMPAT_API_KEY=your-value --env MOONSHOT_API_KEY=your-value -- npx -y @tmhs/local-ai-mcpClaude Desktop (claude_desktop_config.json)
{
"mcpServers": {
"local-ai": {
"command": "npx",
"args": [
"-y",
"@tmhs/local-ai-mcp"
],
"env": {
"VLLM_API_KEY": "your-value",
"OPENAI_COMPAT_API_KEY": "your-value",
"MOONSHOT_API_KEY": "your-value"
}
}
}
}Cursor (~/.cursor/mcp.json)
{
"mcpServers": {
"local-ai": {
"command": "npx",
"args": [
"-y",
"@tmhs/local-ai-mcp"
],
"env": {
"VLLM_API_KEY": "your-value",
"OPENAI_COMPAT_API_KEY": "your-value",
"MOONSHOT_API_KEY": "your-value"
}
}
}
}VS Code (mcp.json)
{
"servers": {
"local-ai": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"@tmhs/local-ai-mcp"
],
"env": {
"VLLM_API_KEY": "your-value",
"OPENAI_COMPAT_API_KEY": "your-value",
"MOONSHOT_API_KEY": "your-value"
}
}
}
}OLLAMA_HOST envLMSTUDIO_HOST envLLAMACPP_HOST envDOCKER_MODEL_RUNNER_HOST envMLX_HOST envVLLM_HOST envVLLM_API_KEY 机密 必填 envFOUNDRY_LOCAL_HOST envOPENAI_COMPAT_HOST envOPENAI_COMPAT_API_KEY 机密 必填 envMOONSHOT_API_KEY 机密 必填 envLOCAL_AI_ALLOW_HOSTED_FALLBACK envMOONSHOT_HOST envLOCAL_AI_DISABLE envLOCAL_AI_PROVIDERS envLOCAL_AI_DISABLE_NETWORK_SEARCH envLOCAL_AI_BENCHMARK_CACHE env说明仍为英文原文。
这些设置是根据作者在注册中心的条目生成的。如果 README 的写法不同,请以 README 为准。
依据这个服务器的连接方式和各应用自己的文档,检查于 2026年11月10日。
在你的电脑上运行,适用于
ClaudeGooseLM StudioMsty StudioCherry StudioCursorVS Code + GitHub CopilotVisual StudioWindsurf (Devin Desktop)ZedKiroClineContinueJetBrains AI AssistantClaude CodeCodex CLIGemini CLIOpenCodenodecodeWarpLibreChatRaycast
它在你的电脑上运行;安装后,工具列表会显示在你的 AI 应用中。
我们检查的是任何人都能看到的信息;我们没有阅读代码。不适用的检查项不计入总数。 · 检查于 2026年11月15日
注册名称已通过 GitHub 账户 TMHSDigital 验证,该账户拥有此仓库
代码最后更新于7天前
GitHub 无法识别许可证类型;请打开文件自行查看
它在你的电脑上运行,没有互联网端点
在你的电脑上运行,改用本地设置
它在你的电脑上运行;我们只能读取互联网端点的工具列表
OSV.dev 中没有 @tmhs/local-ai-mcp@0.6.1 的记录
只检查这个版本的包本身,不包括所有依赖 · 检查于 2026年11月15日
提问、分享技巧或报告无法使用。按“有帮助”数量排序。
还没有评价
与注册中心里这个分类中所有活跃的服务器比较。只有当发布者拥有该仓库时,星标数才计入。
它在 3 项适用的基础检查中通过了 2 项。我们没有阅读代码。在添加密钥或令牌之前,请先看看这个服务器要求哪些权限,并使用只具备所需权限的密钥。
你需要填写:VLLM_API_KEY, OPENAI_COMPAT_API_KEY, MOONSHOT_API_KEY
它在你的电脑上运行。你的 AI 应用会在需要时启动它,数据不会经过作者的服务器(除非它自己调用在线服务)。
GitHub 仓库最后更新于7天前,最新版本(0.6.1)于12天前进入注册中心。
支持 MCP 的应用,例如 Claude Desktop、Claude Code、Cursor 和 VS Code。你的电脑上还需要有 Node.js。
同一分类中有:OpenSEO, Exa, Mockserver, Microsoft Learn MCP, Docs
同一分类、其他作者、命令已通过检查。官方的排在前面,再按星标排序。
如何看卡片:↓ 每周下载量i★ GitHub 星标i三大支柱:评价 · 检查 · 使用情况i更新 = 最新版本发布到注册中心的时间i
Keyword research, site audits, rank tracking and AI visibility for your AI agent.
Connect AI agents to Exa for web search, content fetching, and multi-step research.
Mock, record/replay, verify and chaos-test any HTTP, REST, gRPC or LLM dependency over MCP.
Official Microsoft Learn MCP Server – real-time, trusted docs & code samples for AI and LLMs.
按原文从作者的仓库复制。PopNx MCP 没有审查或背书其内容。HTML、图片和脚本已被移除。链接会离开本站。
One MCP server for every local model runtime on your machine. It knows what fits your GPU, and it never sends a prompt to the cloud unless you tell it to.
Local AI MCP gives your agent (Claude, Cursor, VS Code, and others) one control plane for Ollama, LM Studio, llama.cpp, Docker Model Runner, MLX, vLLM and Foundry Local. Your agent can see what's installed and loaded, check what will actually fit in your VRAM, get models ready, and hand work off to the best local model with a single delegate call.
# illustrative session
You: Summarise these 40 pages of meeting notes locally, I don't want them in the cloud. Agent: → delegate { task: "summarize", prompt: "...", contextLength: 32768 } ← routing: ollama / qwen3:14b — already loaded (no load cost); general model; fits: gpu local: true · 412 tokens · 38 tok/s
fit_check sizes the KV cache from the model's actual layer architecture, adds up VRAM across GPUs, models partial GPU/CPU offload, and understands Apple Silicon unified memory. It answers "will this model run, and where?" with numbers rather than guesses.provider argument never uses one. Every result reports provider, host and local, so you can see where inference ran.suggest_model, then ensure_modellist_loaded, then unload_model (or use the free-vram prompt)benchmark { models: [...] }search_models { source: "huggingface" }delegate { task: "extract", responseFormat: { type: "json_schema", ... } }fit_check { model, contextLength: 32768 }Install at least one runtime (Ollama, LM Studio, llama.cpp, Docker Model Runner, MLX, vLLM or Foundry Local), then add the server to your client. No configuration is needed for runtimes on their default ports.
Claude Code
claude mcp add local-ai -- npx -y @tmhs/local-ai-mcp
Claude Desktop. Download the .mcpb file from the latest release and open it. You get a settings screen for hosts and no JSON to edit. Alternatively, add this to claude_desktop_config.json:
{
"mcpServers": { "local-ai": { "command": "npx", "args": ["-y", "@tmhs/local-ai-mcp"] } } }
Cursor / VS Code. Use the install buttons above, or add the same command/args to .cursor/mcp.json or .vscode/mcp.json (VS Code uses a top-level "servers" key instead of "mcpServers").
Windsurf, Cline, Zed and other clients. Any stdio MCP client works: the command is npx, the args are ["-y", "@tmhs/local-ai-mcp"].
Windows: a few clients can't launch
npxdirectly. If the server doesn't start, use"command": "cmd", "args": ["/c", "npx", "-y", "@tmhs/local-ai-mcp"].
Adding a hosted provider (optional). Put MOONSHOT_API_KEY in the server's env. It is only used when a tool call names provider: "moonshot", unless you also set LOCAL_AI_ALLOW_HOSTED_FALLBACK=1.
| Runtime | Enabled | Default host | List / loaded | Pull | Load / unload | Remove | Embed | Notes |
|---|---|---|---|---|---|---|---|---|
| Ollama | always | localhost:11434 | ✓ / ✓ | ✓ progress | ✓ (keep_alive, num_ctx) | ✓ | ✓ | Native /api/chat: contextLength sets num_ctx, exact timings, JSON-schema format |
| LM Studio | always | localhost:1234 | ✓ / ✓ | ✓ via lms | ✓ via lms (TTL, context) | ✓ via lms | ✓ | Lifecycle needs the lms CLI; without it, models load on first request |
llama.cpp (llama-server) | always | localhost:8080 | ✓ / ✓ (/slots) | – | – | – | ✓ | One model per server; start with --embeddings for embed |
| Docker Model Runner | always | localhost:12434 | ✓ / – | ✓ progress | on first request | ✓ | ✓ | Enable host-side TCP support in Docker Desktop |
MLX (mlx_lm.server) | MLX_HOST | – | ✓ / – | – | on first request | – | – | Apple Silicon; switches models per request |
| vLLM | VLLM_HOST | – | ✓ / ✓ | – | – | – | ✓ | health_check reports KV-cache usage and queue depth from /metrics |
| Foundry Local | FOUNDRY_LOCAL_HOST | dynamic port | ✓ / ✓ | ✓ progress | ✓ (TTL) | – | – | Find the port with foundry service status |
| OpenAI-compatible (Jan, LocalAI, …) | OPENAI_COMPAT_HOST | – | ✓ / ✓ | – | – | – | ✓ | Local or hosted, inferred from the host |
| Moonshot AI (Kimi) | MOONSHOT_API_KEY | api.moonshot.ai/v1 | ✓ / – | – | – | – | – | Hosted: never selected implicitly |
You can run more than one instance of a runtime, for example a second Ollama box on your LAN, with LOCAL_AI_PROVIDERS='[{"type":"ollama","name":"ollama-gpu2","host":"http://192.168.1.20:11434"}]'. Use LOCAL_AI_DISABLE=lmstudio,dockermodelrunner to skip probing runtimes you don't use.
*.local, Tailscale CGNAT and host.docker.internal count as local. You can override it per instance in LOCAL_AI_PROVIDERS.provider argument, complete, embed, delegate, benchmark, load_model and the other model-scoped tools only consider live local providers that have the model. If the model exists only on a hosted provider, the call fails and tells you how to opt in.health_check and diagnostics contact them.search_models with source: "huggingface" queries the Hugging Face Hub, and only when you ask it to. Set LOCAL_AI_DISABLE_NETWORK_SEARCH=1 to forbid it.Every tool declares MCP annotations (read-only, destructive, open-world) and an output schema, and returns structured content.
| Group | Tool | What it does |
|---|---|---|
| Discovery | list_providers | Configured runtimes: kind (local/hosted), live status, capabilities |
list_models | Installed models on each live provider | |
list_loaded | Models resident in memory, with VRAM use and context length | |
model_info | Family, size, quantization, context length and layer architecture | |
| Lifecycle | pull_model | Heavy. Downloads to one provider, streaming progress notifications. background: true returns a job id instead |
pull_status / pull_cancel | Check or stop background pulls | |
remove_model | Destructive. provider is required; asks you directly through MCP elicitation when the client supports it, otherwise needs confirm: true | |
load_model / unload_model | One provider, with optional keepAlive and contextLength | |
ensure_model | Pull (if allowed), fit check, evict others (lru / all), load and verify. dryRun returns the plan only | |
| Ops | health_check | Reachability, version, runtime metrics |
diagnostics | Effective config (keys redacted), per-provider detection with latency and errors, speed cache, hardware probe sources. Paste it into bug reports | |
system_resources | RAM and GPUs (NVIDIA, AMD, Intel, Apple Silicon), each tagged with its data source | |
fit_check | Returns gpu / partial / cpu / none for a model at a given context length and KV-cache precision | |
benchmark | Heavy. Warmup, then N runs: time-to-first-token, generation and prompt tokens/sec. models: [...] to compare | |
| Registry | search_available | Built-in offline catalog |
suggest_model | Best models for a task on *this* machine: largest that fits on the GPU first, flags installed ones | |
search_models | Live Hugging Face GGUF search with per-quantization fit and pull references (hf.co/ : ) | |
| Delegation | complete | Run a completion on a model you choose: system prompt, JSON / JSON-schema output (validated), seed, sampling, images, contextLength |
embed | Embeddings, always one vector per input | |
delegate | One call: picks the best local model for a task (loaded, then installed and fitting, then optionally pulled; larger size tiers first, with speed measured by benchmark on this machine breaking ties within a tier), runs it, and explains the choice |
Resources: local-ai://system, local-ai://loaded (subscribable; updates when models load or unload), and local-ai://models/{provider}. Prompts: setup, free-vram, benchmark-my-models, pick-model.
Every setting is an environment variable, and blank means the default. See .env.example for the full annotated list.
| Variable | Default | Purpose |
|---|---|---|
OLLAMA_HOST, LMSTUDIO_HOST, LLAMACPP_HOST, DOCKER_MODEL_RUNNER_HOST | standard local ports | Always-on runtimes |
MLX_HOST, VLLM_HOST (+VLLM_API_KEY), FOUNDRY_LOCAL_HOST, OPENAI_COMPAT_HOST (+OPENAI_COMPAT_API_KEY) | unset | Opt-in runtimes |
LOCAL_AI_PROVIDERS | unset | JSON array of extra instances {type, host, name?, apiKey?, kind?} |
LOCAL_AI_DISABLE | unset | Comma-separated types or names to skip |
MOONSHOT_API_KEY, MOONSHOT_HOST | unset, https://api.moonshot.ai/v1 | Hosted Moonshot provider |
LOCAL_AI_ALLOW_HOSTED_FALLBACK | off | Let calls without a provider use hosted providers |
LOCAL_AI_DISABLE_NETWORK_SEARCH | off | Forbid Hugging Face search |
LOCAL_AI_BENCHMARK_CACHE | per-user cache dir | Where benchmark results are kept for delegate ranking (expire after 14 days); off disables |
LOCAL_AI_REQUEST_TIMEOUT_MS | 120000 | Non-streamed requests |
LOCAL_AI_DETECT_TIMEOUT_MS | 1500 | Detection probes |
LOCAL_AI_PULL_TIMEOUT_MS | 3600000 | Downloads (0 = no limit) |
LOCAL_AI_STREAM_IDLE_TIMEOUT_MS | 60000 | Abort a stream only if no token arrives for this long |
| LOCAL_AI_STREAM_MAX_MS | 1800000 | Hard cap on a streamed completion