Connect the ISMS Copilot MCP server to Mastra

Setup tested on 2026-11-29 with @mastra/mcp 2.11.0: the files below listed ISMS Copilot's tools and ran one read call on our test account.

Mastra's MCPClient connects a TypeScript agent to remote MCP servers and names each tool after its server, so ISMS Copilot's tools arrive as ismscopilot_list_workspaces, ismscopilot_create_conversation and so on. A Mastra workflow can then ask ISMS Copilot for the framework answer at the step where it is needed. The module below uses one server with a bearer header in requestInit, listTools, then execute on the workspace list, with no model involved. It is the check we ran on Node.js.

Who does what

  1. Mastra

    Runs your TypeScript agents and workflows and calls the ismscopilot_ tools when a step needs compliance judgement.

  2. ISMS Copilot

    Answers with the requirement behind it and checks the draft the step produced.

  3. You

    Decide which steps may call ISMS Copilot and approve the output before it ships.

The tested setup

  1. 1

    Create a token

    Sign up at chat.ismscopilot.com (free, no card), open Settings, Connected apps, and create a token. The Agent delegation preset grants account:read, workspaces:read, conversations:create, company_context:read and memories:read, with no write scopes. Our own check used a narrower token with five read scopes only (account, workspaces, memories, documents, company context), which is enough for the check below. conversations:create lets your agent ask questions, and each question uses your plan's messages. Copy the pat-isms- value once and keep it in ISMS_COPILOT_TOKEN, never in a committed file.

  2. 2

    Install the MCP package

    In your project, install the version this page shows.

    Install
    npm install @mastra/mcp@2.11.0
  3. 3

    Run the check

    Save the module as check-ismscopilot.mjs and run it with ISMS_COPILOT_TOKEN set. It disconnects at the end so Node can exit.

    check-ismscopilot.mjs
    import { MCPClient } from "@mastra/mcp";
    
    const mcp = new MCPClient({
      servers: {
        ismscopilot: {
          url: new URL("https://account.ismscopilot.com/v1/account/mcp"),
          requestInit: { headers: { Authorization: `Bearer ${process.env.ISMS_COPILOT_TOKEN}` } },
        },
      },
    });
    
    const tools = await mcp.listTools();
    console.log(Object.keys(tools));
    const result = await tools.ismscopilot_list_workspaces.execute({});
    console.log(JSON.stringify(result));
    await mcp.disconnect();
    

The server URL, if you add it by hand:

https://account.ismscopilot.com/v1/account/mcp

What the test showed

listTools returned 29 tools prefixed ismscopilot_, and executing ismscopilot_list_workspaces returned the test account's sample workspaces.

Tested with @mastra/mcp 2.11.0, Node.js 26. The token was read-only, on our test account with sample data.

Give the tools to an agent

Pass the object from listTools() as the tools of your Mastra agent, or use the per-request toolsets when each user has their own token. That run needs your model provider's key and was not part of our test.

Every tool, the scopes each one needs and the sign-in options: the ISMS Copilot MCP server.

What it does not do

  • A token belongs to one ISMS Copilot account. A multi-user app needs each user's own token, not one shared server key, so each user's company profile and memories stay their own.
  • ISMS Copilot works from what your agent sends it, plus the company profile, memories and documents you keep in ISMS Copilot. It does not read your systems on its own.
  • Answers and findings are drafts for a person to decide. ISMS Copilot does not certify anyone; your auditor's judgement stays your auditor's.

If something does not work

  • Tool not found? Mastra prefixes every tool with the server key you chose, here ismscopilot_.
  • One token for many users? Do not share it: give each user their own token and pass it per request.

Mastra reference: MCPClient. Connect an agent with a token, in the ISMS Copilot docs.

Every AI and tool that connects: use ISMS Copilot in your AI. ISMS Copilot in the Vercel AI SDK. ISMS Copilot in n8n. ISMS Copilot in Docker MCP Toolkit. Building your own agent? The developer hub.

ISMS Copilot is made by Better ISMS. It is not affiliated with or endorsed by Mastra. Product names belong to their owners. Agents get a Markdown version of this page by sending Accept: text/markdown.

The GRC expert your agent calls.

Free to start, no card. Create a token, run the check, then give the tools to your agent.