mcp-bugzilla

nikhilsharma-dev/mcp-bugzilla

3.2

If you are the rightful owner of mcp-bugzilla and would like to certify it and/or have it hosted online, please leave a comment on the right or send an email to henry@mcphub.com.

Bugzilla MCP Server is a bridge between Bugzilla's API and MCP-compatible clients, enabling seamless integration of Bugzilla issue tracking features into AI assistants, chatbots, or other MCP clients.

Bugzilla MCP Server

Description

Bugzilla MCP Server is a Model Context Protocol (MCP) server that acts as a bridge between Bugzilla's API and MCP-compatible clients. It enables seamless integration of Bugzilla issue tracking features into AI assistants, chatbots, or other MCP clients, allowing users to query, create, and manage Bugzilla issues programmatically.

Reference

This server implementation is inspired by the official [Model Context Protocol (MCP) server quickstart guide][1], adapting its structure to interface with the Bugzilla REST API.[https://bugzilla.readthedocs.io/en/latest/api/core/v1/]

How to Use

Prerequisites

  • Python 3.1+ installed
  • uv (a modern Python package/dependency manager)
  • Access to a Bugzilla instance with API access enabled

Installation Steps

  1. Install uv (if not already installed): pip install uv

  2. Clone the repository and enter the project directory: git clone <REPO_URL>
    cd bugzilla-mcp-server

  3. Initialize the project and create a virtual environment: uv init
    uv venv
    source .venv/bin/activate

  4. Install dependencies: uv sync

Configuration

The server requires two environment variables:

  • BUGZILLA_API_URL: The base URL of your Bugzilla instance's REST API (e.g., https://bugzilla.yourdomain.com/rest)
  • BUGZILLA_API_KEY: Your Bugzilla API key
How to Generate an API Key in Bugzilla
  1. Log in to your Bugzilla account.
  2. Navigate to Preferences > API Keys.
  3. Click Generate new API key and copy the generated key.

Set these variables in your shell (eg. ~/.zshrc ) before starting the server:
export BUGZILLA_API_URL="https://bugzilla.yourdomain.com/rest"
export BUGZILLA_API_KEY="your_generated_api_key"

Running the Server

Start the MCP server: python3 server.py

Connecting a Client

  • Use any MCP-compatible client (such as Claude for Desktop or a custom MCP client) to connect to the server.
  • Configure the client to communicate with your running Bugzilla MCP server, typically via standard input/output or a specified transport.

Use Cases

  • AI Assistant Integration: Query, create, or update Bugzilla issues from within an AI assistant or chatbot interface.
  • Automated Reporting: Generate and retrieve bug reports programmatically for dashboards or monitoring tools.
  • Workflow Automation: Integrate Bugzilla actions into CI/CD pipelines or custom automation scripts.

[1]: The implementation follows principles and examples from the Model Context Protocol server quickstart documentation[1].