Skip to main content
Glama

hermes-mcp

An MCP server for Hermes — the HashiCorp/IBM document management system. Connects AI assistants (like Bob) to your Hermes instance so you can search, browse, and retrieve documents directly in chat.

Prerequisites

  • Node.js v18 or later

  • Access to a running Hermes instance (SharePoint backend)

  • A valid Hermes session cookie (see Authentication)

Related MCP server: Rememberizer MCP Server for Common Knowledge

Installation

git clone https://github.com/HarutuneDavisIBM/hermes-mcp.git
cd hermes-mcp
npm install
npm run build

The compiled server will be at build/index.js.

Authentication

Hermes (SharePoint deployment) authenticates via an AWS Application Load Balancer session cookie named AWSELBAuthSessionCookie-0. This cookie is set automatically when you log in through your browser.

  1. Open your Hermes instance (e.g. https://hermes-sharepoint.hashicorp.services) and log in

  2. Open DevTools (Cmd+Option+I on Mac, F12 on Windows)

  3. Go to the Application tab → Cookies → select the site

  4. Find the cookie named AWSELBAuthSessionCookie-0

  5. Copy the Name=Value pair: AWSELBAuthSessionCookie-0=<value>

Note: This session cookie expires periodically (typically after a few hours). You will need to refresh it by repeating the steps above.

Configuration

Add the server to your MCP client's config file. For Bob, this is ~/.bob/settings/mcp.json:

{
  "mcpServers": {
    "hermes": {
      "command": "node",
      "args": ["/absolute/path/to/hermes-mcp/build/index.js"],
      "env": {
        "HERMES_BASE_URL": "https://your-hermes-instance.example.com",
        "HERMES_COOKIE": "AWSELBAuthSessionCookie-0=<your-session-cookie-value>"
      }
    }
  }
}

Replace:

  • /absolute/path/to/hermes-mcp with the actual path where you cloned this repo

  • https://your-hermes-instance.example.com with your Hermes URL

  • AWSELBAuthSessionCookie-0=<your-session-cookie-value> with the full Name=Value pair from DevTools

Verify the connection

After saving the config, restart the MCP server and ask your AI assistant to run hermes_me. A successful response looks like:

{ "operation": "login" }

If you get an authentication error (Unexpected token '<' or similar), your session cookie has expired — repeat the steps above to get a fresh one.

Session cookies expire after a few hours. When tools start returning authentication errors:

  1. Log in to your Hermes instance in the browser

  2. Open DevTools → Application tab → Cookies → select the site

  3. Find AWSELBAuthSessionCookie-0 and copy the full Name=Value string

  4. Update HERMES_COOKIE in your mcp.json using a safe JSON edit (not string replace — the value contains special characters):

node -e "
const fs = require('fs');
const p = require('os').homedir() + '/.bob/settings/mcp.json';
const c = JSON.parse(fs.readFileSync(p, 'utf8'));
c.mcpServers.hermes.env.HERMES_COOKIE = 'AWSELBAuthSessionCookie-0=<new-value>';
fs.writeFileSync(p, JSON.stringify(c, null, 2));
"
  1. Kill the old process so it restarts with the new cookie:

pkill -f "hermes-mcp/build/index.js"

Available Tools

Read operations

Tool

Description

hermes_search

Full-text search across all published documents. Supports optional doc_type and product filters. Each result includes an objectID field — use that with hermes_get_document.

hermes_get_document

Fetch full metadata for a document by its SharePoint objectID (e.g. 01XOO7K4...), found in hermes_search results. Not the human-readable doc number like RFC-123.

hermes_list_drafts

List draft documents. Optionally filter by owner email.

hermes_list_document_types

List all document types configured in the instance (RFC, PRD, FRD, ADR, etc.) with their schemas and custom fields.

hermes_list_products

List all products and areas configured in the instance. Useful to know valid filter values for hermes_search.

hermes_list_projects

List projects that group related documents together.

hermes_me

Get the currently authenticated user's profile. Use this to verify your session cookie is working.

Write operations

Tool

Description

hermes_create_draft

Create a new document draft (WIP status). Requires title and doc_type. Returns the new document's SharePoint objectID.

hermes_update_draft

Update a draft's metadata — title, summary, product, contributors, approvers, approver groups, owners, and custom fields. Only provided fields are changed.

hermes_update_document

Update a published document's metadata or status. Supported statuses: In-Review, Approved, Obsolete. Also updates title, summary, owners, contributors, approvers, approver groups, and custom fields.

hermes_request_review

Publish a draft and move it to In-Review status, notifying assigned approvers. The draft must have at least one approver set before calling this.

hermes_approve_document

Approve a document as the currently authenticated user. The document must be In-Review or Approved and the current user must be listed as an approver.

Typical workflow

  1. Create — hermes_create_draft → get a document ID

  2. Edit — hermes_update_draft (add title, summary, product, approvers, custom fields)

  3. Publish — hermes_request_review (moves to In-Review, emails approvers)

  4. Approve — hermes_approve_document (called by each approver)

  5. Mark obsolete — hermes_update_document with status: "Obsolete"

Example prompts

Once connected, you can ask your AI assistant things like:

  • "Search Hermes for RFCs about Vault authentication"

  • "Find all PRDs related to the HCP platform"

  • "Search for the document HVS-022 and get its full metadata"

  • "List all draft documents owned by me"

  • "What products are in Hermes?"

  • "Show me projects related to Terraform"

  • "Create a new RFC draft titled 'Improving Agent Authentication' for the Vault product"

  • "Add jane@example.com as an approver on my draft RFC-??? and request review"

  • "Mark document 01XOO7K4... as Obsolete"

  • "Approve the document 01XOO7K4..."

Environment Variables

Variable

Required

Description

HERMES_BASE_URL

No

Base URL of your Hermes instance. Defaults to https://hermes-sharepoint.hashicorp.services

HERMES_COOKIE

Yes

Full cookie Name=Value string: AWSELBAuthSessionCookie-0=<value>

Development

# Install dependencies
npm install

# Build (compiles TypeScript → build/index.js)
npm run build

# Rebuild after making changes to src/index.ts
npm run build

The source is a single file: src/index.ts.

Contributing

Pull requests are welcome. For major changes, please open an issue first.

License

MIT

Available Tools

12 tools
hermes_approve_documentA

Approve a document in Hermes as the currently authenticated user. The document must be in 'In-Review' or 'Approved' status. The current user must be listed as an approver on the document. Use hermes_get_document to check the current status and approver list before calling this.

Inputs: document_id (required).

hermes_create_draftA

Create a new document draft in Hermes. Returns the new document's ID which can be used with other tools. The draft will have WIP (work-in-progress) status until published via hermes_request_review.

Inputs: title (required), doc_type (required), product, summary, +2 more.

hermes_get_documentA

Get full metadata for a specific Hermes document by its SharePoint objectID. Returns title, status, approvers, summary, custom fields, and links. IMPORTANT: The document_id must be the 'objectID' field from hermes_search results (a SharePoint GUID like '01XOO7K4...'), NOT the human-readable docNumber like 'RFC-123' or 'HVS-022' — those will return a 404. Always call hermes_search first to obtain the objectID, then pass it here.

Inputs: document_id (required).

hermes_list_document_typesA

List all available document types configured in this Hermes instance (e.g. RFC, PRD, FRD) with their descriptions and custom fields.

Inputs: no named parameters.

hermes_list_draftsA

List draft documents in Hermes. Returns documents that are in WIP (work-in-progress) status. Optionally filter by owner email address.

Inputs: owner.

hermes_list_productsA

List all products/areas configured in this Hermes instance. Useful for knowing valid product filter values when searching.

Inputs: no named parameters.

hermes_list_projectsA

List projects in Hermes. Projects group related documents together.

Inputs: page.

hermes_meA

Get the currently authenticated user's profile in Hermes. Useful to confirm the session cookie is working.

Inputs: no named parameters.

hermes_request_reviewA

Publish a draft document and request review from approvers. This moves the document from WIP status to 'In-Review' and notifies the assigned approvers. The draft must already have approvers set (use hermes_update_draft to add them first). The document_id must be the SharePoint objectID of a draft.

Inputs: document_id (required).

hermes_update_documentA

Update a published document's metadata in Hermes. Supports changing status (In-Review, Approved, Obsolete), title, summary, owners, contributors, approvers, approver groups, and custom fields. For drafts (WIP), use hermes_update_draft instead. Valid statuses: 'In-Review', 'Approved', 'Obsolete'.

Inputs: document_id (required), title, owners, status, +5 more.

hermes_update_draftA

Update a document draft in Hermes (WIP status only). Supports updating title, summary, product, contributors, approvers, approver groups, and custom fields. All fields are optional — only provided fields are changed. The document_id must be the SharePoint objectID from hermes_list_drafts or hermes_create_draft.

Inputs: document_id (required), title, owners, product, +5 more.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    A4.1/5.0

    Scored across 12 tools

    Disambiguation5/5

    Each tool targets a distinct resource or lifecycle action: products, projects, drafts, published documents, review/approval, search, and metadata lookups. The only potentially overlapping pair (update_draft vs update_document) is clearly separated by WIP status vs published status.

    Naming Consistency4/5

    Tool names follow a consistent hermes_verb_noun pattern (list_*, create_*, update_*, get_*, approve_*, request_*), with a minor deviation in hermes_me which lacks an explicit verb. Overall the naming convention is predictable and readable.

    Tool Count5/5

    Twelve tools is well within the typical well-scoped range and each tool supports a distinct part of the document management workflow. No redundant or filler tools are present.

    Completeness4/5

    The core document lifecycle is covered: create draft, update draft, request review, approve, update published metadata/status, search, and retrieve. Minor gaps exist around rejection/request-changes and explicit deletion, but these are workable given the documented status transitions.

    Maintenance

    ActivityStale
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers