Context7
ส่งคู่มือการใช้ไลบรารีและเฟรมเวิร์กรุ่นล่าสุดให้ AI อ่านก่อนตอบ ช่วยให้โค้ดที่ AI เขียนไม่ใช้คำสั่งเก่าที่เลิกใช้แล้ว
คำอธิบายจากผู้ทำ (ภาษาอังกฤษตามต้นฉบับ)
MCP server for Matrix42: explore the API and data model, search the service desk, act on tickets
สามเรื่องนี้ไม่รวมเป็นคะแนนเดียว เพราะความเห็น การวัด และความนิยม เป็นคนละเรื่องกัน
ตัวนี้ยังไม่ได้เรียบเรียงเป็นภาษาไทย ด้านล่างคือข้อเท็จจริงที่เราอ่านจาก registry
เลือกโปรแกรม AI ที่คุณใช้ แล้วคัดลอกค่าตั้งไปวาง
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ค่าที่ติดป้ายความลับคือกุญแจของบัญชีคุณ อย่าส่งให้ใคร และอย่าวางในแชต
ต้องเตรียมก่อน
คุณใช้แอปไหน
เลือกแอปด้านบน เราจำไว้ให้ ครั้งหน้าปุ่มจะขึ้นว่า “ติดตั้งลง …”
เปิด Claude Desktop → Settings → Developer → Edit Config แล้ววางค่านี้ในไฟล์ claude_desktop_config.json
{
"mcpServers": {
"matrix42": {
"command": "npx",
"args": [
"-y",
"matrix42-mcp"
],
"env": {
"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": "ใส่ค่าของคุณ"
}
}
}
}พิมพ์คำสั่งนี้ใน Terminal
claude mcp add matrix42 --env M42_HOST='ใส่ค่าของคุณ' --env M42_API_TOKEN='ใส่ค่าของคุณ' --env M42_ALLOW_WRITES='ใส่ค่าของคุณ' --env M42_LANGUAGE='ใส่ค่าของคุณ' --env M42_TOOLS='ใส่ค่าของคุณ' --env M42_AUDIT_NOTE='ใส่ค่าของคุณ' --env M42_AGENT_LABEL='ใส่ค่าของคุณ' --env M42_UI_URL='ใส่ค่าของคุณ' --env M42_ALLOW_INSECURE_TLS='ใส่ค่าของคุณ' --env M42_TIMEOUT_MS='ใส่ค่าของคุณ' -- npx -y matrix42-mcpเติมค่าที่เว้นว่างไว้ก่อนรัน
วางในไฟล์ .cursor/mcp.json ของโปรเจกต์ หรือ ~/.cursor/mcp.json
{
"mcpServers": {
"matrix42": {
"command": "npx",
"args": [
"-y",
"matrix42-mcp"
],
"env": {
"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": "ใส่ค่าของคุณ"
}
}
}
}เบราว์เซอร์จะถามก่อนเปิดแอป จากนั้นแอปแสดงค่าตั้งให้ตรวจแล้วกดยืนยัน ช่อง key เว้นว่างไว้ให้คุณใส่เอง
วางในไฟล์ .vscode/mcp.json ของโปรเจกต์
{
"servers": {
"matrix42": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"matrix42-mcp"
],
"env": {
"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": "ใส่ค่าของคุณ"
}
}
}
}เบราว์เซอร์จะถามก่อนเปิดแอป จากนั้นแอปแสดงค่าตั้งให้ตรวจแล้วกดยืนยัน ช่อง key เว้นว่างไว้ให้คุณใส่เอง
ตัวนี้รันในเครื่องคุณ แต่ ChatGPT ต่อได้เฉพาะ server บนอินเทอร์เน็ต ลองเลือกแอปอื่น
ตัวเลือกเก็บในคุกกี้บนเครื่องนี้ ไม่ต้องมีบัญชี
M42_ALLOW_WRITES envM42_LANGUAGE envM42_TOOLS envM42_AUDIT_NOTE envM42_AGENT_LABEL envM42_UI_URL envM42_ALLOW_INSECURE_TLS envM42_TIMEOUT_MS envค่าตั้งนี้สร้างจากข้อมูลใน registry ของผู้ทำ ถ้าไม่ตรงกับ README ให้เชื่อ README
รันในเครื่องคุณ รายการเครื่องมือจะขึ้นในแอป AI หลังติดตั้ง
เราตรวจจากข้อมูลที่ใครก็เปิดดูได้ ยังไม่ได้อ่านโค้ด ข้อที่ไม่เกี่ยวกับตัวนี้ไม่นับในตัวหาร · ตรวจเมื่อ 8 พ.ย. 2569
ชื่อใน registry ยืนยันด้วยบัญชี GitHub sus-tech-gmbh ซึ่งเป็นเจ้าของ repo
ยังไม่ได้อ่านข้อมูล repo จาก GitHub
ยังไม่ได้อ่านข้อมูล repo จาก GitHub
ตัวนี้รันบนเครื่องคุณ ไม่มี endpoint บนอินเทอร์เน็ต
ตัวนี้รันบนเครื่อง ใช้ค่าที่ตั้งในเครื่องแทน
รันในเครื่องคุณ เราอ่านรายการเครื่องมือได้เฉพาะตัวที่มี endpoint บนอินเทอร์เน็ต
เทียบกับทุก server ที่ยังใช้งานในหมวดนี้ทั้งทะเบียน ดาวนับเฉพาะเมื่อผู้ลงทะเบียนเป็นเจ้าของ repo
จากการตรวจเบื้องต้นของเรา ผ่าน 1 จาก 1 ข้อที่ตรวจได้ เรายังไม่ได้อ่านโค้ด ก่อนใส่กุญแจหรือ token ให้ดูว่า server ขอสิทธิ์อะไร และเลือกกุญแจที่ทำได้เท่าที่จำเป็น
ต้องใส่ค่าเหล่านี้: M42_HOST, M42_API_TOKEN
รันบนเครื่องของคุณ โปรแกรม AI จะเปิด server ขึ้นมาเองเมื่อใช้ ข้อมูลไม่ต้องผ่านเซิร์ฟเวอร์ของผู้ทำ (ยกเว้นตัวที่ไปเรียกบริการออนไลน์ต่อ)
repo บน GitHub มีการแก้โค้ดล่าสุด – และส่งรุ่นล่าสุด (0.1.6) เข้า registry 38 วันที่ผ่านมา
โปรแกรมที่รองรับ MCP เช่น Claude Desktop, Claude Code, Cursor และ VS Code ตัวนี้ต้องมี Node.js ในเครื่องด้วย
ในหมวดเดียวกันมี Context7, Codebase Memory, Exa
server หมวดเดียวกันจากผู้ทำคนอื่น เรียงตามดาว
อ่านการ์ด:★ ดาว GitHubiสามเสา: รีวิว · ผลตรวจ · การใช้งานiอัปเดต = วันที่ส่งรุ่นล่าสุดเข้า registryi
ส่งคู่มือการใช้ไลบรารีและเฟรมเวิร์กรุ่นล่าสุดให้ AI อ่านก่อนตอบ ช่วยให้โค้ดที่ AI เขียนไม่ใช้คำสั่งเก่าที่เลิกใช้แล้ว
Codebase knowledge graph for AI agents — 162 languages, sub-ms queries, 99% fewer tokens.
Connect AI agents to Exa for web search, content fetching, and multi-step research.
ส่วนนี้คัดจาก repo ของผู้ทำตามต้นฉบับ PopNx MCP ไม่ได้ตรวจหรือรับรองเนื้อหา ตัด HTML รูปภาพ และสคริปต์ออกแล้ว ลิงก์จะพาออกนอกเว็บ
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.
confirm. The preview is the same plan object that gets executed, so it cannot drift.Understand it
Set it up
Use it
webservice_discovery actionsschema_discovery actionsdata_query actionsservice_desk actionsticket_actions actions (writing data)Work on it
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.
| 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 |
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.
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.
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.
The server runs over stdio: your MCP client starts it. No install step is needed - npx fetches it on demand.
claude mcp add matrix42 \
--env M42_HOST=https://matrix42.example.com \ --env M42_API_TOKEN=your-api-token \ -- npx -y matrix42-mcp
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/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" } } } }
.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.
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
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
ตัดมาแค่ช่วงต้น อ่านต่อใน repo