XLaya
Local MCP server that triages code and docs with small models and cites exact file line
XLaya is an open-source MCP server for developer tools. It runs locally on your machine and is started by your AI client.
- Pricing
- Open source
- Platforms
- CLI, Linux, macOS
- Runs
- Locally
- Version
- 2.3.1
- Listing updated
Similar MCP servers
Install
Add with the CLI
Run in a terminal
claude mcp add xlaya -- uvx xlaya-mcpAdd --scope user to use it in every project, or --scope project to share it in .mcp.json.
Or share it with your project
Add to .mcp.json
{
"mcpServers": {
"xlaya": {
"command": "uvx",
"args": [
"xlaya-mcp"
]
}
}
}Add to claude_desktop_config.json
{
"mcpServers": {
"xlaya": {
"command": "uvx",
"args": [
"xlaya-mcp"
]
}
}
}Settings → Developer → Edit Config, then quit and reopen Claude Desktop.
Add to ~/.cursor/mcp.json
{
"mcpServers": {
"xlaya": {
"command": "uvx",
"args": [
"xlaya-mcp"
]
}
}
}Use .cursor/mcp.json in a project to share it with the project.
Add to ~/.copilot/mcp-config.json
{
"mcpServers": {
"xlaya": {
"type": "stdio",
"command": "uvx",
"args": [
"xlaya-mcp"
]
}
}
}Or put the same entry in .mcp.json at your workspace root to share it.
Add with the CLI
Run in a terminal
codex mcp add xlaya -- uvx xlaya-mcpOr add to config.toml
Add to ~/.codex/config.toml
[mcp_servers.xlaya]
command = "uvx"
args = ["xlaya-mcp"]Add to your client's MCP settings (most use this shape)
{
"mcpServers": {
"xlaya": {
"command": "uvx",
"args": [
"xlaya-mcp"
]
}
}
}Gemini CLI and Antigravity
Gemini CLI
Add to ~/.gemini/settings.json
{ "mcpServers": { "xlaya": { "command": "uvx", "args": [ "xlaya-mcp" ] } } }Or run: gemini mcp add -s user xlaya uvx -- xlaya-mcp
Antigravity
Add to ~/.gemini/config/mcp_config.json
{ "mcpServers": { "xlaya": { "command": "uvx", "args": [ "xlaya-mcp" ] } } }Use .agents/mcp_config.json to add it to one workspace only.
Devin Desktop (formerly Windsurf)
Add to ~/.config/devin/mcp_config.json
{ "mcpServers": { "xlaya": { "command": "uvx", "args": [ "xlaya-mcp" ] } } }On Windows the file is %APPDATA%\devin\mcp_config.json. Use .devin/mcp_config.json to share it with a project.
Cline
Add to cline_mcp_settings.json
{ "mcpServers": { "xlaya": { "command": "uvx", "args": [ "xlaya-mcp" ] } } }Open it from the MCP Servers icon → Configure → Configure MCP Servers.
Zed
Add to Zed settings.json
{ "context_servers": { "xlaya": { "command": "uvx", "args": [ "xlaya-mcp" ] } } }Open it with zed: open settings file. Merge context_servers into the settings you already have.
JetBrains AI Assistant and Junie
AI Assistant
Add to Settings → Tools → AI Assistant → Model Context Protocol (MCP) → Add
{ "mcpServers": { "xlaya": { "command": "uvx", "args": [ "xlaya-mcp" ] } } }Junie
Add to ~/.junie/mcp/mcp.json
{ "mcpServers": { "xlaya": { "command": "uvx", "args": [ "xlaya-mcp" ] } } }Use .junie/mcp/mcp.json to share it with a project.
Kiro
Add to ~/.kiro/settings/mcp.json
{ "mcpServers": { "xlaya": { "command": "uvx", "args": [ "xlaya-mcp" ] } } }Use .kiro/settings/mcp.json to add it to one workspace only.
Using several servers? Build one config file with the MCP config generator.
Configuration
LAYA_IDLE_TTL_SECIdle seconds before auto-unloading warm models from RAM/VRAM (0 disables)XLAYA_PROFILEHardware profile (auto, nano, edge, workstation, max)
About XLaya
XLaya runs entirely on your machine and sorts files, code and documents by relevance, contradiction and quality before an AI agent reads them. A cheap structural pass prunes low-signal chunks, then resident ModernBERT-style encoders score the rest, and an optional larger local model verifies borderline cases.
For Python repositories it builds an AST and call-graph sieve, so a bug query can be narrowed to a short list of likely files and spans. Results come back as exact file and line-range references, with confidence and a routing decision, which lets a coding agent skip clean chunks and edit only flagged spans.
It is aimed at developers who run MCP-compatible clients such as Claude Desktop, Cursor or Cline and want to cut the token cost of repository review on their own hardware. Hardware profiles from nano to workstation control how much of the stack loads into memory.
Tools this server provides (6)
Taken from the project documentation; the running server may differ.
From the tool list in its README, going by the names, 1 of 6 tools reads data; 5 names don't say.
From the server's own tool labels and tool names; not verified by us.
- xlaya_triage
- End-to-end sweep of a directory, file or Python AST returning line spans, scores and file summaries.
- xlaya_predict
- Evaluates questions against supplied text, images, audio or video and returns choice, score and noul results.
- xlaya_fit
- Fits and persists a conformal decision policy from labelled rows.
- xlaya_statusName suggests: reads
- Reports loaded models, active hardware profile and idle TTL settings.
- xlaya_preload
- Loads selected models into memory ahead of latency-sensitive work.
- xlaya_unload
- Evicts cached models and frees RAM and VRAM.
What it does
- Local semantic triage
- Scores chunks of files for relevance, contradiction and rubric quality without sending content to a hosted model.
- Python AST code sieve
- Ranks Python files and functions using syntax structure and a two-hop call graph to shortlist likely locations.
- Exact span citations
- Returns results as file paths with line ranges so an agent can read or edit only the flagged parts.
- Hardware-adaptive profiles
- Selects between nano, edge, workstation and max configurations, with an automatic option and idle model unloading.
- Six MCP tools
- Exposes triage, prediction, policy fitting, status, preload and unload operations over stdio.
- Standalone CLI
- Provides a Python command-line tool for running the same triage pipeline in scripts or CI.
Good for
- Shortlist the files most likely responsible for a bug before an agent starts reading a large repository
- Flag contradictions between a specification document and the rest of a documentation set
- Score a folder of documents against a rubric and get per-file summaries of weak sections
- Reduce the token count an agent spends reading a codebase by skipping clean chunks
- Fit a small local decision policy from labelled rows and reuse it across sessions
Pricing
Open source
Free and open source; runs locally.
XLaya FAQ
Does XLaya need a network connection to run?
The project describes itself as running fully local. Optional neural components are installed as Python packages and run on the user's own GPU or CPU.
How is XLaya launched from an MCP client?
The registry entry runs it over stdio with the Python package xlaya-mcp, and the README shows a JSON configuration pointing at the server script.
Which environment variables control XLaya?
XLAYA_PROFILE selects the hardware profile (auto, nano, edge, workstation or max) and LAYA_IDLE_TTL_SEC sets how many idle seconds pass before warm models are unloaded.
What license is XLaya released under?
The core project is released under the MIT License, and some bundled benchmark data and templates are Apache-2.0.
Is XLaya free?
Yes. XLaya is open source, so you can use and self-host it for free.
How do I add XLaya to Claude Code?
Run this command in your terminal: claude mcp add xlaya -- uvx xlaya-mcp
What are the best alternatives to XLaya?
The closest alternatives to XLaya are LLMScribe, Codeloupe MCP, Myopic, Lynx and Kodelyth ECC.
Where this comes from
- Description: written from the project's README and its MCP Registry entry.
- Install steps: from the official MCP Registry entry.