custom-atlassian-mcp

studcroc/custom-atlassian-mcp

3.2

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

The Custom Atlassian MCP Server is a production-ready server that integrates with Atlassian Jira Cloud, enabling AI assistants and MCP clients to interact with Jira data through a standardized interface.

Tools
2
Resources
0
Prompts
0

Custom Atlassian MCP Server

Custom Atlassian MCP Server

MCP License: ISC Node.js

A production-ready Model Context Protocol (MCP) server that provides seamless integration with Atlassian Jira Cloud. This server enables AI assistants and MCP clients to fetch issue attachments, download attachment content, and interact with Jira data through a standardized interface.

Features

  • Attachment Metadata Retrieval: List all attachments for any Jira issue with metadata (ID, filename, MIME type)
  • Batch Attachment Downloads: Download multiple attachment files in parallel with automatic base64 encoding
  • Production-Grade Error Handling: Comprehensive error handling for network failures, API errors, and edge cases
  • Environment Validation: Automatic validation of required credentials at startup
  • Stdio Transport: Standard input/output communication for cross-platform compatibility
  • Parallel Processing: Efficient batch operations with concurrent API requests

Prerequisites

  • Node.js: Version 18.x or higher
  • Jira Cloud Account: With API access enabled
  • Jira API Token: Generate one here

Setup

1. Clone the Repository

git clone https://github.com/studcroc/custom-atlassian-mcp.git
cd custom-atlassian-mcp

2. Install Dependencies

npm install

3. Configure MCP Client

Add the following configuration to your MCP client's settings file.

For Cursor IDE (.cursor/mcp.json):

{
  "mcpServers": {
    "custom-atlassian-mcp": {
      "command": "npx ts-node /absolute/path/to/custom-atlassian-mcp/server.ts",
      "args": [],
      "env": {
        "JIRA_DOMAIN": "your-organization.atlassian.net",
        "JIRA_EMAIL": "your-email@example.com",
        "JIRA_API_TOKEN": "your-api-token-here"
      }
    }
  }
}

4. Verify the Connection

After configuration:

  1. Restart your MCP client
  2. The server should appear in your client's MCP servers list
  3. You should see the available tools: jira_get_issue_attachments and jira_get_attachment_image

Available Tools

1. jira_get_issue_attachments

Retrieves metadata for all attachments associated with a Jira issue.

Input Schema:

{
  issueId: string; // Jira issue key (e.g., "PROJ-123")
}

Response:

[
  {
    "id": "10001",
    "mimeType": "image/png",
    "filename": "screenshot.png"
  },
  {
    "id": "10002",
    "mimeType": "application/pdf",
    "filename": "requirements.pdf"
  }
]

Use Cases:

  • List available attachments before downloading
  • Check file types and names
  • Prepare for bulk downloads

Error Handling:

  • Returns error message for HTTP errors (4xx, 5xx)
  • Handles network failures gracefully
  • Returns empty array if issue has no attachments

2. jira_get_attachment_image

Downloads and returns the binary content of Jira attachments as base64-encoded data.

Input Schema:

{
  attachmentIds: string[]  // Array of attachment IDs
}

Response:

{
  content: [
    {
      type: "image",
      data: "<base64-encoded-content>",
      mimeType: "image/png",
    },
  ];
}

Use Cases:

  • Display attachment images in UI
  • Download multiple attachments efficiently
  • Process attachment content programmatically

Error Handling:

  • Silently skips attachments that fail to download
  • Returns successful downloads even if some fail
  • Returns empty array if all attachments fail

Contributing

Contributions are welcome! Please follow these guidelines:

  1. Fork the repository
  2. Create a feature branch (git checkout -b feature/amazing-feature)
  3. Commit your changes (git commit -m 'Add amazing feature')
  4. Push to the branch (git push origin feature/amazing-feature)
  5. Open a Pull Request

Support

For issues, questions, or contributions:

  1. Issues: Open an issue in the repository
  2. Documentation: Refer to the MCP Documentation
  3. Jira API: See Atlassian Developer Documentation