GitLab (Unofficial)
v0.2.2Unofficial GitLab MCP — wraps the GitLab REST API v4 (BYO API key)
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
gitlab_list_projects
List all accessible GitLab projects. Returns project ID, name, path, description, star count, and URL. Use gitlab_get_project to fetch detailed info.
| Parameter | Type | Description |
|---|---|---|
_apiKey * | string | GitLab personal access token |
owned | boolean | If true, only return projects owned by the user (default: false) |
per_page | number | Number of projects to return (default 20, max 100) |
search | string | Search projects by name |
gitlab_get_project
Get details for a specific GitLab project (e.g., project ID "123" or path "group/project"). Returns name, description, visibility, stars, forks, and default branch.
| Parameter | Type | Description |
|---|---|---|
_apiKey * | string | GitLab personal access token |
id * | string | Project ID (numeric, e.g. "278964") or full path "namespace/project" (e.g. "gitlab-org/gitlab"). Pass the plain path — do NOT URL-encode it; the pack encodes it. |
gitlab_list_issues
Search issues in a GitLab project by project ID. Returns issue ID, title, state (open/closed), labels, assignee, and URL. Filter by status and labels.
| Parameter | Type | Description |
|---|---|---|
_apiKey * | string | GitLab personal access token |
project_id * | string | Project ID (numeric) or full path "namespace/project" (e.g. "gitlab-org/gitlab") — pass the plain path, do not URL-encode it. |
per_page | number | Number of issues to return (default 20, max 100) |
search | string | Search issues by title or description |
state | string | Filter by state: "opened", "closed", or "all" (default: "opened") |
gitlab_list_mrs
List merge requests in a GitLab project by project ID. Returns MR ID, title, state, author, source/target branches, and URL. Filter by state and author.
| Parameter | Type | Description |
|---|---|---|
_apiKey * | string | GitLab personal access token |
project_id * | string | Project ID (numeric) or full path "namespace/project" (e.g. "gitlab-org/gitlab") — pass the plain path, do not URL-encode it. |
per_page | number | Number of merge requests to return (default 20, max 100) |
state | string | Filter by state: "opened", "closed", "merged", or "all" (default: "opened") |
gitlab_get_file
Fetch file content from a GitLab repository by project ID and file path (e.g., "src/main.py"). Returns decoded content, file size, name, and encoding.
| Parameter | Type | Description |
|---|---|---|
_apiKey * | string | GitLab personal access token |
file_path * | string | Path to the file within the repository |
project_id * | string | Project ID (numeric) or full path "namespace/project" (e.g. "gitlab-org/gitlab") — pass the plain path, do not URL-encode it. |
ref | string | Branch, tag, or commit SHA (default: default branch) |