GitLab MCP Server — Hosted for Any AI Agent
MCP Server language Hosted language PublicManage projects, issues, merge requests, pipelines, branches, and code search on GitLab — AI-native DevOps platform access.
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.
{
"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:
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.
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
- Go to aerostack.dev → Your Project → MCPs
- Search for "GitLab" and click Add to Workspace
- Add
GITLAB_TOKENand optionallyGITLAB_URLunder 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_apiis 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.
_ping #1 Verify GitLab connectivity by fetching the authenticated user. Used internally by Aerostack to validate credentials.
list_projects #2 List GitLab projects accessible to the authenticated user with name, URL, visibility, star count, and last activity
get_project #3 Get detailed info about a GitLab project — description, default branch, visibility, statistics, and namespace
list_issues #4 List issues in a project with optional filters for state, labels, assignee, milestone, and search
create_issue #5 Create a new issue in a GitLab project with title, description, labels, assignees, and milestone
list_merge_requests #6 List merge requests in a project with filters for state, labels, author, target branch, and review status
get_merge_request #7 Get full details of a merge request — diff stats, approvals, pipeline status, conflicts, and reviewers
list_pipelines #8 List CI/CD pipelines for a project with status, ref (branch/tag), duration, and trigger info
list_branches #9 List branches in a project with name, commit SHA, protected status, and whether merged
search_code #10 Search for code across a project by keyword, returning matching file paths and line content
get_file #11 Read a file from a GitLab repository by path and branch — returns decoded content for text files
Details
language Live Endpoint
https://mcp.aerostack.dev/s/aerostack/mcp-gitlab
Sub-50ms globally · Zero cold start
Publisher
Pre-built functions for the most common MCP tool patterns. Clone, extend, and deploy.
More in Devops
Browse Devops MCPs →Asana Project Management
by @aerostack
Tasks, projects, sections, comments, teams, custom fields via Asana's official MCP
Atlassian Cloud
by @aerostack
Jira issues, sprints, Confluence pages via Atlassian's official MCP
Cloudflare Platform
by @aerostack
Cloudflare Workers, KV, R2, D1, Pages, DNS via Cloudflare's official MCP
Datadog Observability
by @aerostack
Dashboards, monitors, logs, metrics, incidents, SLOs, APM traces via Datadog's official MCP
Figma Design
by @aerostack
Files, frames, components, comments, variables via Figma's official MCP
GitHub API
by @aerostack
GitHub repos, PRs, issues, branches, code search via GitHub's official hosted MCP
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.