laya-mcp
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
An MCP server that exposes Laya — a 33ms non-autoregressive decision model — as tools for coding agents such as Claude Code.
Laya answers typed questions (choice / score / noul) about a piece of text in a single forward pass, with calibrated confidence. This server wraps Laya's built-in workflow presets so an agent can call into it mid-task instead of shelling out to a Python script.
Tools
Tool | Purpose |
| Difficulty, domain ( |
| Screen text (fetched web content, file, tool output) for jailbreak attempts, prompt injection, embedded secrets/PII, and harm severity before acting on it. |
| Toxicity, harassment, threats, spam, rule-violation severity. |
| Support-ticket triage: intent, urgency, frustration, refund request, churn risk. |
| Run an arbitrary typed-question schema against any state — the generic escape hatch. See Laya's decision primitives. |
Related MCP server: jev-code
Setup
git clone https://github.com/<you>/laya-mcp.git
cd laya-mcp
python3 -m venv .venv
.venv/bin/pip install -r requirements.txtFirst call downloads the Laya checkpoint from Hugging Face (~300–400MB) and caches it under ~/.cache/huggingface.
Wire into Claude Code
claude mcp add laya -s user -- $(pwd)/.venv/bin/python $(pwd)/server.py-s user registers it for every Claude Code session on this machine. Use -s project to scope it to the current project instead.
Wire into other MCP clients
Any stdio-based MCP client works the same way — point it at <venv>/bin/python <path>/server.py. For example, in ~/.codex/config.toml:
[mcp_servers.laya]
command = "/path/to/laya-mcp/.venv/bin/python"
args = ["/path/to/laya-mcp/server.py"]Configuration
LAYA_PRELOAD=1— preload all Laya checkpoints into memory at server startup instead of loading lazily on first request (trades startup latency for consistent per-call latency).
Notes
Laya's
layacheckpoint emits aRuntimeWarningabout temperature calibration forchoicequestions with 11+ options — an upstream calibration quirk in the checkpoint, not this wrapper. None of the built-in presets hit that bucket count.This project only wraps Laya's Python SDK; it does not modify or vendor Laya itself.
License
MIT — see LICENSE. Laya itself is licensed separately (Apache 2.0); see NandhaKishorM/laya.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
This server cannot be deployed
Maintenance
Related MCP Connectors
See, price, and control every tool call your AI agents make: policy checks, cost, and audit tools.
Discover, inspect and run 63,000+ agent tools from one balance. Pay per call, no subscriptions.
17 pay-per-call web, finance, legal and onchain tools for AI agents. USDC on Base via x402/MPP.
Connect your AI agent to 300+ methods and 100+ live tools
Related MCP Servers
- AlicenseAqualityCmaintenanceProvides agents with fast, typed, calibrated decision tools for classification, scoring, yes/no checks, and gating risky tool calls.53MIT
- AlicenseNot gradedqualityBmaintenanceProvides coding agents with typed classification, yes/no checks, scoring, ranking, and question-answering tools that return calibrated probabilities for fast, reliable decisions.729 npm61MIT
- AlicenseAqualityCmaintenanceEnables agents to call typed code-review and content-moderation decision tools, returning structured verdicts, probabilities, and confidence-gated actions.2MIT
- AlicenseAqualityBmaintenanceEnables agents to evaluate context against custom criteria and receive typed decisions (classifications, scores, probabilities) from JEV or local LAYA, with validation policies and durable decision records.41Apache 2.0