mcpField
Q
quario

quario

Local
getquario.comProductivity1Updated 1w ago

About quario

quario is a local MCP server that validates JSON report definitions and renders them as PDF, Excel, Word, HTML, or CSV files. It is for agents and MCP clients that need structured report output without returning file contents to the model.

Key features

  1. 01Validate JSON report definitions
  2. 02Render PDF, Excel, Word, HTML, and CSV
  3. 03Return output file path and size
  4. 04Report fixable errors by data path
  5. 05Prevent overwriting existing files

Use cases

  1. 01Check a report definition before rendering
  2. 02Generate spreadsheet or document reports from JSON
  3. 03Write reports to a configured output directory

MCP support

The server provides MCP clients with `validate_report` and `render_report` tools over stdio. Rendering writes a file and returns its path and size, not its contents.

Configuration

Local server config is the same for every client. Copy it into your client’s MCP config file.

mcp.json · Universal config
{
"mcpServers": {
"com-getquario": {
"command": "npx",
"args": [
"-y",
"@quario/mcp"
],
"env": {
"QUARIO_LICENSE": "<QUARIO_LICENSE>",
"QUARIO_DATA_ROOT": "<QUARIO_DATA_ROOT>",
"QUARIO_OUT_DIR": "<QUARIO_OUT_DIR>",
"QUARIO_LOCALE": "<QUARIO_LOCALE>",
"QUARIO_CURRENCY": "<QUARIO_CURRENCY>",
"QUARIO_TIME_ZONE": "<QUARIO_TIME_ZONE>"
}
}
}
}
Run commandnpx -y @quario/mcp
Environment variables to set
QUARIO_LICENSESecretThe license key. Leave it unset to evaluate, and the output carries a watermark.
QUARIO_DATA_ROOTThe directory a dataPath resolves in. Defaults to CLAUDE_PROJECT_DIR when set.
QUARIO_OUT_DIRThe directory rendered files are written to. Defaults to quario-mcp under the system temp dir.
QUARIO_LOCALEThe default locale for numbers and dates.
QUARIO_CURRENCYThe default currency, as an ISO 4217 code such as EUR.
QUARIO_TIME_ZONEThe default time zone for dates.

Local servers need a runtime on your machine (e.g. Node.js 18+). Config file locations differ by client; see your client’s docs.

Packages
npm@quario/mcp0.3.0

Tools

2

Saved tool list · updated 2w ago

