stash-mcp
by diomonogatari·★ 4·Score 41
A production-ready MCP server for Atlassian Bitbucket Server with 40 tools and robust resilience features.
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:
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 READMEget_pull_request_contextGet complete pull request with comments, tasks, diff, and activity
get_repository_overviewGet branches, tags, and open pull requests in one call
get_commit_contextGet commit details with changes and diff
list_repositoriesList all repositories with optional minimal output
search_codeSearch for code patterns across repositories
add_pull_request_commentAdd a comment to a pull request
create_pull_request_taskCreate a review task for a pull request
approve_pull_requestApprove a pull request
get_file_contentGet the content of a specific file in a repository
search_commitsSearch for commits based on various criteria
list_pull_requestsList pull requests with optional filtering
list_filesList files in a repository or directory
Comparable tools
Installation
Docker Installation
- Install Docker Desktop
- Set up environment variables:
``bash export BITBUCKET_URL="https://your-stash-server.com/" export BITBUCKET_TOKEN="your_personal_access_token" ``
- 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
Last updated · Auto-generated from public README + GitHub signals.