Zammad (Mojood Connect)

السجل الرسمي الذكاء الاصطناعي والوكلاء

Zammad tickets in Claude: find, summarise, add notes and assign after a yes.

التثبيت

أضف هذا إلى إعدادات MCP في عميلك (Claude Desktop: claude_desktop_config.json، وCursor: ‏.cursor/mcp.json، ويستخدم VS Code وغيره الصيغة نفسها «mcpServers»).

PYPI package mojood-zammad-mcp
Claude Code
claude mcp add zammad-mojood-connect -e 'ZAMMAD_URL=<ZAMMAD_URL>' -e 'ZAMMAD_TOKEN=<your zammad_token>' -e 'ZAMMAD_SAMPLE=<ZAMMAD_SAMPLE>' -- uvx mojood-zammad-mcp==0.1.0 --stdio
إعداد JSON (Claude Desktop وCursor وVS Code)
{
    "mcpServers": {
        "zammad-mojood-connect": {
            "command": "uvx",
            "args": [
                "mojood-zammad-mcp==0.1.0",
                "--stdio"
            ],
            "env": {
                "ZAMMAD_URL": "<ZAMMAD_URL>",
                "ZAMMAD_TOKEN": "<your zammad_token>",
                "ZAMMAD_SAMPLE": "<ZAMMAD_SAMPLE>"
            }
        }
    }
}

متغيرات البيئة

  • ZAMMAD_URL إلزامي Your Zammad address
  • ZAMMAD_TOKEN إلزامي سري A Zammad API token
  • ZAMMAD_SAMPLE 0 for real data (1 labels answers SAMPLE)

التوثيق

مأخوذ من ملف README للمشروع على GitHub ويُحدَّث أسبوعيًا. تفتح الروابط على GitHub.

المحتويات
  1. Zammad MCP server
  2. Tools
  3. Try it locally
  4. The SAMPLE desk
  5. Tests
  6. What a production version adds
  7. License

Zammad MCP server

Ask Claude about your support desk in plain words: what's open for a customer, what needs attention, what a ticket says. Assign tickets and add internal notes from the same chat, with a confirmation step before anything changes. There is no tool that writes to a customer.

Built by Mojood Connect as a working demo for Zammad. It runs against any Zammad through its REST API. This repository includes a local Zammad with SAMPLE data for the support desk of a made-up company, Harbor Trading, so you can try it without touching a real instance.

Tools

ToolWhat it doesChanges anything?
find_ticketsFind tickets by words, or list them: state, priority, owner, customer, company, and whether each is waiting on us or on the customerNo
get_ticketOne ticket with every message in order, internal notes markedNo
customer_overviewA company or person: its people, open tickets and how many are closed; asks which when a name matches severalNo
needs_attentionTickets with no owner, tickets waiting on us (oldest first), overdue pending reminders, high priorityNo
add_internal_noteAn internal note on a ticket, never shown to the customerYes, after confirmation
update_ticketAssign a ticket, or change its state or priorityYes, after confirmation

How changes are made safe. A call to add_internal_note or update_ticket without a confirmation changes nothing: it returns a plain summary ("On #43002 ("Wrong size on 40 room safes, order HT-SO-5521"): assign it to Karim Nasser.") and a one-time code. The change happens only when the same request comes back with that code, within 10 minutes. A code works once, and only for the request it was issued for. The server's instructions tell the model to show the summary and wait for the user's yes. Notes carry "via Claude (Mojood Connect demo)" and every change shows in the ticket's history under the token's user.

The server acts as the user who owns the API token, with that user's Zammad permissions.

Try it locally

Needs Docker (with Compose), uv and Python 3.13. Zammad wants about 4 GB of memory.

scripts/reset.sh                         # local Zammad on http://localhost:8090, filled with the SAMPLE desk
uv run --env-file .env zammad-mcp        # MCP server on http://127.0.0.1:8003/mcp (Streamable HTTP)

docker/compose.yml is Zammad's own compose file (zammad-docker-compose v17.5.4) unchanged; docker/compose.override.yml keeps the port on 127.0.0.1, drops the backup container and Elasticsearch (Zammad then searches its own database). scripts/reset.sh generates every password and the API token itself and keeps them in the git-ignored files docker/.env and .env; nothing is printed. scripts/up.sh starts it again after a restart without touching the data.

Claude Desktop: add this to claude_desktop_config.json (Settings › Developer), with the path to this folder:

{
  "mcpServers": {
    "zammad": {
      "command": "uv",
      "args": ["run", "--directory", "/path/to/zammad-mcp", "--env-file", "/path/to/zammad-mcp/.env", "zammad-mcp", "--stdio"]
    }
  }
}

Then ask: "What's open for Al Noor Hotels?", "What needs attention on the desk?", "Give the room safes ticket to Karim, and note that the 20 litre safes ship Thursday."

Your own Zammad: set ZAMMAD_URL, ZAMMAD_TOKEN (a token from your profile's Token Access) and ZAMMAD_SAMPLE=0.

The SAMPLE desk

Harbor Trading's support desk: three groups (Orders, Deliveries, Billing), four agents, six customer companies, seven customer contacts and 15 tickets. Message times are set relative to the day it is seeded, so there are always tickets with no owner, customers waiting on us for hours, two overdue reminders and a few closed tickets. Everyone and everything in it is made up.

Tests

uv run --env-file .env pytest            # unit tests (a fake Zammad API), plus live tests when the local Zammad runs

What a production version adds

This demo signs in with one API token. A production server for Zammad customers would add sign-in with each agent's own Zammad account, so Claude sees exactly the groups they may see; hosting with an audit log of every tool call; and more of the API (tags, links, time accounting, knowledge base, reply drafts for an agent to send). That is what Mojood Connect builds.

License

Apache 2.0. Zammad is a trademark of Zammad GmbH; this project is not made or endorsed by Zammad GmbH.

الأسئلة الشائعة

ما هو Zammad (Mojood Connect)؟

Zammad tickets in Claude: find, summarise, add notes and assign after a yes.

كيف أثبّت Zammad (Mojood Connect)؟

يعمل على جهازك. في Claude Code: claude mcp add zammad-mojood-connect -e 'ZAMMAD_URL=<ZAMMAD_URL>' -e 'ZAMMAD_TOKEN=<your zammad_token>' -e 'ZAMMAD_SAMPLE=<ZAMMAD_SAMPLE>' -- uvx mojood-zammad-mcp==0.1.0 --stdio. وفي العملاء الآخرين، الصق إعداد JSON من هذه الصفحة في إعدادات MCP الخاصة بهم.

هل يحتاج Zammad (Mojood Connect) إلى مفتاح API؟

نعم. يتطلب ZAMMAD_URL, ZAMMAD_TOKEN، وتضبطها في إعداداته.

هل Zammad (Mojood Connect) مفتوح المصدر؟

نعم. شيفرته متاحة على GitHub بترخيص Apache-2.0.

من يصون Zammad (Mojood Connect)؟

ينشره askmojood. يدرجه AI.tn لكنه لا يصونه ولا يوصي به.

من سجل MCP الرسمي. الإدراج ليس توصية: راجع شيفرة الخادم وصلاحياته قبل منحه الوصول إلى بياناتك.