# SwissDocAI

> SwissDocAI is a freemium MCP server for document processing. Swiss-hosted OCR, classification and data extraction for documents, via API or MCP. It runs locally on your machine and is started by your AI client.

- **Kind:** MCP server
- **Pricing:** Freemium
- **Platforms:** API, CLI, Web, Self-hosted
- **Website:** https://swissdocai.ch/en/api-documentation
- **MCP Registry name:** ch.swissdocai/mcp
- **Categories:** [document processing](https://ai-powered.com/categories/document-processing)
- **Listing updated:** 2026-12-04

## About

SwissDocAI reads scanned and digital documents, recognises what kind of document each one is, and pulls out the fields you define, such as amounts, dates, senders and bank details. Processing takes place in Switzerland. Beyond the core pipeline it offers separate calls for plain OCR, layout analysis with word coordinates, and finding and blacking out personal data in PDFs and scans.

Document types are described as labels in a web console, and each label carries its own extraction fields and file name template. Labels can also be created and tuned through the API or the MCP server, so an AI agent can adjust them against test documents and roll back earlier revisions.

The MCP server runs locally and lets AI clients such as Claude, Cursor or Codex process files by path, so the document itself does not have to be pasted into a chat. It is aimed at developers building document workflows and at teams that need Swiss-hosted processing for sensitive records.

## Features

- **Full document pipeline:** A single call runs OCR, classification and field extraction on PDFs, PNGs and JPGs.
- **Custom labels and fields:** Define document types and the fields to extract, and manage them through the console or API.
- **Splitting multi-document PDFs:** Finds individual documents inside a scanned stack and processes each one separately.
- **Personal data redaction:** Locates names, birth dates, addresses and account numbers and returns redacted PDFs.
- **Layout with coordinates:** Returns text as Markdown with word, line, table and checkbox positions on the page.
- **Local MCP server:** Lets Claude, Cursor and Codex process files on disk without copying them into the chat.

## Good for

- Extracting totals, dates and IBANs from invoices in bulk
- Sorting a scanned mail stack into separate documents and naming them
- Blacking out personal data in medical or administrative reports before sharing
- Digitising forms with tables and checkboxes into structured data
- Tuning document classification rules with test files from an AI assistant

## Install

### Claude Code: Add with the CLI (Terminal)

```sh
claude mcp add mcp --env SWISSDOCAI_API_TOKEN='<SWISSDOCAI_API_TOKEN>' -- uvx swissdocai-mcp
```

Add --scope user to use it in every project, or --scope project to share it in .mcp.json.

### Claude Code: Or share it with your project (.mcp.json)

```json
{
  "mcpServers": {
    "mcp": {
      "command": "uvx",
      "args": [
        "swissdocai-mcp"
      ],
      "env": {
        "SWISSDOCAI_API_TOKEN": "<SWISSDOCAI_API_TOKEN>"
      }
    }
  }
}
```

### Claude Desktop (claude_desktop_config.json)

```json
{
  "mcpServers": {
    "mcp": {
      "command": "uvx",
      "args": [
        "swissdocai-mcp"
      ],
      "env": {
        "SWISSDOCAI_API_TOKEN": "<SWISSDOCAI_API_TOKEN>"
      }
    }
  }
}
```

Settings → Developer → Edit Config, then quit and reopen Claude Desktop.

### Cursor (~/.cursor/mcp.json)

```json
{
  "mcpServers": {
    "mcp": {
      "command": "uvx",
      "args": [
        "swissdocai-mcp"
      ],
      "env": {
        "SWISSDOCAI_API_TOKEN": "<SWISSDOCAI_API_TOKEN>"
      }
    }
  }
}
```

Use .cursor/mcp.json in a project to share it with the project.

### VS Code (~/.copilot/mcp-config.json)

```json
{
  "mcpServers": {
    "mcp": {
      "type": "stdio",
      "command": "uvx",
      "args": [
        "swissdocai-mcp"
      ],
      "env": {
        "SWISSDOCAI_API_TOKEN": "<SWISSDOCAI_API_TOKEN>"
      }
    }
  }
}
```

Or put the same entry in .mcp.json at your workspace root to share it.

### Codex: Add with the CLI (Terminal)

```sh
codex mcp add mcp --env SWISSDOCAI_API_TOKEN='<SWISSDOCAI_API_TOKEN>' -- uvx swissdocai-mcp
```

### Codex: Or add to config.toml (~/.codex/config.toml)

```toml
[mcp_servers.mcp]
command = "uvx"
args = ["swissdocai-mcp"]
env = { SWISSDOCAI_API_TOKEN = "<SWISSDOCAI_API_TOKEN>" }
```

### Gemini CLI and Antigravity: Gemini CLI (~/.gemini/settings.json)

```json
{
  "mcpServers": {
    "mcp": {
      "command": "uvx",
      "args": [
        "swissdocai-mcp"
      ],
      "env": {
        "SWISSDOCAI_API_TOKEN": "<SWISSDOCAI_API_TOKEN>"
      }
    }
  }
}
```

Or run: gemini mcp add -s user -e SWISSDOCAI_API_TOKEN='<SWISSDOCAI_API_TOKEN>' mcp uvx -- swissdocai-mcp

### Gemini CLI and Antigravity: Antigravity (~/.gemini/config/mcp_config.json)

```json
{
  "mcpServers": {
    "mcp": {
      "command": "uvx",
      "args": [
        "swissdocai-mcp"
      ],
      "env": {
        "SWISSDOCAI_API_TOKEN": "<SWISSDOCAI_API_TOKEN>"
      }
    }
  }
}
```

Use .agents/mcp_config.json to add it to one workspace only.

### Devin Desktop (~/.config/devin/mcp_config.json)

```json
{
  "mcpServers": {
    "mcp": {
      "command": "uvx",
      "args": [
        "swissdocai-mcp"
      ],
      "env": {
        "SWISSDOCAI_API_TOKEN": "<SWISSDOCAI_API_TOKEN>"
      }
    }
  }
}
```

On Windows the file is %APPDATA%\\devin\\mcp_config.json. Use .devin/mcp_config.json to share it with a project.

### Cline (cline_mcp_settings.json)

```json
{
  "mcpServers": {
    "mcp": {
      "command": "uvx",
      "args": [
        "swissdocai-mcp"
      ],
      "env": {
        "SWISSDOCAI_API_TOKEN": "<SWISSDOCAI_API_TOKEN>"
      }
    }
  }
}
```

Open it from the MCP Servers icon → Configure → Configure MCP Servers.

### Zed (Zed settings.json)

```json
{
  "context_servers": {
    "mcp": {
      "command": "uvx",
      "args": [
        "swissdocai-mcp"
      ],
      "env": {
        "SWISSDOCAI_API_TOKEN": "<SWISSDOCAI_API_TOKEN>"
      }
    }
  }
}
```

Open it with zed: open settings file. Merge context_servers into the settings you already have.

### JetBrains AI Assistant and Junie: AI Assistant (Settings → Tools → AI Assistant → Model Context Protocol (MCP) → Add)

```json
{
  "mcpServers": {
    "mcp": {
      "command": "uvx",
      "args": [
        "swissdocai-mcp"
      ],
      "env": {
        "SWISSDOCAI_API_TOKEN": "<SWISSDOCAI_API_TOKEN>"
      }
    }
  }
}
```

The AI Assistant docs only show command and args. If the env block is ignored, use Junie for this server.

### JetBrains AI Assistant and Junie: Junie (~/.junie/mcp/mcp.json)

```json
{
  "mcpServers": {
    "mcp": {
      "command": "uvx",
      "args": [
        "swissdocai-mcp"
      ],
      "env": {
        "SWISSDOCAI_API_TOKEN": "<SWISSDOCAI_API_TOKEN>"
      }
    }
  }
}
```

Use .junie/mcp/mcp.json to share it with a project.

### Kiro (~/.kiro/settings/mcp.json)

```json
{
  "mcpServers": {
    "mcp": {
      "command": "uvx",
      "args": [
        "swissdocai-mcp"
      ],
      "env": {
        "SWISSDOCAI_API_TOKEN": "<SWISSDOCAI_API_TOKEN>"
      }
    }
  }
}
```

Use .kiro/settings/mcp.json to add it to one workspace only.

### Other clients (your client's MCP settings (most use this shape))

```json
{
  "mcpServers": {
    "mcp": {
      "command": "uvx",
      "args": [
        "swissdocai-mcp"
      ],
      "env": {
        "SWISSDOCAI_API_TOKEN": "<SWISSDOCAI_API_TOKEN>"
      }
    }
  }
}
```

## Tools

From the tool list in its README, going by the names, 1 of 12 tools deletes data and 2 change data; 5 names don't say. From the server's own tool labels and tool names; not verified by us.

- `process_document`: OCR, classification into labels and extraction of fields; can split PDFs and save each document.
- `ocr_document`: Returns the text of a document as Markdown with page markers and tables.
- `analyze_layout` (name suggests: reads): Returns words, lines, paragraphs, tables and checkboxes with coordinates.
- `redact_document`: Finds personal data and writes a redacted PDF next to the source file.
- `list_labels` (name suggests: reads): Lists the workspace's labels with descriptions, fields and revisions.
- `get_label` (name suggests: reads): Returns one label with its description, examples, fields and revision.
- `create_label` (name suggests: changes): Creates a new document label.
- `update_label` (name suggests: changes): Changes fields of an existing label if it is still at the revision that was read.
- `delete_label` (name suggests: deletes): Deletes a label and all its revisions permanently.
- `list_label_revisions` (name suggests: reads): Lists a label's earlier states.
- `restore_label_revision`: Restores a label to an earlier revision.
- `classify_text`: Classifies a text into the workspace's labels.

## FAQ

### Where are documents processed?

SwissDocAI processes documents in Switzerland. Texts and findings are neither stored nor logged.

### Is there a free tier?

The Free plan includes 10 pages per day, and the Pro plan includes 3,000 pages per month.

### Can I run SwissDocAI on my own infrastructure?

The MCP server's base URL can be changed to another address, for example an on-premises installation.

### Which file formats are supported?

Uploads accept PDF, PNG, JPG and JPEG, with a request limit of 50 MB.

### How do I add SwissDocAI to Claude Code?

Run this command in your terminal: claude mcp add mcp --env SWISSDOCAI_API_TOKEN='<SWISSDOCAI_API_TOKEN>' -- uvx swissdocai-mcp

## Where this comes from

- Description: written from the project's website and its MCP Registry entry.
- Install steps: from the official MCP Registry entry.

## Alternatives

- [OnDevicePDF](https://ai-powered.com/mcp/ondevicepdf): OnDevicePDF is an open-source MCP server for document processing.

---
Source: https://ai-powered.com/mcp/swissdocai
