Skip to main content
Glama
README.md
# jira-mcp

An [MCP](https://modelcontextprotocol.io) server that connects **Claude Code** (or any MCP client) to **Jira Cloud**, so an AI agent can find a ticket, work on it, and report back on the ticket in one flow.

> "Find my open bugs in PROJ, fix PROJ-12, then comment on the ticket with what changed."

## Tools

| Tool | What it does |
|------|--------------|
| `search_issues` | Search issues with JQL (uses the current `/rest/api/3/search/jql` endpoint) |
| `get_issue` | Read one issue: summary, status, description and the latest comments |
| `create_issue` | Create a Task, Bug or Story, with an optional description |
| `add_comment` | Comment on an issue, e.g. a summary of a fix |

Descriptions and comments are converted to and from Atlassian Document Format (ADF), which Jira Cloud v3 requires for rich text. Errors such as a bad token (401) or an unknown key (404) come back to the agent as readable tool errors instead of crashing the server.

## Setup

1. Create a Jira API token: Atlassian account → Security → **API tokens**.
2. Build the server:

   ```bash
   npm install
   npm run build
   ```

3. Register it with Claude Code:

   ```bash
   claude mcp add jira \
     -e JIRA_BASE_URL=https://your-site.atlassian.net \
     -e JIRA_EMAIL=you@example.com \
     -e JIRA_API_TOKEN=your-api-token \
     -- node /absolute/path/to/jira-mcp/dist/index.js
   ```

4. Start `claude` and ask: *"Search open issues in project PROJ."*

Never commit your token. `.env` is git-ignored; see `.env.example` for the variables.

## Stack

TypeScript, the official [`@modelcontextprotocol/sdk`](https://github.com/modelcontextprotocol/typescript-sdk), Zod for tool input schemas, and the Jira Cloud REST API v3 over stdio transport.

## License

MIT

TDQS

B3/5.0

Scored across 4 tools

Disambiguation4/5

The four tools map to distinct operations (search, retrieve, create, comment), and descriptions make the intent clear. The only soft overlap is search_issues vs get_issue, since a JQL query could target a single issue, but the descriptions draw a reasonable discovery-vs-detail boundary.

Naming Consistency5/5

All four names follow a strict verb_noun snake_case pattern: search_issues, get_issue, create_issue, add_comment. Plural/singular usage tracks the cardinality of the result, which is predictable rather than inconsistent.

Tool Count4/5

Four tools is lean but each one earns its place for a read/create/comment workflow. It sits just under the well-scoped 3-15 range for a system as broad as Jira, but nothing is redundant.

Completeness3/5

The surface covers search, read, create, and commenting, but there is no update/edit or status transition tool, so an agent cannot move an issue through a workflow or change fields after creation. That is a notable gap for a Jira domain, though the missing pieces can be partially worked around via comments.