MCP Server — kopiloto/mcp-gitlab-server

# mcp-gitlab-server > **⚠️ Development Stage Notice** > This project is currently in **development stage**. Features and APIs may change without

Remote serverstreamable-httpPython

What is the MCP Server?

mcp-gitlab-server > ⚠️ Development Stage Notice > This project is currently in development stage. Features and APIs may change without notice. Use with

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.

Recorded tools

Check the linked publisher documentation and your connected client's tool list. Names and availability can vary with the server version and account permissions.

ToolWhat it does
read_repository_codeReads the entire repository structure and file contents with advanced filtering:
read_repository_file
list_merge_requests
get_merge_request_analytics

How to install the MCP Server

{
  "mcpServers": {
    "GitLab": {
      "command": "uvx",
      "args": [
        "gitlab-mcp-server"
      ],
      "env": {
        "GITLAB_TOKEN": "<your GitLab personal access token>",
        "GITLAB_URL": "https://gitlab.com"
      }
    }
  }
}

Configuration as documented by the project. Restart the client after saving.

Configuration

VariableDescriptionRequired
GITLAB_TOKENCredential the server authenticates with.Yes
GITLAB_URLEndpoint or connection string the server talks to.Yes
GITLAB_OAUTH_TOKENCredential the server authenticates with.Yes

Example prompts to try

  • “Use MCP to read repository code.”
  • “Use MCP to read repository file.”
  • “Use MCP to list merge requests.”

Frequently asked questions

Two methods: Personal Access Token (set `GITLAB_TOKEN`) or OAuth2 Token (set `GITLAB_OAUTH_TOKEN`). The server checks for `GITLAB_OAUTH_TOKEN` first, then falls back to `GITLAB_TOKEN`. You only need to set one.