プロトタイプ · プレビュー版:公式レジストリのすべてのサーバーを掲載し、30分ごとに同期しています。レビューとアカウント機能は今後のステップで始まります。
PopNx MCPAIを使う人のためのMCPサーバー · やさしい言葉で解説

Local AI MCP

作者:TMHSDigitalバージョン 0.6.1i★ –iパソコンで動く
レジストリ名io.github.TMHSDigital/local-ai-mcp

インストール

概要

作者による説明(英語の原文)

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

PopNx MCPの3つの柱

この3つを1つのスコアにまとめることはしません。意見、測定、人気はそれぞれ別のものだからです。

できること

このサーバーのやさしい解説はまだ書いていません。以下はレジストリから読み取った事実です。

  • 接続方法: パソコンで動く
  • トランスポート: stdio
  • カテゴリ: 検索・AIの記憶
  • 入力が必要なもの:VLLM_API_KEY, OPENAI_COMPAT_API_KEY, MOONSHOT_API_KEY

インストール

使っているAIアプリを選んで、設定をコピーしてください。

インストールの前に

  • 基本チェック:1項目中1項目に合格
  • あなたのパソコンで、あなたのユーザーと同じ権限(ファイル、ネットワーク、アプリ)で動きます。
  • 自分で入力するもの: OLLAMA_HOST, LMSTUDIO_HOST, LLAMACPP_HOST, DOCKER_MODEL_RUNNER_HOST, MLX_HOST, VLLM_HOST, VLLM_API_KEY, FOUNDRY_LOCAL_HOST, OPENAI_COMPAT_HOST, OPENAI_COMPAT_API_KEY, MOONSHOT_API_KEY, LOCAL_AI_ALLOW_HOSTED_FALLBACK, MOONSHOT_HOST, LOCAL_AI_DISABLE, LOCAL_AI_PROVIDERS, LOCAL_AI_DISABLE_NETWORK_SEARCH, LOCAL_AI_BENCHMARK_CACHE

「秘密」と表示された値は、あなたのアカウントの鍵です。絶対に人に教えたり、チャットに貼り付けたりしないでください。

必要なもの

  • npmNode.jsのインストール(npxコマンドに必要)

どのアプリを使っていますか?

上でアプリを選んでください。選んだアプリを覚えておくので、次からはボタンに「…にインストール」と表示されます。

Claude Desktop → Settings → Developer → Edit Config を開き、claude_desktop_config.json にこれを貼り付けます

{
  "mcpServers": {
    "local-ai": {
      "command": "npx",
      "args": [
        "-y",
        "@tmhs/local-ai-mcp"
      ],
      "env": {
        "OLLAMA_HOST": "your-value",
        "LMSTUDIO_HOST": "your-value",
        "LLAMACPP_HOST": "your-value",
        "DOCKER_MODEL_RUNNER_HOST": "your-value",
        "MLX_HOST": "your-value",
        "VLLM_HOST": "your-value",
        "VLLM_API_KEY": "your-value",
        "FOUNDRY_LOCAL_HOST": "your-value",
        "OPENAI_COMPAT_HOST": "your-value",
        "OPENAI_COMPAT_API_KEY": "your-value",
        "MOONSHOT_API_KEY": "your-value",
        "LOCAL_AI_ALLOW_HOSTED_FALLBACK": "your-value",
        "MOONSHOT_HOST": "your-value",
        "LOCAL_AI_DISABLE": "your-value",
        "LOCAL_AI_PROVIDERS": "your-value",
        "LOCAL_AI_DISABLE_NETWORK_SEARCH": "your-value",
        "LOCAL_AI_BENCHMARK_CACHE": "your-value"
      }
    }
  }
}

ターミナルでこれを実行します

