Aerostack
electrical_services

GitLab MCP Server — Hosted for Any AI Agent

MCP Server language Hosted language Public

Manage projects, issues, merge requests, pipelines, branches, and code search on GitLab — AI-native DevOps platform access.

aerostack @aerostack verified
v0.1.0 MIT Updated Jun 28, 2026
robot_2

Use with AI AssistantsMCP

Connect Claude, Cursor, or any MCP-compatible client — then call tools directly

① Add This MCP Server

Paste into your AI client config — then all its tools are available instantly.

.claude/mcp.json
{
  "mcpServers": {
    "gitlab": {
      "url": "https://mcp.aerostack.dev/s/aerostack/mcp-gitlab",
      "headers": {
        "Authorization": "Bearer YOUR_AEROSTACK_TOKEN"
      }
    }
  }
}

Replace YOUR_AEROSTACK_TOKEN with your API token from the dashboard.

② Call a Tool

Ask your AI assistant to call a specific tool, or send raw JSON-RPC:

+5 more

Natural Language Prompt

“Use the _ping tool to verify gitlab connectivity by fetching the authenticated user. used internally by aerostack to validate credentials

Using a Workspace?

Add this MCP to your Workspace — your team shares one token, secrets are stored securely, and every AI agent in the workspace can call it without per-user setup.

add_circleAdd to Workspace

The GitLab MCP server connects AI agents to your GitLab projects — managing merge requests, issues, pipelines, and repository files. Hosted on Aerostack as a single URL for any MCP agent, it lets assistants review MRs, trigger CI, and automate your DevOps workflow.

description Overview

mcp-gitlab — GitLab MCP Server

Manage projects, issues, merge requests, pipelines, branches, and code search on GitLab — AI-native DevOps platform access.

Give your AI agents full access to GitLab. Browse projects, manage issues and merge requests, monitor CI/CD pipelines, search code, read files, and track branches — works with gitlab.com and self-hosted instances.

Live endpoint: https://mcp.aerostack.dev/s/aerostack/mcp-gitlab


What You Can Do

  • List and search projects with statistics
  • Create and filter issues by state, labels, assignee, and milestone
  • List and inspect merge requests with diff stats, conflicts, and pipeline status
  • Monitor CI/CD pipelines by status, branch, or tag
  • List branches with protected/merged status
  • Search code across repositories
  • Read file contents from any branch or commit

Available Tools

Tool Description
_ping Verify GitLab connectivity and show authenticated user
list_projects List accessible projects with stars, forks, and activity
get_project Get project details with statistics and description
list_issues List issues with state, label, assignee, and search filters
create_issue Create a new issue with title, description, labels, assignees
list_merge_requests List MRs with state, branch, and author filters
get_merge_request Get MR details — diff stats, conflicts, reviewers, pipeline
list_pipelines List CI/CD pipelines with status and ref filters
list_branches List branches with protected/merged status
search_code Search code by keyword across a project
get_file Read a file from the repository by path and branch

Configuration

Variable Required Description How to Get
GITLAB_TOKEN Yes GitLab Personal Access Token with api scope gitlab.com → Preferences → Access Tokens → Add new token → select api scope
GITLAB_URL No GitLab instance URL (default: https://gitlab.com) For self-hosted: your GitLab instance URL (e.g. https://gitlab.company.com)

Quick Start

Add to Aerostack Workspace
  1. Go to aerostack.dev → Your Project → MCPs
  2. Search for "GitLab" and click Add to Workspace
  3. Add GITLAB_TOKEN and optionally GITLAB_URL under Project → Secrets
Example Prompts
"List all my GitLab projects sorted by last activity"
"Show open issues labeled 'bug' in the frontend project"
"Create an issue: 'Fix login timeout' with label 'bug' in group/backend"
"List open merge requests targeting the main branch"
"Show me the last 5 pipeline runs for the API project — any failures?"
"Search for 'database_url' across the backend repository"
"Read the docker-compose.yml file from the main branch"
Direct API Call
curl -X POST https://mcp.aerostack.dev/s/aerostack/mcp-gitlab \
  -H 'Content-Type: application/json' \
  -H 'X-Mcp-Secret-GITLAB-TOKEN: glpat-xxxxxxxxxxxx' \
  -d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"list_projects","arguments":{"owned":true}}}'

