# Sceptre

> Sceptre is an open-source MCP server for files and documents. Local OCR MCP server and CLI for reading text from images, with no Python runtime. It runs locally on your machine and is started by your AI client.

- **Kind:** MCP server
- **Pricing:** Open source
- **Platforms:** CLI, Linux, macOS, Windows, Self-hosted
- **Website:** https://xberg.io
- **Repository:** https://github.com/xberg-io/sceptre
- **MCP Registry name:** io.github.xberg-io/sceptre
- **Categories:** [files and documents](https://ai-powered.com/categories/files-and-documents)
- **Listing updated:** 2026-11-27

## About

Sceptre reads text from images using a detection stage followed by a recognition stage, packaged as a single Rust executable. It runs on the CPU by default and downloads its models once, after which it works offline from a local cache.

The tool is available three ways: as a command-line program that processes one or many images in a batch, as a Rust library, and as an MCP server that exposes an OCR tool to AI agents. Recognition covers English, Latin-script languages, Simplified Chinese, Japanese, Korean, Cyrillic, Telugu and Kannada, and it accepts PNG, JPEG, BMP, GIF, TIFF, WebP and NetPBM inputs.

It suits developers and teams who want OCR inside an agent workflow or a script without installing a Python stack. The project is MIT licensed and is distributed through Cargo, prebuilt release archives, and an npm package for the MCP registry entry.

## Features

- **Single native binary:** Ships as one self-contained executable with no Python interpreter or PyTorch runtime to install.
- **Offline model caching:** Models download on first use, are checksum-verified, and are read from local cache on later runs.
- **Multilingual recognition:** Recognizes text in several scripts, selectable per run with language flags.
- **MCP readtext tool:** Exposes a readtext tool that takes an image path and can return text only or text with boxes and confidence.
- **Batch processing:** Processes several images in one warm process so models load once per batch.
- **Rotated scan handling:** An optional orientation pre-pass helps with rotated pages.

## Good for

- Give an AI agent the ability to read text from screenshots or scanned pages
- Extract text from receipts or documents in batch on a local machine
- Run OCR offline in environments where sending images to a cloud service is not an option
- Add multilingual image text extraction to a Rust application through the library

## Install

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

```sh
claude mcp add sceptre -- npx -y @xberg-io/sceptre-cli
```

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": {
    "sceptre": {
      "command": "npx",
      "args": [
        "-y",
        "@xberg-io/sceptre-cli"
      ]
    }
  }
}
```

### Claude Desktop (claude_desktop_config.json)

```json
{
  "mcpServers": {
    "sceptre": {
      "command": "npx",
      "args": [
        "-y",
        "@xberg-io/sceptre-cli"
      ]
    }
  }
}
```

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

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

```json
{
  "mcpServers": {
    "sceptre": {
      "command": "npx",
      "args": [
        "-y",
        "@xberg-io/sceptre-cli"
      ]
    }
  }
}
```

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

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

```json
{
  "mcpServers": {
    "sceptre": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "@xberg-io/sceptre-cli"
      ]
    }
  }
}
```

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 sceptre -- npx -y @xberg-io/sceptre-cli
```

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

```toml
[mcp_servers.sceptre]
command = "npx"
args = ["-y", "@xberg-io/sceptre-cli"]
```

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

```json
{
  "mcpServers": {
    "sceptre": {
      "command": "npx",
      "args": [
        "-y",
        "@xberg-io/sceptre-cli"
      ]
    }
  }
}
```

Or run: gemini mcp add -s user sceptre npx -- -y @xberg-io/sceptre-cli

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

```json
{
  "mcpServers": {
    "sceptre": {
      "command": "npx",
      "args": [
        "-y",
        "@xberg-io/sceptre-cli"
      ]
    }
  }
}
```

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

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

```json
{
  "mcpServers": {
    "sceptre": {
      "command": "npx",
      "args": [
        "-y",
        "@xberg-io/sceptre-cli"
      ]
    }
  }
}
```

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": {
    "sceptre": {
      "command": "npx",
      "args": [
        "-y",
        "@xberg-io/sceptre-cli"
      ]
    }
  }
}
```

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

### Zed (Zed settings.json)

```json
{
  "context_servers": {
    "sceptre": {
      "command": "npx",
      "args": [
        "-y",
        "@xberg-io/sceptre-cli"
      ]
    }
  }
}
```

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": {
    "sceptre": {
      "command": "npx",
      "args": [
        "-y",
        "@xberg-io/sceptre-cli"
      ]
    }
  }
}
```

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

```json
{
  "mcpServers": {
    "sceptre": {
      "command": "npx",
      "args": [
        "-y",
        "@xberg-io/sceptre-cli"
      ]
    }
  }
}
```

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

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

```json
{
  "mcpServers": {
    "sceptre": {
      "command": "npx",
      "args": [
        "-y",
        "@xberg-io/sceptre-cli"
      ]
    }
  }
}
```

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": {
    "sceptre": {
      "command": "npx",
      "args": [
        "-y",
        "@xberg-io/sceptre-cli"
      ]
    }
  }
}
```

## Tools

From the tool list in its README, going by the names, 1 name doesn't say. From the server's own tool labels and tool names; not verified by us.

- `readtext`: Runs OCR over an image file path and returns recognized lines, optionally with boxes and confidence.

## FAQ

### Does Sceptre need Python installed?

No. The release is a single executable with no Python or torch runtime required.

### Is Sceptre free to use?

Yes. The project is MIT licensed and runs locally.

### How do AI clients call Sceptre?

Run the mcp subcommand and expose the readtext tool, which takes an image path and an optional detail flag.

### Which image formats are supported?

PNG, JPEG, BMP, GIF, TIFF, WebP and NetPBM are decoded in pure Rust.

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

Run this command in your terminal: claude mcp add sceptre -- npx -y @xberg-io/sceptre-cli

### What are the best alternatives to Sceptre?

The closest alternatives to Sceptre are PDF Text Extractor MCP, Image to Text OCR, Optical Context MCP, Pdf MCP and ocr-software.com OCR.

## Where this comes from

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

## Alternatives

- [PDF Text Extractor MCP](https://ai-powered.com/mcp/pdf-text-extractor-mcp): PDF Text Extractor MCP is a free MCP server for files and documents.
- [Image to Text OCR](https://ai-powered.com/mcp/image-to-text-ocr-2): Image to Text OCR is a paid MCP server for files and documents.
- [Optical Context MCP](https://ai-powered.com/mcp/optical-context-mcp): Optical Context MCP is an open-source MCP server for files and documents.
- [Pdf MCP](https://ai-powered.com/mcp/pdf-mcp): Pdf MCP is an open-source MCP server for files and documents.
- [ocr-software.com OCR](https://ai-powered.com/mcp/ocr-software-com-ocr): ocr-software.com OCR is a freemium MCP server for files and documents.
- [anymd](https://ai-powered.com/mcp/anymd): anymd is an open-source MCP server for design and media.
- [Inkscry: Image to Text OCR](https://ai-powered.com/mcp/inkscry-image-to-text-ocr): Inkscry: Image to Text OCR is a freemium MCP server for files and documents.
- [Image & Scanned PDF to Text (OCR)](https://ai-powered.com/mcp/image-and-scanned-pdf-to-text-ocr): Image & Scanned PDF to Text (OCR) is a paid MCP server for files and documents.

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