Prototype · Preview: every server in the official registry, synced every 30 minutes. Sign in with Google to write reviews.Prototype · updated every 30 min
PopNx MCPMCP servers for people who use AI · explained in plain words

Local AI MCP

by TMHSDigitalversion 0.6.1i★ 0iRuns on your computer
Registry nameio.github.TMHSDigital/local-ai-mcp

How to install

What it does

Run, fit, and route work to local LLMs (Ollama, LM Studio, llama.cpp, MLX, vLLM, and more).

  • Connects Runs on your computer
  • Account or key Needs VLLM_API_KEY, OPENAI_COMPAT_API_KEY, MOONSHOT_API_KEY
  • Category Search & AI memory

Install

Pick the AI app you use, then copy the settings.

Passed 2/3 checks · Runs on your computer · ✓ Commands checked Nov 14, 2026

First: which AI do you use?

Pick your app and the steps appear below.

Works with Claude, with some setup first

You need a Local AI MCP key (create it on the maker’s site) · Install Node.js on your computer first (one time) · Only the Claude desktop app (Windows or Mac), not the web or phone

  1. Install Node.js

    One time only; it works for every server that needs Node.js

    Open the Node.js download page ↗

  2. Sign up and create a Local AI MCP key

    Open the maker’s site, sign up and create an API key for the next step. Check the maker’s site for pricing and free plans.

    Open the Local AI MCP site ↗

  3. Open the Claude desktop app’s settings file

    SettingsDeveloperEdit Config

  4. Paste these settings and save the file

    {
      "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"
          }
        }
      }
    }

    Paste the key only into the app’s field, never into a chat or to anyone

  5. Quit Claude and open it again

  6. Try it

    Use Local AI MCP and tell me what you can do for me, then show me one thing

    ✓ If Claude says it is using Local AI MCP or shows a Local AI MCP tool in the answer, you are connected

14 optional setting(s) (works without them)

The command above works without these. Add them only if you want to change something, following the maker’s description.

  • OLLAMA_HOST Ollama base URL · default http://localhost:11434
  • LMSTUDIO_HOST LM Studio server base URL · default http://localhost:1234
  • LLAMACPP_HOST llama.cpp server (llama-server) base URL · default http://localhost:8080
  • DOCKER_MODEL_RUNNER_HOST Docker Model Runner host TCP endpoint · default http://localhost:12434
  • MLX_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 · default https://api.moonshot.ai/v1
  • LOCAL_AI_DISABLE Comma-separated provider names to skip probing
  • LOCAL_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)

Descriptions are as written by the maker.

Menu names checked against Anthropic’s help page on Nov 11, 2026 · your screen may differ slightly by app version

ChatGPT cannot connect Local AI MCP yet

Local AI MCP runs on your computer, but ChatGPT can only connect servers that run on the web

What you can do instead

A · Use an app that can connect Local AI MCP

  • You need a Local AI MCP key (create it on the maker’s site) · Install Node.js on your computer first (one time) · Only the Claude desktop app (Windows or Mac), not the web or phone
  • You need a Local AI MCP key (create it on the maker’s site) · Install Node.js on your computer first (one time)
  • You need a Local AI MCP key (create it on the maker’s site) · Install Node.js on your computer first (one time)
  • You need a Local AI MCP key (create it on the maker’s site) · Install Node.js on your computer first (one time)

B · Others in Search & AI memory that work with ChatGPT

Picked from the most used in the same category, only ones that connect by address with no key

Works with Claude Code, with some setup first

You need a Local AI MCP key (create it on the maker’s site) · Install Node.js on your computer first (one time)

  1. Install Node.js

    One time only; it works for every server that needs Node.js

    Open the Node.js download page ↗

  2. Sign up and create a Local AI MCP key

    Open the maker’s site, sign up and create an API key for the next step. Check the maker’s site for pricing and free plans.

    Open the Local AI MCP site ↗

  3. Open Terminal

    Mac: press Command+Space and type Terminal · Windows: open PowerShell

  4. Paste this command and press Enter

    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

    Replace “your-value” with your key before pressing Enter

    Paste the key only into the app’s field, never into a chat or to anyone

  5. Type /mcp in Claude Code

    You should see Local AI MCP listed as connected

  6. Try it

    Use Local AI MCP and tell me what you can do for me, then show me one thing

    ✓ If Claude Code says it is using Local AI MCP or shows a Local AI MCP tool in the answer, you are connected

