Quarkus MCP server example

Quarkus MCP server example

quarkus-mcp-server-example•byanmiralles

An example Quarkus-based Model Context Protocol server that exposes application REST API operations as MCP tools for AI assistants.

License: Not specified•Runtime: Awaiting documentation review•Category: developer tools

WHAT IT DOES

  • •Exposes MCP tools for listing all applications, getting an application by ID, and filtering applications by country or by country and status.
  • •Provides an add_application MCP tool to create new applications.
  • •MCP server acts as a protocol bridge, making REST calls to the applications microservice which queries PostgreSQL.

BEST FOR

  • •Querying and adding application records in natural language via Goose CLI connected to the MCP server.
  • •Learning how to expose REST API operations as MCP tools using Quarkus.

ABOUT QUARKUS-MCP-SERVER-EXAMPLE

Quarkus MCP server example is cataloged as an MCP server attributed to anmiralles. An example Quarkus-based Model Context Protocol server that exposes application REST API operations as MCP tools for AI assistants. It is categorized under developer tools. See the capability inspector for recorded interfaces and their independent review status; consult upstream documentation for the current interface.

HOW TO INSTALL

Installation configuration is not reviewed. No executable setup is offered for this entry; inspect the source repository before proceeding.

LICENSE

Catalog license label: Not specified. Check the source repository's current license and terms before using, modifying or distributing this software.

Capability inspector

Capability definitions are not reviewed. Unreviewed imports are not exposed as trusted interfaces.

Tools (0)

No reviewed records to display. This does not establish that upstream lacks this capability.

Resources (0)

No reviewed records to display. This does not establish that upstream lacks this capability.

Prompts (0)

No reviewed records to display. This does not establish that upstream lacks this capability.

NEWSLETTER - COMING LATER

Newsletter subscriptions are not open yet

Email delivery is not connected. This page does not collect email addresses or create subscriptions.

Browse the registry for current listings instead.

Community Reviews

Coming later

Reviews for Quarkus MCP server example are not available yet

Review publishing and storage are not connected. This page does not collect or publish ratings or comments, including after sign-in.

FREQUENTLY ASKED QUESTIONS

What tools does the MCP server expose?

It exposes list_applications, get_application_by_id, get_applications_by_country, get_applications_by_country_and_status, and add_application.

Upstream README

View this exact version on GitHub

README.md · f788c7944641 · Fetched 2026-11-13 11:06:56 UTC

Original upstream text, without AI rewriting. Scripts, forms and unsafe links are filtered for safety.

Showing the last retrieved documentation snapshot; check the source for current changes.

Quarkus MCP Server Example

A comprehensive example demonstrating how to build a Model Context Protocol (MCP) server using Quarkus that exposes REST API operations as AI tools. This enables Large Language Models like Claude to interact with your application data through natural language using the Goose CLI.

🎯 What This Example Demonstrates

This project showcases the integration of three powerful technologies:

  • Quarkus: Supersonic, subatomic Java framework for building modern applications
  • MCP (Model Context Protocol): Open standard for connecting AI assistants to data sources and tools
  • Goose CLI: AI-powered development assistant that can interact with MCP servers

📋 Table of Contents

🔗 What is MCP?

Model Context Protocol (MCP) is an open standard that enables AI assistants to securely connect to and interact with various data sources and tools. Instead of building custom integrations for each AI assistant, MCP provides a universal protocol for:

  • Tool Discovery: AI assistants can discover what tools are available
  • Tool Execution: Safely execute operations on external systems
  • Data Access: Retrieve and manipulate data from various sources
  • Standardization: One implementation works with any MCP-compatible AI assistant

MCP Benefits

  • Interoperability: Works with any MCP-compatible AI assistant
  • Security: Controlled access to external resources
  • Extensibility: Easy to add new tools and capabilities
  • Standardization: No need for custom integrations per AI assistant

⚡ What is Quarkus?

Quarkus is a Kubernetes-native Java framework designed for modern application development:

  • Fast Startup: Sub-second startup times
  • Low Memory Usage: Optimized for containerized environments
  • Developer Joy: Live reload, unified configuration, and great tooling
  • Cloud Native: Built for Kubernetes, serverless, and microservices
  • Standards Based: Uses familiar Java standards (JAX-RS, CDI, JPA)

