Laya MCP server
Safe-by-default MCP for Laya: fast, local, typed decisions (classify/score/yes-no), 100+ langs.
0 stars
Reviews
Write oneNobody has reviewed Laya yet.
If you have run it, two minutes of your experience saves the next person an afternoon.
Laya tools (8, 1 write)
write = sends, deletes, buys or postsRead from the package source without running it. The installed server may list more.
checkAnswer a single yes/no/unknown question about a state (a `noul` gate).
classifyAssign the single best category to a state (one `choice` question).
decideAnswer several typed questions about a state in one local forward pass.
detect_languageDetect the script and language of a text (sub-millisecond, no model forward pass).
explain_routingExplain which checkpoint the Router would use for this state, without running inference.
list_modelsList the laya checkpoints this server may use, the default, device and offline status.
scoreRate a state on an ordinal scale (one `score` question).
triagewrite actionRun a ready-made set of decisions over a state using a laya preset.
Public scan report
scanner v0.1.9 · 2026-09-24 · same rubric, same numbers if you re-run it
- Code scan7 source files scanned25/25
- –Live reliabilityno gateway calls yet and no remote to proben/a
- –Tool poisoningtools not inspected (local package is not executed); not countedn/a
- Auth qualitylocal package, no credentials required12/15
- Maintenancelast push 0 days ago15/15
- Maintainer identityregistry namespace matches repository owner6/10
How Laya compares
Against every graded MCP server, from our own scans and uptime checks. Updated after each scan run.
- Safety score
- 89/100
- higher than 80% of 48,255 servers
- Tools
- 8
- the typical server has 7
- Tools that change things
- 13%
- typical: 0%. Fewer write tools means less an agent can break
What its tools let an agent do: 7 read · 1 change
Install Laya in Claude Code, Cursor or VS Code
claude mcp add mcp-laya -- uvx mcp-laya
What the publisher says
From the Laya repository's README, as published. We do not edit it. Read it on GitHub
mcp-laya
<!-- mcp-name: io.github.dockndevai/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
pipx install mcp-laya # or: pip install mcp-layaPython 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:
LAYA_ALLOW_DOWNLOAD=true python -c "import laya; laya.Router(preload=True)"Then run the server offline.
Configure
{
"mcpServers": {
"laya": {
"command": "mcp-laya",
"env": { "LAYA_DEFAULT_MODEL": "auto" }
}
}
}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":
// classify(state, criteria={billing, technical, sales, other})
{ "choice": "billing", "confidence": 0.95, "probabilities": { "billing": 0.95, ... } }
// check(state, "Does the user threaten to cancel?")
{ "answer": "yes", "probability_yes": 0.91, "confidence": 0.91 }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:
Shortened. The full README is on GitHub.
Nothing above is checked by us. What we check is on the safety report.
Laya: common questions
- Is Laya MCP server safe?
- Yes, by our scan: it is graded A (89/100). Read the Laya safety report
- How do I install Laya?
- It runs on your machine. Copy the Claude Code, Cursor, VS Code or Claude Desktop config from the install section.
- Does Laya need an API key?
- No secret keys are declared. It reads 5 settings from the environment.
- Is Laya maintained?
- The last commit was 41 days ago (2026-09-24). The latest release is v0.1.1.
- What can I use instead of Laya?
- Servers from other publishers that do the same job: Ask Jev MCP server.
- How does Laya compare with other MCP servers?
- safety score 89/100 (higher than 80% of 48,255 servers); tools 8 (the typical server has 7); tools that change things 13% (typical: 0%. Fewer write tools means less an agent can break). Full comparison.
Alternatives to Laya
Same job from other publishers: the closest match first, then the best rated.
- Ask JevEvaluate state with typed choice, score, and probability questions.not reviewedEstablishedA