14 optional setting(s) (works without them)

The command above works without these. Add them only if you want to change something, following the maker’s description.

  • OLLAMA_HOST Ollama base URL · default http://localhost:11434
  • LMSTUDIO_HOST LM Studio server base URL · default http://localhost:1234
  • LLAMACPP_HOST llama.cpp server (llama-server) base URL · default http://localhost:8080
  • DOCKER_MODEL_RUNNER_HOST Docker Model Runner host TCP endpoint · default http://localhost:12434
  • MLX_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 · default https://api.moonshot.ai/v1
  • LOCAL_AI_DISABLE Comma-separated provider names to skip probing
  • LOCAL_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)

Descriptions are as written by the maker.

Menu names checked against Anthropic’s help page on Nov 11, 2026 · your screen may differ slightly by app version

Works with Cursor, with some setup first

You need a Local AI MCP key (create it on the maker’s site) · Install Node.js on your computer first (one time)

  1. Install Node.js

    One time only; it works for every server that needs Node.js

    Open the Node.js download page ↗

  2. Sign up and create a Local AI MCP key

    Open the maker’s site, sign up and create an API key for the next step. Check the maker’s site for pricing and free plans.

    Open the Local AI MCP site ↗

  3. Click this button to open Cursor

    Open in Cursor

    Cursor asks you to confirm; click Install

  4. Fill in your key

    In the Local AI MCP settings, VLLM_API_KEY, OPENAI_COMPAT_API_KEY, MOONSHOT_API_KEY is empty; add your key and save

    Paste the key only into the app’s field, never into a chat or to anyone

  5. Open the AI chat in Cursor in Agent mode

  6. Try it

    Use Local AI MCP and tell me what you can do for me, then show me one thing

    ✓ If Cursor says it is using Local AI MCP or shows a Local AI MCP tool in the answer, you are connected

14 optional setting(s) (works without them)

The command above works without these. Add them only if you want to change something, following the maker’s description.

  • OLLAMA_HOST Ollama base URL · default http://localhost:11434
  • LMSTUDIO_HOST LM Studio server base URL · default http://localhost:1234
  • LLAMACPP_HOST llama.cpp server (llama-server) base URL · default http://localhost:8080
  • DOCKER_MODEL_RUNNER_HOST Docker Model Runner host TCP endpoint · default http://localhost:12434
  • MLX_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 · default https://api.moonshot.ai/v1
  • LOCAL_AI_DISABLE Comma-separated provider names to skip probing
  • LOCAL_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)

Descriptions are as written by the maker.

Menu names checked against Cursor’s help page on Nov 11, 2026 · your screen may differ slightly by app version

Works with VS Code, with some setup first

You need a Local AI MCP key (create it on the maker’s site) · Install Node.js on your computer first (one time)

  1. Install Node.js

    One time only; it works for every server that needs Node.js

    Open the Node.js download page ↗

  2. Sign up and create a Local AI MCP key

    Open the maker’s site, sign up and create an API key for the next step. Check the maker’s site for pricing and free plans.

    Open the Local AI MCP site ↗

  3. Click this button to open VS Code

    Open in VS Code

    VS Code asks you to confirm; click Install

  4. Fill in your key

    In the Local AI MCP settings, VLLM_API_KEY, OPENAI_COMPAT_API_KEY, MOONSHOT_API_KEY is empty; add your key and save

    Paste the key only into the app’s field, never into a chat or to anyone

  5. Open the AI chat in VS Code in Agent mode

  6. Try it

    Use Local AI MCP and tell me what you can do for me, then show me one thing

    ✓ If VS Code says it is using Local AI MCP or shows a Local AI MCP tool in the answer, you are connected

14 optional setting(s) (works without them)

The command above works without these. Add them only if you want to change something, following the maker’s description.

  • OLLAMA_HOST Ollama base URL · default http://localhost:11434
  • LMSTUDIO_HOST LM Studio server base URL · default http://localhost:1234
  • LLAMACPP_HOST llama.cpp server (llama-server) base URL · default http://localhost:8080
  • DOCKER_MODEL_RUNNER_HOST Docker Model Runner host TCP endpoint · default http://localhost:12434
  • MLX_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 · default https://api.moonshot.ai/v1
  • LOCAL_AI_DISABLE Comma-separated provider names to skip probing
  • LOCAL_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)

