Skip to main content
Glama
ahnmichael

GitLab Forum MCP

by ahnmichael
README.md
## GitLab Forum MCP

āš ļø **This is an unofficial, community-created MCP** - not affiliated with or endorsed by GitLab Inc.

A Model Context Protocol (MCP) stdio server specifically configured for GitLab forum troubleshooting and support. This is a specialized fork of [discourse-mcp](https://github.com/discourse/discourse-mcp) optimized for https://forum.gitlab.com.

**Perfect for GitLab users and support teams** who need to quickly search, read, and analyze discussions on GitLab's community forum for troubleshooting CI/CD issues, GitLab features, and community support.

### GitLab-Specific Features
- šŸŽÆ **Pre-configured for GitLab forum** (https://forum.gitlab.com)
- šŸ” **Enhanced search with GitLab compatibility fixes** - improved error handling and debug logging
- ⚔ **Optimized workflows** for GitLab troubleshooting scenarios
- šŸ“ **Ready-to-use profile** - just clone and run
- šŸ·ļø **GitLab-focused configuration** for common support topics

## Quick Start

### Command Line Usage

**Recommended: Run with GitLab forum profile**
```bash
npx -y @ahnmichael/gitlab-forum-mcp@latest --profile gitlab-forum-profile.json
```

**Alternative: Run with site parameter**
```bash
npx -y @ahnmichael/gitlab-forum-mcp@latest --site https://forum.gitlab.com
```

### Use in Claude Desktop

Add to your `claude_desktop_config.json`:

```json
{
  "mcpServers": {
    "gitlab-forum": {
      "command": "npx",
      "args": ["-y", "@ahnmichael/gitlab-forum-mcp@latest", "--site", "https://forum.gitlab.com"]
    }
  }
}
```

Or with the profile configuration:
```json
{
  "mcpServers": {
    "gitlab-forum": {
      "command": "npx",
      "args": ["-y", "@ahnmichael/gitlab-forum-mcp@latest", "--profile", "/path/to/gitlab-forum-profile.json"]
    }
  }
}
```

## Available Tools

- **discourse_search** - Search GitLab forum discussions
- **discourse_read_topic** - Read full topic threads
- **discourse_read_post** - Read individual posts
- **discourse_list_categories** - Browse forum categories
- **discourse_list_tags** - Browse available tags
- **discourse_get_user** - Get user information
- **discourse_filter_topics** - Filter topics by various criteria

## Getting the Profile File

1. **Clone this repository:**
   ```bash
   git clone https://github.com/ahnmichael/gitlab-forum-mcp.git
   cd gitlab-forum-mcp
   ```

2. **Use the profile file:**
   ```bash
   npx -y @ahnmichael/gitlab-forum-mcp@latest --profile gitlab-forum-profile.json
   ```

## Requirements

- **Node.js**: >= 18
- **Internet connection** to access GitLab forum

## Contributing

This is a specialized fork of [discourse-mcp](https://github.com/discourse/discourse-mcp) for GitLab forum usage.

- **Report issues**: [GitHub Issues](https://github.com/ahnmichael/gitlab-forum-mcp/issues)
- **Source code**: Built with Node.js and TypeScript
- **Contributing**: PRs welcome for GitLab-specific improvements

## License

MIT License - see [LICENSE](LICENSE) file for details.

## Acknowledgments

- Original [discourse-mcp](https://github.com/discourse/discourse-mcp) project by Discourse
- Enhanced search functionality developed through Claude Desktop testing

TDQS

B3.4/5.0

Scored across 8 tools

Disambiguation5/5

Each tool has a clearly distinct purpose with no overlap: filtering topics, getting user info, listing categories/tags, reading posts/topics, searching content, and selecting a site. The descriptions reinforce these distinct roles, making misselection unlikely.

Naming Consistency5/5

All tools follow a consistent 'discourse_verb_noun' pattern (e.g., discourse_filter_topics, discourse_get_user, discourse_list_categories). This predictable naming scheme enhances readability and usability across the set.

Tool Count5/5

With 8 tools, this server is well-scoped for interacting with a GitLab forum (Discourse instance). Each tool serves a specific, non-redundant function, covering core operations like reading, listing, filtering, and searching without being overly sparse or bloated.

Completeness4/5

The toolset provides strong coverage for reading and querying forum data, including topics, posts, users, categories, and tags. A minor gap exists in write operations (e.g., creating or replying to posts), but agents can still perform most common read-only workflows effectively.

Maintenance

ActivityInactive
ResponsivenessNo issues