# Documentation

> Get started with local Swedish PII masking: browser extension, local LLM proxy, Streamable HTTP or stdio MCP, guard hooks, and npm SDK.
>
> Canonical: https://maskera.dev/en/docs (en) · sv: https://maskera.dev/docs · Markdown: https://maskera.dev/en/docs.md · Overview for agents: https://maskera.dev/llms.txt

All masking in Maskera runs locally on your device. Pick the mode that fits where your text lives and verify with made-up data.

[Overview](https://maskera.dev/en/docs) · [@maskera/mcp](https://maskera.dev/en/docs/mcp) · [Client guides](https://maskera.dev/en/docs/clients) · [SDK & operations](https://maskera.dev/en/docs/sdk) · [Troubleshooting](https://maskera.dev/en/docs/troubleshooting)

Let your agent set up Maskera

[Open llms.txt](https://maskera.dev/llms.txt)

You know it worked when

Run npx -y @maskera/mcp doctor. The report should start with OK and end with a sample redaction that shows 0 leaks.

Terminal

```
npx -y @maskera/mcp doctor
maskera-mcp doctor (OK, v0.5.3, mode=auto)
  [ok]   node: Node 24.22.1 (requires >=18)
  [ok]   root:/Users/you/project: Readable directory
  [ok]   redaction: mode=hybrid, masked=4 items, roundtrip=ok (415ms)
  [ok]   proxy: Running at http://127.0.0.1:8787 (mcp=http://127.0.0.1:8787/mcp, requests=1, redacted=0)
  [ok]   mcp-http: Live http://127.0.0.1:8787/mcp masked synthetic PII (0 leaks, 14ms)
  [ok]   proof: "Kontakta [NAMN_1] ([PERSONNUMMER_1]) på [EPOST_1] eller [TELEFON_1]." (0 leaks, restored=ok)
```

## Choose the right mode

Every entry point runs the same Swedish rules and local AI model.

| Mode | Best when | Command / entry point |
| --- | --- | --- |
| Browser extension | You use web AI chats such as Copilot, ChatGPT and Claude in the browser. | [maskera.dev/en/services](https://maskera.dev/en/services) |
| Local proxy with MCP | Every prompt and tool output from your agent must be masked, and several clients should share one model and one session vault. | npx -y @maskera/mcp proxy \--root . |
| MCP over stdio | Your client has no custom API URL and the agent reads and writes local files. | npx -y @maskera/mcp \--root . \--no-raw-restore |
| Guard (hooks and pipes) | You want to block PII in agent hooks (exit 2) or redact Unix pipes. | npx -y @maskera/mcp guard |
| npm SDK | You embed Swedish masking inside your own web app or Node service. | npm install maskera @huggingface/transformers |

![Diagram of Maskera's two layers: your text is split between rules for fixed-format data and a Swedish AI model for free text, then merged into masked text.](https://maskera.dev/layers.svg)

[See exactly what is masked](https://maskera.dev/en/privacy#vad-maskeras) · [Open full size](https://maskera.dev/layers.svg)

## Quickstart

One command starts a local proxy, checks that nothing leaks, and runs your agent through it. The background service and client installer are in the @maskera/mcp reference.

Terminal

```
npx -y @maskera/mcp wrap -- claude
```

## Markdown, llms.txt, and built-in skill

Every page on [maskera.dev](https://maskera.dev/en) has a plain Markdown sibling via Accept: text/markdown or a .md suffix (for example [/en/docs.md](https://maskera.dev/en/docs.md) and [/en/docs/mcp.md](https://maskera.dev/en/docs/mcp.md)). For a ready-made coding-agent prompt, see [/setup-prompt.md](https://maskera.dev/setup-prompt.md) and the full index at [/llms.txt](https://maskera.dev/llms.txt).

- The MCP server also serves the full workflow skill directly as resource maskera://skills/maskera/SKILL.md and prompt maskera-workflow.
- Pass \--no-raw-restore when an agent may read and write local files without ever pulling raw PII back into chat.

## Read next

- [@maskera/mcp →Proxy, MCP server and hook for AI agents.](https://maskera.dev/en/docs/mcp)
- [Client guides →Ready-made steps for Claude, Codex, Cursor and more.](https://maskera.dev/en/docs/clients)
- [SDK & operations →Masking in your own TypeScript and JavaScript code.](https://maskera.dev/en/docs/sdk)
- [Troubleshooting →Common issues and what local masking does not cover.](https://maskera.dev/en/docs/troubleshooting)

- [Agent setup prompt (setup-prompt.md)](https://maskera.dev/setup-prompt.md)
- [Machine-readable index (llms.txt)](https://maskera.dev/llms.txt)
- [@maskera/mcp on npm](https://www.npmjs.com/package/@maskera/mcp)
- [maskera on npm](https://www.npmjs.com/package/maskera)
- [Source code on GitHub](https://github.com/joelhagvall/maskera)
- [Model on Hugging Face](https://huggingface.co/joelhagvall/maskera-sv-ner)

Product

- [Products](https://maskera.dev/en/services)
- [Documentation](https://maskera.dev/en/docs)
- [Industries](https://maskera.dev/en/industries)
- [Accuracy](https://maskera.dev/en/accuracy)
- [Customer portal](https://app.maskera.dev/en/login?utm_source=maskera_dev&utm_medium=referral&utm_content=footer_portal)

Trust

- [Security](https://maskera.dev/en/security)
- [Privacy & transparency](https://maskera.dev/en/privacy)
- [FAQ](https://maskera.dev/en/faq)
- [Privacy policy](https://maskera.dev/en/privacy-policy)
- [Test data](https://maskera.dev/en/test-data)

Project

- [Open source](https://github.com/joelhagvall/maskera)
- [Custom-trained Swedish AI model](https://huggingface.co/joelhagvall/maskera-sv-ner)
- [White paper (PDF)](https://maskera.dev/whitepaper.pdf)
- [About & contact](https://maskera.dev/en/about)

A product of [Hägvall Labs AB](https://hagvall-labs.com).