Security Notes

  • GitLab tokens are injected at the Aerostack gateway layer — never stored in the worker
  • Works with both gitlab.com and self-hosted GitLab instances via GITLAB_URL
  • File contents over 100KB are truncated to prevent oversized responses
  • Use tokens with minimal scopes — read_api is sufficient for read-only operations

License

MIT

terminal Tools (11)

Available tools on this MCP server. Each tool can be called directly from any AI agent.

terminal
_ping #1

Verify GitLab connectivity by fetching the authenticated user. Used internally by Aerostack to validate credentials.

terminal
list_projects #2

List GitLab projects accessible to the authenticated user with name, URL, visibility, star count, and last activity

terminal
get_project #3

Get detailed info about a GitLab project — description, default branch, visibility, statistics, and namespace

terminal
list_issues #4

List issues in a project with optional filters for state, labels, assignee, milestone, and search

terminal
create_issue #5

Create a new issue in a GitLab project with title, description, labels, assignees, and milestone

terminal
list_merge_requests #6

List merge requests in a project with filters for state, labels, author, target branch, and review status

terminal
get_merge_request #7

Get full details of a merge request — diff stats, approvals, pipeline status, conflicts, and reviewers

terminal
list_pipelines #8

List CI/CD pipelines for a project with status, ref (branch/tag), duration, and trigger info

terminal
list_branches #9

List branches in a project with name, commit SHA, protected status, and whether merged

terminal
search_code #10

Search for code across a project by keyword, returning matching file paths and line content

terminal
get_file #11

Read a file from a GitLab repository by path and branch — returns decoded content for text files

Details

upgrade Version 0.1.0
gavel License MIT
wifi Transport streamable-http
lock Access Public
category Category Devops
terminal Tools 11

language Live Endpoint

https://mcp.aerostack.dev/s/aerostack/mcp-gitlab

Sub-50ms globally · Zero cold start

Publisher

aerostack
@aerostack verified

Pre-built functions for the most common MCP tool patterns. Clone, extend, and deploy.

Tags

Browse more servers

Frequently asked questions

What is the GitLab MCP server and what can it do? +

The GitLab MCP server is hosted on Aerostack and exposes these tools to your AI agent: `_ping`, `list_projects`, `get_project`, `list_issues`, `create_issue`. You get one hosted URL — no self-hosting — that works from Claude, Cursor, ChatGPT, Gemini, VS Code, or any MCP-compatible client, and you can share it with your team or combine it with other MCP servers in a workspace.

Is the GitLab MCP server hosted, or do I have to run it myself? +

It's hosted on Aerostack's edge infrastructure — you don't deploy or maintain anything. Add it to a workspace and you get one authenticated URL, with secrets encrypted, that any AI agent or editor can connect to. Use it solo or share the same URL across your whole team.

Which AI agents and editors can use the GitLab MCP server? +

Any MCP client: Claude and Claude Code, Cursor, ChatGPT, Gemini, Windsurf, Cline, VS Code, and custom agents. Because it's one hosted URL, the same GitLab MCP server works everywhere — and you can compose it with other MCP servers, skills, and functions behind a single workspace URL.

How do I install the GitLab MCP server in Claude Desktop? +

Add the following to your Claude Desktop config (`claude_desktop_config.json`): ```json { "mcpServers": { "@aerostack/mcp-gitlab": { "command": "npx", "args": ["-y", "@aerostack/@aerostack/mcp-gitlab"] } } } ``` Then restart Claude Desktop and the tools will appear automatically.

How do I use the GitLab MCP server in Cursor? +

In Cursor, open **Settings → MCP** and add: ```json { "name": "@aerostack/mcp-gitlab", "command": "npx", "args": ["-y", "@aerostack/@aerostack/mcp-gitlab"] } ``` Save and reload Cursor. The MCP tools will be available in Agent mode.

Does GitLab MCP require authentication? +

Yes. GitLab requires authentication. Check the MCP's documentation for the required credentials.