Skip to main content
Glama

laiaric-mcp

PyPI CI MCP Registry Ollama License

An MCP server for xeditai/laiaric-open. Laiaric-open is a small open-weight model that turns unstructured text into JSON.

Agents make many small extraction steps: read a ticket, a log line, or a spec, and fill typed fields. A large LLM for each step costs time and tokens. This server does the step locally in Ollama.

  • Text in, typed JSON out. You give a JSON Schema and the text.

  • Grounded values. The model copies values from the text. A value that is not in the text is null.

  • Local and small. 2.7 GB (Q4_K_M) runs on a laptop GPU.

mcp-name: io.github.raycollabs/laiaric-mcp

1. Install the model

ollama pull xeditai/laiaric-open

Related MCP server: StructureAI MCP Server

2. Add the server to your client

You need uv. uvx downloads and runs the server.

Claude Code

claude mcp add laiaric -- uvx laiaric-mcp

Claude Desktop, Cursor, and other JSON-config clients

{
  "mcpServers": {
    "laiaric": {
      "command": "uvx",
      "args": ["laiaric-mcp"]
    }
  }
}
  • Claude Desktop: claude_desktop_config.json

  • Cursor: ~/.cursor/mcp.json or .cursor/mcp.json in the project

Tools

extract(text, schema)

Argument

Type

Description

text

string

The source text, such as a bug ticket, log excerpt or spec. The limit is 24,000 characters.

schema

object

A JSON Schema of type object, or a map of field name to field schema.

Example call:

{
  "text": "Production incident: service 'auth-gateway' failed with HTTP 504. Root cause: redis-primary pool exhaustion.",
  "schema": {
    "service_name": {"type": "string"},
    "status": {"type": "integer"},
    "owner_email": {"type": ["string", "null"]}
  }
}

Result:

{
  "data": {"service_name": "auth-gateway", "status": 504, "owner_email": null},
  "missing": [],
  "notes": {"service_name": "explicitly mentioned"},
  "audit": {"model": "xeditai/laiaric-open", "duration_ms": 3591, "text_chars": 108, "fields": 3}
}
  • data: one value for each schema property.

  • missing: properties that the model did not return. Their values in data are null.

  • notes: a short reason or evidence from the model, when it gives one.

  • audit: the model, the duration and the input size, for your logs.

health()

This tool checks that Ollama runs and that the model is installed. If the model is not installed, it tells you the ollama pull command.

Glama listing

raycollabs/laiamcp MCP server

On the Glama listing you can:

  • see the server's tools and its quality score

  • test the server online with the MCP Inspector

Configuration

Variable

Default

Description

OLLAMA_HOST

http://localhost:11434

Ollama URL

LAIARIC_MODEL

xeditai/laiaric-open

Model tag, for example xeditai/laiaric-open:q8_0

LAIARIC_TIMEOUT

120

Request timeout in seconds

Field F1 by domain

Domain

F1

Software app specifications

1.000

RL hillclimb proposals

1.000

System failure triage

0.986

General unseen schemas

0.978

Agent candidate configurations

0.975

SDK bug tickets

0.905

Development

uv sync
uv run pytest

The live test runs only if Ollama has the model installed.

Release

  1. Set the same version in pyproject.toml and in both version fields of server.json.

  2. Push a tag: git tag v0.1.1 && git push origin v0.1.1.

  3. The Release workflow publishes to PyPI (trusted publishing) and to the MCP Registry (GitHub OIDC).

License

Apache-2.0

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    Related MCP Connectors

    Related MCP Servers