laya-mcp — on-device typed decisions in ~10ms
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
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: apple-fm-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
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
Related MCP Connectors
API-first CRM for LLMs - contacts, companies, deals and activities over a native MCP server.
Impri MCP server — human-in-the-loop approval inbox for AI agents
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 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
- AlicenseAqualityBmaintenanceEnables local Laya-MLX typed decisions (classification, scoring, risk routing, and yes/no) for coding agents like Codex, Claude Code, DeepSeek Harness, and Pi via MCP, running entirely on Apple Silicon Macs.24MIT
- AlicenseAqualityCmaintenanceEnables typed decisions (choice/score/noul) from Laya-MLX over MCP on Apple Silicon, without text generation.3Apache 2.0