jira-mcp-scoped

jira-mcp-scoped

MCP server enabling AI assistants to interact with Jira, scoped to a single project. Supports stdio and HTTP transports for issue management operations.

Category
访问服务器

README

Jira MCP Server

An MCP (Model Context Protocol) server that lets AI assistants interact with Jira — scoped to a single project (JIRA_PROJECT_KEY) instead of everything your account can access.

Published on npm as jira-mcp-scoped — run it with npx -y jira-mcp-scoped, no clone or install required.

The server ships in two transports:

  • stdio (mcpOverStdio.js) — the default for local clients (Claude Desktop, Claude Code, Copilot in VS Code). The client spawns the Node process directly.
  • HTTP (mcpOverHttp.js) — exposes the same tools over a Streamable HTTP endpoint at /mcp (default port 3456). Useful if you want to start the MCP as a stand alone service (e.g in docker) and provide credentials on startup, making them invisible to the AI agent

Both transports share the same tool implementations in toolDefinitions.js and jiraRestService.js.

Logging

The server logs to stderr (so it never corrupts the stdio protocol on stdout). The verbosity is controlled by the JIRA_LOG_LEVEL env var:

Level What it logs
error Failures only — failed tool calls and request errors.
info (default) Startup config and one line per tool call (name + arguments). Plus everything error logs.
debug Per-request Jira API traffic (→/← with method, path, status), tool result previews, and HTTP session lifecycle. Plus everything info logs.

Long string arguments (e.g. description, comment) are collapsed to a <string: N chars> placeholder so the logs stay readable. The Jira API token is never logged. Each line is formatted as <ISO timestamp> [jira-mcp] <LEVEL> <message>.

Prerequisites

  • Node.js 20+
  • A Jira account with API access

Installation

No installation needed — MCP clients can run the published package directly via npx (see the setup sections below).

For local development:

git clone https://github.com/MichalOsadowski/jira-mcp.git
cd jira-mcp
npm install

Testing

npm test

Runs the node:test suite (*.test.js) with the Jira HTTP layer stubbed — no network access or credentials required.

Environment variables

Variable Required Description
JIRA_BASE_URL Yes Your Jira instance URL, e.g. https://yourcompany.atlassian.net
JIRA_USER_EMAIL Yes The email address of your Jira account
JIRA_API_TOKEN Yes Jira API token — generate one at id.atlassian.com/manage-profile/security/api-tokens
JIRA_PROJECT_KEY Yes The project key, e.g. PROJ
JIRA_BOARD_ID No Board ID used when placing issues in the current sprint
JIRA_ATTACHMENTS_DIR No Directory to save downloaded attachments (default: ./jira-attachments)
JIRA_LOG_LEVEL No Log verbosity: error, info (default), or debug. See Logging.

Setup for Claude Code

Add the server to your Claude Code MCP configuration. For a repository specific setup add .mcp.json in the root of your repository.

{
  "mcpServers": {
    "jira": {
      "command": "npx",
      "args": ["-y", "jira-mcp-scoped"],
      "env": {
        "JIRA_BASE_URL": "https://yourcompany.atlassian.net",
        "JIRA_USER_EMAIL": "you@yourcompany.com",
        "JIRA_API_TOKEN": "your-api-token",
        "JIRA_PROJECT_KEY": "PROJ",
        "JIRA_BOARD_ID": "1"
      }
    }
  }
}

Restart Claude Code after saving. You can verify the server is connected by running /mcp in the Claude Code CLI.


Setup for GitHub Copilot (VS Code)

Add the server to .vscode/mcp.json in the repository root (create it if it doesn't exist):

{
  "servers": {
    "jira": {
      "type": "stdio",
      "command": "npx",
      "args": ["-y", "jira-mcp-scoped"],
      "env": {
        "JIRA_BASE_URL": "https://yourcompany.atlassian.net",
        "JIRA_USER_EMAIL": "you@yourcompany.com",
        "JIRA_API_TOKEN": "your-api-token",
        "JIRA_PROJECT_KEY": "PROJ",
        "JIRA_BOARD_ID": "1"
      }
    }
  }
}

Note: Do not commit .vscode/mcp.json if it contains your API token. Add it to .gitignore or use VS Code's user-level settings instead (~/.config/Code/User/settings.json) under github.copilot.mcp.servers.

Reload the VS Code window after saving. The Jira tools will appear in the Copilot agent tool list.


Running the HTTP transport

The HTTP variant is useful when the MCP client cannot spawn a local Node process — e.g. when running Claude inside a container, or pointing a remote agent at a long-lived server.

Run it directly from the cloned repository:

JIRA_BASE_URL=... JIRA_USER_EMAIL=... JIRA_API_TOKEN=... JIRA_PROJECT_KEY=PROJ JIRA_BOARD_ID=1 \
  npm run start:http

The server listens on http://localhost:3456/mcp (override with PORT) and exposes a /health endpoint. Environment variables are the same as the stdio transport.

Point an HTTP-capable MCP client at it:

{
  "mcpServers": {
    "jira": {
      "type": "http",
      "url": "http://localhost:3456/mcp"
    }
  }
}

推荐服务器

Baidu Map

Baidu Map

百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。

官方
精选
JavaScript
Playwright MCP Server

Playwright MCP Server

一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。

官方
精选
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。

官方
精选
本地
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。

官方
精选
本地
TypeScript
VeyraX

VeyraX

一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。

官方
精选
本地
graphlit-mcp-server

graphlit-mcp-server

模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。

官方
精选
TypeScript
Kagi MCP Server

Kagi MCP Server

一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。

官方
精选
Python
e2b-mcp-server

e2b-mcp-server

使用 MCP 通过 e2b 运行代码。

官方
精选
Neon MCP Server

Neon MCP Server

用于与 Neon 管理 API 和数据库交互的 MCP 服务器

官方
精选
Exa MCP Server

Exa MCP Server

模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。

官方
精选