claude mcp add local-ai --env OLLAMA_HOST=your-value --env LMSTUDIO_HOST=your-value --env LLAMACPP_HOST=your-value --env DOCKER_MODEL_RUNNER_HOST=your-value --env MLX_HOST=your-value --env VLLM_HOST=your-value --env VLLM_API_KEY=your-value --env FOUNDRY_LOCAL_HOST=your-value --env OPENAI_COMPAT_HOST=your-value --env OPENAI_COMPAT_API_KEY=your-value --env MOONSHOT_API_KEY=your-value --env LOCAL_AI_ALLOW_HOSTED_FALLBACK=your-value --env MOONSHOT_HOST=your-value --env LOCAL_AI_DISABLE=your-value --env LOCAL_AI_PROVIDERS=your-value --env LOCAL_AI_DISABLE_NETWORK_SEARCH=your-value --env LOCAL_AI_BENCHMARK_CACHE=your-value -- npx -y @tmhs/local-ai-mcp

動かす前に、空欄の値を入力してください。

Cursorで開く

または、設定を自分でコピーする

プロジェクトの .cursor/mcp.json、または ~/.cursor/mcp.json に貼り付けます

{
  "mcpServers": {
    "local-ai": {
      "command": "npx",
      "args": [
        "-y",
        "@tmhs/local-ai-mcp"
      ],
      "env": {
        "OLLAMA_HOST": "your-value",
        "LMSTUDIO_HOST": "your-value",
        "LLAMACPP_HOST": "your-value",
        "DOCKER_MODEL_RUNNER_HOST": "your-value",
        "MLX_HOST": "your-value",
        "VLLM_HOST": "your-value",
        "VLLM_API_KEY": "your-value",
        "FOUNDRY_LOCAL_HOST": "your-value",
        "OPENAI_COMPAT_HOST": "your-value",
        "OPENAI_COMPAT_API_KEY": "your-value",
        "MOONSHOT_API_KEY": "your-value",
        "LOCAL_AI_ALLOW_HOSTED_FALLBACK": "your-value",
        "MOONSHOT_HOST": "your-value",
        "LOCAL_AI_DISABLE": "your-value",
        "LOCAL_AI_PROVIDERS": "your-value",
        "LOCAL_AI_DISABLE_NETWORK_SEARCH": "your-value",
        "LOCAL_AI_BENCHMARK_CACHE": "your-value"
      }
    }
  }
}

ブラウザがアプリを開いてよいか確認し、そのあとアプリが設定を表示して確認を求めます。キーの値は空欄のままなので、自分で入力してください。

VS Codeで開く

または、設定を自分でコピーする

プロジェクトの .vscode/mcp.json に貼り付けます

{
  "servers": {
    "local-ai": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "@tmhs/local-ai-mcp"
      ],
      "env": {
        "OLLAMA_HOST": "your-value",
        "LMSTUDIO_HOST": "your-value",
        "LLAMACPP_HOST": "your-value",
        "DOCKER_MODEL_RUNNER_HOST": "your-value",
        "MLX_HOST": "your-value",
        "VLLM_HOST": "your-value",
        "VLLM_API_KEY": "your-value",
        "FOUNDRY_LOCAL_HOST": "your-value",
        "OPENAI_COMPAT_HOST": "your-value",
        "OPENAI_COMPAT_API_KEY": "your-value",
        "MOONSHOT_API_KEY": "your-value",
        "LOCAL_AI_ALLOW_HOSTED_FALLBACK": "your-value",
        "MOONSHOT_HOST": "your-value",
        "LOCAL_AI_DISABLE": "your-value",
        "LOCAL_AI_PROVIDERS": "your-value",
        "LOCAL_AI_DISABLE_NETWORK_SEARCH": "your-value",
        "LOCAL_AI_BENCHMARK_CACHE": "your-value"
      }
    }
  }
}

ブラウザがアプリを開いてよいか確認し、そのあとアプリが設定を表示して確認を求めます。キーの値は空欄のままなので、自分で入力してください。

これはパソコンで動くサーバーですが、ChatGPTがつなげるのはインターネット上のサーバーだけです。ほかのアプリを選んでください。

