Skip to main content
Glama
imrasalghul

OpenArchiver MCP Server

by imrasalghul

OpenArchiver MCP Server

An MCP (Model Context Protocol) server for searching and administering an OpenArchiver instance.

Toolsets

Set OPENARCHIVER_TOOLSET to choose which tools MCP clients can discover. The default is core.

Core

Core is read-only and intended for everyday archive access:

  • search_emails — search email text and structured fields.

  • get_email — retrieve one archived email.

  • get_archive_stats — return dashboard and per-source statistics together.

  • get_archive_health — return global index health and optional per-source health.

  • list_ingestion_sources — list accessible sources.

  • list_archived_emails_for_source — browse a source with pagination.

Full

Full includes every core tool plus administrative tools:

  • list_users, get_user, create_user, update_user, delete_user — user management.

  • list_roles — discover IAM role IDs for user assignment.

  • reindex_archive — reindex the entire archive or one source in missing or full mode.

  • get_queues — inspect background queue counts.

In full mode, get_archive_health also requests the Super-Admin search-engine overview. Health sections are returned independently, so a permission failure in one section does not discard the others.

The API does not currently expose audit-log, retention-policy, retention-label, or legal-hold routes, so this MCP does not advertise nonfunctional tools for those features.

Related MCP server: outlook-evidence-mcp

Requirements

  • Node.js 18 or newer

  • A reachable OpenArchiver instance

  • An OpenArchiver API key with permissions appropriate for the selected tools

Typical permissions include search:archive and read:archive for core access, read:dashboard and read:ingestion for statistics and health, manage:all for users, roles, queues, and index overview, manage:ingestion for a global reindex, and sync:ingestion for a source reindex.

Installation

npm install
npm run build
npm test

Run the published package directly with npx from GitHub Packages:

npx --yes --registry=https://npm.pkg.github.com --package=@imrasalghul/openarchiver-mcp@1.0.0 openarchiver-mcp

For GitHub Packages authentication, create a GitHub personal access token with read:packages (installation) or write:packages (publishing), then configure npm:

npm login --registry=https://npm.pkg.github.com --scope=@imrasalghul

Configuration

  • OPENARCHIVER_API_KEY — required API key.

  • OPENARCHIVER_API_URL — optional instance base URL; defaults to https://archiver.alghul.com.

  • OPENARCHIVER_TOOLSETcore or full; defaults to core. Invalid values stop startup with an error.

  • OPENARCHIVER_TIMEOUT_MS — positive request timeout in milliseconds; defaults to 30000.

Example MCP configuration:

{
  "mcpServers": {
    "openarchiver": {
      "command": "npx",
      "args": [
        "--yes",
        "--registry=https://npm.pkg.github.com",
        "--package=@imrasalghul/openarchiver-mcp@1.0.0",
        "openarchiver-mcp"
      ],
      "env": {
        "OPENARCHIVER_API_KEY": "your-api-key",
        "OPENARCHIVER_API_URL": "https://archiver.alghul.com",
        "OPENARCHIVER_TOOLSET": "core",
        "OPENARCHIVER_TIMEOUT_MS": "30000"
      }
    }
  }
}

Use "OPENARCHIVER_TOOLSET": "full" only for API keys intended to perform administrative operations.

The package is published to GitHub Packages, not npmjs.org.

Development

npm run build
npm test
npm run check

The tests start a local mock API and verify MCP discovery, tool annotations, input validation, reindex routing, partial health responses, and successful handling of 204 No Content deletions. They do not modify a live OpenArchiver instance.

F
license - not found
A
quality
C
maintenance

Maintenance

0Releases (12mo)
Commit activity

Resources

Unclaimed servers have limited discoverability.

Looking for Admin?

If you are the server author, to access and configure the admin panel.

Related MCP Connectors

Related MCP Servers

  • A
    license
    Not graded
    quality
    D
    maintenance
    Provides read-only access to Gmail, enabling email search, unread listing, message and thread retrieval, and draft reply preparation without sending.
    205
    MIT
  • A
    license
    A
    quality
    C
    maintenance
    Reads and searches local email archives (.mbox or .eml) with full MIME parsing, enabling queries about senders, subjects, dates, and bodies while keeping all data on your machine.
    3
    65
    MIT
  • A
    license
    Not graded
    quality
    A
    maintenance
    Enables MCP-compatible AI assistants to securely search multiple mailboxes, reconstruct email threads, and inspect attachments through read-only tools without altering mailbox state.
    Apache 2.0

View all related MCP servers

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/imrasalghul/OpenArchiverMCP'

If you have feedback or need assistance with the MCP directory API, please join our Discord server