research
- other
About
What is research?
research is a Quarkus-based application that uses the Model Context Protocol (MCP) and LangChain4j to implement a simple agentic assistant. It runs on the Quarkus Java framework and is intended for developers building multi‑MCP‑server agents.
How to use research?
Install Node.js, npm, and a container runtime (Podman/Docker) for optional telemetry. Create a playground directory for the filesystem MCP server. Obtain API keys for Brave Search, OpenAI, Google Maps, and Slack. Set them in a .env file (or application.properties for testing). Run ./mvnw compile quarkus:dev to start in dev mode; access the chat UI at http://localhost:8080 or through the Quarkus Dev UI.
Key features of research
- Orchestrates multiple MCP servers (Brave Search, Google Maps, Slack, filesystem)
- Built with Quarkus and LangChain4j for Java
- Provides both a web chat UI and a Dev UI chat interface
- Supports packaging as a JAR or native executable
- Includes built‑in telemetry via Grafana (requires a container)
Use cases of research
- Find a restaurant that matches dietary restrictions and preferences for a group.
- Send restaurant recommendations to a Slack channel.
- Create an ICS calendar file for an event in a local directory.
- Explain the reasoning steps and tool invocations used to arrive at a recommendation.
FAQ from research
What is the research application?
It is a Quarkus + LangChain4j app that uses the Model Context Protocol to combine multiple MCP servers into a single agentic assistant. It runs in Java and can be packaged as a JAR or native binary.
Which MCP servers does research support?
The example uses Brave Search, Google Maps, Slack, and a filesystem server. Additional MCP servers can be configured via application.properties.
What platforms or models does research run on?
It runs on any platform that supports Quarkus (Java 17+). The LLM backend is OpenAI (via LangChain4j), configurable through an API key.
How do I obtain the required API keys?
Links in the README point to the official pages for each service: Brave Search API, OpenAI API, Google Maps API, and Slack Bot User OAuth Token. Keys are set in a .env file or application.properties.
Is research free or open source?
The README does not specify licensing, but the project is hosted on GitHub and uses open‑source frameworks (Quarkus, LangChain4j). Usage of external services (Brave, OpenAI, etc.) requires their own API keys and may incur costs.
Details
- Author
- danieloh30
- GitHub stars
- 1
- Category
- other
- Repository
- danieloh30/quarkus-agentic-mcp
research
This project uses Quarkus, the Supersonic Subatomic Java Framework and the
Model Context Protocol to implement a simple agentic app using multiple MCP servers and Quarkus + LangChain4j.
If you want to learn more about Quarkus, please visit its website: https://quarkus.io/ .
Running the application in dev mode
You'll need node and npm installed (this is used to start mcp services). Follow the recommended way to install for your system.
You will also need a container environment available (e.g. Podman or Docker) if you want to see built-in telemetry, which you can access once the app is up by going to the Dev UI and finding the Grafana link. If you don't have a container environment, comment out the part in application.properties dealing with telemetry.
Create a directory called playground at the root folder of your clone if you wish to use the filesystem MCP server (or change the name in application.properties to some other name, but the directory must exist)
Several of the MCP services require API keys. Here are links to get the keys:
Brave web search
Open AI
Google Maps
Slack (follow the instructions to get your _Bot User OAuth Token_ that starts with xoxb-, and your _Team ID_)
Once you have all that, the easiest way is to create a file called .env in your clone (this file is listed in .gitignore so won't be pushed to GitHub if you fork this repo and make the file). The .env file should look like:
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>
These variables will automatically be included when you run Quarkus in Dev mode. You can also put them directly in application.properties but be careful not to check them into a public source repository!
For production use, these should obviously be treated differently, stored in secure places like vaults or kubernetes Secrets, and injected as environment variables at runtime.
But for testing, you can run your application in dev mode that enables live coding using:
``shell script
./mvnw compile quarkus:dev
In Dev mode, you can use the Dev UI to chat with the LLM you've configured by going to "Extensions" and clicking "Chat" to chat. You'll find the system message pre-filled in from the content from Bot.java
> _NOTE:_ Quarkus now ships with a Dev UI, which is available in dev mode only at http://localhost:8080/q/dev/.
Testing the app
There is a simple frontend application to test the assistant - access http://localhost:8080 and you should see:
Issue some sample prompts to see how it uses agent reasoning to invoke the various tools:
console
My name is Daniel Oh. I am a member of a team of 2. I like Italian food, while my colleague is on a strict gluten-free diet.
Please find one good restaurant in Boston, MA with the highest rating that meets the team's dietary needs and preferences.
Then, invite the team to a lunch at 12pm next Friday. In your message, include the name and description of the restaurant,
the time and date of the lunch, and driving directions from Back Bay, Boston.
And some simpler follow-up prompts like:
Send the restaurant recommendation details to the slack channel "#lunchtime".
Create an ICS calendar file for me in my calendar in the "playground/calendar" directory.
What was the reasoning you used to arrive at that recommendation?
How did you choose the restaurant?
What actions did you take for each step and which tools did you use?
Why did you search for gluten-free restaurants?
What do you remember about each person on the team based on team.txt file?
In Dev mode, you can also use the Dev UI to chat with the LLM you've configured by going to "Extensions" and clicking "Chat" to chat. You'll find the system message pre-filled in from the content from Bot.java
> _NOTE:_ Quarkus now ships with a Dev UI, which is available in dev mode only at http://localhost:8080/q/dev/.
Packaging and running the application
The application can be packaged using:
shell script./mvnw package
shell scriptIt produces thequarkus-run.jarfile in thetarget/quarkus-app/directory.target/quarkus-app/lib/
Be aware that it’s not an _über-jar_ as the dependencies are copied into thedirectory.java -jar target/quarkus-app/quarkus-run.jarThe application is now runnable using
.If you want to build an _über-jar_, execute the following command:
./mvnw package -Dquarkus.package.type=uber-jar
shell scriptjava -jar target/-runner.jar
The application, packaged as an _über-jar_, is now runnable using.Creating a native executable
You can create a native executable using:
./mvnw package -Dnative
Or, if you don't have GraalVM installed, you can run the native executable build in a container using:
shell script./mvnw package -Dnative -Dquarkus.native.container-build=true
`
You can then execute your native executable with:
./target/research-1.0-SNAPSHOT-runner`
If you want to learn more about building native executables, please consult https://quarkus.io/guides/maven-tooling.
Related Guides
- LangChain4j Model Context Protocol client (guide): Provides the Model Context Protocol client-side implementation for LangChain4j
- LangChain4j OpenAI (guide): Provides the basic integration with LangChain4j