Skip to main content
Glama

bugzilla-mcp

An MCP server that lets AI agents query Firefox's bug tracker, bugzilla.mozilla.org, for bugs and related information: search, bug details, comment threads, change history, attachments (including Phabricator review links), dependency/regression/duplicate graphs, and product/component/field metadata.

Read-only. Works without credentials for public bugs; an optional API key unlocks private bugs you can see and user lookups.

Requirements

  • Node.js 20 or newer

Related MCP server: Bugsink MCP Server

Install

git clone <this repo> bugzilla-mcp
cd bugzilla-mcp
npm install
npm run build

The server binary is dist/index.js and speaks MCP over stdio.

Configure your MCP client

Cursor

~/.cursor/mcp.json (or .cursor/mcp.json in a project):

{
  "mcpServers": {
    "firefox-bugzilla": {
      "command": "node",
      "args": ["/absolute/path/to/bugzilla-mcp/dist/index.js"],
      "env": {
        "BUGZILLA_API_KEY": "optional"
      }
    }
  }
}

Claude Desktop

claude_desktop_config.json:

{
  "mcpServers": {
    "firefox-bugzilla": {
      "command": "node",
      "args": ["/absolute/path/to/bugzilla-mcp/dist/index.js"]
    }
  }
}

Claude Code

claude mcp add firefox-bugzilla -- node /absolute/path/to/bugzilla-mcp/dist/index.js

Environment variables

Variable

Default

Purpose

BUGZILLA_API_KEY

unset

API key from https://bugzilla.mozilla.org/userprefs.cgi?tab=apikey. Enables private bugs, user lookups, whoami, and higher rate limits.

BUGZILLA_URL

https://bugzilla.mozilla.org

Point at another Bugzilla 5+ instance.

BUGZILLA_TIMEOUT_MS

60000

Per-request timeout.

Tools

Tool

What it does

search_bugs

Search with Bugzilla quicksearch syntax and/or structured filters (product, component, status, resolution, type, priority, severity, keywords, whiteboard, summary, assignee, reporter, milestone, version, platform, OS, creation/last-change time). Supports boolean-chart advanced_filters for any field, order, paging, and count_only.

get_bug

Full metadata for one or more bugs by ID or alias: status/resolution, product/component, assignee, dependencies, regressions, duplicates, flags, see-also, keywords, whiteboard, timestamps. include_fields: ["_all"] returns every field including cf_* custom fields.

get_bug_comments

Comment thread with paging, newest-first ordering, new_since filtering, and per-comment truncation. Comment #0 is the description.

get_bug_history

Field-change history (status transitions, priority, assignee, flags, keywords…) with optional field filtering. CC churn is dropped by default.

get_bug_attachments

Attachment metadata for a bug. Phabricator review stubs are resolved to phabricator_url.

get_attachment

One attachment by ID. Text-based content (patches, logs, JSON, HTML…) is returned decoded; binaries as base64.

get_related_bugs

Resolves depends_on, blocks, regressed_by, regressions, duplicates, dupe_of, and same-instance see_also links into bug summaries in one call.

list_products

Products you can search or file in, with descriptions.

get_product

A product's components (descriptions, triage owners, teams), plus versions and milestones on request.

get_field_values

Legal values for a field (status, resolution, priority, severity, type, keywords, op_sys, platform, any cf_*).

get_user

Look up users by login, ID, or fuzzy match (requires BUGZILLA_API_KEY on bugzilla.mozilla.org).

whoami

Bugzilla instance, version, and the authenticated user if an API key is set.

A bugzilla://bug/{id} resource template is also exposed; it returns a bug's metadata plus its full comment thread as JSON.

Search tips for agents

  • Quicksearch only matches open bugs unless the query starts with ALL. Structured filters match all bugs unless status is given; use status: ["__open__"] or ["__closed__"].

  • Time filters accept ISO timestamps, dates, or relative shorthand like -7d, -2w, -1m.

  • advanced_filters map to Bugzilla's boolean charts. Useful fields: longdesc (comment text, slow; always narrow with product/status), cf_crash_signature, flagtypes.name (e.g. needinfo?), commenter, cc, attachments.mimetype, delta_ts with changedafter.

  • Discover valid component names with get_product before filtering on component.

Development

npm run dev        # tsc --watch
npm run typecheck
npm run inspect    # open the MCP Inspector against the built server

Source layout:

  • src/bugzilla.ts – minimal Bugzilla REST client (URL building, API-key header, timeouts, error mapping)

  • src/format.ts – shapes raw API objects into compact, agent-friendly JSON

  • src/tools.ts – MCP tool and resource registrations

  • src/index.ts – stdio server entry point

License

MIT

Available Tools

12 tools
get_attachmentGet attachmentA
Read-onlyIdempotent

Fetch a single attachment by ID. Text-based attachments (patches, logs, text, JSON, HTML, source code) are returned decoded as text; binary attachments are returned as base64 when include_content is set.

Inputs: attachment_id (required), max_chars, include_content.

get_bugGet bug detailsA
Read-onlyIdempotent

Fetch one or more bugs by ID or alias with full metadata (status, resolution, product/component, assignee, dependencies, regressions, duplicates, flags, see-also links, keywords, whiteboard, timestamps). Does not include comments; use get_bug_comments for those.

Inputs: ids (required), include_fields.

get_bug_attachmentsList bug attachmentsA
Read-onlyIdempotent

List attachments (patches, screenshots, logs, test cases) on a bug with metadata. Attachment content is not included; use get_attachment to fetch a specific attachment's content.

