spring-boot-ai-confluence
A Spring Boot AI-powered Model Context Protocol Server for interacting with Confluence Cloud
claude mcp add --transport stdio bootcamptoprod-spring-boot-ai-confluence-mcp-server java -jar target/confluence-mcp-server.jar \ --env CONFLUENCE_BASE_URL="https://your-confluence-cloud-instance.atlassian.net" \ --env CONFLUENCE_USERNAME="<your-confluence-username>" \ --env CONFLUENCE_API_TOKEN="<your-confluence-api-token>"
How to use
This MCP server provides a set of Confluence-related tools that are exposed to MCP clients via the Spring Boot AI integration. The server connects to Confluence Cloud and registers callable operations such as listing Confluence spaces, retrieving pages, and creating or updating documents. Tools are annotated with @Tool and are registered through ToolCallbackProvider so they appear in MCP clients as available actions. To use, run the server and connect with any MCP client (e.g., Claude desktop app). The client can then invoke the registered tools by name and pass the required parameters, and the server will return structured results (e.g., lists of spaces, page summaries, or new document IDs).
Typical workflow:
- Start the server with the required Confluence credentials.
- In your MCP client, request the list of available tools to see supported operations (e.g., listSpaces, createDocument).
- Call a tool with the appropriate inputs (such as a space key, page title, or content body).
- The server processes the request against Confluence Cloud and returns results or created resource identifiers for follow-up actions.
How to install
Prerequisites:
- Java (JDK 17+) installed on your machine
- Maven or Gradle for building the Spring Boot project
- Confluence Cloud account with API access and a valid API token
- Access to the repository containing the Confluence MCP Server example
Installation steps:
- Clone the repository: git clone https://github.com/your-org/bootcamptoprod-spring-boot-ai-confluence-mcp-server.git
- Navigate to the project directory: cd bootcamptoprod-spring-boot-ai-confluence-mcp-server
- Build the project (Maven): mvn clean package -DskipTests // or using Gradle if configured: ./gradlew build
- Ensure you have Confluence credentials and set them in environment variables or application properties as described in the README (CONFLUENCE_BASE_URL, CONFLUENCE_API_TOKEN, CONFLUENCE_USERNAME).
- Run the server: java -jar target/confluence-mcp-server.jar
- Verify the server starts and is reachable by your MCP client, then load available tools and begin issuing commands.
Additional notes
Tips and caveats:
- Ensure your Confluence Cloud API token has the necessary permissions for the operations you intend to expose (listing spaces, creating/updating pages, etc.).
- Store sensitive credentials securely; avoid committing tokens in code or configuration files.
- If you see authentication errors, double-check the CONFLUENCE_BASE_URL and API token scopes.
- The server exposes tools via the @Tool annotation and registers them with ToolCallbackProvider; add or modify tools in the codebase to customize the MCP surface.
- For testing, you can use any MCP client to explore tool names, input schemas, and response formats.
- Logs are your friend: monitor stdout/stderr for hints about tool registration or Confluence API failures.
Related MCP Servers
mcp-for-beginners
This open-source curriculum introduces the fundamentals of Model Context Protocol (MCP) through real-world, cross-language examples in .NET, Java, TypeScript, JavaScript, Rust and Python. Designed for developers, it focuses on practical techniques for building modular, scalable, and secure AI workflows from session setup to service orchestration.
api2mcp4j
This is a revolutionary AI MCP plugin with excellent pluggable and encapsulated features. With just a few lines of configuration, it can easily integrate into your Spring boot web program and give it MCP capabilities,inheriting the powerful engineering capabilities of the Spring series framework
mcp-java-sdk-examples
A collection of MCP server examples developed by various Java SDKs
mcp-annotated-java-sdk
Annotation-driven MCP dev ๐ No Spring, Zero Boilerplate, Pure Java
antlr4
ANTLR4 MCP Server
spring -example
Spring AI MCP ์๋ฒ ์์ ์ ๋๋ค.