Learn to build agentic Quarkus applications using MCP servers LangChain4j and APIs
Agentic, built on top of the powerful Quarkus framework and leveraging the Model Context Protocol (MCP), serves as a versatile universal adapter. This server allows integration between various AI applications like Claude Desktop, Continue, Cursor, and more with specific data sources and tools through standardized protocols. By utilizing Agentic’s MCP implementation, developers can ensure seamless communication channels for diverse AI tools, enhancing their capabilities in handling complex workflows.
Agentic Quarkus + MCP Server is designed to provide a robust framework for integrating multiple AI applications with external data sources and tools, all through the Model Context Protocol. This protocol enables interoperability between different platforms by standardizing how information and commands are exchanged. Key capabilities include:
The architecture of the Agentic Quarkus + MCP Server is meticulously designed to align with the Model Context Protocol. This protocol defines a structured approach for AI applications to interact seamlessly with external data sources and tools. The key components are:
graph TD
A[AI Application] -->|MCP Client| B[MCP Protocol]
B --> C[MCP Server]
C --> D[Data Source/Tool]
style A fill:#e1f5fe
style C fill:#f3e5f5
style D fill:#e8f5e8
MCP Client | Resources | Tools | Prompts | Status |
---|---|---|---|---|
Claude Desktop | ✅ | ✅ | ✅ | Full Support |
Continue | ✅ | ✅ | ✅ | Full Support |
Cursor | ❌ | ✅ | ❌ | Tools Only |
playground
at the root of your clone..env
file to include these variables:
quarkus.langchain4j.mcp.bravesearch.environment.BRAVE_API_KEY=<YOUR BRAVE API KEY HERE>
quarkus.langchain4j.mcp.googlemaps.environment.GOOGLE_MAPS_API_KEY=<YOUR GMAPS API KEY HERE>
quarkus.langchain4j.mcp.slack.environment.SLACK_BOT_TOKEN=<YOUR SLACK BOT TOKEN HERE>
quarkus.langchain4j.mcp.slack.environment.SLACK_TEAM_ID=<YOUR SLACK TEAM ID HERE>
quarkus.langchain4j.openai.api-key=<YOUR OPENAI API KEY HERE>
./mvnw compile quarkus:dev
Imagine a team of coworkers who are planning a lunch out. They have different dietary preferences and need to find a suitable restaurant. Using the Agentic Quarkus + MCP Server, the system can:
For a project manager who needs to quickly summarize large documents, the system can:
Ensure that API keys are securely stored in a .env
file:
quarkus.langchain4j.mcp.bravesearch.environment.BRAVE_API_KEY=<YOUR BRAVE API KEY HERE>
Develop custom workflows by defining the steps needed to integrate multiple tools, such as:
Agentic Quarkus + MCP Server ensures compatibility with a wide range of AI clients and tools. Here’s a detailed matrix:
Client | Resources | Tools | Prompts |
---|---|---|---|
Claude Desktop | ✅ | ✅ | ✅ |
Continue | ✅ | ✅ | ✅ |
Cursor | ❌ | ✅ | ❌ |
Ensure that environment variables are correctly set in application.properties
:
quarkus.langchain4j.mcp.bravesearch.environment.BRAVE_API_KEY=<YOUR BRAVE API KEY HERE>
For production environments, store sensitive keys securely using vaults or Kubernetes secrets.
To contribute to this project:
Agentic Quarkus + MCP Server offers a powerful solution for integrating diverse AI applications with various data sources and tools, enhancing functionality through real-time communication and dynamic workflows. By following our setup guide and leveraging its key features, developers can build highly efficient and intelligent systems tailored to their specific needs.
By positioning Agentic as a valuable tool in the developer's arsenal, this comprehensive documentation emphasizes its significance for those building AI applications and MCP integrations.
RuinedFooocus is a local AI image generator and chatbot image server for seamless creative control
Learn to set up MCP Airflow Database server for efficient database interactions and querying airflow data
Simplify MySQL queries with Java-based MysqlMcpServer for easy standard input-output communication
Build stunning one-page websites track engagement create QR codes monetize content easily with Acalytica
Access NASA APIs for space data, images, asteroids, weather, and exoplanets via MCP integration
Explore CoRT MCP server for advanced self-arguing AI with multi-LLM inference and enhanced evaluation methods