Repository avatar
Other Tools
v0.1.0
active

laiaric-mcp

io.github.raycollabs/laiaric-mcp

Local text-to-JSON extraction for agents: give a JSON Schema and text, get typed JSON (Ollama).

Documentation

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

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)

ArgumentTypeDescription
textstringThe source text, such as a bug ticket, log excerpt or spec. The limit is 24,000 characters.
schemaobjectA 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

VariableDefaultDescription
OLLAMA_HOSThttp://localhost:11434Ollama URL
LAIARIC_MODELxeditai/laiaric-openModel tag, for example xeditai/laiaric-open:q8_0
LAIARIC_TIMEOUT120Request timeout in seconds

Field F1 by domain

DomainF1
Software app specifications1.000
RL hillclimb proposals1.000
System failure triage0.986
General unseen schemas0.978
Agent candidate configurations0.975
SDK bug tickets0.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

PYPI
laiaric-mcp
Install Command
pip install laiaric-mcp
Runtime: uvx