ParameterTypeRequiredDescription
targetsarrayNoTargets to check the definition's `required` declarations against. Omit it to check the document alone.
definitionobjectYesThe report definition to check or render.
definition.runobjectNoRunning accumulators, read as `run.<name>` on detail rows.
definition.datastringYes
definition.pageanyNo
definition.sortarrayNo
definition.takeanyNoKeep this many rows after the report `sort`. Integer >= 1. Rows past the count are dropped from aggregates and runners, unlike `visible`.
definition.emptyarrayNo
definition.styleanyNoThe report default: the typeface this document is set in. It sits under the targets' band-role defaults and under every item's own `style`, so a declared `size` does not change a report header's headline size.
definition.whereanyNo
definition.detailanyNo
definition.footerarrayNo
definition.groupsarrayNo
definition.headeranyNoDual-shaped like `detail`: an item array, or `{ height, items }` when the header pins a flow box from the page top.
definition.paramsobjectNo
definition.$schemastringNoWhere an editor finds this document's JSON Schema. The engine checks that it is a string and reads nothing else.
definition.columnsanyNoFlow the report body in this many page columns (integer >= 2). Columned regions cannot nest.
definition.requiredobjectNoThe declarations this document cannot do without, each marked `true`. Only [`plan`](https://getquario.com/docs/diving-deeper/validating) reads it, against the target descriptors its caller names: every required declaration one of them withdraws or leaves unread becomes a problem of its own at `required.<name>`, which nulls the report as any other problem does. No target sees the marking, and no render changes because of it.
definition.required.altbooleanNo
definition.required.hrefbooleanNo
definition.required.runsbooleanNo
definition.required.spanbooleanNo
definition.required.breakbooleanNo
definition.required.labelbooleanNo
definition.required.resetbooleanNo
definition.required.familybooleanNo
definition.required.formatbooleanNo
definition.required.groupsbooleanNo
definition.required.valignbooleanNo
definition.required.collapsedbooleanNo
definition.required.page.sizebooleanNo
definition.required.uppercasebooleanNo
definition.required.slot.widthbooleanNo
definition.required.spaceAfterbooleanNo
definition.required.page.footerbooleanNo
definition.required.page.headerbooleanNo
definition.required.page.marginbooleanNo
definition.required.spaceBeforebooleanNo
definition.required.column.widthbooleanNo
definition.required.header.heightbooleanNo
definition.required.page.orientationbooleanNo
definition.aggregatesobjectNo

Details

From the project README

@quario/mcp

Let an agent turn JSON data into a PDF, Excel, Word, HTML or CSV report. This MCP server gives Claude and other MCP clients two tools. validate_report checks a report definition, and render_report writes it to a file. One definition renders to all five formats, and the agent gets back a path, never the file's bytes.

  • Five formats. One JSON definition renders to pdf, xlsx, docx, html and csv.
  • Fixable errors. Each problem names the path it sits at, such as data: expected a JSONPath string. The agent repairs that spot and tries again.
  • Files, not bytes. render_report writes to disk and returns the path and size. A report costs the agent one line of context, whatever its size.
  • The host stays in charge. Query budgets, link schemes, the data root and the output directory come from the launch configuration. No tool argument changes them.
  • No overwrites. A name that exists gets -1, then -2, and so on.
  • Local. It runs over stdio, and npx @quario/mcp starts it.

A render_report call and its result:

{
  "definition": {
    "data": "$.orders[*]",
    "detail": { "columns": [{ "header": "Total", "value": "{{ @.price * @.qty }}" }] }
  },
  "target": "pdf",
  "data": { "orders": [{ "price": 250, "qty": 2 }] },
  "filename": "orders"
}

The tool answers Wrote orders.pdf (1.3 kB): /tmp/quario-mcp/orders.pdf.

The server is open source. The engine it runs is not. This package is Apache-2.0. It installs quario and the five render targets. Those packages are commercial software under the Quario License. Evaluation is free. Without a license key, every render carries an unlicensed mark.

Contents


Getting started

1. Check Node. The server needs Node 22 or later.

node --version

2. Add the server to your client. The package carries the engine and the five render targets, so there is nothing else to install.

Claude Code, for evaluation without a key:

claude mcp add quario -- npx -y @quario/mcp

Claude Code, with a license key:

claude mcp add quario -e QUARIO_LICENSE=quario_... -- npx -y @quario/mcp

Claude Desktop, in claude_desktop_config.json:

{
  "mcpServers": {
    "quario": {
      "command": "npx",
      "args": ["-y", "@quario/mcp"],
      "env": { "QUARIO_LICENSE": "quario_..." }
    }
  }
}

Leave out the env line to evaluate without a key.

3. Ask for a report. Restart the client, then ask the agent for one:

Render a PDF of these orders with a product column and a total column: Desk, 250, qty 2.

The agent answers with the path of the file it wrote. The file goes to quario-mcp under the system temp directory unless QUARIO_OUT_DIR says otherwise.

4. Let it read your files (optional). Inline data works everywhere. To let the agent pass a JSON file by dataPath, set QUARIO_DATA_ROOT to the directory that holds it. Claude Code sets CLAUDE_PROJECT_DIR, and the server uses that when QUARIO_DATA_ROOT is unset.


Configuration

The server reads its configuration from environment variables. There are no flags and no config file. An empty variable counts as unset.

VariableSetsWhen unset
QUARIO_LICENSEthe license keyunlicensed, and the output carries the mark
QUARIO_LOCALEthe default localeen-US
QUARIO_CURRENCYthe default currencynone
QUARIO_TIME_ZONEthe default timeZoneUTC
QUARIO_SCHEMESthe href schemes, comma-separatedhttps:,mailto:
QUARIO_MAX_DEPTHa query budget, or Infinity500
QUARIO_MAX_NODESa query budget, or Infinityunbounded
QUARIO_MAX_RESULTSa query budget, or Infinityunbounded
QUARIO_DATA_ROOTthe directory dataPath resolves inCLAUDE_PROJECT_DIR, else dataPath fails
QUARIO_OUT_DIRthe directory the server writes toquario-mcp under the system temp dir

A value the server cannot run with stops it at startup. The message goes to stderr. That covers a budget that does not parse, a scheme the engine refuses, a data root that does not exist, and an output directory the server cannot create or write. A license key that fails verification is the one exception: the server starts, and the output carries the mark.

The trust line

The configuration the host sets in the environment is the host. The agent that calls the tools is an author, and the engine treats an author as untrusted. So no tool argument reaches a host setting: the query budgets, the href schemes, registered functions, fonts, the license key, the data root and the output directory come from the environment alone.

locale, currency, timeZone and the target options are the exception. They change how a report looks, not what the server can read, run or write, so a call may set them.


validate_report

Reads a definition for problems without rendering it.

FieldTypeNotes
definitionobjectrequired
targetsarray of "html" | "pdf" | "xlsx" | "docx" | "csv"optional. Reads required against each target

The definition field carries the full JSON Schema of the report document, descriptions included, so an agent reads the document's semantics from the tool itself. The server reads the envelope against that schema and hands the definition to the engine unchecked. The engine reports a fault as one problem at the path it sits at, which is more use to an agent than the schema's list of every subschema that failed.

A problem is a successful result, never an error. The result carries structuredContent with { problems, warnings }, and one text block with the same object as JSON. Both copies are complete, because one client gives the model the structured copy and another gives it the text.

  • A problem is { path, source?, message, code?, start?, end? }. code, start and end come from the located diagnostic when the engine has one.
  • A warning is { path, message }.

render_report

Renders a definition to one target and writes the output to a file.

FieldTypeNotes
definitionobjectrequired
target"html" | "pdf" | "xlsx" | "docx" | "csv"required
dataany JSON valuegive exactly one of data and dataPath
dataPathstringa JSON file inside the data root
paramsobjectoptional. Values for the definition's params
localestringoptional. Overrides QUARIO_LOCALE for this call
currencystringoptional. Overrides QUARIO_CURRENCY for this call
timeZonestringoptional. Overrides QUARIO_TIME_ZONE for this call
filenamestringoptional. A basename, see below
optionsobjectoptional. page, meta, and filter for xlsx

The tool plans the definition against its target, so a required declaration that target loses is a problem. A definition with problems returns the same { problems, warnings } as validate_report, marked isError.

options passes to the target factory. The server refuses fonts and paths. An unknown key returns the factory's own message as an error. The csv target takes no options.

Render data
  • Give exactly one of data and dataPath. Both, or neither, is an error.
  • dataPath resolves inside the data root. The server tests the path after it resolves symlinks, so a link cannot leave the root. Without a data root, the server refuses dataPath.
  • The file holds JSON. A file that does not parse returns the server's own message, and never the file's text.
  • An image arrives in one of two forms. { "$image": "assets/logo.png" } names a file inside the data root. { "$base64": "<base64>" } carries the bytes inline. Prefer $image, because a picture in base64 costs the agent's context on every call.
  • An object whose only key is $image or $base64 decodes to bytes before the render. This happens at any depth, in inline data and in files alike. The definition reads the bytes as usual: =$.input.logo.
  • An $image path resolves against the data root, also inside a dataPath file. The server tests the path after it resolves symlinks. The file must be a PNG or a JPEG. The server reads no other file. A data file reference therefore cannot copy an arbitrary file into a document. Without a data root, the server refuses $image.
  • The server reads each file once per call, however many times the data names it.
  • A refusal is an error that names its path in the data, such as $.input.logo. That covers a string that is not base64, and an $image that does not exist, leaves the root, or is not an image.
The output file

Every target writes a file and returns its location, never its content.

  • The file goes to QUARIO_OUT_DIR.
  • filename is a basename. It holds no separator and is not ... The server forces the target's extension. Without a filename, the name is report-<timestamp>.<ext>.
  • The server never overwrites. A name that exists gets -1, then -2, and so on.
  • The result carries structuredContent with { path, target, bytes }, and the text Wrote <name> (<size>): <absolute path>.

Not in this release

Registered functions, host fonts, and remote transport.


Development

npm run check is the local gate. It runs formatting, lint, the dead-code checks, the size budget, the unit and type suites, and the complexity check. CI runs the same gate. A green check locally means a green pull request.

AGENTS.md holds the conventions for this repo. docs/adr holds the decisions that a reader is most likely to undo.


License

Copyright 2026 Robin van der Vleuten

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

The quario and @quario/* packages this server installs have their own license. See the LICENSE file in each of those packages.

Comments

Markdown supported

New to MCP?

From what the protocol is to installing your first server, these answers cover most first questions.

An open protocol that defines how AI applications connect to external tools and data in a uniform way. Clients talk to the model; MCP servers provide tools, resources and prompt templates. They exchange standard messages, so one server can be reused by many clients.