GitLab (Unofficial)

v0.2.2
io.github.pipeworx-io/gitlab Checked 15 hours ago Published 15 days ago

Unofficial 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.

ParameterTypeDescription
_apiKey *stringGitLab personal access token
ownedbooleanIf true, only return projects owned by the user (default: false)
per_pagenumberNumber of projects to return (default 20, max 100)
searchstringSearch 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.

ParameterTypeDescription
_apiKey *stringGitLab personal access token
id *stringProject 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.

ParameterTypeDescription
_apiKey *stringGitLab personal access token
project_id *stringProject ID (numeric) or full path "namespace/project" (e.g. "gitlab-org/gitlab") — pass the plain path, do not URL-encode it.
per_pagenumberNumber of issues to return (default 20, max 100)
searchstringSearch issues by title or description
statestringFilter 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.

ParameterTypeDescription
_apiKey *stringGitLab personal access token
project_id *stringProject ID (numeric) or full path "namespace/project" (e.g. "gitlab-org/gitlab") — pass the plain path, do not URL-encode it.
per_pagenumberNumber of merge requests to return (default 20, max 100)
statestringFilter 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.

ParameterTypeDescription
_apiKey *stringGitLab personal access token
file_path *stringPath to the file within the repository
project_id *stringProject ID (numeric) or full path "namespace/project" (e.g. "gitlab-org/gitlab") — pass the plain path, do not URL-encode it.
refstringBranch, tag, or commit SHA (default: default branch)