Skip to main content
Glama
Jira MCP Server for Cursor

Jira MCP Server for Cursor

by GMBruno

Jira MCP Server for Cursor

Model Context Protocol (MCP) Server for Jira integration with Cursor IDE. Built with Clean Architecture, SOLID principles, and Test-Driven Development.

๐Ÿ—๏ธ Architecture

This project follows Clean Architecture principles with 4 distinct layers:

Presentation Layer (MCP Tools)
    โ†“ depends on
Application Layer (Use Cases)
    โ†“ depends on
Domain Layer (Entities, Interfaces) โ† CORE
    โ†‘ implemented by
Infrastructure Layer (Jira API)

Key Principles Applied

  • โœ… SOLID Principles: Single Responsibility, Open/Closed, Liskov Substitution, Interface Segregation, Dependency Inversion

  • โœ… Clean Code: Meaningful names, small functions, self-documenting code

  • โœ… TDD: Test-Driven Development with >= 80% coverage

  • โœ… DDD: Domain-Driven Design with clear separation of concerns

Related MCP server: Jira MCP Server

๐Ÿš€ Features

  • โœ… create_jira_issue: Create new Jira issues

  • โœ… list_my_issues: List issues assigned to you

  • โœ… list_projects: List all accessible Jira projects

  • โœ… get_issue_details: Get full details of an issue

  • โœ… add_comment: Add comments to issues

๐Ÿ“ฆ Installation

Use the automated installation script:

cd ~/Projects/mcp-jira-cursor  # or wherever you cloned the project
./install.sh

The script will:

  • โœ… Check for Node.js and npm

  • โœ… Install dependencies

  • โœ… Build the project

  • โœ… Prompt for Jira credentials

  • โœ… Configure Cursor automatically (~/.cursor/mcp.json)

  • โœ… Validate the configuration

After running the script:

  1. Close Cursor completely (Cmd+Q on macOS)

  2. Reopen Cursor

  3. Open a new chat and test: "List my open Jira issues"


๐Ÿ“ Manual Installation

If you prefer to install manually:

1. Clone/Navigate to Project

cd ~/Projects/mcp-jira-cursor

2. Install Dependencies

npm install

3. Get Jira API Token

  1. Go to: https://id.atlassian.com/manage-profile/security/api-tokens

  2. Click "Create API token"

  3. Give it a name: "Cursor MCP Jira"

  4. Copy the token

4. Build the Project

npm run build

5. Configure Cursor MCP

Edit or create ~/.cursor/mcp.json:

{
  "mcpServers": {
    "jira": {
      "command": "node",
      "args": ["/Users/YOUR_USERNAME/Projects/mcp-jira-cursor/dist/index.js"],
      "env": {
        "JIRA_URL": "https://your-domain.atlassian.net",
        "JIRA_EMAIL": "your-email@example.com",
        "JIRA_API_TOKEN": "your_api_token_here"
      }
    }
  }
}

โš ๏ธ Important: Replace YOUR_USERNAME, your-domain, your-email, and your_api_token_here with your actual values.

6. Restart Cursor

Close and reopen Cursor completely to load the MCP server.

๐ŸŽฏ Usage Examples

Once configured, you can use natural language in Cursor's AI chat:

Create Issue:

"Create a new bug in project SUP about login failure"

List Projects:

"List all my Jira projects"
"Show me available projects"

List Issues:

"List my open issues"
"Show me all my issues with high priority"

Get Details:

"Show me details of issue SUP-123"

Add Comment:

"Add comment to SUP-123: Fixed in branch feature/auth"

๐Ÿงช Development

Run Tests

npm test

Run Tests with Coverage

npm run test:coverage

Lint Code

npm run lint

Format Code

npm run format

Dev Mode (for testing)

npm run dev

๐Ÿ“ Project Structure

src/
โ”œโ”€โ”€ domain/                 # Domain Layer (Core)
โ”‚   โ”œโ”€โ”€ entities/           # Business entities
โ”‚   โ”œโ”€โ”€ interfaces/         # Repository contracts
โ”‚   โ””โ”€โ”€ types/              # DTOs and types
โ”œโ”€โ”€ application/            # Application Layer
โ”‚   โ””โ”€โ”€ use-cases/          # Business logic use cases
โ”œโ”€โ”€ infrastructure/         # Infrastructure Layer
โ”‚   โ””โ”€โ”€ jira/               # Jira API implementation
โ”œโ”€โ”€ presentation/           # Presentation Layer
โ”‚   โ””โ”€โ”€ tools/              # MCP Tools handlers
โ””โ”€โ”€ index.ts                # Entry point

tests/
โ”œโ”€โ”€ unit/                   # Unit tests
โ””โ”€โ”€ integration/            # Integration tests

docs/
โ”œโ”€โ”€ architecture.md         # Architecture documentation
โ””โ”€โ”€ adr/                    # Architecture Decision Records

๐Ÿ“š Documentation

๐Ÿ”ง Scripts

Script

Description

npm run build

Build TypeScript to dist/

npm run dev

Run in development mode

npm test

Run all tests

npm run test:watch

Run tests in watch mode

npm run test:coverage

Run tests with coverage report

npm run lint

Lint code with ESLint

npm run lint:fix

Fix linting issues

npm run format

Format code with Prettier

๐Ÿค Contributing

This project follows:

  • Clean Architecture by Robert C. Martin

  • Clean Code principles

  • SOLID design principles

  • TDD (Test-Driven Development)

๐Ÿ“„ License

MIT

Tool Schema Changelog

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

Loading tool schema changelogโ€ฆ

    Related MCP Connectors

    Related MCP Servers