A practical guide to integrating Spring AI with external MCP servers using Docker Desktop's MCP Toolkit. The tutorial covers setting up GitHub and SonarCloud MCP servers via Docker MCP Toolkit, exposing them through a streaming gateway on port 8811, and building a Spring Boot application that uses the Spring AI MCP client to query those tools via an LLM. Code examples show how to configure WebClient with bearer token authentication, define REST controllers per tool using ToolCallbackProvider, and compose prompts that combine data from multiple MCP servers simultaneously.
Table of contents
Source CodeGetting Started with Docker MCP ToolkitIntegrate Spring AI with External MCP ClientsConclusionSort: