GitLab CE MCP Server - 85 CE-only tools for GitLab Community Edition
  • Python 99.6%
  • Makefile 0.3%
Find a file
g1admin d3e2a22998
Some checks failed
Commit Summary / summarize (push) Failing after 4s
Secret Scan / scan (push) Failing after 4s
docs: premium README overhaul
2026-03-21 05:12:08 +00:00
.forgejo/workflows ci: add commit-summary workflow from generate-one template 2026-03-04 13:43:31 +00:00
.gitea/issue_template chore: add infrastructure change issue template 2026-03-04 13:48:26 +00:00
.github Fix release workflow permissions 2025-10-11 14:20:59 -05:00
src/gitlab_mcp CE-only fork of nostoslabs/gitlab-mcp (85 tools) 2026-02-28 03:00:23 +00:00
tests CE-only fork of nostoslabs/gitlab-mcp (85 tools) 2026-02-28 03:00:23 +00:00
.env.example Add project configuration and dependencies 2025-10-11 14:08:22 -05:00
.gitignore Add project configuration and dependencies 2025-10-11 14:08:22 -05:00
.pre-commit-config.yaml Add pre-commit configuration 2025-10-11 14:08:22 -05:00
.python-version Add project configuration and dependencies 2025-10-11 14:08:22 -05:00
CLAUDE.md Add project documentation 2025-10-11 14:08:24 -05:00
docker-compose.yml Upgrade fastmcp 2.12.4 → 3.1.1 2026-03-16 20:13:25 +00:00
Dockerfile CE-only fork of nostoslabs/gitlab-mcp (85 tools) 2026-02-28 03:00:23 +00:00
Makefile Add build and deployment configuration 2025-10-11 14:08:23 -05:00
pyproject.toml Upgrade fastmcp 2.12.4 → 3.1.1 2026-03-16 20:13:25 +00:00
README.md docs: premium README overhaul 2026-03-21 05:12:08 +00:00
uv.lock Upgrade fastmcp 2.12.4 → 3.1.1 2026-03-16 20:13:25 +00:00

ogx-gitlab 🦊

MCP bridge to GitLab CE — 85 CE-only tools for managing repositories, issues, merge requests, pipelines, and wikis via AI agents.

Status License Platform MCP Tools Python


Overview

ogx-gitlab is a fork of nostoslabs/gitlab-mcp (MIT license), adapted for Generate One's GitLab CE 18.9.1 instance. It exposes 85 GitLab CE-compatible tools via SSE transport, registered in MetaMCP under the ogx-gitlab namespace. Premium/tier-gated tools have been removed. Built with Python, python-gitlab, and FastMCP.

Note: The GitLab CE instance at git.opengenix.com and the ogx-gitlab MetaMCP namespace were decommissioned on 2026-03-20. This repo is preserved as a reference. Generate One's primary git hosting uses Forgejo via g1-git and the g1-code MCP namespace.

🏗️ Architecture

Claude Code / Claude Desktop
        |
        ▼
+---------------+
|   MetaMCP     |  mcp.generate.one
| ogx-gitlab ns |
+-------+-------+
        |
        ▼
+------------------+
|   ogx-gitlab     |  Standalone container
| Python + FastMCP |  85 CE-only tools
| SSE at :8000     |  host port: 8030
+--------+---------+
         |
         ▼
+-----------------+
|  GitLab CE      |  git.opengenix.com
|   18.9.1        |
+-----------------+

📦 Services

Service Image Port Description
ogx-gitlab ogx-gitlab:latest (local build) 8030→8000 85 GitLab CE tools via SSE

🚀 Quick Start

# Build and run (local-build pattern — not Coolify-managed)
git clone https://git.generate.one/generate-one/ogx-gitlab.git
cd ogx-gitlab

cp .env.example .env
# Set GITLAB_PERSONAL_ACCESS_TOKEN and GITLAB_API_URL

docker compose build
docker compose up -d
docker compose logs -f gitlab-mcp

# Run tests
uv run pytest

# Linting
uv run ruff check src/
uv run mypy src/

🔧 Configuration

Variable Description Default
GITLAB_PERSONAL_ACCESS_TOKEN GitLab API token (api + create_repo + rw_repo scopes)
GITLAB_API_URL GitLab instance URL https://git.opengenix.com
SSE Enable SSE transport ("true") true
HOST Listen address 0.0.0.0
PORT Listen port 8000

📊 Tool Categories

85 tools organized by GitLab domain:

Category Count Examples
Projects 8 list, get, create, fork, search, archive
Issues 10 CRUD, links, labels, discussions
Merge Requests 8 list, get, create, update, merge, diffs
Repository 10 files, branches, commits, tree, compare
Pipelines 8 jobs, logs, retry, cancel, triggers
Wiki 6 pages, attachments, CRUD
Milestones 8 CRUD, issues, MRs
Labels 4 CRUD
Users 4 search, get, org membership
Other 19 releases, tags, namespaces, draft notes

Removed Premium Tools

These 3 tools were stripped as they require GitLab Premium/Ultimate:

  • approve_merge_request
  • list_group_iterations
  • get_milestone_burndown

🔬 Tech Stack

  • Python 3.12 with uv package manager
  • fastmcp >= 2.12.4 — MCP server framework
  • python-gitlab >= 6.4.0 — GitLab API client
  • pydantic >= 2.12.0 — data validation
  • structlog — structured logging
  • Multi-stage Docker build (builder + production)

🔀 Changes from Upstream

Forked from nostoslabs/gitlab-mcp:

  • Removed 3 Premium-only tools
  • Fixed get_repository_tree bug (dict/object compatibility)
  • Added Dockerfile for containerized deployment
  • Configured for GitLab CE target
  • Added SSE transport mode
Repo Relationship
g1-git Forgejo (primary git host) — replaced GitLab
svc-tools MetaMCP hosted the ogx-gitlab namespace
g1-shared Shared conventions

📄 License

MIT — Original work by nostoslabs.


🛡️ Part of Generate One

Generate One — AI infrastructure that answers to you.

Self-hosted, sovereign AI platform. generate.one