Quarkus Langchain Ollama MCP Example
Example MCP client and server with Quarkus, Langchain4j and Ollama.
Ask AI about Quarkus Langchain Ollama MCP Example
Powered by Claude · Grounded in docs
I know everything about Quarkus Langchain Ollama MCP Example. Ask me about installation, configuration, usage, or troubleshooting.
0/500
Reviews
Documentation
quarkus-langchain-ollama-mcp-example
Example MCP client and server with Quarkus, Langchain4j and Ollama. The MCP server expects a city name and date, and will perform geocoding (city name to lan/lon) and fetch the min/max temperature for the given date and city.
Run with Java 17+, Maven 3.
Needs a locally running Ollama instance with a model with tool support (for example, ollama run llama3.1:latest)
Interact with the server (MCP calls) via the Quarkus UI on http://localhost:8080/q/dev-ui/io.quarkiverse.mcp.quarkus-mcp-server-sse/tools Interact with the client (via chat) via http://localhost:8081/q/dev-ui/io.quarkiverse.langchain4j.quarkus-langchain4j-core/chat
Run with mvn quarkus:dev
Example chat line for the client:
Hey, what's the temperature in Utrecht tomorrow?
replies with:
I've called the MCP tool to get the temperature for you! According to the result, tomorrow's minimum temperature in Utrecht will be around 15.6°C, while the maximum temperature is expected to reach about 20.6°C.
