MCP Catalogs
Home

stash-mcp

by diomonogatari·4·Score 41

A production-ready MCP server for Atlassian Bitbucket Server with 40 tools and robust resilience features.

developer-toolsproductivityops-infra
0
Forks
0
Open issues
3 mo ago
Last commit
2d ago
Indexed

Overview

This MCP server provides comprehensive integration with Bitbucket Server (Stash), offering 40 purpose-built tools covering repositories, pull requests, code reviews, builds, and search. It's built as a Docker container with resilience features including circuit breakers, retry mechanisms with backoff, graceful degradation, and response truncation. The server supports both read and write operations when properly configured with access tokens.

Try asking AI

After installing, here are 6 things you can ask your AI assistant:

you:Automating code review workflows with AI assistants that can analyze diffs and suggest improvements
you:Repository exploration and codebase analysis for onboarding new team members
you:Bug investigation by searching through commit history and code changes
you:CI/CD status monitoring and integration with AI assistants for build notifications
you:How do I get a Personal Access Token for Bitbucket Server?
you:What if my Docker container isn't updating with the latest version?

When to choose this

Choose this server if your team uses Bitbucket Server and wants AI assistants to have contextual access to repositories, PRs, and code reviews with workflow-optimized tools.

When NOT to choose this

Avoid if you use Bitbucket Cloud (this is for Server only), have strict security requirements preventing Docker deployment, or need functionality beyond what 40 specialized tools provide.

Tools this server exposes

12 tools extracted from the README
  • get_pull_request_context

    Get complete pull request with comments, tasks, diff, and activity

  • get_repository_overview

    Get branches, tags, and open pull requests in one call

  • get_commit_context

    Get commit details with changes and diff

  • list_repositories

    List all repositories with optional minimal output

  • search_code

    Search for code patterns across repositories

  • add_pull_request_comment

    Add a comment to a pull request

  • create_pull_request_task

    Create a review task for a pull request

  • approve_pull_request

    Approve a pull request

  • get_file_content

    Get the content of a specific file in a repository

  • search_commits

    Search for commits based on various criteria

  • list_pull_requests

    List pull requests with optional filtering

  • list_files

    List files in a repository or directory

Comparable tools

github-mcpbitbucket-mcpstash-api

Installation

Docker Installation

  1. Install Docker Desktop
  2. Set up environment variables:

``bash export BITBUCKET_URL="https://your-stash-server.com/" export BITBUCKET_TOKEN="your_personal_access_token" ``

  1. Add to VS Code MCP configuration:

``json { "servers": { "stash-bitbucket": { "command": "docker", "args": [ "run", "-i", "--rm", "-e", "BITBUCKET_URL", "-e", "BITBUCKET_TOKEN", "diomonogatari/stash-mcp:latest" ], "env": { "BITBUCKET_URL": "https://your-stash-server.com/", "BITBUCKET_TOKEN": "your_personal_access_token" }, "type": "stdio" } } } ``

FAQ

How do I get a Personal Access Token for Bitbucket Server?
In Bitbucket Server, go to User settings → App passwords → Create app password. Grant it Repository Read and/or Write permissions depending on your needs.
What if my Docker container isn't updating with the latest version?
Docker may skip pulling the latest tag if you already have an image with that tag locally. Force a fresh pull with `docker pull diomonogatari/stash-mcp:latest` or pin to a specific version tag.

Compare stash-mcp with

GitHub →

Last updated · Auto-generated from public README + GitHub signals.