home / mcp / bitbucket mcp server
This read-only MCP Server allows you to connect to Bitbucket data from Claude Desktop through CData JDBC Drivers. For full CRUD support, check out our MCP Server for Bitbucket (https://www.cdata.com/drivers/bitbucket/download/mcp).
Configuration
View docs{
"mcpServers": {
"cdatasoftware-bitbucket-mcp-server-by-cdata": {
"command": "java",
"args": [
"-jar",
"/PATH/TO/CDataMCP-jar-with-dependencies.jar",
"/PATH/TO/bitbucket.prp"
]
}
}
}You can query live Bitbucket data through a dedicated MCP server that exposes data via MCP tools, enabling large language models to read from Bitbucket without writing SQL. This read-only MCP server wraps the CData JDBC Driver to present Bitbucket data as relational models, making it easy to ask natural language questions and get up-to-date results.
Once you have the MCP server running, you interact with it using an MCP-compatible client. You don’t need to write SQL. Instead, you issue requests that leverage the built‑in MCP tools to discover available data and run read-only queries. Typical use cases include asking questions like which accounts have certain activity, retrieving lists of tables and columns to understand the data model, and performing read-only queries across Bitbucket data.
Prerequisites you need before installation:
Install Java Runtime Environment (JRE) 8+ so you can run the MCP server JAR.
Install a Java build tool if you plan to build the MCP server from source (optional if you use a prebuilt JAR): Maven.
# 1. Build the MCP server (if you are starting from source)
# mvn clean install
# This produces the JAR: CDataMCP-jar-with-dependencies.jar# 2. Prepare the Bitbucket MCP configuration (bitbucket.prp) with your JDBC connection details
# Include Prefix, ServerName, ServerVersion, DriverPath, DriverClass, JdbcUrl, Tables as shown in the source setup# 3. Run the MCP server on its own (stdio mode)
java -jar /PATH/TO/CDataMCP-jar-with-dependencies.jar /PATH/TO/bitbucket.prp{
"mcpServers": {
"bitbucket_mcp": {
"type": "stdio",
"command": "java",
"args": ["-jar", "/PATH/TO/CDataMCP-jar-with-dependencies.jar", "/PATH/TO/bitbucket.prp"]
}
}
}Retrieves a list of tables available in the data source. The output is returned in CSV format with column headers on the first line.
Retrieves a list of columns for a specific table. The output is CSV with column headers on the first line.
Executes a SQL SELECT query against the Bitbucket data exposed by the MCP server.