io.github.csgear/bitbucket-agent
Allows creating Pull Requests in a self-hosted Bitbucket Server instance.
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@io.github.csgear/bitbucket-agentCreate a PR from branch 'feature/new-ui' to 'develop' with title 'New UI components'"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
mcp-name: io.github.csgear/bitbucket-agent
Bitbucket PR Agent (MCP Server)
This is an MCP (Model Context Protocol) server that allows AI agents to create Pull Requests in a self-hosted Bitbucket Server instance.
Setup
Install Dependencies:
pip install -r requirements.txtConfiguration: Copy
.env.exampleto.envand fill in your details:cp .env.example .envEdit
.envwith your Bitbucket URL, credentials, project key, and repository slug.
Related MCP server: Bitbucket MCP Server
running the Server
You can test the server locally by running:
python server.py(Note: Standard MCP servers communicate over stdio, so running this directly in a terminal will just wait for input).
Integration with MCP Clients (e.g., Claude Desktop, VS Code with MCP)
To use this with an MCP-compliant client, you need to configure it to run this python script.
Example claude_desktop_config.json:
{
"mcpServers": {
"bitbucket-agent": {
"command": "python",
"args": ["/absolute/path/to/bitbucket/server.py"],
"env": {
"BITBUCKET_URL": "https://bitbucket.yourcompany.com",
"BITBUCKET_USERNAME": "your_username",
"BITBUCKET_PASSWORD": "your_password",
"BITBUCKET_PROJECT_KEY": "PROJ",
"BITBUCKET_REPO_SLUG": "repo"
}
}
}
}Note: You can either rely on the .env file loading (if the working directory is correct) or pass the environment variables directly in the config as shown above.
VS Code Configuration
To use this agent with GitHub Copilot (or other MCP-enabled VS Code extensions), you typically need to add the server configuration to your VS Code settings.
Open your Workspace Settings (
.vscode/settings.json) or User Settings.Add the definition for this MCP server. For example:
"github.copilot.mcpServers": {
"bitbucket-agent": {
"command": "python",
"args": [
"${workspaceFolder}/server.py"
],
"env": {
"BITBUCKET_URL": "https://bitbucket.yourcompany.com",
"BITBUCKET_USERNAME": "your_username",
"BITBUCKET_PASSWORD": "your_password",
"BITBUCKET_PROJECT_KEY": "PROJ",
"BITBUCKET_REPO_SLUG": "repo"
}
}
}Note: Adjust the
${workspaceFolder}/server.pypath if your script is located elsewhere. You may need to use an absolute path if${workspaceFolder}is not resolved correctly by your specific extension version.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections. Dates show when Glama detected each change.
No tool schema history has been recorded yet.
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Connectors
A MCP server built for developers enabling Git based project management with project and personal…
The Mercado Pago MCP Server implements the Model Context Protocol to provide AI agents and LLMs with access to Mercado Pago's APIs and tools within compatible development environments. It acts as an intermediary that translates Mercado Pago resources into executable functions (tools) that AI applications can invoke to perform actions and automate flows. The server simplifies integration, enables using documentation to implement or improve code, and optimizes operations through natural language interactions without manual implementations.
MCP server for building and testing AI agents with multi-model experimentation and insights.
MCP server connecting AI agents to 100+ apps (Gmail, Slack, Notion, GitHub) via one-click OAuth.
Related MCP Servers
- FlicenseAqualityDmaintenanceA Python implementation of an MCP server that enables secure, local Bitbucket integration for AI applications, providing tools for repository management, branch creation, file operations, issue tracking, and pull request creation.106-
- AlicenseCqualityBmaintenanceMCP server for integrating with Bitbucket Cloud and Server APIs, enabling AI assistants to interact with repositories, pull requests, pipelines, and more.59373MIT
- AlicenseAqualityDmaintenanceAn MCP server for BitBucket Cloud operations that enables AI agents to manage repositories, branches, pull requests, and search code.32MIT
- AlicenseBqualityDmaintenanceMCP server for Bitbucket Cloud that enables AI agents to manage repositories, branches, pull requests, and deployments via typed tools.1740ISC
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/csgear/bitbucket-agent'
If you have feedback or need assistance with the MCP directory API, please join our Discord server