A fully typed TypeScript Model Context Protocol (MCP) server for comprehensive GitLab integration.
Create a GitLab Personal Access Token with api
, read_user
, and read_repository
scopes.
Add to your Claude Desktop config (~/Library/Application Support/Claude/claude_desktop_config.json
on macOS):
{
"mcpServers": {
"gitlab": {
"command": "npx",
"args": ["-y", "@alosies/gitlab-mcp-server"],
"env": {
"NPM_CONFIG_TOKEN": "your-gitlab-token-here"
}
}
}
}
Ask Claude things like:
- "List my GitLab projects"
- "Show me open issues in myproject"
- "Create a merge request from feature-branch to main"
- "Get the logs for job #123"
- Projects: List, get details
- Issues: List, get, create
- Merge Requests: List, get, create, update
- Pipelines: List, get, create, retry, cancel, delete
- Jobs: List jobs, get logs with advanced trace options
- Repository: List branches, get commits
- User: Get current user info
- TypeScript: Fully typed with comprehensive type definitions
- Installation Guide - Detailed installation options and setup
- Available Tools - Complete list of tools and parameters
- Configuration - Optional configuration file setup
- Usage Examples - Real-world usage examples and workflows
- TypeScript Guide - TypeScript usage and type definitions
- Development - Contributing and development setup
For self-hosted GitLab instances, add your base URL:
{
"mcpServers": {
"gitlab": {
"command": "npx",
"args": ["-y", "@alosies/gitlab-mcp-server"],
"env": {
"NPM_CONFIG_TOKEN": "your-token",
"GITLAB_BASE_URL": "https://gitlab.mycompany.com"
}
}
}
}
- Issues: GitHub Issues
- GitLab API: GitLab API Documentation
- MCP Protocol: Model Context Protocol
MIT License