About JBang MCP Examples
A collection of examples for interacting with LLMs from MCP servers using JBang, Quarkus, and Langchain4j. It is aimed at developers exploring these technologies; the README lists runnable calculator, weather, and stopwatch examples.
Key features
- 01Examples using JBang, Quarkus, and Langchain4j
- 02Calculator MCP example
- 03Real-weather MCP example
- 04Stopwatch MCP example
Use cases
- 01Explore LLM interaction from MCP servers
- 02Run the calculator example
- 03Run weather or stopwatch examples
MCP support
The project contains MCP server examples, including calculator, real-weather, and stopwatch programs. The README does not describe the tools or resources exposed by each server.
Configuration
Local server config is the same for every client. Copy it into your client’s MCP config file.
Tools
Local servers expose tools only once running on your machine, and the maintainer has not provided a tool list.
Details
From the project READMEJBang MCP Examples
sdk env
./mvnw clean verify
jbang ./src/main/java/MCPCalculator.java
jbang ./src/main/java/MCPRealWeather.java
jbang ./src/main/java/MCPStopWatch.java
jbang mcp-calculator@jabrena
jbang mcp-realweather@jabrena
docker build -t mcp-stopwatch -f Dockerfile .
docker run mcp-stopwatch
docker compose up -d
docker compose down
docker compose logs mcp-calculator
docker compose stats
http://localhost:3000/
jbang ./src/main/java/AIApp.java
./mvnw versions:display-dependency-updates
./mvnw versions:display-plugin-updates
./mvnw versions:display-property-updates
References
- https://github.com/quarkiverse/quarkus-mcp-servers/blob/main/jdbc/README.md
- https://github.com/punkpeye/awesome-mcp-servers
- https://github.com/jbangdev/jbang-action
- https://discord.com/channels/1128867683291627614/1211804431340019753
Powered by Cursor
Comments
New to MCP?
From what the protocol is to installing your first server, these answers cover most first questions.
An open protocol that defines how AI applications connect to external tools and data in a uniform way. Clients talk to the model; MCP servers provide tools, resources and prompt templates. They exchange standard messages, so one server can be reused by many clients.