Skip to content
⌘K
InboxAsk a human

Enterpret MCP in Hermes Agent

Updated by vivek

Connect Hermes Agent (Nous Research) to the Enterpret MCP server so you can query customer feedback, inspect taxonomy values, and retrieve supporting quotes from the Hermes CLI, TUI, Desktop app, or messaging gateways.

Enterpret is not listed in Hermes's built-in MCP catalog, so you add it as a custom remote HTTP server pointing to https://wisdom-api.enterpret.com/server/mcp. Hermes supports both OAuth 2.1 (recommended for interactive use) and Bearer token authentication (for headless servers, scheduled jobs, or multi-organization configs).

See Enterpret MCP Server for the full list of available tools and citation guidance.


Before you start

You'll need:

  • Hermes Agent installed (CLI, TUI, or Hermes Desktop) with an LLM provider configured (hermes model or hermes setup). See the Hermes Agent Quickstart.

  • An Enterpret account with access to the workspace you want to query. If your organization uses SSO or invite-only provisioning, confirm you can sign in at dashboard.enterpret.com first.

  • For Bearer token setup only: An MCP Auth Token generated from your Enterpret dashboard under Settings → API Access → MCP (or Settings → Enterpret MCP).


Hermes connects over Streamable HTTP and handles OAuth 2.1 PKCE discovery and client registration automatically.

Using the Hermes CLI

  1. Open your terminal and add the Enterpret server:

    hermes mcp add enterpret --url https://wisdom-api.enterpret.com/server/mcp --auth oauth
  2. Hermes opens your browser to dashboard.enterpret.com for authorization. Sign in to Enterpret if prompted, confirm that Organization shows the workspace you want to connect, and click Authorize.

    Enterpret authorization screen titled Connect with Enterpret MCP. It grants Hermes Agent access, shows the selected organization, lists the permissions Hermes Agent will have, and includes Authorize and Cancel buttons.
    Confirm the organization, then click Authorize.
  3. Return to your terminal. Once authorization completes, Hermes lists the discovered Enterpret tools and prompts to enable them:

    • Press Enter (or Y) to enable all tools.

    • Or type select to choose a subset of tools.

  4. Hermes saves the connection to ~/.hermes/config.yaml and caches your OAuth tokens in ~/.hermes/mcp-tokens/.

Remote or SSH sessions: If Hermes runs on a headless or remote host without a local browser, copy the authorization URL printed in the terminal, approve it in a browser on your laptop, and paste the full redirect URL (or the ?code=...&state=... query string) back into the terminal prompt when asked.

Or configure ~/.hermes/config.yaml manually

  1. Open ~/.hermes/config.yaml in a text editor and add enterpret under mcp_servers:

    mcp_servers: enterpret: url: "https://wisdom-api.enterpret.com/server/mcp" auth: oauth
  2. From a fresh terminal (outside an active Hermes chat session), run the OAuth login flow:

    hermes mcp login enterpret
  3. Complete the browser authorization and confirm the workspace before clicking Authorize.

Note: When you edit ~/.hermes/config.yaml while a Hermes chat session is already running, auto-reload uses a 30-second connection timeout—too short for an interactive sign-in. Always complete initial OAuth login with hermes mcp login enterpret from a separate terminal, which gives you 5 minutes to approve.


Option 2: Connect with a Bearer Auth Token

Use a Bearer token when running Hermes in non-interactive environments (such as cron jobs, CI, or always-on gateways without browser sign-in) or when connecting multiple Enterpret organizations side by side.

  1. In your Enterpret dashboard, open Settings → API Access → MCP (or Settings → Enterpret MCP).

  2. Click Generate under Auth Token and copy the token.

  3. In your terminal, run:

    hermes mcp add enterpret --url https://wisdom-api.enterpret.com/server/mcp --auth header
  4. When prompted, confirm that the server requires authentication (Y) and paste your Auth Token. Hermes strips any extra Bearer prefix, saves the secret to ~/.hermes/.env as MCP_ENTERPRET_API_KEY, and writes the server entry to ~/.hermes/config.yaml:

    mcp_servers: enterpret: url: "https://wisdom-api.enterpret.com/server/mcp" headers: Authorization: "Bearer ${MCP_ENTERPRET_API_KEY}"
  5. Review the discovered tools and press Enter (Y) to enable them.

