OpenArchiver MCP Server
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@OpenArchiver MCP Serversearch archived emails for the Q3 board meeting notes"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
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 inmissingorfullmode.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 testRun 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-mcpFor 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=@imrasalghulConfiguration
OPENARCHIVER_API_KEY— required API key.OPENARCHIVER_API_URL— optional instance base URL; defaults tohttps://archiver.alghul.com.OPENARCHIVER_TOOLSET—coreorfull; defaults tocore. Invalid values stop startup with an error.OPENARCHIVER_TIMEOUT_MS— positive request timeout in milliseconds; defaults to30000.
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 checkThe 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.
Available Tools
6 toolsget_archive_healthBRead-onlyIdempotent
Get global index health and, optionally, source health; full mode also includes the admin search-engine overview
| Name | Required | Description | Default |
|---|---|---|---|
| sourceId | No | Optional ingestion source ID |
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
Annotations already declare readOnlyHint, idempotentHint, and non-destructive behavior, so the safety profile is covered. The description adds that an admin search-engine overview may be included, but it does not explain what triggers 'full mode' or any permission implications of the admin view.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
A single, front-loaded sentence that states the primary resource first. It is concise, but 'full mode' is referenced without explanation, which is a minor clarity cost rather than a verbosity problem.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
With no output schema, the health response shape is left undescribed. The 'full mode / admin search-engine overview' behavior is mentioned but not tied to any parameter or condition, so an agent cannot reliably know how to request it or what it will return.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
The schema already documents sourceId at 100% coverage as an optional ingestion source ID. The description adds some meaning by connecting the optional parameter to source health, but the connection is implicit and 'full mode' has no corresponding parameter in the schema.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
Names a specific action ('Get') and a clear resource: global index health, optional source health, and an admin search-engine overview. It reads as distinct from the sibling get_archive_stats, though 'full mode' is left undefined which prevents a 5.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
Provides no guidance on when to choose this tool over siblings such as get_archive_stats, search_emails, or list_ingestion_sources. The only usage hint is that source health is optional, which is closer to parameter guidance than tool-selection guidance.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
get_archive_statsBRead-onlyIdempotent
Get overall dashboard statistics and detailed statistics for one ingestion source
| Name | Required | Description | Default |
|---|---|---|---|
| sourceId | Yes | Ingestion source ID |
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
The annotations already establish readOnlyHint, idempotentHint, and destructiveHint, so the safety profile is covered. The description adds a little context about the dual nature of the result (overall dashboard stats plus per-source details), but it does not disclose behavior beyond that, such as what happens with invalid source IDs or whether the response combines both stats types.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
The description is a single, efficient sentence with no filler. It front-loads the main action and resource, and every word adds meaning.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
For a read-only tool with one required parameter, the description is adequate, but with no output schema it leaves the exact contents of 'statistics' unspecified. An agent can invoke the tool correctly, but it cannot fully predict the return shape or determine precisely which metrics are covered.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
Schema description coverage is 100%: the only parameter, sourceId, is documented as 'Ingestion source ID' with a UUID format. The description's phrase 'for one ingestion source' adds little beyond the schema, so it stays at the baseline for fully covered parameters.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
The description names a specific verb ('Get') and resource ('overall dashboard statistics and detailed statistics for one ingestion source'), which makes the tool's main function clear. It is implicitly different from siblings like list_ingestion_sources or get_email, but it does not explicitly call out how it differs from get_archive_health.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
The description gives no direct statement about when to use this tool versus the siblings. There is no mention of exclusions, alternatives, or conditions that would help an agent choose between get_archive_stats and get_archive_health or list_archived_emails_for_source.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
get_emailARead-onlyIdempotent
Get one archived email by ID, including attachments and thread details
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | Archived email ID |
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
Annotations already declare readOnlyHint, idempotentHint, and destructiveHint. The description adds behavioral value beyond those by disclosing that the response includes attachments and thread details, which helps the agent set expectations about the returned data without needing an output schema.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
The description is a single, focused sentence with no filler. It front-loads the action and resource, then adds return details, making it easy to parse and act on.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
For a simple fetch-by-ID tool, this is complete: the schema documents the required parameter, annotations cover the safety profile, and the description clarifies what the response contains. Nothing essential is missing for an agent to select and invoke the tool correctly.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
Schema description coverage is 100%, with the single 'id' parameter clearly described as 'Archived email ID'. The tool description adds the phrase 'by ID' but does not provide additional semantic details beyond what the schema already states, so the baseline 3 is appropriate.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
The description clearly states the action ('Get'), the resource ('one archived email'), and the selection method ('by ID'). Mentioning 'including attachments and thread details' further distinguishes it from sibling tools like search_emails or list_archived_emails_for_source.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
The 'by ID' phrasing provides a clear context for when to use this tool: when the agent already has an archived email ID. It does not explicitly mention alternative tools for unknown IDs, but the contrast with search_emails is strongly implied, making the usage context clear if not exhaustive.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
list_archived_emails_for_sourceARead-onlyIdempotent
List archived emails for one ingestion source
| Name | Required | Description | Default |
|---|---|---|---|
| page | No | ||
| limit | No | ||
| ingestionSourceId | Yes | Ingestion source ID |
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
Annotations already declare readOnlyHint=true, idempotentHint=true, and destructiveHint=false, so the safety profile is covered. The description adds the scope constraint ('one ingestion source') but reveals no additional behavioral traits such as ordering, return shape, or pagination behavior. This is adequate but not enriching.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
The description is a single tight sentence that states the action, the object, and the scope with zero filler. Every word contributes meaning, and the most important constraint ('for one ingestion source') is front-loaded.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
For a straightforward read-only list operation, the description is minimally sufficient, especially with annotations covering side effects. Still, there is no mention of pagination, result ordering, or what an archive email record includes, and there is no output schema to fill that gap.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
Schema parameter description coverage is only 33%, with page and limit left undocumented. The description clarifies the role of ingestionSourceId but does not mention pagination semantics or defaults, leaving two of three parameters to be inferred solely from their names.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
The description uses a specific verb and resource ('List archived emails') and narrows the scope to 'one ingestion source', which cleanly distinguishes it from siblings like get_email or search_emails. The intent is immediately clear without needing to inspect the schema.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
The description implies the appropriate use case: retrieve archived emails tied to a single ingestion source. However, it provides no explicit routing or exclusions (e.g., 'use search_emails for filtered queries' or 'prefer get_email for a single email'), so the agent must infer when this tool is preferable over siblings.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
list_ingestion_sourcesARead-onlyIdempotent
List ingestion sources accessible to the current API key
| Name | Required | Description | Default |
|---|---|---|---|
No parameters | |||
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
Annotations already declare read-only, idempotent, and non-destructive behavior. The description adds useful context: results are permission-scoped to the current API key. It does not detail pagination or response shape, but for a parameterless list operation this is a minor gap.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
One short, front-loaded sentence with no filler. Every word contributes meaning, and the main action and scope are immediately clear.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
For a parameterless list operation with annotations covering safety, the description is complete: it states the resource, the scope, and the outcome. No additional invocation decisions are needed, and the absence of an output schema is acceptable given the simple list semantics.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
The tool has no parameters, so the schema fully covers the interface. The description's mention of 'current API key' adds meaningful context about implicit scoping without needing to document any parameter details.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
States a specific verb and resource: 'List ingestion sources', plus an explicit scope ('accessible to the current API key'). This is clearly distinct from sibling tools that operate on emails, archives, or stats.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
Provides clear context by scoping results to the current API key's accessible sources, which tells the agent this is an enumeration operation. It does not explicitly name alternatives or exclusions, but the resource name is distinctive enough to make the intended use obvious.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
search_emailsBRead-onlyIdempotent
Search archived emails with full-text search and structured filters
| Name | Required | Description | Default |
|---|---|---|---|
| to | No | ||
| from | No | ||
| page | No | ||
| sort | No | date_desc | |
| limit | No | ||
| notTo | No | ||
| dateTo | No | ||
| notFrom | No | ||
| sources | No | ||
| dateFrom | No | ||
| keywords | No | ||
| searchIn | No | ||
| mailboxes | No | ||
| excludeSources | No | ||
| hasAttachments | No | ||
| matchingStrategy | No | last |
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
Annotations already provide a strong safety profile (readOnlyHint=true, idempotentHint=true, destructiveHint=false), so the description does not need to cover those. However, it adds no extra behavioral context such as whether only indexed archives are searched, how matching strategies behave, or what the result contains.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
The description is a single, front-loaded sentence with no filler. Every phrase earns its place, and it conveys the core function without redundancy.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
Given the tool's complexity (16 parameters, no output schema, no parameter descriptions), the description is too thin to fully support correct invocation. It omits details about return shape, pagination defaults, matching strategy semantics, and how filters combine, so an agent would likely need to infer too much.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
Schema description coverage is 0%, and the description only generically references 'full-text search and structured filters' without explaining any of the 16 parameters. It gives little help for choosing or combining parameters like matchingStrategy, sources, searchIn, or date ranges.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
The description uses a specific verb and resource ('Search archived emails') and states the mechanism ('full-text search and structured filters'). This clearly distinguishes it from sibling tools like get_email or list_archived_emails_for_source, which are for single retrieval or source-based listing.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
There is no guidance on when to prefer this tool over its siblings, nor any exclusions or prerequisites. The description only implies usage by stating what the tool does, leaving the agent to infer when search_emails is the right choice.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections. Dates show when Glama detected each change.
6 tool updates
v1.0.1- First observed
get_archive_health - First observed
get_archive_stats - First observed
get_email - First observed
list_archived_emails_for_source - First observed
list_ingestion_sources - First observed
search_emails
TDQS
Each tool has a distinct purpose: get_email retrieves a single record, search_emails and list_archived_emails_for_source provide different listing/search paths, and the stats/health/source tools cover separate operational concerns. There is no meaningful overlap that would confuse an agent selecting a tool.
Tool names consistently follow a get_/list_/search_ verb prefixed pattern with clear noun targets. Longer names like list_archived_emails_for_source remain readable and predictable, and no naming style mixing occurs.
Six tools is a well-scoped count for an archive email server covering retrieval, search, source listing, and monitoring. Each tool earns its place without redundancy or bloat.
The read-only archive surface is well covered: emails can be searched, listed by source, and fetched individually, while stats and health provide operational visibility. There are no tools for managing ingestion sources or email lifecycle operations, but those appear outside the intended scope of an archiver query/monitoring server.
Maintenance
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
Read-only Amazon SES observability: search events, inspect bounces, pull delivery stats.
Read-only MCP access to authorized Vocci sessions, notes, files, and memory search.
Read-only MCP access to a documented IT fleet: state, changes, posture. 15 tools.
Transactional e-mail and permission-based campaigns, multi-tenant, with a full audit trail.
1411
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceProvides read-only access to Gmail, enabling email search, unread listing, message and thread retrieval, and draft reply preparation without sending.205MIT
- AlicenseAqualityCmaintenanceEnables read-only search and export of Outlook emails and attachments with a chain-of-custody manifest for evidence collection.7MIT
- AlicenseAqualityCmaintenanceReads 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.363MIT
- AlicenseNot gradedqualityAmaintenanceEnables 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
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
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