Spec Driven Development
MCP Server that facilitates spec-driven development workflows, not just Vibe Coding.
คำอธิบายจากผู้ทำ (ภาษาอังกฤษตามต้นฉบับ)
Run, fit, and route work to local LLMs (Ollama, LM Studio, llama.cpp, MLX, vLLM, and more).
สามเรื่องนี้ไม่รวมเป็นคะแนนเดียว เพราะความเห็น การวัด และความนิยม เป็นคนละเรื่องกัน
ตัวนี้ยังไม่ได้เรียบเรียงเป็นภาษาไทย ด้านล่างคือข้อเท็จจริงที่เราอ่านจาก registry
เลือกโปรแกรม AI ที่คุณใช้ แล้วคัดลอกค่าตั้งไปวาง
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ค่าที่ติดป้ายความลับคือกุญแจของบัญชีคุณ อย่าส่งให้ใคร และอย่าวางในแชต
ต้องเตรียมก่อน
คุณใช้แอปไหน
เลือกแอปด้านบน เราจำไว้ให้ ครั้งหน้าปุ่มจะขึ้นว่า “ติดตั้งลง …”
เปิด Claude Desktop → Settings → Developer → Edit Config แล้ววางค่านี้ในไฟล์ claude_desktop_config.json
{
"mcpServers": {
"local-ai": {
"command": "npx",
"args": [
"-y",
"@tmhs/local-ai-mcp"
],
"env": {
"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": "ใส่ค่าของคุณ"
}
}
}
}พิมพ์คำสั่งนี้ใน Terminal
claude mcp add local-ai --env OLLAMA_HOST='ใส่ค่าของคุณ' --env LMSTUDIO_HOST='ใส่ค่าของคุณ' --env LLAMACPP_HOST='ใส่ค่าของคุณ' --env DOCKER_MODEL_RUNNER_HOST='ใส่ค่าของคุณ' --env MLX_HOST='ใส่ค่าของคุณ' --env VLLM_HOST='ใส่ค่าของคุณ' --env VLLM_API_KEY='ใส่ค่าของคุณ' --env FOUNDRY_LOCAL_HOST='ใส่ค่าของคุณ' --env OPENAI_COMPAT_HOST='ใส่ค่าของคุณ' --env OPENAI_COMPAT_API_KEY='ใส่ค่าของคุณ' --env MOONSHOT_API_KEY='ใส่ค่าของคุณ' --env LOCAL_AI_ALLOW_HOSTED_FALLBACK='ใส่ค่าของคุณ' --env MOONSHOT_HOST='ใส่ค่าของคุณ' --env LOCAL_AI_DISABLE='ใส่ค่าของคุณ' --env LOCAL_AI_PROVIDERS='ใส่ค่าของคุณ' --env LOCAL_AI_DISABLE_NETWORK_SEARCH='ใส่ค่าของคุณ' --env LOCAL_AI_BENCHMARK_CACHE='ใส่ค่าของคุณ' -- npx -y @tmhs/local-ai-mcpเติมค่าที่เว้นว่างไว้ก่อนรัน
วางในไฟล์ .cursor/mcp.json ของโปรเจกต์ หรือ ~/.cursor/mcp.json
{
"mcpServers": {
"local-ai": {
"command": "npx",
"args": [
"-y",
"@tmhs/local-ai-mcp"
],
"env": {
"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": "ใส่ค่าของคุณ"
}
}
}
}เบราว์เซอร์จะถามก่อนเปิดแอป จากนั้นแอปแสดงค่าตั้งให้ตรวจแล้วกดยืนยัน ช่อง key เว้นว่างไว้ให้คุณใส่เอง
วางในไฟล์ .vscode/mcp.json ของโปรเจกต์
{
"servers": {
"local-ai": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"@tmhs/local-ai-mcp"
],
"env": {
"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": "ใส่ค่าของคุณ"
}
}
}
}เบราว์เซอร์จะถามก่อนเปิดแอป จากนั้นแอปแสดงค่าตั้งให้ตรวจแล้วกดยืนยัน ช่อง key เว้นว่างไว้ให้คุณใส่เอง
ตัวนี้รันในเครื่องคุณ แต่ ChatGPT ต่อได้เฉพาะ server บนอินเทอร์เน็ต ลองเลือกแอปอื่น
ตัวเลือกเก็บในคุกกี้บนเครื่องนี้ ไม่ต้องมีบัญชี
OLLAMA_HOST envLMSTUDIO_HOST envLLAMACPP_HOST envDOCKER_MODEL_RUNNER_HOST envMLX_HOST envVLLM_HOST envFOUNDRY_LOCAL_HOST envOPENAI_COMPAT_HOST envLOCAL_AI_ALLOW_HOSTED_FALLBACK envMOONSHOT_HOST envLOCAL_AI_DISABLE envLOCAL_AI_PROVIDERS envLOCAL_AI_DISABLE_NETWORK_SEARCH envLOCAL_AI_BENCHMARK_CACHE envค่าตั้งนี้สร้างจากข้อมูลใน registry ของผู้ทำ ถ้าไม่ตรงกับ README ให้เชื่อ README
รันในเครื่องคุณ รายการเครื่องมือจะขึ้นในแอป AI หลังติดตั้ง
เราตรวจจากข้อมูลที่ใครก็เปิดดูได้ ยังไม่ได้อ่านโค้ด ข้อที่ไม่เกี่ยวกับตัวนี้ไม่นับในตัวหาร · ตรวจเมื่อ 7 พ.ย. 2569
ชื่อใน registry ยืนยันด้วยบัญชี GitHub TMHSDigital ซึ่งเป็นเจ้าของ repo
ยังไม่ได้อ่านข้อมูล repo จาก GitHub
ยังไม่ได้อ่านข้อมูล repo จาก GitHub
ตัวนี้รันบนเครื่องคุณ ไม่มี endpoint บนอินเทอร์เน็ต
ตัวนี้รันบนเครื่อง ใช้ค่าที่ตั้งในเครื่องแทน
รันในเครื่องคุณ เราอ่านรายการเครื่องมือได้เฉพาะตัวที่มี endpoint บนอินเทอร์เน็ต
เทียบกับทุก server ที่ยังใช้งานในหมวดนี้ทั้งทะเบียน ดาวนับเฉพาะเมื่อผู้ลงทะเบียนเป็นเจ้าของ repo
จากการตรวจเบื้องต้นของเรา ผ่าน 1 จาก 1 ข้อที่ตรวจได้ เรายังไม่ได้อ่านโค้ด ก่อนใส่กุญแจหรือ token ให้ดูว่า server ขอสิทธิ์อะไร และเลือกกุญแจที่ทำได้เท่าที่จำเป็น
ต้องใส่ค่าเหล่านี้: VLLM_API_KEY, OPENAI_COMPAT_API_KEY, MOONSHOT_API_KEY
รันบนเครื่องของคุณ โปรแกรม AI จะเปิด server ขึ้นมาเองเมื่อใช้ ข้อมูลไม่ต้องผ่านเซิร์ฟเวอร์ของผู้ทำ (ยกเว้นตัวที่ไปเรียกบริการออนไลน์ต่อ)
repo บน GitHub มีการแก้โค้ดล่าสุด – และส่งรุ่นล่าสุด (0.6.1) เข้า registry 4 วันที่ผ่านมา
โปรแกรมที่รองรับ MCP เช่น Claude Desktop, Claude Code, Cursor และ VS Code ตัวนี้ต้องมี Node.js ในเครื่องด้วย
ในหมวดเดียวกันมี Spec Driven Development, Remote Desktop Commander, Kanal Varna — drains, leaks & plumbing (Varna, BG)
server หมวดเดียวกันจากผู้ทำคนอื่น เรียงตามดาว
อ่านการ์ด:★ ดาว GitHubiสามเสา: รีวิว · ผลตรวจ · การใช้งานiอัปเดต = วันที่ส่งรุ่นล่าสุดเข้า registryi
MCP Server that facilitates spec-driven development workflows, not just Vibe Coding.
Remote Desktop Commander: use files, terminal and processes on your own computers from any AI app.
Drain unblocking, leak detection & plumbing in Varna, Bulgaria: services, prices, areas, contact
ส่วนนี้คัดจาก repo ของผู้ทำตามต้นฉบับ 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
ตัดมาแค่ช่วงต้น อ่านต่อใน repo