How to Connect GitLab Remote MCP to Cline
Add GitLab's remote MCP server to Cline in about a minute.
Step-by-step
- Open Cline MCP settingsCline sidebar โ MCP Servers โ Configure MCP Servers โ this opens
cline_mcp_settings.json. - Paste the configAdd the
mcpServersentry shown above (Streamable HTTPurl+ optionalheaders). - AuthorizeOn first use your client opens a GitLab OAuth consent screen โ approve it and tools become available.
- VerifyVerify in the browser: paste
https://gitlab.com/api/v4/mcpinto remotemcp.net/inspector and run initialize + tools/list.
Troubleshooting OAuth / 401
- A
401 Unauthorizedon first connect is normal โ the endpoint is OAuth-protected; let Cline finish the browser consent flow. - If the consent window never opens, remove and re-add the server, then retry.
- Check the exact challenge at our OAuth debugger.
- Run the live endpoint through the online inspector to see the raw JSON-RPC exchange.
Or add to ~/.cursor/mcp.json:
{
"mcpServers": {
"gitlab": {
"url": "https://gitlab.com/api/v4/mcp"
}
}
}claude mcp add --transport http gitlab https://gitlab.com/api/v4/mcp
Or add to .vscode/mcp.json:
{
"servers": {
"gitlab": {
"type": "http",
"url": "https://gitlab.com/api/v4/mcp"
}
}
}- Open Settings โ Connectors (Integrations) โ Add Custom Connector.
- Paste the endpoint URL:
https://gitlab.com/api/v4/mcp - Complete the browser OAuth 2.1 login flow when prompted.
Bridge the remote endpoint into stdio with mcp-remote in claude_desktop_config.json:
{
"mcpServers": {
"gitlab": {
"command": "npx",
"args": [
"-y",
"mcp-remote",
"https://gitlab.com/api/v4/mcp"
]
}
}
}Add to ~/.codeium/windsurf/mcp_config.json:
{
"mcpServers": {
"gitlab": {
"serverUrl": "https://gitlab.com/api/v4/mcp"
}
}
}Add to ~/.kiro/settings/mcp.json (or .kiro/settings/mcp.json in your workspace), then reopen Kiro's Agent panel to pick up the server:
{
"mcpServers": {
"gitlab": {
"url": "https://gitlab.com/api/v4/mcp"
}
}
}Add to ~/.codex/config.toml โ Codex reads remote HTTP servers from [mcp_servers.*] tables:
[mcp_servers.gitlab] url = "https://gitlab.com/api/v4/mcp"
Add to cline_mcp_settings.json (Cline โ MCP Servers โ Configure), or paste it via Cline's MCP marketplace file:
{
"mcpServers": {
"gitlab": {
"type": "streamableHttp",
"url": "https://gitlab.com/api/v4/mcp"
}
}
}Add to ~/.gemini/settings.json under mcpServers โ httpUrl for Streamable HTTP, url for legacy SSE:
{
"mcpServers": {
"gitlab": {
"httpUrl": "https://gitlab.com/api/v4/mcp"
}
}
}Tools exposed by GitLab (22)
| Tool | Safety | Description | Parameters |
|---|---|---|---|
| mcp_search ~34 tok | ๐ข Read | Search GitLab projects, issues and merge requests. | โ |
| get_project ~30 tok | ๐ข Read | Get details of a GitLab project. | โ |
| list_projects ~28 tok | ๐ข Read | List GitLab projects. | โ |
| get_file_contents ~31 tok | ๐ข Read | Read a file from a repository. | โ |
| get_issue ~26 tok | ๐ข Read | Get a GitLab issue. | โ |
| list_issues ~28 tok | ๐ข Read | List issues of a project. | โ |
| create_issue ~28 tok | ๐ Write | Create a GitLab issue. | โ |
| create_issue_note ~29 tok | ๐ Write | Add a note to an issue. | โ |
| get_merge_request ~29 tok | ๐ข Read | Get a merge request. | โ |
| list_merge_requests ~32 tok | ๐ข Read | List merge requests of a project. | โ |
| create_merge_request ~30 tok | ๐ Write | Create a merge request. | โ |
| create_merge_request_note ~33 tok | ๐ Write | Add a note to a merge request. | โ |
| get_pipeline ~28 tok | ๐ข Read | Get a CI/CD pipeline. | โ |
| list_pipelines ~30 tok | ๐ข Read | List pipelines of a project. | โ |
| get_job ~26 tok | ๐ข Read | Get a pipeline job. | โ |
| get_milestone ~29 tok | ๐ข Read | Get a project milestone. | โ |
| list_milestones ~29 tok | ๐ข Read | List project milestones. | โ |
| get_commit ~25 tok | ๐ข Read | Get a commit. | โ |
| list_branches ~29 tok | ๐ข Read | List repository branches. | โ |
| create_branch ~29 tok | ๐ Write | Create a repository branch. | โ |
| list_tags ~27 tok | ๐ข Read | List repository tags. | โ |
| run_pipeline ~29 tok | ๐ Write | Trigger a CI/CD pipeline. | โ |
Connect GitLab to another client
Other servers for Cline
GitHub's official remote MCP server hosted at api.githubcopilot.com. Gives AI agents first-party access to repositories, issues, pull requests and code search.
Notion's official hosted MCP server. Agents can search your workspace, read and create pages, and query databases over Streamable HTTP or SSE.
Linear's official remote MCP server. Agents can search, create and update issues and query your team's workflow over Streamable HTTP or SSE.
Figma's official remote MCP server. Agents can pull design context, variables, Code Connect mappings and screenshots from your Figma files.
AWS Knowledge's hosted remote MCP server. AWS's fully-managed public knowledge MCP gives agents access to the latest AWS documentation, API references, What's New posts and architectural guidance across all AWS services. It is public and unauthenticated โ connect and call tools immediately.
Stripe's official remote MCP server at mcp.stripe.com. Agents can query customers, payment intents and subscriptions and invoke Stripe API operations with OAuth.