Skip to main content

HC MCP server for Jira integration

Project description

hc-mcp-jira

MCP server for Jira integration, providing tools to interact with Jira through the Model Context Protocol (MCP).

Overview

This server enables seamless integration with Jira, allowing you to perform common Jira operations through MCP tools. It supports comprehensive issue management, project exploration, and user operations.

Features

The server provides the following Jira integration tools:

  • get_current_user: Get information about the currently authenticated user
  • create_issue: Create a new Jira issue with customizable fields
  • update_issue: Update an existing issue's fields and status
  • get_issue: Get complete issue details
  • search_issues: Search for issues in a project using JQL
  • add_comment: Add a comment to a Jira issue
  • list_projects: List all accessible Jira projects
  • delete_issue: Delete a Jira issue
  • create_issue_link: Create a link between two issues

Installation

The package supports multiple installation methods:

Using uvx (Recommended)

uvx hc-mcp-jira

Using pip

pip install hc-mcp-jira

Configuration

Required Environment Variables

Claude Desktop Configuration

There are two options to make the server available in Claude Desktop:

  1. Using the CLI:

    uvx hc-mcp-jira --add-to-claude
    

    If environment variables are not already set, you can specify them:

    uvx hc-mcp-jira --add-to-claude --env JIRA_URL=your-jira-url --env JIRA_USERNAME=your-username --env JIRA_API_TOKEN=your-api-token
    

    Any environment variables not explicitly set in the command will be taken from the current environment.

  2. Manual configuration:

    • Location:
      • MacOS: ~/Library/Application Support/Claude/claude_desktop_config.json
      • Windows: %APPDATA%/Claude/claude_desktop_config.json
    {
      "mcpServers": {
        "hc-mcp-jira": {
          "command": "uvx",
          "args": ["hc-mcp-jira"],
          "env": {
            "JIRA_URL": "your-jira-url",
            "JIRA_USERNAME": "your-username",
            "JIRA_API_TOKEN": "your-api-token"
          }
        }
      }
    }
    

Cline Configuration

There are two options to make the server available in Cline:

  1. Using the CLI:

    uvx hc-mcp-jira --add-to-cline
    

    If environment variables are not already set, you can specify them:

    uvx hc-mcp-jira --add-to-cline --env JIRA_URL=your-jira-url --env JIRA_USERNAME=your-username --env JIRA_API_TOKEN=your-api-token
    

    Any environment variables not explicitly set in the command will be taken from the current environment.

  2. Manual configuration:

    • Location:
      • MacOS: ~/Library/Application Support/Code/User/globalStorage/saoudrizwan.claude-dev/settings/cline_mcp_settings.json
      • Cloud9: ~/.vscode-server/data/User/globalStorage/saoudrizwan.claude-dev/settings/cline_mcp_settings.json
    {
      "mcpServers": {
        "hc-mcp-jira": {
          "command": "uvx",
          "args": ["hc-mcp-jira"],
          "env": {
            "JIRA_URL": "your-jira-url",
            "JIRA_USERNAME": "your-username",
            "JIRA_API_TOKEN": "your-api-token"
          }
        }
      }
    }
    

Usage Examples

Here are common usage patterns for the available tools:

Issue Management

1. Create an issue:
   "Create a Jira issue in project KEY with title 'Implement feature X' and type 'Task'"

2. Update an issue:
   "Update issue KEY-123 to add the comment 'Work in progress'"

3. Search issues:
   "Find all open bugs in project KEY assigned to me"

4. Link issues:
   "Create a 'blocks' link between KEY-123 and KEY-456"

Project Management

1. List projects:
   "Show me all Jira projects I have access to"

2. Search specific project:
   "Find all issues in project KEY with label 'urgent'"

Development

Building and Publishing

  1. Prepare development environment:
make prepare
  1. Build package:
make build
  1. Upload to CodeCommit:
make publish

Debugging

Since MCP servers run over stdio, debugging can be challenging. For the best debugging experience:

  1. Use the MCP Inspector:
npx @modelcontextprotocol/inspector uvx hc-mcp-jira
  1. Enable debug logging:
export MCP_DEBUG=1
uvx hc-mcp-jira

Error Handling

The server implements comprehensive error handling:

  • Authentication errors: Validates credentials before operations
  • API errors: Provides detailed error messages from Jira API
  • Input validation: Verifies required fields and formats
  • Rate limiting: Handles Jira API rate limits gracefully

Troubleshooting

Common issues and solutions:

  1. Authentication Failed

    • Verify JIRA_URL, JIRA_USERNAME, and JIRA_API_TOKEN are correct
    • Ensure API token has required permissions
  2. Rate Limiting

    • Implement exponential backoff in requests
    • Consider batching operations when possible
  3. Permission Issues

    • Verify user has required project permissions
    • Check issue-level security settings

Contributing

  1. Fork the repository
  2. Create a feature branch
  3. Submit a pull request

License

This project is licensed under the MIT License - see the LICENSE file for details.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

hc_mcp_jira-2025.2.4.tar.gz (32.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

hc_mcp_jira-2025.2.4-py3-none-any.whl (9.3 kB view details)

Uploaded Python 3

File details

Details for the file hc_mcp_jira-2025.2.4.tar.gz.

File metadata

  • Download URL: hc_mcp_jira-2025.2.4.tar.gz
  • Upload date:
  • Size: 32.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.10.16

File hashes

Hashes for hc_mcp_jira-2025.2.4.tar.gz
Algorithm Hash digest
SHA256 4af54442c9fa64003438deed3bdfd13a10eb2dc9276c284b11fc632ae21a8695
MD5 477b22e76d839174210f6fd78906b86e
BLAKE2b-256 0b1a3846a3e35a651563fa4d6828a684c6da01192768f4c4a010467f83bb5ba5

See more details on using hashes here.

File details

Details for the file hc_mcp_jira-2025.2.4-py3-none-any.whl.

File metadata

  • Download URL: hc_mcp_jira-2025.2.4-py3-none-any.whl
  • Upload date:
  • Size: 9.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.10.16

File hashes

Hashes for hc_mcp_jira-2025.2.4-py3-none-any.whl
Algorithm Hash digest
SHA256 c048f5c53d1451be9476066a270fbac9d7f0338740f41a599bd68b4c94c03f26
MD5 7edd2d16ece7edf8e4b0bac16037ace1
BLAKE2b-256 8ec52b23369cc4456bf1216acb0a2957fdc0237f999251033f2d89a54937cb0f

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page