Descriptions are as written by the maker.

Menu names checked against VS Code’s help page on Nov 11, 2026 · your screen may differ slightly by app version

Other apps that use MCP, such as Windsurf, Zed or Gemini CLI, each add servers differently. See how in the app list.

See every app that uses MCP →

JSON settings are under “For developers” below

Stuck? Ask people who use Local AI MCP💬 Discussion →
For developers: Terminal commands and JSON settings

Installed on your computer

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-mcp

Claude 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"
      }
    }
  }
}

Values you fill in

  • OLLAMA_HOST env
    Ollama base URL
  • LMSTUDIO_HOST env
    LM Studio server base URL
  • LLAMACPP_HOST env
    llama.cpp server (llama-server) base URL
  • DOCKER_MODEL_RUNNER_HOST env
    Docker Model Runner host TCP endpoint
  • MLX_HOST env
    mlx_lm.server base URL (opt-in; Apple Silicon)
  • VLLM_HOST env
    vLLM OpenAI server base URL (opt-in)
  • VLLM_API_KEY secret required env
    Bearer token for VLLM_HOST (when vLLM runs with --api-key)
  • FOUNDRY_LOCAL_HOST env
    Foundry Local service URL (opt-in; port from `foundry service status`)
  • OPENAI_COMPAT_HOST env
    Any OpenAI-compatible /v1 server (opt-in)
  • OPENAI_COMPAT_API_KEY secret required env
    Bearer token for OPENAI_COMPAT_HOST
  • MOONSHOT_API_KEY secret required env
    Moonshot AI (Kimi) key. Hosted: only used when named explicitly.
  • LOCAL_AI_ALLOW_HOSTED_FALLBACK env
    Allow implicit routing to hosted providers (default: off)
  • MOONSHOT_HOST env
    Moonshot API base URL
  • LOCAL_AI_DISABLE env
    Comma-separated provider names to skip probing
  • LOCAL_AI_PROVIDERS env
    JSON array of extra provider instances: {type, host, name?, apiKey?, kind?}
  • LOCAL_AI_DISABLE_NETWORK_SEARCH env
    Keep search_models offline (catalog only)
  • LOCAL_AI_BENCHMARK_CACHE env
    Benchmark results file used to rank delegate by measured speed (default: per-user cache dir; off disables)

Descriptions are as written by the maker.

These settings are generated from the maker’s registry entry. If the README says otherwise, follow the README.

At a glance

Downloads per weeki
526/wk
Licencei
No licence stated
Connection
Runs on your computer
Latest versioni
0.6.1
Published to registryi
Nov 3, 2026
Code last changedi
Nov 8, 2026
Maker
TMHSDigital
Packages
npm: @tmhs/local-ai-mcp
Registry status
Active

Which apps can use it

Based on how this server connects and on each app’s own docs, checked Nov 10, 2026.

Run on your computer in

ClaudeGooseLM StudioMsty StudioCherry StudioCursorVS Code + GitHub CopilotVisual StudioWindsurf (Devin Desktop)ZedKiroClineContinueJetBrains AI AssistantClaude CodeCodex CLIGemini CLIOpenCodenodecodeWarpLibreChatRaycast

All apps, with pros and cons →

Related guides

What it can do

Runs on your computer; the tool list appears in your AI app after you install it.

Basic checksi

We check information anyone can see; we have not read the code. Checks that do not apply are left out of the count. · Checked Nov 14, 2026

  • ✓ Pass

    Maker matches the repo

    The registry name was verified with the GitHub account TMHSDigital, which owns the repo

  • ✓ Pass

    Still maintained

    Code last changed 6 days ago

  • ! Caution

    Has a licence

    GitHub could not identify the licence type; open the file to check

  • – Not applicable

    Endpoint responds

    This one runs on your computer; there is no internet endpoint

  • – Not applicable

    Sign-in with OAuth

    Runs on your computer and uses local settings instead

  • … Not checked yet

    No hidden instructions in tool descriptions

    Runs on your computer; we can only read tool lists from internet endpoints