Token expiry and rotation: Dashboard Auth Tokens expire after 90 days of inactivity (each use resets the 90-day window) and have a maximum lifetime of 365 days. When you rotate a token in Enterpret, update MCP_ENTERPRET_API_KEY in ~/.hermes/.env and run /reload-mcp in any open Hermes session.


Verify the connection

Start a new Hermes session with hermes (or hermes --tui). If a session was already open when you added the server, run /reload-mcp in that chat first.

Ask Hermes a question about your workspace, for example:

Give me a quick overview of our Enterpret workspace

You'll see an Enterpret tool call, such as Enterpret · get organization details. Confirm the organization name and dashboard URL in the reply match the workspace you intended to connect.

Hermes chat asking for a quick overview of the Enterpret workspace. An Enterpret tool call for get organization details returns the organization name and dashboard URL.
You'll see an Enterpret tool call, then the organization name and dashboard URL.

To check the connection from the terminal without starting a chat, run hermes mcp list (Enterpret should appear as enabled) or hermes mcp test enterpret (a successful check reports Connected and lists the tools for your workspace).


Optional configuration

Filter or restrict Enterpret tools

When filtering tools in ~/.hermes/config.yaml or with hermes mcp configure enterpret, use the MCP tool names (for example, get_organization_details). In a Hermes chat, these appear as an Enterpret tool call, not the raw tool name.

mcp_servers: enterpret: url: "https://wisdom-api.enterpret.com/server/mcp" auth: oauth tools: include: - get_organization_details - get_graph_schema - resolve_taxonomy_scope - run_graph_query - find_user_quote

Connect multiple Enterpret organizations

To query more than one Enterpret organization in the same Hermes session, add a separate named entry under mcp_servers with its own Auth Token in ~/.hermes/.env (see Connecting Claude to Multiple Enterpret Organizations for general multi-org caveats):

mcp_servers: enterpret_org_alpha: url: "https://wisdom-api.enterpret.com/server/mcp" headers: Authorization: "Bearer ${MCP_ENTERPRET_ORG_ALPHA_API_KEY}" enterpret_org_beta: url: "https://wisdom-api.enterpret.com/server/mcp" headers: Authorization: "Bearer ${MCP_ENTERPRET_ORG_BETA_API_KEY}"

When prompting Hermes, specify which named connection to query (for example, enterpret_org_alpha vs. enterpret_org_beta).


Citations and quotes

The Enterpret MCP tools retrieve feedback and supporting source records, and Hermes writes the summary. State the workspace, date range, sources, and taxonomy filters in your prompt when asking a question. Open linked source records to verify counts, percentages, and verbatim customer quotes before relying on them.


Troubleshooting

  • non-interactive environment and no cached tokens found

    Hermes is running without cached OAuth tokens in a non-interactive shell or service. Run hermes mcp login enterpret in an interactive terminal first, or switch to Option 2 (Bearer Auth Token) for headless environments.

  • Dashboard tokens cannot use OAuth

    You passed a dashboard MCP Auth Token alongside auth: oauth, or sent an invalid token. Remove auth: oauth, configure headers: { Authorization: "Bearer ${MCP_ENTERPRET_API_KEY}" }, and verify MCP_ENTERPRET_API_KEY in ~/.hermes/.env matches an active token from Settings → API Access → MCP.

  • OAuth login fails or times out

    • Check that you ran hermes mcp login enterpret from a standalone terminal rather than waiting on an in-session config auto-reload.

    • On a remote/SSH host, paste the full redirect URL (starting with http://127.0.0.1:.../callback?code=...) back into the terminal prompt, or forward the loopback port over SSH.

    • Note that hermes mcp login enterpret --flow device is not supported because Enterpret MCP uses browser OAuth 2.1 PKCE rather than device-code flow.

  • Tools do not appear in an active session

    Run /reload-mcp in the session or start a new Hermes chat (hermes / hermes --tui). You can also run hermes mcp test enterpret from the terminal to confirm tools are discovered.

  • Network or firewall errors

    Ensure outbound HTTPS access is allowed to wisdom-api.enterpret.com, oauth.enterpret.com, and dashboard.enterpret.com.