mcp-gitlab-jira-onprem
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@mcp-gitlab-jira-onpremFind GitLab merge requests assigned to me and their linked Jira issues"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
mcp-gitlab-jira-onprem
MCP-сервер для GitLab и Jira Server / Data Center.
Форк mcp-gitlab-jira с правками под on-prem:
Проблема upstream | Решение в этом пакете |
Basic Auth | Bearer Personal Access Token |
|
|
Agile-запросы тоже шли через Basic | Bearer |
Подходит для внутренних инстансов вроде https://jira.example.com + self-hosted GitLab.
Требования
Node.js 18+
GitLab Personal Access Token (API)
Jira Server/DC Personal Access Token
Profile → Personal Access Tokens → Create
Проверка:
curl -sS -o /dev/null -w "%{http_code}\n" \
-H "Authorization: Bearer $ATLASSIAN_API_TOKEN" \
-H "Accept: application/json" \
"$ATLASSIAN_SITE_NAME/rest/api/2/myself"
# ожидаем 200Cloud API token (
ATATT…) и Basicemail:tokenдля on-prem не подойдут.
Related MCP server: GitLab MCP
Установка
Вариант A — из git
npm i -g git+ssh://git@YOUR_GITHOST/YOUR_GROUP/mcp-gitlab-jira-onprem.git
# или
npm i -g /path/to/mcp-gitlab-jira-onpremПроверка:
which mcp-gitlab-jira-onprem
mcp-gitlab-jira-onprem # должен стартовать и ждать stdio; Ctrl+CВариант B — локально без глобальной установки
git clone <repo-url> ~/tools/mcp-gitlab-jira-onprem
cd ~/tools/mcp-gitlab-jira-onprem
npm install
npm run buildВ mcp.json укажите абсолютный путь к dist/index.js (см. ниже).
Переменные окружения
Переменная | Обязательна | Пример |
| да* |
|
| да* |
|
| да* |
|
| да* | PAT из Jira Server/DC |
| нет |
|
*нужны для соответствующей половины инструментов; можно поднять только GitLab или только Jira.
Положите их в ~/.zshrc / ~/.bashrc и перезапустите Cursor из окружения, где они видны:
export GITLAB_URL="https://gitlab.example.com"
export GITLAB_ACCESS_TOKEN="glpat-…"
export ATLASSIAN_SITE_NAME="https://jira.example.com"
export ATLASSIAN_API_TOKEN="ваш-pat"Либо пропишите env прямо в mcp.json (удобно шарить шаблон, секреты — каждый себе).
Cursor: ~/.cursor/mcp.json
{
"mcpServers": {
"gitlab-jira-mcp": {
"command": "mcp-gitlab-jira-onprem",
"args": [],
"env": {
"GITLAB_URL": "https://gitlab.example.com",
"GITLAB_ACCESS_TOKEN": "REPLACE_ME",
"ATLASSIAN_SITE_NAME": "https://jira.example.com",
"ATLASSIAN_API_TOKEN": "REPLACE_ME"
}
}
}
}Без глобальной установки:
{
"mcpServers": {
"gitlab-jira-mcp": {
"command": "node",
"args": ["/home/YOU/tools/mcp-gitlab-jira-onprem/dist/index.js"],
"env": {
"GITLAB_URL": "https://gitlab.example.com",
"GITLAB_ACCESS_TOKEN": "REPLACE_ME",
"ATLASSIAN_SITE_NAME": "https://jira.example.com",
"ATLASSIAN_API_TOKEN": "REPLACE_ME"
}
}
}
}После правок: полностью перезапустите Cursor (Reload Window часто оставляет старый MCP-процесс).
Сеть / VPN
Если Jira доступна только в корпоративной сети / без VPN-туннеля:
Убедитесь, что
curl …/myself= 200 из того же окружения, что и Cursor.При split-tunnel (Nekoray и т.п.) добавьте
jira.example.comв direct/bypass, иначе TLS/auth могут вести себя иначе, чем в браузере.
Отличия от upstream
См. CHANGELOG.md. Кратко:
Jira auth: Bearer PAT
Jira client:
Version2ClientAgile REST: Bearer
Search: классический
/rest/api/2/searchКомментарии: plain string body (не ADF)
GitLab-часть без изменений по смыслу.
Миграция со старых ручных патчей: docs/MIGRATION.md.
Разработка
npm install
npm run build
npm start # stdio MCPИсходники — src/, артефакт — dist/.
Лицензия
MIT (как у upstream). Upstream: hainanzhao/mcp-gitlab-jira / npm mcp-gitlab-jira@0.1.9.
Maintenance
Related MCP Connectors
Go MCP server for GitLab: 2 dynamic tools reach 1000+ REST/GraphQL actions. Free/CE, no paid tier.
GitLab MCP — wraps the GitLab REST API v4 (BYO API key)
A MCP server built for developers enabling Git based project management with project and personal…
Related MCP Servers
- AlicenseNot gradedqualityAmaintenanceMCP server for interacting with GitLab API, supporting dynamic tool selection and enterprise-grade security.10MIT
- FlicenseNot gradedqualityDmaintenanceExposes the GitLab REST API to MCP clients for managing projects, issues, merge requests, repositories, and CI/CD pipelines. It is multi-tenant, allowing each user to authenticate with their own token and instance URL.-
- AlicenseBqualityBmaintenanceThis MCP server connects GitLab projects and merge requests with Jira work tracking, Confluence pages, and Grafana dashboards. It provides read-only access to GitLab, Confluence, and Grafana, while Jira mutations require explicit confirmation.19MIT
- AlicenseCqualityAmaintenanceEnables secure interaction with GitLab instances through MCP, supporting projects, merge requests, issues, pipelines, and search.632AGPL 3.0