Discussion

Ask, share a tip or report that it does not work. Sorted by what people marked helpful.

No posts yet. Be the first to ask or share.

Posts here are written by users, not the PopNx team.

Sign in with Google to post

User reviews

No reviews yet

Sign in with Google to write a review

Compared with others in Search & AI memoryi

  • More stars than 0% of the other 6115 servers in this category
  • Published to the registry more recently than 78% of the other 6115 servers in this category
  • Basic checks equal to or better than 50% of the other 6115 servers in this category

Compared with every active server in this category in the registry. Stars count only when the publisher owns the repo.

Common questions

Is Local AI MCP safe?

It passed 2 of 3 applicable basic checks. We have not read the code. Before adding a key or token, see what access the server asks for and use a key with only the permissions you need.

What keys or codes does it need?

You need to fill in: VLLM_API_KEY, OPENAI_COMPAT_API_KEY, MOONSHOT_API_KEY

Does it run on my computer or in the cloud?

It runs on your computer. Your AI app starts it when needed, and data does not pass through the maker’s servers (unless it calls an online service itself).

Is it still maintained?

The GitHub repo last changed 6 days ago, and the latest version (0.6.1) reached the registry 11 days ago.

Which apps can use it?

Apps that support MCP, such as Claude Desktop, Claude Code, Cursor and VS Code. You also need Node.js on your computer.

What can I use instead?

In the same category: Context7, Codebase Memory, OpenSEO

Others in the same category

Servers in the same category from other makers, sorted by stars.

Reading a card:↓ Downloads per weeki★ GitHub starsiThree pillars: reviews · checks · usageiUpdated = latest version published to the registryi

Context7

Feeds AI the latest docs for libraries and frameworks before it answers, so code it writes does not use outdated, removed functions.

by upstashWidely used↓ 1.2M/wk★ 64.8KUpdated 2 days ago

Computer or cloud

Codebase Memory

Codebase knowledge graph for AI agents — 162 languages, sub-ms queries, 99% fewer tokens.

by DeusDataWidely used↓ 16.8K/wk★ 48.6KUpdated 28 days ago

Runs on your computer

OpenSEO

Keyword research, site audits, rank tracking and AI visibility for your AI agent.

by every-appWidely used★ 27.6KUpdated today

Runs in the cloud✓ everyapp.com

README from the maker

Open the README

Copied from the maker’s repo as written. PopNx MCP has not reviewed or endorsed it. HTML, images and scripts are removed. Links lead off this site.

Local AI MCP

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

Why use it

  • It knows your hardware. 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.
  • It works across runtimes. If you run Ollama *and* LM Studio, each call goes to the runtime that actually has the model. Lifecycle actions such as pull, load and unload affect exactly one runtime.
  • It keeps data local by default. Hosted providers such as Moonshot are opt-in, and a call without a provider argument never uses one. Every result reports provider, host and local, so you can see where inference ran.
  • It handles operations, not just chat. Pull with progress, load with a context size, evict least-recently-used models to make room, benchmark time-to-first-token and tokens per second, and search Hugging Face for GGUF quantizations that fit your machine.

Things to ask your agent

  • "What can I run for coding on this laptop?" → suggest_model, then ensure_model
  • "Free up my GPU." → list_loaded, then unload_model (or use the free-vram prompt)
  • "Benchmark my installed coder models and tell me which is fastest." → benchmark { models: [...] }
  • "Find a newer Gemma build that fits my 12 GB card." → search_models { source: "huggingface" }
  • "Extract the invoice fields from this text as JSON, locally." → delegate { task: "extract", responseFormat: { type: "json_schema", ... } }
  • "Will Llama 3.1 70B run here with 32K context?" → fit_check { model, contextLength: 32768 }

Quick start

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 npx directly. 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.

Supported runtimes

RuntimeEnabledDefault hostList / loadedPullLoad / unloadRemoveEmbedNotes
Ollamaalwayslocalhost:11434✓ / ✓✓ progress✓ (keep_alive, num_ctx)✓✓Native /api/chat: contextLength sets num_ctx, exact timings, JSON-schema format
LM Studioalwayslocalhost: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)alwayslocalhost:8080✓ / ✓ (/slots)–––✓One model per server; start with --embeddings for embed
Docker Model Runneralwayslocalhost:12434✓ / –✓ progresson 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
vLLMVLLM_HOST–✓ / ✓–––✓health_check reports KV-cache usage and queue depth from /metrics
Foundry LocalFOUNDRY_LOCAL_HOSTdynamic 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_KEYapi.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.

