AI assistants (MCP)

AI assistants (MCP)

Kagaz has a built-in Model Context Protocol server. Connect Claude, or any app that supports MCP, and ask about your documents in plain language.

Connect an assistant

  1. In Kagaz, open Settings › Account › AI assistants and press Connect an assistant.
  2. Name the key (for example "Claude on my laptop") and choose what it may do:
    • Read only: search, details, expiry dates and files.
    • Read and add documents: also create documents and upload new copies. Only editors and admins can make these keys. No key can delete anything.
  3. Copy the setup for your app. The key is shown once.
Connect an assistant dialog with a name field and the Read only or Read and add documents choices.

Claude Code

claude mcp add --transport http kagaz https://your-kagaz/api/mcp \
  --header "Authorization: Bearer kgz_..."

Claude Desktop, Cursor and other apps

Apps that read an MCP settings file (such as mcp.json) take a remote server like this:

{
  "mcpServers": {
    "kagaz": {
      "type": "http",
      "url": "https://your-kagaz/api/mcp",
      "headers": { "Authorization": "Bearer kgz_..." }
    }
  }
}

If your app only supports local (stdio) servers, bridge it with mcp-remote:

{
  "mcpServers": {
    "kagaz": {
      "command": "npx",
      "args": ["mcp-remote", "https://your-kagaz/api/mcp", "--header", "Authorization:Bearer kgz_..."]
    }
  }
}

Apps that only ask for a URL

Some apps, such as custom connectors on claude.ai, only accept a server address. Use the connector URL from the dialog, which has the key built in:

https://your-kagaz/api/mcp/k/kgz_...

Anyone with this URL can use the key, and URLs can end up in logs and browser history. Prefer the header setup where your app supports it, use a read-only key, and revoke it if the URL is ever shared.

Your Kagaz must be reachable from the internet for hosted apps like claude.ai. Apps running on your own computer, like Claude Code or Claude Desktop, can reach a Kagaz on your home network or Tailscale.

What assistants can do

ToolKeyWhat it does
search_documentsReadFinds documents by words in the title, person or category, with the current copy, expiry status and a link to open or print it.
get_documentReadAll versions of a document, with dates, notes and files. The number is masked unless the assistant asks for it.
expiring_documentsReadDocuments expired or expiring within a number of days (90 by default).
list_peopleReadFamily members and categories, with document counts.
get_fileReadA scan as an image, or a PDF, so the assistant can read it.
create_documentRead and addCreates a document for a person and category.
add_versionRead and addUploads a new copy (JPEG, PNG or PDF), with dates or the bill month. It becomes the current copy and older ones stay in history.

Printing stays in Kagaz: assistants give you the document's link, and you press Print there.

Privacy and safety

What you send to an AI assistant is handled by that assistant's provider under its own terms. Reading a document with get_file sends the scan to the model, so only connect assistants you are comfortable sharing those documents with.

Technical details