<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/posts/i-turned-gitlab-duo-into-an-mcp-tool-pbay73ywv" -->

---
title: I Turned GitLab Duo into an MCP Tool | daily.dev
description: A developer built gitlab-duo-mcp-bridge, an open-source MCP server that wraps the GitLab Duo CLI as a callable tool for AI coding agents. It exposes a single...
canonical: https://daily.dev/posts/i-turned-gitlab-duo-into-an-mcp-tool-pbay73ywv
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:type: website
og:site_name: daily.dev
og:title: I Turned GitLab Duo into an MCP Tool | daily.dev
og:description: A developer built gitlab-duo-mcp-bridge, an open-source MCP server that wraps the GitLab Duo CLI as a callable tool for AI coding agents. It exposes a single...
og:url: https://daily.dev/posts/i-turned-gitlab-duo-into-an-mcp-tool-pbay73ywv
og:image: https://api.daily.dev/og/posts/pBaY73ywV.png
og:image:alt: I Turned GitLab Duo into an MCP Tool
og:image:width: 1200
og:image:height: 630
og:locale: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# I Turned GitLab Duo into an MCP Tool

**[Agostina](https://daily.dev/sources/hlgm1yntj6ly55tw096lv)** · [@agostinadevdc](https://daily.dev/agostinadevdc) · 1 min read · 0 upvotes · 0 comments

## Summary

A developer built gitlab-duo-mcp-bridge, an open-source MCP server that wraps the GitLab Duo CLI as a callable tool for AI coding agents. It exposes a single `duo_review` tool that runs GitLab Duo headlessly, normalizes output into a stable JSON schema, and handles edge cases like malformed JSON, markdown fences, and timeouts. Compatible agents include Claude Code, Codex, Gemini CLI, and OpenCode. The project reflects a broader trend toward specialized AI tools collaborating via open protocols like MCP rather than operating as isolated chatbots.

## Content

I recently saw someone using GitLab Duo to review an entire repository during the free **$200 GitLab Duo trial**.

That made me wonder:

**Why isn't GitLab Duo just another MCP tool that any coding agent can call?**

So I built **gitlab-duo-mcp-bridge**.

It's a tiny MCP server that wraps the GitLab Duo CLI behind a single tool: `duo_review`.

Instead of parsing whatever Duo prints every time, the bridge:

- Runs GitLab Duo headlessly.
- Normalizes its output into a stable JSON schema.
- Gracefully handles malformed JSON, markdown fences, plain text, timeouts, and launch failures.
- Lets any MCP-compatible agent (Claude Code, Codex, Gemini CLI, OpenCode...) consume the results reliably.

Install:

```
npx gitlab-duo-mcp-bridge setup
```

Github: [https://github.com/DataTalesByAgos/gitlab-duo-mcp-bridge](https://github.com/DataTalesByAgos/gitlab-duo-mcp-bridge)

I think this is where AI tooling is heading: less isolated chatbots, more specialized tools collaborating through open protocols like MCP.

The project is open source, and I'd love to hear your feedback or ideas for other CLIs worth exposing as MCP tools.

## Similar posts on daily.dev

- [GitLab Duo Agent Platform adds support for Model Context Protocol](https://daily.dev/posts/gitlab-duo-agent-platform-adds-support-for-model-context-protocol-6y3ggjsjs) · GitLab · 0 upvotes · 0 comments
- [Extend GitLab Duo Agent Platform: Connect any tool with MCP](https://daily.dev/posts/extend-gitlab-duo-agent-platform-connect-any-tool-with-mcp-016vmxzad) · GitLab · 0 upvotes · 0 comments

---

[View this post on daily.dev](https://daily.dev/posts/i-turned-gitlab-duo-into-an-mcp-tool-pbay73ywv)

```json
{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://daily.dev/#organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180},"sameAs":["https://twitter.com/dailydotdev","https://github.com/dailydotdev","https://www.linkedin.com/company/daily-dev-ltd"]},{"@type":"WebSite","@id":"https://daily.dev/#website","url":"https://daily.dev","name":"daily.dev","publisher":{"@id":"https://daily.dev/#organization"},"potentialAction":{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https://daily.dev/search?q={search_term_string}"},"query-input":"required name=search_term_string"}}]}
{"@context":"https://schema.org","@type":"DiscussionForumPosting","mainEntityOfPage":"https://daily.dev/posts/i-turned-gitlab-duo-into-an-mcp-tool-pbay73ywv","headline":"I Turned GitLab Duo into an MCP Tool","text":"A developer built gitlab-duo-mcp-bridge, an open-source MCP server that wraps the GitLab Duo CLI as a callable tool for AI coding agents. It exposes a single `duo_review` tool that runs GitLab Duo headlessly, normalizes output into a stable JSON schema, and handles edge cases like malformed JSON, markdown fences, and timeouts. Compatible agents include Claude Code, Codex, Gemini CLI, and OpenCode. The project reflects a broader trend toward specialized AI tools collaborating via open protocols like MCP rather than operating as isolated chatbots.","url":"https://daily.dev/posts/i-turned-gitlab-duo-into-an-mcp-tool-pbay73ywv","datePublished":"2026-06-27T06:00:55.895Z","dateModified":"2026-06-28T00:14:49.379Z","author":{"@type":"Person","name":"Agostina","url":"https://daily.dev/agostinadevdc","image":"https://avatars.githubusercontent.com/u/172528717?v=4","description":"Ai Engineer","interactionStatistic":{"@type":"InteractionCounter","interactionType":{"@type":"EndorseAction"},"userInteractionCount":60}},"image":"https://media.daily.dev/image/upload/s--LNlm9SU2--/f_auto/v1782540056/posts/pBaY73ywV?_a=BAMAMicg0","interactionStatistic":[{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":0},{"@type":"InteractionCounter","interactionType":{"@type":"CommentAction"},"userInteractionCount":0}],"isPartOf":{"@type":"WebPage","url":"https://daily.dev/sources/hlgm1yntj6ly55tw096lv","name":"Agostina"}}
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://daily.dev"},{"@type":"ListItem","position":2,"name":"Agostina","item":"https://daily.dev/sources/hlgm1yntj6ly55tw096lv"},{"@type":"ListItem","position":3,"name":"I Turned GitLab Duo into an MCP Tool"}]}
```

