hermes-mcp
Provides tools to search, browse, and retrieve documents from a Hermes document management system, including full-text search, document metadata lookup, listing drafts, document types, products, projects, and retrieving the authenticated user's profile.
Click on "Deploy 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., "@hermes-mcp Search Hermes for RFCs about Vault authentication"
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.
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 buildThe 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.
How to get your session cookie
Open your Hermes instance (e.g.
https://hermes-sharepoint.hashicorp.services) and log inOpen DevTools (
Cmd+Option+Ion Mac,F12on Windows)Go to the Application tab → Cookies → select the site
Find the cookie named
AWSELBAuthSessionCookie-0Copy 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-mcpwith the actual path where you cloned this repohttps://your-hermes-instance.example.comwith your Hermes URLAWSELBAuthSessionCookie-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.
Refreshing Your Session Cookie
Session cookies expire after a few hours. When tools start returning authentication errors:
Log in to your Hermes instance in the browser
Open DevTools → Application tab → Cookies → select the site
Find
AWSELBAuthSessionCookie-0and copy the fullName=ValuestringUpdate
HERMES_COOKIEin yourmcp.jsonusing 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));
"Kill the old process so it restarts with the new cookie:
pkill -f "hermes-mcp/build/index.js"Available Tools
Read operations
Tool | Description |
| Full-text search across all published documents. Supports optional |
| Fetch full metadata for a document by its SharePoint |
| List draft documents. Optionally filter by owner email. |
| List all document types configured in the instance (RFC, PRD, FRD, ADR, etc.) with their schemas and custom fields. |
| List all products and areas configured in the instance. Useful to know valid filter values for |
| List projects that group related documents together. |
| Get the currently authenticated user's profile. Use this to verify your session cookie is working. |
Write operations
Tool | Description |
| Create a new document draft (WIP status). Requires |
| Update a draft's metadata — title, summary, product, contributors, approvers, approver groups, owners, and custom fields. Only provided fields are changed. |
| Update a published document's metadata or status. Supported statuses: |
| Publish a draft and move it to |
| Approve a document as the currently authenticated user. The document must be |
Typical workflow
Create —
hermes_create_draft→ get a document IDEdit —
hermes_update_draft(add title, summary, product, approvers, custom fields)Publish —
hermes_request_review(moves toIn-Review, emails approvers)Approve —
hermes_approve_document(called by each approver)Mark obsolete —
hermes_update_documentwithstatus: "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 |
| No | Base URL of your Hermes instance. Defaults to |
| Yes | Full cookie Name=Value string: |
Development
# Install dependencies
npm install
# Build (compiles TypeScript → build/index.js)
npm run build
# Rebuild after making changes to src/index.ts
npm run buildThe 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 toolshermes_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_searchA
Search documents in Hermes using full-text search. Returns matching published documents with titles, owners, product areas, and document types. Each result contains an 'objectID' field (a SharePoint GUID like '01XOO7K4...') — pass that value to hermes_get_document to fetch full metadata. Do NOT pass the human-readable 'docNumber' (e.g. 'RFC-123') to hermes_get_document; it will return 404.
Inputs: query (required), page, product, doc_type, +1 more.
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
Scored across 12 tools
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.
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.
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.
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
Related MCP Connectors
Ingest, manage, and retrieve documents for RAG-powered AI applications
Versioned documentation registry and semantic search for AI tools and coding assistants.
Search your knowledge bases from any AI assistant using hybrid RAG.
Find, write, publish and check pages and API references in your DeveloperHub docs from an AI client
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceEnables AI assistants to enhance their responses with relevant documentation through a semantic vector search, offering tools for managing and processing documentation efficiently.65MIT
- AlicenseNot gradedqualityDmaintenanceEnables accessing and managing personal/team internal knowledge repository with tools for semantic search, smart search, document listing, and saving information for future recall.Apache 2.0
- FlicenseNot gradedqualityDmaintenanceEnables AI assistants to intelligently search and reference documentation using hybrid semantic + keyword search via MCP protocol.-
- FlicenseAqualityDmaintenanceTransforms internal Hermes documents (PRDs, RFCs, specs) into agent tools for relevance search, metadata, and full content retrieval, plus a skill to cross-check specs against code.8-