meeting-insights-mcp
by oleggohman
README.md
# meeting-insights-mcp
A read-only [MCP](https://modelcontextprotocol.io) server for the **AudioCodes Meeting Insights Integration API v1**. It lets an MCP client such as Claude Code list recorded meetings, read their insights (summaries, action items, decisions, recap templates), fetch transcripts and query the audit, system and API activity logs.
What's included:
- **13 tools**: 12 read-only data tools plus `check_connection`
- **5 resource templates** under `meeting-insights://recordings/...`
- **4 prompts**: `summarize_meeting`, `action_items`, `meetings_digest`, `audit_review`
- **the `meeting-insights` skill**, which teaches the model which tool to pick and how to avoid the API's traps (readiness, paging, template ids)
The server never writes to Meeting Insights. Every tool is annotated `readOnlyHint: true`.
## Prerequisites
- **Node.js 20 or later** to run the server. (Working on the code needs Node.js 22.12 or later; see [Development](#development).)
- **An API application in Meeting Insights.** Create it in **Meeting Insights → Admin Settings → Integrations → API Configuration** and grant it the scopes for what you want to use:
| Scope | Gives access to |
| ------------------- | --------------------------------------------- |
| `extapi/metadata/r` | recordings lists and recording metadata |
| `extapi/insights/r` | insights, insight content and recap templates |
| `extapi/vtt/r` | transcripts |
| `extapi/monitor/r` | audit, system activity and API activity logs |
Note the client ID and the client secret. The server authenticates with the OAuth 2.0 client-credentials grant.
## Configuration
The server reads its configuration from six environment variables, and from nothing else. An empty value counts as unset.
| Variable | Required | Default | Notes |
| ------------------------------- | -------- | ----------------------- | ------------------------------------------------------------------------------------------------------------------------------------------ |
| `MeetingInsights_CLIENT_ID` | yes | – | Client ID of the API application |
| `MeetingInsights_CLIENT_SECRET` | yes | – | Client secret. Never logged; redacted from every log line |
| `MeetingInsights_HOST` | yes | – | Your Meeting Insights API host, as a bare hostname or `https://hostname` (for example `emea.meetinginsights.com` for the EMEA SaaS region) |
| `MeetingInsights_IAM_HOST` | no | `iam.audiocodesaas.com` | Token (IAM) host |
| `MeetingInsights_TIMEOUT_MS` | no | `30000` | Per-request timeout in milliseconds (at most 2147483647) |
| `MeetingInsights_LOG_LEVEL` | no | `info` | `debug`, `info`, `warn` or `error`. Logs go to stderr |
Hosts must be HTTPS hostnames. `http://`, ports, paths, query strings and credentials in the URL are rejected. The server never follows redirects, so the secret and the bearer token only ever reach the configured hosts.
If a required variable is missing, the server still starts and lists its tools, and every tool call returns an error that names the missing variables.
## Install
### As a Claude Code plugin
Once the plugin is published in the `oleggohman/cc-things` marketplace:
```text
/plugin marketplace add oleggohman/cc-things
/plugin install meeting-insights@cc-things
```
The plugin starts the bundled server (`dist/index.js`) with `node` and passes the six `MeetingInsights_*` variables from the environment Claude Code runs in. Export them in your shell profile before you start Claude Code:
```sh
export MeetingInsights_CLIENT_ID="<client id>"
export MeetingInsights_CLIENT_SECRET="<client secret>"
export MeetingInsights_HOST="<your-host>.example.com"
export MeetingInsights_IAM_HOST="iam.audiocodesaas.com" # optional; this is the default
```
The plugin also installs the `meeting-insights` skill.
### Manual setup
Clone the repository. The bundle `dist/index.js` is committed, so no build is needed to run it:
```sh
git clone https://github.com/oleggohman/meeting-insights-mcp.git
```
Then register the server with Claude Code. Export the variables first (as shown above) and pass them by reference:
```sh
claude mcp add meeting-insights \
-e MeetingInsights_CLIENT_ID="$MeetingInsights_CLIENT_ID" \
-e MeetingInsights_CLIENT_SECRET="$MeetingInsights_CLIENT_SECRET" \
-e MeetingInsights_HOST="$MeetingInsights_HOST" \
-e MeetingInsights_IAM_HOST="$MeetingInsights_IAM_HOST" \
-- node /path/to/meeting-insights-mcp/dist/index.js
```
`claude mcp add -e` stores the expanded values, including the client secret, in clear text in Claude Code's configuration file (`~/.claude.json`, or the project's `.mcp.json` with `--scope project`). Passing `"$MeetingInsights_CLIENT_SECRET"` instead of typing the secret keeps it out of your shell history, but not out of that file. To keep the secret out of both, use the `.mcp.json` form below.
Or add it to a `.mcp.json` file. This example takes the values from the environment, so no secret is written to the file:
```json
{
"mcpServers": {
"meeting-insights": {
"command": "node",
"args": ["/path/to/meeting-insights-mcp/dist/index.js"],
"env": {
"MeetingInsights_CLIENT_ID": "${MeetingInsights_CLIENT_ID}",
"MeetingInsights_CLIENT_SECRET": "${MeetingInsights_CLIENT_SECRET}",
"MeetingInsights_HOST": "${MeetingInsights_HOST}",
"MeetingInsights_IAM_HOST": "${MeetingInsights_IAM_HOST:-iam.audiocodesaas.com}"
}
}
}
}
```
Any other MCP client that runs stdio servers works the same way: run `node /path/to/meeting-insights-mcp/dist/index.js` with the variables set.
## Tools
| Tool | API operation | Required scopes |
| ------------------------------------ | --------------------------------------------- | ----------------------------------------- |
| `check_connection` | token + one probe per scope | none (reports each scope) |
| `list_recordings` | `GET /recordings` | `extapi/metadata/r` |
| `list_user_recordings` | `GET /recordings/user/{upn}` | `extapi/metadata/r` |
| `list_recordings_with_insights` | `GET /recordings/insights` | `extapi/metadata/r` + `extapi/insights/r` |
| `list_user_recordings_with_insights` | `GET /recordings/insights/user/{upn}` | `extapi/metadata/r` + `extapi/insights/r` |
| `get_recording` | `GET /recordings/{id}` | `extapi/metadata/r` |
| `get_recording_insights` | `GET /recordings/{id}/insights` | `extapi/metadata/r` + `extapi/insights/r` |
| `get_insight_content` | `GET /recordings/{id}/insights/{insightId}` | `extapi/insights/r` |
| `get_template_content` | `GET /recordings/{id}/templates/{templateId}` | `extapi/insights/r` |
| `get_transcript` | `GET /recordings/{id}/transcript` | `extapi/vtt/r` |
| `get_audit_logs` | `GET /auditLogs` | `extapi/monitor/r` |
| `get_system_activity_logs` | `GET /systemActivityLogs` | `extapi/monitor/r` |
| `get_api_activity_logs` | `GET /apiActivityLogs` | `extapi/monitor/r` |
A few details:
- `check_connection` reports the configured hosts, the token expiry (never the token) and `OK`, `FORBIDDEN`, `ERROR <code>` or `UNTESTED` for each scope. It returns no meeting content.
- On the `*_with_insights` lists, `from`/`to` filter on insight or transcript creation time, not on meeting start time. Use `list_recordings` or `list_user_recordings` for "meetings last week".
- `get_transcript` returns speaker-labelled plain text (`[hh:mm:ss] Speaker: text` per speaker turn) by default, or the raw WebVTT with `format: "vtt"`. Consecutive cues of one speaker are merged into one line; a long turn starts a new timestamped line about every minute (or 1000 characters), and a cue with several speakers gives one line per speaker.
- `get_recording_insights` returns the insight text inline (`contents` on `systemSummaries[]` and the nested `systemMeetingPrep[].systemMeetingPrep[]` entries, `content` on action items, decisions, Q&A, issues and solutions and templates; `systemOutlines[].topics[]` carry titles and times instead). `get_insight_content` and `get_template_content` are needed only when a usable entry's inline text is missing or null.
- Recordings lists without `from`/`to` return the last 7 days (the API defaults `from` to 7 days before `to`, and `to` to now).
- Unknown tool arguments are rejected with a validation error instead of being ignored. Results are compact JSON.
- `get_template_content` takes `systemTemplates[].id` from `get_recording_insights`, not the entry's `templateId` field.
- Insight and template content is returned as the API delivers it, inside the JSON. When `contentType` is `text/html`, the content is HTML.
- API errors come back as tool errors with the error code, HTTP status, description and `request_id`. A 403 also lists the scopes the tool needs.
## Resources
| URI template | MIME type | Same as |
| ----------------------------------------------------------- | ------------------ | ------------------------------------------------------------------------------------ |
| `meeting-insights://recordings/{id}` | `application/json` | `get_recording`. Listing it returns the 20 most recent recordings of the last 7 days |
| `meeting-insights://recordings/{id}/insights` | `application/json` | `get_recording_insights` |
| `meeting-insights://recordings/{id}/insights/{insightId}` | `application/json` | `get_insight_content` |
| `meeting-insights://recordings/{id}/templates/{templateId}` | `application/json` | `get_template_content` |
| `meeting-insights://recordings/{id}/transcript` | `text/vtt` | `get_transcript` with `format: "vtt"` |
## Prompts
| Prompt | Arguments | What it does |
| ------------------- | ---------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `summarize_meeting` | `recordingId` | Summary, decisions, action items and open questions of one recording, from its insights (transcript only for gaps) |
| `action_items` | `recordingId` | Action items of one recording with owner and due date, as a Markdown table |
| `meetings_digest` | `upn`, `from`, `to` (all optional) | Digest of one user's (or everyone's) meetings in a period. Up to 25 recordings. Default period: the last 7 days (the 7 days before `to` when only `to` is given) |
| `audit_review` | `from`, `to` (optional) | Reviews audit and system activity logs of a period for anomalies such as failed logins, exports and deletes |
The prompts make no API calls themselves. They tell the model which tools to call, in which order, and to treat everything the tools return (subjects, names, insight and transcript text) as untrusted data.
## Notes
### Paging: `allPages`, `maxItems`, `truncated`
List and log tools return one API page by default, exactly as the API sends it. With `allPages: true` the tool walks pages of 100 items from `page` and returns `{<items>, count, startPage, pagesFetched, truncated}`, where `<items>` is `recordings` or `data`. It stops at `maxItems` (default 100, max 1000). `truncated: true` means more items may exist: narrow the period or raise `maxItems`.
Recordings lists are 0-based and use `limit`. The three log tools are 1-based and use `pageSize` (1 to 100).
### Readiness
Meeting Insights processes meetings asynchronously. A meeting that ended a few minutes ago usually has metadata, but not yet insights or a transcript.
- An insight entry is unusable only when it has a `recapStatus` other than `Ready`. `Init`, `WaitingForTranscription` and `WaitingForAI` mean it is still processing: retry later. `Failed`, `Empty`, `TranscriptionTooShort`, `AiLimitReached` and `LanguageNotDetected` are final: retrying does not help. Entries without a `recapStatus` (action items, decisions, templates) are usable as they are.
- A transcript is available only when `content.transcriptionInfo[].vttFiles.status` is `Ready`. List tools include `content` only with `withContent: true`.
- While any entry is pending (`Init`, `WaitingForTranscription` or `WaitingForAI`) or the transcript is still being produced (`vttFiles.status` neither `Ready` nor `Failed`), an empty `systemActionItems` or `systemDecisions` array means "not generated yet", not "none": retry later. When nothing is pending and processing ended with a final status (`Failed`, `Empty`, `TranscriptionTooShort`, `AiLimitReached`, `LanguageNotDetected`) or the transcript `Failed`, empty arrays mean none were produced: report the reason, retrying does not help.
### Deviations from the published spec
The server follows the live API where it differs from the published OpenAPI spec:
- **`GET /auditLogs`** pages are 1-based (`page=0` is rejected) and the page size parameter is `pageSize`. The spec's `limit` is ignored by the API. The response has a top-level `data` array with `page`, `pageSize`, `nextPage`, `previousPage`, `pagesCount` and `totalCount`, like the activity logs, not the documented `{pageRecord, userActivityLogs}`. The spec shape is still accepted as a fallback.
- **`GET /apiActivityLogs`** rejects requests without `from`, although the spec marks it optional. `get_api_activity_logs` defaults `from` to 7 days before `to` (or before now, when `to` is omitted).
## Troubleshooting
**Start with `check_connection`.** It shows whether the configuration loads, whether a token can be obtained, and which scopes work.
- **A config error naming variables.** A required variable is unset or empty in the environment, or a host is not a valid HTTPS hostname. Fix it and restart the MCP server (in Claude Code, restart the session or reconnect the server with `/mcp`).
- **`INSUFFICIENT_PERMISSIONS (HTTP 403)` or `FORBIDDEN` for a scope.** The API application lacks that scope. Add it in **Admin Settings → Integrations → API Configuration**. The error message names the scopes the tool needs.
- **"token endpoint blocked or unreachable".** Check `MeetingInsights_IAM_HOST`. Use the default `iam.audiocodesaas.com`. Do not use the IAM URL from the Meeting Insights web app's configuration (an Azure Front Door host): its WAF blocks script clients and answers with an HTML 403.
- **Corporate proxy.** Node's built-in `fetch` ignores `HTTP_PROXY` and `HTTPS_PROXY` unless `NODE_USE_ENV_PROXY=1` is set (Node 24 or later). Add it, together with the proxy variables, to the server's environment, for example in the `env` block of a manual `.mcp.json` setup or in the shell environment Claude Code starts from.
- **`TIMEOUT`.** A request took longer than `MeetingInsights_TIMEOUT_MS` (30 s by default). Narrow the period or the page size, or raise the timeout.
- **`RATE_LIMIT_EXCEEDED (HTTP 429)`.** The server retries a 429 up to 3 times, honouring `Retry-After`. When the API asks to wait longer than 30 seconds it does not retry at all, and the error says how long the API asked to wait. Wait that long (or a little, when no wait is named) and narrow the request.
- **An insight or transcript is missing on a fresh meeting.** See [Readiness](#readiness).
- **More detail.** Set `MeetingInsights_LOG_LEVEL=debug`. Logs go to stderr, with the secret and tokens redacted.
## Development
Development needs Node.js 22.12 or later (the test runner requires it; `.nvmrc` pins Node 22). The committed bundle itself targets and runs on Node.js 20 or later.
```sh
npm ci
npm run lint
npm run typecheck
npm test
```
The plugin runs the committed bundle `dist/index.js`, which must stay byte-identical to the build output. After any change under `src/`, rebuild and check it before you commit:
```sh
npm run build
npm run check:dist
```
`npm run check:dist` rebuilds into a temporary directory and fails if the committed bundle differs.
Tests never call the real API: `fetch` is injected and mocked, and fixtures come only from the spec examples or hand-written placeholders.
### Live smoke test
```sh
MI_LIVE=1 npm run smoke
```
It calls the real API through the MCP tool layer with the configured credentials. It is read-only, uses small time windows and page sizes, and prints only step status and response shapes (top-level keys and array lengths), never tokens, ids, names or meeting content. Without `MI_LIVE=1` it makes no network call.
## License
[MIT](LICENSE)
Third-party software: `dist/index.js` bundles third-party packages; their licence texts are in [THIRD_PARTY_NOTICES](THIRD_PARTY_NOTICES).
This server cannot be deployed
Maintenance
ActivityMaintained
ResponsivenessNo recent community issues