
Mcp Laya
io.github.dockndevaiPublished by GitHub account dockndevaiv0.1.1Updated Oct 24, 2026
Safe-by-default MCP for Laya: fast, local, typed decisions (classify/score/yes-no), 100+ langs.
Overview
Local MCP server for Laya, a small decision model that gives an assistant fast typed classify, score and yes/no answers offline.
- What you can do
- Classify text or JSON state into one of several categories, with probabilities and calibrated confidence
- Score a state on an ordinal scale, such as urgency
- Answer yes/no/unknown questions for control flow
- Run several typed questions in one pass, or use ready-made presets for triage, email, moderation and guard
- Detect the script and language of a text, and inspect which checkpoint would answer, the available models, device and offline status
- When to use it
- Useful when an agent needs cheap, repeatable routing decisions — which team owns a ticket, is this urgent, is this a refund request — without spending a slow LLM round-trip. Also handy for multilingual classification and for gating control flow on a yes/no answer.
- Requirements
- Python 3.10+ with the mcp-laya package installed locally (pipx or pip); it pulls in torch. Model checkpoints must be fetched once from Hugging Face with network access and LAYA_ALLOW_DOWNLOAD=true, after which it runs offline. Optional settings include LAYA_DEFAULT_MODEL, LAYA_DEVICE, LAYA_MODELS and LAYA_MIN_CONFIDENCE. Desktop only, stdio transport.
Installation
In SourceWeft
- Open Mcp Laya in the dashboard and add it to a workspace.
- Enable the server for the chats that should use its tools.
Desktop only via STDIO. STDIO servers start a local process, so they need the SourceWeft desktop host.
Other MCP clients
Follow the launch instructions in the repository.
README
mcp-laya
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.)
What it gives an agent
Three checkpoints, auto-routed per request: english (ModernBERT-large), multilingual (mmBERT, 100+ languages), typed-decisions.
Install
Python 3.10+. laya pulls in torch; the model checkpoints download once from Hugging Face (see below), after which it runs fully offline.
First run: fetch the model once
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.
Configure
See docs/CLIENTS.md for Claude Code / Cursor / Codex / VS Code / Windsurf, and .env.example for every variable.
Example
Ask your agent to "use laya to classify this ticket's department and whether it's a churn risk":
Safe by default
laya is read-only inference, so the guardrails (in src/mcp_laya/security.py) are about privacy and resource control, not write-gating:
- Offline by default — the model runs locally; nothing is sent anywhere. The one exception, the first-time checkpoint download, is disabled unless
LAYA_ALLOW_DOWNLOAD=true. - Model allowlist —
LAYA_MODELSpins which checkpoints may load. - Input caps —
LAYA_MAX_INPUT_CHARS/LAYA_MAX_QUESTIONSbound each request. - Confidence honesty —
LAYA_MIN_CONFIDENCEflags (never silently trusts) low-confidence answers; every answer already carries a calibratedconfidence. - Log privacy —
LAYA_REDACT_STATEkeeps 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.
Developing
Credits
Built on laya by Convai Innovations (Apache-2.0). This server wraps that library; all model work is theirs. See NOTICE.
Licence
MIT
Source: README.md at commit 07721a9
Tools
0Version history
1- v0.1.1LatestSep 24, 2026
Score
50% of the applicable checks met
How complete this listing is, computed from the registry entry, the endpoint and public sources. Not a rating of the server and not a statement that it is safe or working today: reachability is a dated check, and no installs or reviews go into the score.
- Reached in the last 30 days25 pts
Keep the endpoint answering the MCP handshake; SourceWeft probes it every 30 days.
- Auth declared10 pts
Declare the credential headers in the registry entry, or keep the endpoint answering the probe so its auth can be classified.
- Tools listed15 pts
Answer tools/list without a credential, or ship a package that starts in a sandbox without one.
- DescriptionRequired15 pts
- Logo10 pts
- Documentation15 pts
- License10 pts