Privacy model

  • Each provider is either local or hosted. The kind is inferred from its host: loopback, private LAN ranges, *.local, Tailscale CGNAT and host.docker.internal count as local. You can override it per instance in LOCAL_AI_PROVIDERS.
  • With no 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.
  • Hosted providers are never probed on routine calls. Only 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.
  • The server uses stdio only. It never opens a network listener.

Tools (19)

Every tool declares MCP annotations (read-only, destructive, open-world) and an output schema, and returns structured content.

GroupToolWhat it does
Discoverylist_providersConfigured runtimes: kind (local/hosted), live status, capabilities
list_modelsInstalled models on each live provider
list_loadedModels resident in memory, with VRAM use and context length
model_infoFamily, size, quantization, context length and layer architecture
Lifecyclepull_modelHeavy. Downloads to one provider, streaming progress notifications. background: true returns a job id instead
pull_status / pull_cancelCheck or stop background pulls
remove_modelDestructive. provider is required; asks you directly through MCP elicitation when the client supports it, otherwise needs confirm: true
load_model / unload_modelOne provider, with optional keepAlive and contextLength
ensure_modelPull (if allowed), fit check, evict others (lru / all), load and verify. dryRun returns the plan only
Opshealth_checkReachability, version, runtime metrics
diagnosticsEffective config (keys redacted), per-provider detection with latency and errors, speed cache, hardware probe sources. Paste it into bug reports
system_resourcesRAM and GPUs (NVIDIA, AMD, Intel, Apple Silicon), each tagged with its data source
fit_checkReturns gpu / partial / cpu / none for a model at a given context length and KV-cache precision
benchmarkHeavy. Warmup, then N runs: time-to-first-token, generation and prompt tokens/sec. models: [...] to compare
Registrysearch_availableBuilt-in offline catalog
suggest_modelBest models for a task on *this* machine: largest that fits on the GPU first, flags installed ones
search_modelsLive Hugging Face GGUF search with per-quantization fit and pull references (hf.co/ : )
DelegationcompleteRun a completion on a model you choose: system prompt, JSON / JSON-schema output (validated), seed, sampling, images, contextLength
embedEmbeddings, always one vector per input
delegateOne 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.

Configuration

Every setting is an environment variable, and blank means the default. See .env.example for the full annotated list.

VariableDefaultPurpose
OLLAMA_HOST, LMSTUDIO_HOST, LLAMACPP_HOST, DOCKER_MODEL_RUNNER_HOSTstandard local portsAlways-on runtimes
MLX_HOST, VLLM_HOST (+VLLM_API_KEY), FOUNDRY_LOCAL_HOST, OPENAI_COMPAT_HOST (+OPENAI_COMPAT_API_KEY)unsetOpt-in runtimes
LOCAL_AI_PROVIDERSunsetJSON array of extra instances {type, host, name?, apiKey?, kind?}
LOCAL_AI_DISABLEunsetComma-separated types or names to skip
MOONSHOT_API_KEY, MOONSHOT_HOSTunset, https://api.moonshot.ai/v1Hosted Moonshot provider
LOCAL_AI_ALLOW_HOSTED_FALLBACKoffLet calls without a provider use hosted providers
LOCAL_AI_DISABLE_NETWORK_SEARCHoffForbid Hugging Face search
LOCAL_AI_BENCHMARK_CACHEper-user cache dirWhere benchmark results are kept for delegate ranking (expire after 14 days); off disables
LOCAL_AI_REQUEST_TIMEOUT_MS120000Non-streamed requests
LOCAL_AI_DETECT_TIMEOUT_MS1500Detection probes
LOCAL_AI_PULL_TIMEOUT_MS3600000Downloads (0 = no limit)
LOCAL_AI_STREAM_IDLE_TIMEOUT_MS60000Abort a stream only if no token arrives for this long

| LOCAL_AI_STREAM_MAX_MS | 1800000 | Hard cap on a streamed completion

Only the beginning is shown; read the rest in the repo