JSPM

  • Created
  • Published
  • Downloads 775
  • Score
    100M100P100Q118336F
  • License ISC

A TypeScript-based Model Context Protocol (MCP) server for Atlassian Jira integration. Provides tools for accessing and managing Jira projects, issues, and content to connect Claude/Anthropic AI systems to Jira project management.

Package Exports

  • @aashari/mcp-server-atlassian-jira
  • @aashari/mcp-server-atlassian-jira/dist/index.js

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@aashari/mcp-server-atlassian-jira) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

Atlassian Jira MCP Server

What is MCP and Why Use It?

Model Context Protocol (MCP) is a technology that allows AI assistants like Claude to access external tools and information. Think of it as giving AI the ability to "see" and interact with your organization's systems - in this case, your Jira projects and issues.

Benefits:

  • Your AI assistant can directly access real-time Jira data
  • No need to copy/paste information between tools
  • AI can help analyze, summarize, and work with your Jira tickets
  • Keeps sensitive information secure (the AI only sees what you share)

This MCP server connects Claude, Cursor, or other compatible AI assistants with your Jira instance, allowing them to list projects, search issues, and access detailed ticket information.

Quick Start Guide

Step 1: Get Your Atlassian API Token

  1. Create an API token in your Atlassian account:

Step 2: Set Up Configuration

Choose one of these methods:

  1. Create a folder called .mcp in your home directory
  2. Create a file called configs.json inside it with this content:
{
    "@aashari/mcp-server-atlassian-jira": {
        "environments": {
            "ATLASSIAN_SITE_NAME": "your-instance",
            "ATLASSIAN_USER_EMAIL": "your-email@example.com",
            "ATLASSIAN_API_TOKEN": "your_api_token"
        }
    }
}

Replace the values with your actual information:

  • your-instance: Your Atlassian site name (e.g., for example.atlassian.net, enter example)
  • your-email@example.com: Your Atlassian account email address
  • your_api_token: The API token you created in Step 1

Alternative: Use Environment Variables

If you prefer, you can provide the configuration directly when running commands:

ATLASSIAN_SITE_NAME=your-instance ATLASSIAN_USER_EMAIL=your-email@example.com ATLASSIAN_API_TOKEN=your_token npx -y @aashari/mcp-server-atlassian-jira

Step 3: Connect Your AI Assistant

For Claude Desktop

  1. Open Claude Desktop and click the gear icon (Settings) in the top-right
  2. Click Edit Config
  3. Add the following to your configuration file:
{
    "mcpServers": {
        "aashari/mcp-server-atlassian-jira": {
            "command": "npx",
            "args": ["-y", "@aashari/mcp-server-atlassian-jira"]
        }
    }
}
  1. Save and close the file
  2. Restart Claude Desktop
  3. Click the hammer icon to verify Jira tools are listed

For Cursor AI

  1. Open Cursor and press CMD + SHIFT + P (macOS) or CTRL + SHIFT + P (Windows/Linux)
  2. Select Cursor Settings > MCP
  3. Click + Add new MCP server
  4. Fill in the details:
    • Name: aashari/mcp-server-atlassian-jira
    • Type: command
    • Command: npx -y @aashari/mcp-server-atlassian-jira
  5. Click Add
  6. Look for a green indicator showing the server is active

Step 4: Start Using It!

In your AI assistant, try asking:

  • "Show me my Jira projects"
  • "List open issues in the DEV project"
  • "Get details about PROJ-123"
  • "Show me all bugs assigned to me"

Available Tools

This MCP server provides the following tools:

Tool Purpose Example Usage
list-projects Get a list of all Jira projects "Show me all projects"
get-project View details of a specific project "Tell me about the DEV project"
list-issues Search for issues with filters "Show open bugs in DEV project"
get-issue Get complete details of a ticket "Show me everything about PROJ-123"

Advanced Configuration

Using Multiple MCP Servers

You can configure multiple MCP servers in your global config file ($HOME/.mcp/configs.json):

{
    "@aashari/mcp-server-atlassian-jira": {
        "environments": {
            "ATLASSIAN_SITE_NAME": "your-instance",
            "ATLASSIAN_USER_EMAIL": "your-email@example.com",
            "ATLASSIAN_API_TOKEN": "your_api_token"
        }
    },
    "@aashari/mcp-server-atlassian-confluence": {
        "environments": {
            "ATLASSIAN_SITE_NAME": "your-instance",
            "ATLASSIAN_USER_EMAIL": "your-email@example.com",
            "ATLASSIAN_API_TOKEN": "your_api_token"
        }
    }
}

Then add both to your AI assistant's configuration.

Debugging

To enable debug logging:

  • Add "DEBUG": "true" to your environment configuration
  • Or prefix commands with DEBUG=true

Using as a Command-Line Tool

You can also use this as a standalone command-line tool:

# Install globally
npm install -g @aashari/mcp-server-atlassian-jira

# Then run commands
mcp-jira list-projects
mcp-jira get-issue PROJ-123
mcp-jira list-issues --jql "project = DEV AND status = Open"

For Developers: Contributing to This Project

Project Architecture

This MCP server follows a layered architecture:

  1. CLI/Tool Layer: End-user interfaces with minimal logic
  2. Controller Layer: Business logic, validation, and formatting
  3. Service Layer: API communication and data retrieval
  4. Utilities: Shared functionality (error handling, pagination, etc.)

The flow of data is: User → CLI/Tool → Controller → Service → Atlassian API → back up the chain with responses.

Setting Up Development Environment

  1. Clone the repository
  2. Install dependencies: npm install
  3. Run in development mode: npm run dev:server

Development Scripts

  • npm run dev:server: Run with hot reloading and debug logging
  • npm test: Run test suite
  • npm run lint: Check for code issues
  • npm run format: Format code with Prettier

Adding a New Feature

  1. Implement API access in the Service layer
  2. Add business logic to the Controller layer
  3. Expose functionality via Tool and CLI interfaces
  4. Update tests and documentation
  5. Submit a pull request with a clear description

Documentation Standards

  • Use JSDoc comments for all public functions
  • Follow the AI-friendly documentation format for tools
  • Include examples of using your new functionality
  • Update the README if adding major features

Standard Formatting Template for Tools

When documenting new tools, follow our standard template:

PURPOSE: What the tool does and its main functionality

WHEN TO USE:
- Primary use case
- Secondary use cases
- When this tool is the best choice

WHEN NOT TO USE:
- When another tool would be better
- Inefficient use cases
- Performance considerations

RETURNS: Description of the output format

EXAMPLES:
- Simple example
- More complex example

ERRORS:
- Common error scenarios and how to resolve them

File Naming Convention

  • All utility files are located in src/utils/ and follow the kebab-case pattern: {feature-name}.{category}.ts.
  • Example: formatter.util.ts, logger.util.ts.
  • Subdirectories under utils/ are not used to keep the structure flat.

Versioning Note

This project follows semantic versioning independently from other MCP servers in the same family (like the Confluence MCP server). Version differences between these projects are expected and reflect their individual development cycles and feature implementations.

License

ISC