langchain4j-mcp-client
Model Context Protocol: Client application with Langchain4j for spring boot ai mcp server
Documentation
Langchain4j APP MCP HOST/Client For Spring boot MCP server
- Main branch : Initial start.
- 01-connect-to-ai branch: Private LLM connection
- Create Bot Interface
- Connect to Ollama Qwen2.5-coder:14b
- Ask For the information of the number 1 star war character
- 02-use-mcp-server-sse: Connecting SSE Mcp Server
- Change Ollama url by using kaggle and ngrok
- Run Demo image in podman in SSE mode. Get the SSE URL from the podman image.
- Create ChatLanguageModel for Ollama
- Create Transport for MCP with SSE URL
- Create MCP Client
- MCP server needs ToolProvider to get the tools from the server.
- Create an aiservices instance with Bot type.
- Call the assistant with a tool.
- 03-use-mcp-server-stadio: Connecting Stdio Mcp Server
- Change Ollama url by using kaggle and ngrok
- Run Demo image in podman in STDIO mode.
- Create ChatLanguageModel for Ollama
- Create Transport for MCP with STDIO
- Create MCP Client
- MCP server needs ToolProvider to get the tools from the server.
- Create an aiservices instance with Bot type.
- Call the assistant with a tool.
03-use-mcp-server-stadio is the FINAL BRANCH. all code is in this branch
Frequently asked questions
What is langchain4j-mcp-client?
langchain4j-mcp-client is Model Context Protocol: Client application with Langchain4j for spring boot ai mcp server
How do I install langchain4j-mcp-client?
Open the GitHub repository and follow its README. Most MCP servers are added to your client's MCP config, then called by your agent.
Is langchain4j-mcp-client open source?
Yes — it is hosted on GitHub at https://github.com/thrkrdk/langchain4j-mcp-client.
Related MCP tools
The official Java SDK for Model Context Protocol servers and clients. Maintained in collaboration with Spring AI Trusted by 2800+ developers.
Plugin for JADX to integrate MCP server Java-based implementation. Trusted by 600+ developers. Trusted by 600+ developers.
🤖 The Semantic Engine for Model Context Protocol(MCP) Clients and AI Agents 🔥 Java-based implementation.
MCP Server for Ghidra Java-based implementation. Trusted by 6400+ developers. Trusted by 6400+ developers. Trusted by 6400+ developers.
A library for communication with a Minecraft client/server. Built for the Model Context Protocol to enhance AI capabilities. Java-based implementation.
🙌 OpenHands: Code Less, Make More for the Model Context Protocol. Enhance AI assistants with powerful integrations. Python-based implementation.
Run your own MCP server? See who uses it and what to fix.
Measure it with TrackMCP