Connector guide2-minute read7 MCP toolsEN · DE · IT

How to Connect Matrix42 to Gemini — via MCP

Matrix42 Enterprise Service Management: query any configuration item, incident, service request, asset or user with Matrix42's fragment query API. Bearer token minted from an API token against your own instance.

HCBy HelpCode teamUpdated 2 min read Open-source on GitHub

No credit card · 7-day trial · Self-host alternative available

Matrix42

Matrix42

Matrix42 Enterprise Service Management: query any configuration item, incident, service request, asset or user with Matrix42's fragment query API. Bearer token minted from an API token against your own instance.

tools

7

Region

DE

Category

IT Service Management

Authentication

Sign-in token

Required env vars

MATRIX42_URLMATRIX42_API_TOKEN
Install in one click on Cloud

7-day free trial · No credit card

  • 7-day free trial
    No credit card required
  • GDPR & SOC 2 ready
    EU data residency, audit logs
  • Open-source on GitHub
    Open source · AGPL-3.0
  • Works with ChatGPT, Claude, Gemini
    Any MCP-compatible client

Skip the install. Get this working in under 2 minutes.

Start a free trial on cloud.anythingmcp.com, add the Matrix42 in one click, then point your AI client (Claude, ChatGPT, Copilot or Cursor) at the generated MCP endpoint. No Docker, no git clone, zero engineering experience required.

Start free trial

Summary

Matrix42 Enterprise Service Management: query any configuration item, incident, service request, asset or user with Matrix42's fragment query API. Bearer token minted from an API token against your own instance.

Try asking

Example prompts for Matrix42

Click any prompt to copy it. Paste into Claude, ChatGPT, Cursor, Gemini, Copilot or OpenClaw to run it against this connector.

Matrix42 · live via MCP
Share
Opus 4.7

Claude is AI and can make mistakes. Please double-check responses.

💡 No install? Use cloud.anythingmcp.com directly. Sign in, click Connectors → Matrix42, paste your credentials, mint an MCP API key — done. No Docker, no git clone, no local server.

Matrix42 + Gemini

Matrix42 Enterprise Service Management: query any configuration item, incident, service request, asset or user with Matrix42's fragment query API. Bearer token minted from an API token against your own instance.

Prerequisites

See the full setup instructions baked into the connector (visible in the in-app store when you select the connector). The required environment variables for this connector are:

MATRIX42_URL, MATRIX42_API_TOKEN

Step 1 — Get credentials

Setup

  1. In Matrix42 open Administration → Integration → API Tokens and create a token for a service account with the roles the agent needs. Matrix42 applies role-based access on top of the API, so a restricted account sees fewer fragments.
  2. Set MATRIX42_URL to your instance root (e.g. https://esm.example.com/M42Services, no trailing slash) and MATRIX42_API_TOKEN to the token.
  3. The adapter exchanges that token for a short-lived bearer at /api/ApiToken/Token and refreshes it automatically. AnythingMCP stores the bearer encrypted in connector_auth_cache.

…(continued in the in-app connector instructions)

Step 2 — Install the adapter

curl -fsSL https://raw.githubusercontent.com/HelpCode-ai/anythingmcp/main/docker-compose.quickstart.yml -o docker-compose.yml
printf 'JWT_SECRET=%s\nENCRYPTION_KEY=%s\n' "$(openssl rand -hex 32)" "$(openssl rand -hex 32)" > .env
docker compose up -d

Step 3 — Add the connector in Gemini

Gemini CLI reads MCP servers from ~/.gemini/settings.json (or %APPDATA%\gemini\settings.json on Windows). Add:

{
  "mcpServers": {
    "anythingmcp": {
      "httpUrl": "https://cloud.anythingmcp.com/mcp",
      "headers": { "Authorization": "Bearer YOUR_MCP_API_KEY" }
    }
  }
}
  1. Get your MCP API key from AnythingMCP → Profile → MCP API Keys → New Key.
  2. Save the file and restart gemini.
  3. Run /mcp inside the Gemini CLI — Matrix42 should be listed as available.
  4. Vertex AI Studio: pass https://cloud.anythingmcp.com/mcp to the tools array of your request with the same Bearer header.

Available tools

ToolWhat it does
matrix42_query_fragmentsQuery any Matrix42 fragment by name with a column list and a SQL-flavoured where clause
matrix42_get_fragment_schemaRead the column definitions of one fragment: the real column names, their types and their relations
matrix42_query_incidentsQuery incidents with a where clause over the incident fragment: state, priority, category, reported date and the affected user
matrix42_query_service_requestsQuery service requests with a where clause: their state, requested service, requester and fulfilment dates
matrix42_query_assetsQuery the asset base: hardware and software configuration items with their name, type, serial number, status and assigned user
matrix42_query_usersQuery the user base with their display name, e-mail, department and location
matrix42_get_objectRead one configuration item by its object id, returning the named fragments attached to it

FAQ

Does Gemini 1.5 Pro or 2.x support MCP? Yes — Gemini CLI ≥ 0.4 and Vertex AI tools API both accept MCP httpUrl connectors with Bearer headers.

Next steps

Was this guide helpful?

Your Matrix42 agent is one click away.

Install the connector, paste the key, prompt Gemini. Free for 7 days, no credit card.

Related guides

connectors

How to Connect Matrix42 to ChatGPT — via MCP

Matrix42 Enterprise Service Management: query any configuration item, incident, service request, asset or user with Matrix42's fragment query API. Bearer token minted from an API token against your own instance.

connectors

How to Connect Matrix42 to Claude — via MCP

Matrix42 Enterprise Service Management: query any configuration item, incident, service request, asset or user with Matrix42's fragment query API. Bearer token minted from an API token against your own instance.

connectors

How to Connect Matrix42 to Cursor — via MCP

Matrix42 Enterprise Service Management: query any configuration item, incident, service request, asset or user with Matrix42's fragment query API. Bearer token minted from an API token against your own instance.

connectors

Matrix42 to MCP — Drive Matrix42 from any AI Agent

Matrix42 Enterprise Service Management: query any configuration item, incident, service request, asset or user with Matrix42's fragment query API. Bearer token minted from an API token against your own instance.

connectors

How to Connect AFAS Profit to Gemini — via MCP

AFAS Profit — Dutch ERP and HR: read any published GetConnector, list what is available, and inspect a connector's metadata. Token auth with AFAS's base64-wrapped XML token.

connectors

How to Connect Aruba Fatturazione Elettronica to Gemini — via MCP

Aruba Fatturazione Elettronica: send and track Italian e-invoices through the Sistema di Interscambio, read received invoices and their SDI notifications. Token auth against Aruba's B2B gateway.