Gitlab MCP Swift MCP Server

A Model Context Protocol (MCP) server that wraps the GitLab CLI (`glab`) to provide GitLab functionality to AI assistants like Claude Desktop.

Remote serverstreamable-http

What is the Gitlab MCP Swift MCP Server?

A Model Context Protocol (MCP) server that wraps the GitLab CLI (glab) to provide GitLab functionality to AI assistants like Claude Desktop.

The short version

  • 🚀 Native Swift implementation using the official MCP Swift SDK
  • 🔧 Full GitLab CLI integration - supports all glab commands
  • 🎯 Smart prompts for common workflows (merge requests, CI/CD, daily standup)
  • 📊 JSON output parsing with fallback to plain text
  • 🔐 Secure authentication via system glab credentials
  • ⚡ High performance with Swift's async/await concurrency

What it needs from you

  • macOS (Swift 5.9+ installed via Xcode) - glab CLI installed and authenticated - Claude Desktop or another MCP-compatible client

More MCP options

Compare MCP servers by category, or browse hosted MCP servers if you prefer an endpoint over a local process.

Maintainer setup documentation.

How to install the Gitlab MCP Swift MCP Server

{
  "mcpServers": {
    "gitlab": {
      "command": "/Users/YOUR_USERNAME/.swiftpm/bin/git-lab-mcp",
      "args": [
        "--log-level",
        "info"
      ],
      "env": {
        "PATH": "/opt/homebrew/bin:/usr/local/bin:/usr/bin:/bin"
      }
    }
  }
}

From the project documentation. Replace placeholders and example paths before connecting.

Configuration

  • macOS (Swift 5.9+ installed via Xcode) - glab CLI installed and authenticated - Claude Desktop or another MCP-compatible client
VariableDescriptionRequired
PATHDeclared in the maintainer’s client configuration.Check documentation

Example prompts to try

  • “Use Gitlab MCP Swift to Prompts.”

Frequently asked questions

A Model Context Protocol (MCP) server that wraps the GitLab CLI (`glab`) to provide GitLab functionality to AI assistants like Claude Desktop. Confirm the tools offered by your installed version in the connected client. Tool availability and permissions depend on the server and account configuration.