A tool for interacting with GitLab API through MCP.
- List projects and their details
- List and manage merge requests
- Get file content from GitLab repositories
- List and analyze pipelines
- Search and list commits
- View user events and group members
There are several ways to install the GitLab Tool:
- Visit the GitHub Releases page
- Download the binary for your platform:
gitlab-mcp_linux_amd64
for Linuxgitlab-mcp_darwin_amd64
for macOSgitlab-mcp_windows_amd64.exe
for Windows
- Make the binary executable (Linux/macOS):
chmod +x gitlab-mcp_*
- Move it to your PATH (Linux/macOS):
sudo mv gitlab-mcp_* /usr/local/bin/gitlab-mcp
go install github.com/yourusername/gitlab-mcp@latest
- Set up environment variables in
.env
file:
GITLAB_TOKEN=your_gitlab_token
GITLAB_HOST=your_gitlab_host_url
{
"mcpServers": {
"gitlab": {
"command": "/path-to/gitlab-mcp",
"args": ["-env", "path-to-env-file"]
}
}
}
Run the tool in SSE mode:
just dev
Or build and install:
just build
just install
- Fork the repository
- Create your feature branch (
git checkout -b feature/amazing-feature
) - Commit your changes (
git commit -m 'Add some amazing feature'
) - Push to the branch (
git push origin feature/amazing-feature
) - Open a Pull Request
This project is licensed under the MIT License - see the LICENSE file for details.