> For the complete documentation index, see [llms.txt](https://docs.natoma.ai/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.natoma.ai/apps/gitlab-legacy.md).

# GitLab (Legacy)

**Type:** Official

**Source Type:** Repository

**Source:** [GitHub](https://github.com/modelcontextprotocol/servers/tree/main/src/gitlab)

**Description:** GitLab (Legacy) MCP server enables AI assistants to interact with GitLab repositories using a personal access token. This is the original GitLab MCP server — for new connections, prefer **GitLab** which uses OAuth.

**Configuration Parameters:**

* **GitLab Personal Access Token** \* (sensitive) - Generated in GitLab under **User Settings → Access Tokens**.
* **GitLab API URL** (optional) - Base URL for self-hosted instances. Default: `https://gitlab.com/api/v4`.

**Setup Steps:**

1. Log in to GitLab and navigate to **User Settings → Access Tokens**.
2. Click **Add new token**, name it, and select scopes — typically `api`, `read_repository`, and (if needed) `write_repository`.
3. Click **Create personal access token** and copy the value — GitLab will not show it again.
4. When creating the connection in Natoma, paste the token (and the API URL if self-hosted) and save.
