trackmcp
Back to directory
thrkrdk

langchain4j-mcp-client

View on GitHub

Model Context Protocol: Client application with Langchain4j for spring boot ai mcp server

0 stars JavaAI & Machine Learning Updated Jun 9, 2025

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

Run your own MCP server? See who uses it and what to fix.

Measure it with TrackMCP