laya-mcp — on-device typed decisions in ~10ms
laya-mcp — on-device typed decisions in ~10ms
Laya-MLX as an MCP server (and plain-HTTP API). It answers typed decisions — choose an option / score a rubric / is this true? — on your own machine (Apple Silicon / MLX), with no cloud and ~10ms after warm-up.
Not a chatbot. No token-by-token text, no JSON that can break. One forward pass returns a structured answer you can branch on. Ideal for routing, triage, classification, lead scoring, and guardrails where an LLM would be slow, expensive, or would ship your data to the cloud.
⚡ Runs on Apple Silicon (M-series) out of the box. Multi-language checkpoint (EN/DE + more) by default, so it triages real inbox/ticket text.
Tools
tool | returns | use |
|
| route / classify / pick |
|
| urgency / fit / priority rubric |
|
| yes/no gate (e.g. "invoice overdue?") |
Related MCP server: lucid-apple-mcp
Quick start (MCP)
One-liner via uvx (no install):
uvx --from laya-mcp laya-mcpClaude Desktop / Cursor / any MCP client → add:
{
"mcpServers": {
"laya-mlx": {
"command": "uvx",
"args": ["--from", "laya-mcp", "laya-mcp"]
}
}
}First call downloads the model (~30s, cached after). After that: ~10ms.
Raw stdio (no MCP client)
Newline-delimited JSON-RPC 2.0:
printf '%s\n' \
'{"jsonrpc":"2.0","id":1,"method":"initialize","params":{}}' \
'{"jsonrpc":"2.0","id":2,"method":"tools/call","params":{"name":"laya_decide","arguments":{
"state":"Der Kunde wurde doppelt berechnet, bitte erstatten.","question":"Which team handles this?","options":["billing","technical","sales"]}}}' \
| uvx --from laya-mcp laya-mcp
# -> id 2: {"choice":"billing","confidence":0.9999,"probabilities":{"billing":1.0,...},"ms":...}HTTP API (n8n / Make / curl)
For nodes that just POST JSON — no MCP client required:
uvx --from laya-mcp laya-http # listens on 127.0.0.1:8901endpoint | body |
|
|
|
|
|
|
|
|
curl -s localhost:8901/decide -H 'Content-Type: application/json' -d '{
"state":"Wir suchen einen Partner für die Digitalisierung unserer Buchhaltung.",
"question":"Pursue this lead?","options":["pursue","maybe","drop"]}'
# -> {"choice":"pursue","confidence":0.74,"probabilities":{"pursue":0.92,...},"ms":1.8}Environment
var | default | meaning |
|
| checkpoint id |
|
| HTTP listen address |
Why on-device
Privacy / GDPR — data never leaves the machine.
Latency — ~10ms = real-time routing, not "fast".
Cost — ~zero marginal; millions of decisions/day are practical.
Works with
Tested end-to-end against a Go MCP gateway (stdio transport, tool policy, per-key budget + kill switch, metering) — so it slots into an existing agent/LLM gateway as one more, very cheap, local tool.
License
MIT
This server cannot be deployed
Maintenance
Related MCP Connectors
API-first CRM for LLMs - contacts, companies, deals and activities over a native MCP server.
Melaya is a remote MCP server. It gives an assistant hands on your own Android phone and browser: it reads the screen through the accessibility tree, then taps, types and navigates inside the apps and sites you allow-list, with no per-app API. It also builds, schedules and runs agent pipelines across 6k+ connected tools. OAuth 2.1, nothing to install.
Hosted MCP server for LLM cost estimation, model comparison, and budget-aware routing.
HiveCompute MCP Server — decentralized inference router for AI agents
Related MCP Servers
- FlicenseAqualityDmaintenanceLocal multimodal MCP server for vision, document, audio, video, and GUI automation, all processed locally on Apple Silicon for privacy and security.9-
- AlicenseNot gradedqualityCmaintenanceMCP server that gives Claude and local LLMs access to Apple's on-device frameworks — Vision OCR, NSDataDetector, and Apple Intelligence FoundationModels. Everything runs on your Mac with zero data leaving.1MIT
- AlicenseNot gradedqualityDmaintenanceEnables running MCP tools against local MLX models on your Mac, with hardware-aware configuration, CLI streaming, and a dashboard for routing and monitoring.1,953 npm-
- AlicenseNot gradedqualityDmaintenanceMCP server that enables local Apple on-device Foundation Model access via any MCP client, supporting text generation, structured output, and multi-turn chat on macOS.2MIT