# XLaya

> XLaya is an open-source MCP server for developer tools. Local MCP server that triages code and docs with small models and cites exact file line. It runs locally on your machine and is started by your AI client.

- **Kind:** MCP server
- **Pricing:** Open source
- **Platforms:** CLI, Linux, macOS, Windows, API
- **Repository:** https://github.com/iscvlab/xlaya
- **MCP Registry name:** io.github.iscvlab/xlaya
- **Categories:** [developer tools](https://ai-powered.com/categories/developer-tools)
- **Listing updated:** 2026-11-27

## About

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.

## Features

- **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

## Install

### Claude Code: Add with the CLI (Terminal)

```sh
claude mcp add xlaya -- uvx xlaya-mcp
```

Add --scope user to use it in every project, or --scope project to share it in .mcp.json.

### Claude Code: Or share it with your project (.mcp.json)

```json
{
  "mcpServers": {
    "xlaya": {
      "command": "uvx",
      "args": [
        "xlaya-mcp"
      ]
    }
  }
}
```

### Claude Desktop (claude_desktop_config.json)

```json
{
  "mcpServers": {
    "xlaya": {
      "command": "uvx",
      "args": [
        "xlaya-mcp"
      ]
    }
  }
}
```

Settings → Developer → Edit Config, then quit and reopen Claude Desktop.

### Cursor (~/.cursor/mcp.json)

```json
{
  "mcpServers": {
    "xlaya": {
      "command": "uvx",
      "args": [
        "xlaya-mcp"
      ]
    }
  }
}
```

Use .cursor/mcp.json in a project to share it with the project.

### VS Code (~/.copilot/mcp-config.json)

```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.

### Codex: Add with the CLI (Terminal)

```sh
codex mcp add xlaya -- uvx xlaya-mcp
```

### Codex: Or add to config.toml (~/.codex/config.toml)

```toml
[mcp_servers.xlaya]
command = "uvx"
args = ["xlaya-mcp"]
```

### Gemini CLI and Antigravity: Gemini CLI (~/.gemini/settings.json)

```json
{
  "mcpServers": {
    "xlaya": {
      "command": "uvx",
      "args": [
        "xlaya-mcp"
      ]
    }
  }
}
```

Or run: gemini mcp add -s user xlaya uvx -- xlaya-mcp

### Gemini CLI and Antigravity: Antigravity (~/.gemini/config/mcp_config.json)

```json
{
  "mcpServers": {
    "xlaya": {
      "command": "uvx",
      "args": [
        "xlaya-mcp"
      ]
    }
  }
}
```

Use .agents/mcp_config.json to add it to one workspace only.

### Devin Desktop (~/.config/devin/mcp_config.json)

```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 (cline_mcp_settings.json)

```json
{
  "mcpServers": {
    "xlaya": {
      "command": "uvx",
      "args": [
        "xlaya-mcp"
      ]
    }
  }
}
```

Open it from the MCP Servers icon → Configure → Configure MCP Servers.

### Zed (Zed settings.json)

```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 (Settings → Tools → AI Assistant → Model Context Protocol (MCP) → Add)

```json
{
  "mcpServers": {
    "xlaya": {
      "command": "uvx",
      "args": [
        "xlaya-mcp"
      ]
    }
  }
}
```

### JetBrains AI Assistant and Junie: Junie (~/.junie/mcp/mcp.json)

```json
{
  "mcpServers": {
    "xlaya": {
      "command": "uvx",
      "args": [
        "xlaya-mcp"
      ]
    }
  }
}
```

Use .junie/mcp/mcp.json to share it with a project.

### Kiro (~/.kiro/settings/mcp.json)

```json
{
  "mcpServers": {
    "xlaya": {
      "command": "uvx",
      "args": [
        "xlaya-mcp"
      ]
    }
  }
}
```

Use .kiro/settings/mcp.json to add it to one workspace only.

### Other clients (your client's MCP settings (most use this shape))

```json
{
  "mcpServers": {
    "xlaya": {
      "command": "uvx",
      "args": [
        "xlaya-mcp"
      ]
    }
  }
}
```

## Tools

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_status` (name 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.

## 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.

## Alternatives

- [LLMScribe](https://ai-powered.com/mcp/llmscribe): LLMScribe is an open-source MCP server for developer tools.
- [Codeloupe MCP](https://ai-powered.com/mcp/codeloupe-mcp): Codeloupe MCP is an open-source MCP server for developer tools.
- [Myopic](https://ai-powered.com/mcp/myopic): Myopic is an open-source MCP server for developer tools.
- [Lynx](https://ai-powered.com/mcp/lynx-2): Lynx is an open-source MCP server for developer tools.
- [Kodelyth ECC](https://ai-powered.com/mcp/kodelyth-ecc): Kodelyth ECC is an open-source MCP server for developer tools.
- [Lens MCP](https://ai-powered.com/mcp/lens-mcp-2): Lens MCP is an open-source MCP server for developer tools.
- [Proxima](https://ai-powered.com/mcp/proxima): Proxima is a freemium MCP server for ai models and llm tooling.
- [Code Analyze MCP](https://ai-powered.com/mcp/code-analyze-mcp): Code Analyze MCP is an open-source MCP server for developer tools.

---
Source: https://ai-powered.com/mcp/xlaya
