Safe-by-default MCP for Laya: fast, local, typed decisions (classify/score/yes-no), 100+ langs.
Copy the AI prompt to install this server into Claude Code, Cursor, or another agent β or use 1-click editor setup below.
One-click editor setup isnβt available for this listing yet β we donβt have a confirmed install command, and weβd rather show nothing than point your editor at the wrong package or host. Follow the projectβs own setup instructions, linked above.
A safe-by-default Model Context Protocol server for Laya β a fast, non-autoregressive System-1 decision engine. It gives an agent a thinking primitive: typed decisions β classify, score, yes/no β over any state (text, an email, a ticket, a JSON object), in a single local forward pass (~33 ms), across 100+ languages, with no text generation β nothing to parse and nothing to hallucinate, and a calibrated confidence on every answer.
Instead of burning a slow, costly LLM round-trip on "which team should handle this? is it urgent? is this a refund request?", the agent calls a typed tool that answers locally, in milliseconds, offline. It's the safest server in the suite β laya only reads a state and returns a decision; it changes nothing.
Part of the dockndevai MCP server suite β one governance model across all of them. (This is the first Python server in the suite; the rest are Node/TS.)
| Tool | For |
|---|---|
decide | answer several typed questions (choice/score/noul) in one pass β the full engine |
classify | assign the single best category (one choice) |
score | rate on an ordinal scale, e.g. urgency (one score) |
check | a yes/no/unknown gate for control flow (one noul) |
triage | a ready-made decision set via a laya preset (triage / email / moderation / guard) |
detect_language | script + language of a text (sub-ms, no model) |
explain_routing | which checkpoint would answer, without running inference |
list_models | the checkpoints available, default, device, offline status |
Three checkpoints, auto-routed per request: english (ModernBERT-large), multilingual (mmBERT, 100+ languages), typed-decisions.
Python 3.10+. laya pulls in torch; the model checkpoints download once from Hugging Face (see below), after which it runs fully offline.
Downloads are off by default (nothing leaves your machine at runtime). Pre-fetch the checkpoints one time with network access:
Then run the server offline.
See docs/CLIENTS.md for Claude Code / Cursor / Codex / VS Code / Windsurf, and .env.example for every variable.
Ask your agent to "use laya to classify this ticket's department and whether it's a churn risk":
laya is read-only inference, so the guardrails (in src/mcp_laya/security.py) are about privacy and resource control, not write-gating:
LAYA_ALLOW_DOWNLOAD=true.LAYA_MODELS pins which checkpoints may load.LAYA_MAX_INPUT_CHARS / LAYA_MAX_QUESTIONS bound each request.LAYA_MIN_CONFIDENCE flags (never silently trusts) low-confidence answers; every answer already carries a calibrated confidence.LAYA_REDACT_STATE keeps the input text out of the JSON audit log by default.There's a bundled skill, laya-decisions, teaching an agent when to offload a decision to laya and how to phrase typed questions. See also SECURITY.md.
Built on laya by Convai Innovations (Apache-2.0). This server wraps that library; all model work is theirs. See NOTICE.
MIT
No reviews yet β be the first to share how this listing worked for you.
Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.
[](https://allmcps.com/mcp/mcp-laya)<a href="https://allmcps.com/mcp/mcp-laya"><img src="https://allmcps.com/api/badge/mcp-laya?style=directory" alt="MCP Laya on AllMCPs" /></a>