Quarkus for MCP

Quarkus is ideal for MCP servers because:

  • Quick Development: Fast feedback loop with live reload
  • Lightweight: Minimal resource usage for tool servers
  • Native Compilation: Ultra-fast startup with GraalVM
  • Rich Ecosystem: Extensive extensions for database, REST clients, etc.

🦆 What is Goose?

Goose is an AI-powered development assistant CLI that helps developers by:

  • Natural Language Interface: Interact with your development environment using plain English
  • MCP Integration: Connects to MCP servers to access external tools and data
  • Context Awareness: Understands your project structure and codebase
  • Tool Execution: Can execute commands, modify files, and interact with APIs
  • Multi-Model Support: Works with various LLMs including Claude, GPT, etc.

Goose with MCP

When combined with MCP servers, Goose can:

  • Query databases through natural language
  • Interact with REST APIs without manual curl commands
  • Perform complex operations by combining multiple tools
  • Provide intelligent insights based on your application data

🏗️ Solution Architecture

┌─────────────────────────────────────────────────────────────────────────────┐
│                           MCP Integration Flow                               │
└─────────────────────────────────────────────────────────────────────────────┘

    ┌─────────────┐    MCP Protocol     ┌─────────────────┐    REST API    ┌──────────────┐
    │             │   (JSON-RPC over    │                 │   (HTTP/JSON)  │              │
    │    Goose    │◄───────────────────►│   Quarkus MCP   │◄──────────────►│   Quarkus    │
    │     CLI     │     STDIO/SSE)      │     Server      │                │ Applications │
    │             │                     │                 │                │      MS      │
    └─────────────┘                     └─────────────────┘                └──────────────┘
           │                                      │                               │
           │                                      │                               │
    ┌──────▼──────┐                        ┌─────▼─────┐                 ┌───────▼───────┐
    │             │                        │           │                 │               │
    │   Claude    │                        │ MCP Tools │                 │  PostgreSQL   │
    │     LLM     │                        │           │                 │   Database    │
    │             │                        │ • list    │                 │               │
    └─────────────┘                        │ • get     │                 └───────────────┘
                                           │ • filter  │
                                           │ • add     │
                                           └───────────┘

┌─────────────────────────────────────────────────────────────────────────────┐
│                              Data Flow                                      │
└─────────────────────────────────────────────────────────────────────────────┘

1. User asks Goose: "Show me all applications from Spain"
                    ↓
2. Goose sends MCP request to discover available tools
                    ↓
3. MCP Server exposes tools: list_applications, get_applications_by_country, etc.
                    ↓
4. Goose calls get_applications_by_country("Spain") tool
                    ↓
5. MCP Server makes REST call to Applications MS
                    ↓
6. Applications MS queries PostgreSQL database
                    ↓
7. Results flow back through the chain to Goose
                    ↓
8. Goose presents results to user in natural language

Component Responsibilities

ComponentPurposeTechnology
Goose CLIAI assistant interface, natural language processingGo, LLM integration
Quarkus MCP ServerProtocol bridge, tool definitionsQuarkus, MCP protocol
Quarkus Applications MSBusiness logic, data operationsQuarkus, JAX-RS, Hibernate
PostgreSQLData persistenceRelational database

Prerequisites

Before running this example, ensure you have the following installed:

  • Java 21: Required for Quarkus applications
  • Maven: Build tool for the Java projects
  • Podman/Docker: Container runtime for PostgreSQL database
  • Goose CLI: AI assistant tool (installation guide)

Installing Goose

# Using Go (requires Go 1.21+)
go install github.com/square/goose@latest

# Or download binary from releases
# https://github.com/square/goose/releases

🚀 Running the Example

Step 1: Build the Project

mvn clean package

Step 2: Start PostgreSQL Database

podman run -d --name db-server \
  -e POSTGRES_USER=test \
  -e POSTGRES_PASSWORD=test \
  -e POSTGRES_DB=applications \
  -p 5432:5432 \
  postgres:16

Step 3: Start the Applications Microservice

cd quarkus-applications-ms && mvn quarkus:dev

The applications service will start on http://localhost:8080