Inputs: bug_id (required), include_obsolete.

get_bug_commentsGet bug commentsA
Read-onlyIdempotent

Fetch the comment thread for a bug. Comment #0 is the original description. Supports paging, newest-first ordering, filtering by time, and truncating long comments.

Inputs: bug_id (required), limit, order, offset, +3 more.

get_bug_historyGet bug change historyA
Read-onlyIdempotent

Fetch the field-change history of a bug (status/resolution transitions, priority changes, assignee changes, flag changes, CC additions, etc.). Optionally filter to specific fields or a time window.

Inputs: bug_id (required), limit, fields, new_since, +1 more.

get_field_valuesGet legal field valuesA
Read-onlyIdempotent

Get the legal values for a bug field (e.g. status, resolution, priority, severity, bug_type, keywords, platform, op_sys, or any cf_* custom field). Useful for building precise searches.

Inputs: field (required), include_inactive.

get_productGet product componentsA
Read-onlyIdempotent

Get a product's details including its components (with descriptions and triage owners), active versions, and milestones. Use this to find the right component name before filing or searching.

Inputs: product (required), component_filter, include_inactive_components, include_versions_and_milestones.

get_userLook up usersA
Read-onlyIdempotent

Look up Bugzilla users by login/email, numeric ID, or a fuzzy match on name/nickname (e.g. ':dholbert'). Note: bugzilla.mozilla.org only allows user lookups when authenticated with BUGZILLA_API_KEY.

Inputs: ids, match, names.

list_productsList productsA
Read-onlyIdempotent

List Bugzilla products (e.g. Firefox, Core, Toolkit, DevTools, Fenix, GeckoView, Thunderbird, Web Compatibility). Returns names and descriptions; use get_product to see a product's components.

Inputs: type, name_filter, include_inactive.

search_bugsSearch Bugzilla bugsA
Read-onlyIdempotent

Search bugzilla.mozilla.org for bugs. Combine free-text quicksearch with structured filters.

Quicksearch syntax highlights (https://bugzilla.mozilla.org/page.cgi?id=quicksearch.html):

  • Plain words search summary/comments/whiteboard; a leading ALL includes closed bugs, otherwise only open bugs are matched.

  • Prefix shortcuts: product:Firefox, component:"Address Bar", status:NEW, assignee:someone@mozilla.com, keyword:crash, whiteboard:[foo], flag:needinfo?, P1, S2, regression.

  • A bare bug number returns that bug.

Structured filters (product/component/status/...) apply to all bugs regardless of open/closed unless status is given. status accepts real statuses (UNCONFIRMED, NEW, ASSIGNED, REOPENED, RESOLVED, VERIFIED, CLOSED) or the pseudo-values __open__ / __closed__ / __all__. Time filters accept ISO timestamps (2024-01-01T00:00:00Z), dates (2024-01-01) or relative values like -7d, -2w, -1m, -1y. Use advanced_filters for anything not covered (e.g. {field: "cf_crash_signature", operator: "substring", value: "nsThread"}, {field: "flagtypes.name", operator: "substring", value: "needinfo?"}, {field: "delta_ts", operator: "changedafter", value: "-7d"}). Full-text comment searches (longdesc) are slow on bugzilla.mozilla.org; always narrow them with product/status filters. Set count_only to get just the number of matching bugs.

Inputs: type, limit, order, offset, +22 more.

whoamiCurrent user / server infoA
Read-onlyIdempotent

Report which Bugzilla instance this server talks to, its version, and (if BUGZILLA_API_KEY is configured) the authenticated user.

Inputs: no named parameters.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    A3.9/5.0

    Scored across 12 tools

    Disambiguation5/5

    Each tool targets a clearly distinct resource or action: search, bug details, comments, history, attachments, related bugs, products, field values, user lookup, and instance info. Even related tools like get_bug and get_related_bugs are differentiated by descriptions: the former returns metadata with links, the latter resolves and summarizes the relationship graph.

    Naming Consistency4/5

    The vast majority of tools follow a consistent verb_noun snake_case pattern (search_bugs, get_bug, get_bug_comments, get_product). The only deviation is whoami, which breaks the pattern but is a recognizable standard command and self-explanatory.

    Tool Count5/5

    Twelve tools is well-scoped for a Bugzilla read/query server. Each tool covers a meaningful operation without redundancy, and the count is neither too thin nor bloated.

    Completeness2/5

    The toolset is comprehensive for reading and searching Bugzilla data but lacks the core lifecycle operations expected of a bug tracker: there is no create_bug, update_bug, add_comment, or attachment upload tool. The get_product description even mentions 'before filing,' implying filing should be possible, but no such tool exists, which would cause agent failures for write-oriented tasks.

    Maintenance

    ActivityStale
    ResponsivenessOutdated data

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      B
      quality
      D
      maintenance
      Enables AI assistants to query and analyze errors from Bugsink self-hosted error tracking instances. Supports listing projects, teams, issues, and viewing detailed error events with stacktraces.
      16
      20
      MIT
    • A
      license
      B
      quality
      D
      maintenance
      Provides AI agents with structured access to the OWASP Bug Logging Tool (BLT) ecosystem for logging bugs, triaging issues, and managing security workflows. It enables actions like submitting vulnerabilities, tracking contributor leaderboards, and awarding gamified bacon points through a unified interface.
      4
      9
      AGPL 3.0
    • A
      license
      A
      quality
      C
      maintenance
      Provides AI assistants with direct access to MantisBT issue trackers via the REST API, enabling reading, updating, resolving, and semantically searching issues.
      20
      213 npm
      MIT