Matrix42
概览
作者提供的说明(英文原文)
MCP server for Matrix42: explore the API and data model, search the service desk, act on tickets
PopNx MCP 的三大支柱
这三项永远不会合并成一个分数:意见、测量和人气是不同的东西。
- 用户评价i暂无评价评价功能将在后续阶段与账户功能一起开放
- 我们的基础检查i1 项中通过 1 项依据公开信息检查;尚未扫描代码
- 使用情况i非常新↓ 51/周 · ★ –
它能帮你做什么
我们还没有为它写通俗的介绍。下面是我们从注册中心读取到的事实。
- 连接方式: 在你的电脑上运行
- 传输方式: stdio
- 分类: 搜索与 AI 记忆
- 你需要填写:M42_HOST, M42_API_TOKEN
安装
选择你使用的 AI 应用,然后复制设置。
安装之前
- 基础检查:1 项中通过 1 项
- 在你的电脑上运行,拥有你的用户账户的权限(文件、网络、应用)。
- 需要你自己填写:
M42_HOST,M42_API_TOKEN,M42_ALLOW_WRITES,M42_LANGUAGE,M42_TOOLS,M42_AUDIT_NOTE,M42_AGENT_LABEL,M42_UI_URL,M42_ALLOW_INSECURE_TLS,M42_TIMEOUT_MS
标为机密的值是你账户的钥匙。千万不要分享给别人,也不要粘贴到聊天里。
你需要
- npm已安装 Node.js(用于 npx 命令)
你用的是哪个应用?
在上方选择你的应用。我们会记住它,下次按钮会显示“安装到 …”。
打开 Claude Desktop → Settings → Developer → Edit Config,把下面的内容粘贴到 claude_desktop_config.json
{
"mcpServers": {
"matrix42": {
"command": "npx",
"args": [
"-y",
"matrix42-mcp"
],
"env": {
"M42_HOST": "your-value",
"M42_API_TOKEN": "your-value",
"M42_ALLOW_WRITES": "your-value",
"M42_LANGUAGE": "your-value",
"M42_TOOLS": "your-value",
"M42_AUDIT_NOTE": "your-value",
"M42_AGENT_LABEL": "your-value",
"M42_UI_URL": "your-value",
"M42_ALLOW_INSECURE_TLS": "your-value",
"M42_TIMEOUT_MS": "your-value"
}
}
}
}在终端中运行这条命令
claude mcp add matrix42 --env M42_HOST=your-value --env M42_API_TOKEN=your-value --env M42_ALLOW_WRITES=your-value --env M42_LANGUAGE=your-value --env M42_TOOLS=your-value --env M42_AUDIT_NOTE=your-value --env M42_AGENT_LABEL=your-value --env M42_UI_URL=your-value --env M42_ALLOW_INSECURE_TLS=your-value --env M42_TIMEOUT_MS=your-value -- npx -y matrix42-mcp运行前请先填写空着的值。
或者自己复制设置
粘贴到项目中的 .cursor/mcp.json,或 ~/.cursor/mcp.json
{
"mcpServers": {
"matrix42": {
"command": "npx",
"args": [
"-y",
"matrix42-mcp"
],
"env": {
"M42_HOST": "your-value",
"M42_API_TOKEN": "your-value",
"M42_ALLOW_WRITES": "your-value",
"M42_LANGUAGE": "your-value",
"M42_TOOLS": "your-value",
"M42_AUDIT_NOTE": "your-value",
"M42_AGENT_LABEL": "your-value",
"M42_UI_URL": "your-value",
"M42_ALLOW_INSECURE_TLS": "your-value",
"M42_TIMEOUT_MS": "your-value"
}
}
}
}浏览器会先询问是否打开应用,然后应用会显示设置并请你确认。密钥的值会留空,由你自己填写。
或者自己复制设置
粘贴到项目中的 .vscode/mcp.json
{
"servers": {
"matrix42": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"matrix42-mcp"
],
"env": {
"M42_HOST": "your-value",
"M42_API_TOKEN": "your-value",
"M42_ALLOW_WRITES": "your-value",
"M42_LANGUAGE": "your-value",
"M42_TOOLS": "your-value",
"M42_AUDIT_NOTE": "your-value",
"M42_AGENT_LABEL": "your-value",
"M42_UI_URL": "your-value",
"M42_ALLOW_INSECURE_TLS": "your-value",
"M42_TIMEOUT_MS": "your-value"
}
}
}
}浏览器会先询问是否打开应用,然后应用会显示设置并请你确认。密钥的值会留空,由你自己填写。
这个服务器在你的电脑上运行,而 ChatGPT 只能连接互联网上的服务器。请选择其他应用。
你的选择通过 Cookie 保存在这台设备上,无需账户。
需要你填写的值
- Base URL of the Matrix42 instance
- API token created in the Matrix42 Administration application
M42_ALLOW_WRITESenvExpose the tools that modify tickets. Off by default, which keeps the server read-onlyM42_LANGUAGEenvResponse language, sent as the Explicit-Language headerM42_TOOLSenvComma-separated tool ids to expose. Left unset, all tools are exposedM42_AUDIT_NOTEenvMark created tickets with an internal note saying they were raised through this serverM42_AGENT_LABELenvHow the assistant is named in that noteM42_UI_URLenvOrigin of the web interface, for deep links. Discovered from the instance when unsetM42_ALLOW_INSECURE_TLSenvSkip TLS certificate verification. Only for self-signed development instancesM42_TIMEOUT_MSenvPer-request timeout in milliseconds
这些设置是根据作者在注册中心的条目生成的。如果 README 的写法不同,请以 README 为准。
它能做什么
它在你的电脑上运行;安装后,工具列表会显示在你的 AI 应用中。
基础检查i
我们检查的是任何人都能看到的信息;我们没有阅读代码。不适用的检查项不计入总数。 · 检查于 2026年11月9日
- ✓ 通过
作者与仓库一致
注册名称已通过 GitHub 账户 sus-tech-gmbh 验证,该账户拥有此仓库
- … 尚未检查
仍在维护
我们还没有从 GitHub 读取这个仓库
- … 尚未检查
有许可证
我们还没有从 GitHub 读取这个仓库
- – 不适用
端点有响应
它在你的电脑上运行,没有互联网端点
- – 不适用
使用 OAuth 登录
在你的电脑上运行,改用本地设置
- … 尚未检查
工具描述中没有隐藏指令
它在你的电脑上运行;我们只能读取互联网端点的工具列表
与“搜索与 AI 记忆”中的其他服务器比较i
- 星标数多于此分类中其他 5763 个服务器的 0%
- 发布到注册中心的时间比此分类中其他 5763 个服务器的 50% 更新
- 基础检查结果等于或优于此分类中其他 5763 个服务器的 100%
与注册中心里这个分类中所有活跃的服务器比较。只有当发布者拥有该仓库时,星标数才计入。
常见问题
Matrix42 安全吗?
它在 1 项适用的基础检查中通过了 1 项。我们没有阅读代码。在添加密钥或令牌之前,请先看看这个服务器要求哪些权限,并使用只具备所需权限的密钥。
它需要哪些密钥或代码?
你需要填写:M42_HOST, M42_API_TOKEN
它在我的电脑上运行还是在云端?
它在你的电脑上运行。你的 AI 应用会在需要时启动它,数据不会经过作者的服务器(除非它自己调用在线服务)。
它还在维护吗?
GitHub 仓库最后更新于–,最新版本(0.1.6)于39天前进入注册中心。
哪些应用可以使用它?
支持 MCP 的应用,例如 Claude Desktop、Claude Code、Cursor 和 VS Code。你的电脑上还需要有 Node.js。
有什么可以替代它?
同一分类中有:Context7, Codebase Memory, Exa
替代选择
同一分类中其他作者的服务器,按星标数排序。
如何看卡片:↓ 每周下载量i★ GitHub 星标i三大支柱:评价 · 检查 · 使用情况i更新 = 最新版本发布到注册中心的时间i
Codebase Memory
Codebase knowledge graph for AI agents — 162 languages, sub-ms queries, 99% fewer tokens.
Exa
Connect AI agents to Exa for web search, content fetching, and multi-step research.
作者的 README
打开 README
按原文从作者的仓库复制。PopNx MCP 没有审查或背书其内容。HTML、图片和脚本已被移除。链接会离开本站。
Matrix42 MCP Server
Give your AI assistant a safe, read-only-by-default window into Matrix42.
A Model Context Protocol server that lets an assistant explore a Matrix42 instance the way an experienced consultant would: find the right web service, read the real data model, query records with valid filters, search the service desk, and - only if you switch it on - act on tickets.
The server holds the credentials and talks to Matrix42 on the assistant's behalf: it performs the API-token exchange, sets the Explicit-Language header, and handles TLS. The assistant never sees your credentials.
npx matrix42-mcp --help
[!IMPORTANT]
This is an independent community project. It is **not affiliated with, endorsed by, sponsored
by, or supported by Matrix42 AG.** "Matrix42" is a trademark of its respective owner and is used
here only to describe what this software interoperates with. Support comes from the community via
GitHub issues - **do not contact Matrix42
support about this project**, and do not expect a service-level agreement of any kind. It is
provided "as is" under the MIT licence.
[!NOTE]
Status: early release. The server is read-only by default - write tools are not even listed
unless you set
M42_ALLOW_WRITES=1.
Highlights
- Read-only by default. Write tools are absent from the tool list unless explicitly enabled.
- Never guesses. Every column is resolved against your instance's live schema before a query runs, so a field your instance does not have is reported - not sent and turned into an opaque 500.
- Teaches, then acts. Four written guides ship with the server as MCP resources, covering the data model, the schema, the ASQL filter language and the REST conventions.
- Preview before you write. Every write returns the exact request it *would* send until you pass
confirm. The preview is the same plan object that gets executed, so it cannot drift. - Safe defaults where it counts. Notification e-mails are off, journal entries are internal, and cascading closes are opt-in.
- No Matrix42 code or content. Every guide is original prose that links to the official docs rather than reproducing them.
Table of contents
Understand it
- Why
- What it can do
- What a conversation looks like
Set it up
- Requirements
- Creating an API token
- Configuration
- Client setup
- Claude Code
- Claude Desktop
- Cursor
- VS Code (GitHub Copilot)
- Verifying the connection
Use it
- Tools and actions
webservice_discoveryactionsschema_discoveryactionsdata_queryactions- Links into the web interface
service_deskactionsticket_actionsactions (writing data)- Preview, then confirm
- Prompts
- Resources
- Security notes
Work on it
- Development
- How it fits together
- Layout
- Roadmap
- Contributing
- Support
- Project
- Security
- License
Why
Matrix42's API surface is large (a typical instance exposes ~190 web services and ~1,100 operations), plus a data model of ~800 data definitions and ~240 configuration items, and an assistant has no way to know what exists. Point it at this server and it can search for the right endpoint, read the exact contract, and then write correct integration code - instead of guessing at URLs, auth, and headers.
What it can do
| Discover the API | ~1,100 operations with full request and return contracts, and whether each is update-safe |
| Understand the model | 785 data definitions, 237 configuration items, pickup values, relations and cardinality |
| Read records | ASQL queries with paging, saved views, journal, attachments, and links into the web interface |
| Work the service desk | Search seven ticket kinds by name, service levels, thirteen curated domains, or search all of them at once |
| Act on tickets | Create, close, classify, take over, forward, pause, reopen, set deadlines, track time - each previewed first |
What a conversation looks like
You: Which open hardware tickets are still unresolved, and are any past their service level?
The assistant works it out without you naming a single id:
Note what did not happen: no GUID lookups, no guessed attribute names, and nothing was written. Note also what the server refuses: a filter Matrix42 accepts but never applies, so an unfiltered answer is never mistaken for a filtered one.
Requirements
- Node.js 22.19 or newer (required by undici, the HTTP client)
- A Matrix42 instance and either an API token (recommended) or basic-auth credentials
Creating an API token
In the Matrix42 Administration application, create an API token for the account the assistant should act as. The server exchanges it for a short-lived access token automatically and re-exchanges it before it expires.
Basic auth is supported but discouraged: many instances accept the credentials yet still refuse API
access with
403because of role/audience restrictions.
Configuration
All configuration is via environment variables.
| Variable | Required | Default | Description |
|---|---|---|---|
M42_HOST | ✅ | - | Base URL of the instance, e.g. https://matrix42.example.com |
M42_API_TOKEN | ✅¹ | - | API token; exchanged for an access token automatically |
M42_USERNAME / M42_PASSWORD | ✅¹ | - | Basic-auth alternative to M42_API_TOKEN |
M42_LANGUAGE | en-US | Response language, sent as Explicit-Language | |
M42_TOOLS | all | Comma-separated tool ids to expose | |
M42_ALLOW_WRITES | 0 | Set to 1 to expose tools that modify data. Write tools are not registered at all unless this is set. | |
M42_ALLOW_INSECURE_TLS | 0 | Set to 1 to skip TLS verification (self-signed dev instances only) | |
M42_AUDIT_NOTE | 1 | Mark created tickets with an internal note saying they were raised through this server. Set to 0 to disable. | |
M42_AGENT_LABEL | Matrix42 MCP server | How the assistant is named in that note | |
M42_UI_URL | discovered | Origin of the web interface, for deep links. Discovered from the instance's web shell config when unset. | |
M42_TIMEOUT_MS | 30000 | Per-request timeout |
¹ Provide either M42_API_TOKEN or both M42_USERNAME and M42_PASSWORD.
Client setup
The server runs over stdio: your MCP client starts it. No install step is needed - npx fetches it on demand.
Claude Code
claude mcp add matrix42 \
--env M42_HOST=https://matrix42.example.com \ --env M42_API_TOKEN=your-api-token \ -- npx -y matrix42-mcp
Claude Desktop
claude_desktop_config.json (macOS: ~/Library/Application Support/Claude/, Windows: %APPDATA%\Claude\)
{
"mcpServers": { "matrix42": { "command": "npx", "args": ["-y", "matrix42-mcp"], "env": { "M42_HOST": "https://matrix42.example.com", "M42_API_TOKEN": "your-api-token" } } } }
Cursor
~/.cursor/mcp.json (global) or .cursor/mcp.json (per project)
{
"mcpServers": { "matrix42": { "command": "npx", "args": ["-y", "matrix42-mcp"], "env": { "M42_HOST": "https://matrix42.example.com", "M42_API_TOKEN": "your-api-token" } } } }
VS Code (GitHub Copilot)
.vscode/mcp.json - this shape prompts for the token instead of storing it in the file:
{
"inputs": [ { "id": "m42-token", "type": "promptString", "description": "Matrix42 API token", "password": true } ], "servers": { "matrix42": { "type": "stdio", "command": "npx", "args": ["-y", "matrix42-mcp"], "env": { "M42_HOST": "https://matrix42.example.com", "M42_API_TOKEN": "${input:m42-token}" } } } }
Other stdio-capable clients (Windsurf, Cline, Zed, …) use the same command / args / env shape.
Verifying the connection
Ask the assistant to call server_info, or run the bundled smoke test against your instance:
git clone https://github.com/sus-tech-gmbh/M42-MCP.git
cd M42-MCP && npm install && npm run build
M42_HOST=https://matrix42.example.com \ M42_API_TOKEN=your-api-token \ node scripts/smoke.mjs
It connects as a real MCP client and exercises every tool.
You can also run the CLI directly:
npx matrix42-mcp --help # usage and configuration
npx matrix42-mcp --tools # available tool ids
Tools and actions
Six tools, each grouping a set of actions. Everything the server can do lives here - the read tools first, then the one that writes.
| Tool | What it does |
|---|---|
server_info | Reports which Matrix42 instance is connected and verifies the credentials work. Never returns credentials. |
webservice_discovery | Discovers the REST API. See the actions below. |
schema_discovery | Explores the data model: data definitions, configuration items, attributes, relations, pickup values. |
data_query | Reads records: ASQL queries, saved views, journal entries, attachments, plus an ASQL guide and validator. |
service_desk | Searches tickets of any kind, answers service-level questions, and browses assets, contracts, catalog services, bookings, knowledge articles, approvals, imports and workflow instances. |
ticket_actions | Writes - the ticket lifecycle: create, close, take over, forward, pause, reopen, set deadlines, track time, add journal entries. Only present when M42_ALLOW_WRITES=1. |
webservice_discovery actions
| Action | Parameters | Returns |
|---|---|---|
api_overview | - | General Matrix42 API conventions: token exchange, Explicit-Language, Public vs Product API, common data surfaces. Useful before writing standalone integration code. |
| list_operations | search?, service_id?, limit? | Operations as {id, name, method, path, service, documentation}. search filters on name, documentation, and service name. Defaults t
只显示了开头部分;其余内容请在仓库中阅读