Step 4: (Optional) Add Sample Data

curl -i -X POST \
  -F "name=Angel" \
  -F "surname=Miralles" \
  -F "personalId=12345R" \
  -F "country=Spain" \
  http://localhost:8080/application.html

curl -i -X POST \
  -F "name=Juan" \
  -F "surname=Garcia" \
  -F "personalId=31234R" \
  -F "country=Spain" \
  http://localhost:8080/application.html
  
curl -i -X POST \
  -F "name=Pedro" \
  -F "surname=Rodriguez" \
  -F "personalId=54321R" \
  -F "country=Germany" \
  http://localhost:8080/application.html

Step 5: Start Goose with MCP Server

goose session --with-extension="java -jar quarkus-mcp-server/target/quarkus-mcp-server-1.0.0-SNAPSHOT.jar"

💡 Usage Examples

Once you have Goose running with the MCP server, you can interact with your application data using natural language:

Basic Queries

> Show me all applications in the system
> List applications from Spain
> Get application with ID 1

Filtered Queries

> Show me all applications from France with COMPLETED status
> List all STARTED applications
> Find applications from Germany

Data Management

> Add a new application for John Doe from USA with ID 67890
> Create an application for Maria Garcia from Mexico

Available MCP Tools

The MCP server exposes these tools to Goose:

Tool NameDescriptionParameters
list_applicationsLists all applicationsNone
get_application_by_idGet specific applicationid: Long
get_applications_by_countryFilter by countrycountryName: String
get_applications_by_country_and_statusFilter by country and statuscountryName: String, status: ApplicationStatus
add_applicationCreate new applicationapplication: Application

Application Status Values

  • STARTED
  • PREPROCESSED
  • PROCESSED
  • COMPLETED
  • CANCELED
  • ERROR

🔧 Development

Development Mode

# Start applications service in dev mode (hot reload)
cd quarkus-applications-ms && mvn quarkus:dev

# Package MCP server for testing
cd quarkus-mcp-server && mvn package

Project Structure

quarkus-mcp-server-example/
├── quarkus-applications-ms/           # REST API microservice
│   ├── src/main/java/me/amiralles/applications/
│   │   ├── boundary/ApplicationsResource.java    # REST endpoints
│   │   ├── entity/Application.java               # JPA entity
│   │   └── control/ApplicationExceptionMapper.java
│   └── src/main/resources/application.properties
├── quarkus-mcp-server/                # MCP server
│   ├── src/main/java/me/amiralles/mcp/
│   │   ├── McpApplicationsServer.java            # MCP tools definition
│   │   ├── client/ApplicationsClient.java        # REST client
│   │   └── model/Application.java                # Data models
│   └── src/test/java/
└── deployment/docker-compose/         # Monitoring stack

🔗 References

📄 License

This project is provided as an example for educational purposes.

Install configuration

Are you the maintainer?

Claim this server with your GitHub account to request manual ownership verification.

README Embed Badge
Markdown

Link to the catalog listing for Quarkus MCP server example from your README. This badge does not certify ownership, compatibility or security.

[![MCP catalog listing](https://img.shields.io/badge/MCP-awesome--mcp-orange?style=flat-square)](https://awesome-mcp.com/servers/quarkus-mcp-server-example)

REPOSITORY STATS

GitHub StarsUnavailable
ForksUnavailable

Public repository statistics could not be verified. Check the configured source address; unavailable counts are not zero.

Downloads and pulls

Separate sources, scopes and periods. Never combined or treated as installations, active users or security reviews.

No reviewed package or image identity; download statistics are not listed yet.

Related developer tools MCP Servers

Alternative and complementary servers in the same category

View all in developer tools →
Postbye
postbye-mcp•postbye-team

A directory listing describing a cancellation-letter and mailing-address service. The configured public GitHub repository returned 404 during source verification.

Repository stats unavailable
Developer Tools
Singapore Proxy MCP
singapore-proxy-mcp•Xavierfok

A hosted MCP service for browsing and searching through Singapore mobile-network proxies.

0
Developer Tools

A directory listing describing a Markdown-to-PDF service. The configured public GitHub repository returned 404 during source verification.

Repository stats unavailable
Developer Tools