選んだアプリは、この端末のCookieに保存されます。アカウントは不要です。

自分で入力する値

  • 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 秘密 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 秘密 env
    Bearer token for OPENAI_COMPAT_HOST
  • MOONSHOT_API_KEY 秘密 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)

この設定は、作者のレジストリ登録情報から作成しています。READMEと違う場合は、READMEに従ってください。

できること

パソコンで動くサーバーです。インストールすると、ツール一覧がAIアプリに表示されます。

基本チェックi

誰でも見られる情報をチェックしており、コードは読んでいません。当てはまらない項目は数に入れていません。 · 2026年11月7日にチェック

  • ✓ 合格

    作者とリポジトリが一致

    レジストリ名は、リポジトリを所有するGitHubアカウント TMHSDigital で確認済みです

  • … 未チェック

    今もメンテナンスされている

    このリポジトリはまだGitHubから読み取っていません

  • … 未チェック

    ライセンスがある

    このリポジトリはまだGitHubから読み取っていません

  • – 対象外

    エンドポイントが応答する

    これはパソコンで動くため、インターネット上のエンドポイントはありません

  • – 対象外

    OAuthでサインイン

    パソコンで動き、代わりにローカルの設定を使います

  • … 未チェック

    ツールの説明に隠れた指示がない

    パソコンで動くサーバーです。ツール一覧を読み取れるのは、インターネット上のエンドポイントがある場合だけです

検索・AIの記憶のほかのサーバーとの比較i

  • このカテゴリのほかの5652件のうち0%よりスターが多い
  • このカテゴリのほかの5652件のうち91%より最近レジストリに公開
  • 基本チェックの結果が、このカテゴリのほかの5652件のうち100%と同じかそれ以上

レジストリでこのカテゴリにある有効なすべてのサーバーと比較しています。スターは、公開者がリポジトリの所有者である場合だけ数えます。

よくある質問

Local AI MCPは安全ですか?

当てはまる基本チェック1項目のうち1項目に合格しました。コードは読んでいません。キーやトークンを追加する前に、サーバーがどんなアクセスを求めているかを確認し、必要な権限だけを持つキーを使ってください。

どんなキーやコードが必要ですか?

入力が必要なもの:VLLM_API_KEY, OPENAI_COMPAT_API_KEY, MOONSHOT_API_KEY

パソコンで動きますか、それともクラウドですか?

あなたのパソコンで動きます。必要なときにAIアプリが起動し、データは作者のサーバーを通りません(サーバー自体がオンラインサービスを呼び出す場合を除きます)。

今もメンテナンスされていますか?

GitHubリポジトリの最終更新は–、最新バージョン(0.6.1)がレジストリに届いたのは4 日前です。

どのアプリで使えますか?

Claude Desktop、Claude Code、Cursor、VS CodeなどのMCP対応アプリで使えます。パソコンにNode.jsも必要です。

代わりに使えるものは?

同じカテゴリには:Context7, Codebase Memory, Exa

代わりの候補

同じカテゴリで、ほかの作者が作ったサーバー。スターの多い順。

カードの見方:★ GitHubスターi3つの柱:レビュー · チェック · 利用状況i更新=最新バージョンをレジストリに公開した日i

Context7

作者:upstash

Up-to-date docs for AI agents

パソコンでもクラウドでも★ 64,224MIT昨日更新
インストール

Codebase Memory

作者:DeusData

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

パソコンで動く★ 48,148MIT21 日前更新
インストール

Exa

作者:exa-labs

Connect AI agents to Exa for web search, content fetching, and multi-step research.

クラウドで動く★ 5,213MIT先月更新
インストール

作者のREADME

READMEを開く

作者のリポジトリから書かれたとおりにコピーしたものです。PopNx MCPは内容を確認・推奨していません。HTML、画像、スクリプトは取り除いています。リンクはこのサイトの外へ移動します。

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

冒頭だけを表示しています。続きはリポジトリで読めます

PopNxに聞く