GitLab MCP Server

$npx -y @syncly/gitlab-mcp
README.md

AI-assisted code review and repository management for GitLab instances.

Enables AI-assisted code review and repository management for on-premise GitLab instances. It provides tools for interacting with merge requests, browsing source code, and searching repositories via the Model Context Protocol.

Tools (4)

list_merge_requestsList merge requests for a specific project.
get_merge_requestGet details of a specific merge request.
search_repositoriesSearch for repositories across the GitLab instance.
browse_source_codeBrowse files and directories in a repository.

Environment Variables

GITLAB_URLrequiredThe base URL of your GitLab instance (e.g., https://gitlab.com or your self-hosted URL).
GITLAB_TOKENrequiredPersonal Access Token with API scope permissions.

Configuration

claude_desktop_config.json
{"mcpServers":{"gitlab":{"command":"npx","args":["-y","@syncly/gitlab-mcp"],"env":{"GITLAB_URL":"https://gitlab.com","GITLAB_TOKEN":"your_token_here"}}}}

Try it

List all open merge requests for project ID 12345.
Search for repositories related to 'microservices' in our GitLab instance.
Show me the source code for the main.go file in the 'api-gateway' project.
Get the details and discussion history for merge request !42 in project 567.
Help me review the changes in the latest merge request for the frontend repository.

Frequently Asked Questions

How do I install GitLab MCP Server?

Install GitLab MCP Server by running: npx -y @syncly/gitlab-mcp

What MCP clients work with GitLab MCP Server?

GitLab MCP Server works with any MCP-compatible client including Claude Desktop, Claude Code, Cursor, and other editors with MCP support.

Use GitLab MCP Server with Conare

Manage MCP servers visually, upload persistent context, and never start from zero with Claude Code & Codex.

Try Free