Integrations
Manages environment variables for the MCP server configuration, providing secure storage for GitLab and Confluence credentials.
Stores GitLab merge request analysis results in Confluence pages, allowing teams to document and share code change reports within their Confluence workspace.
Fetches merge request details and analyzes code changes from GitLab projects, providing statistics, file type analysis, and detailed file changes.
GitLab PR Analysis MCP Server
This project provides an MCP (Model Control Protocol) server that integrates GitLab merge request analysis with Confluence documentation. It allows you to fetch merge request details, analyze code changes, and store the results in Confluence pages.
Features
- Fetch merge request details from GitLab
- Analyze code changes in merge requests
- Generate detailed reports including:
- Basic merge request information
- Code change statistics
- File type analysis
- Detailed file changes
- Store analysis results in Confluence
- Comprehensive logging for debugging
Prerequisites
- Python 3.8 or higher
- GitLab account with API access
- Confluence account (optional, for storing analysis results)
- Access to the required GitLab project(s)
Installation
- Clone the repository:
- Create and activate a virtual environment:
- Install dependencies:
or
Configuration
- Copy the example environment file:
- Edit the
.env
file with your credentials:
Obtaining Credentials
- GitLab Token: Generate a personal access token in GitLab with
api
scope - Confluence Token: Generate an API token in your Atlassian account settings
Usage
- Start the MCP server:
or
Setup with Claude Desktop
Can you fetch details for merge request #1 from project "my-project"? Can you analyze code changes in merge request #1 from project "my-project"? Can you store a summary of merge request #1 from project "my-project" in Confluence?
MRConfluenceLinker-mcp-server/ ├── src/ # Source code directory │ └── MRConfluenceLinker-mcp-server/ # Main server package │ ├── resources/ # Resource modules │ │ ├── init.py │ │ ├── client.py # Client implementation / GitLab PR integration │ ├── server.py # Main server implementation │ └── mcp_server.log # Server logs ├── pycache/ # Python cache files ├── .git/ # Git repository ├── .gitignore # Git ignore rules ├── CONTRIBUTING.md # Contributing guidelines ├── LICENSE # Project license ├── README.md # Project documentation ├── pyproject.toml # Python project configuration ├── requirements.txt # Project dependencies └── uv.lock # Dependency lock file
This server cannot be installed
Integrates GitLab merge request analysis with Confluence documentation, allowing users to fetch merge request details, analyze code changes, and store analysis results in Confluence pages.