quarkus-mcp-server-example

by anmiralles

334 downloads Not rated yet

About

Quarkus example about how to create mcp server which allows to interact with our REST api through Tools definition.

Explore

- Built on Quarkus framework
- Integrates with a REST API via MCP Tools
- Uses PostgreSQL for data storage
- Runs as a Java JAR extension for Goose
- Demonstrates MCP server creation in Quarkus

_maven_
podman
_java 21_
goose

For running the example we need to follow the steps:

$ mvn clean package
$ podman run -d --name db-server -e POSTGRES_USER=test -e POSTGRES_PASSWORD=test -e POSTGRES_DB=applications -p 5432:5432 postgres:16
$ cd quarkus-applications-ms && mvn quarkus:dev
$ curl -i -X POST \
  -F "name=Angel" \
  -F "surname=Miralles" \
  -F "personalId=12345R" \
  -F "country=Spain" \
  http://localhost:8080/application.html
goose session --with-extension="java -jar quarkus-mcp-server/target/quarkus-mcp-server-1.0.0-SNAPSHOT.jar"

Quarkus example about how to create mcp server which allows to interact with our REST api through Tools definition.

Prerequisites

_maven_
podman
_java 21_
goose

Running the Example

For running the example we need to follow the steps:

$ mvn clean package
$ podman run -d --name db-server -e POSTGRES_USER=test -e POSTGRES_PASSWORD=test -e POSTGRES_DB=applications -p 5432:5432 postgres:16
$ cd quarkus-applications-ms && mvn quarkus:dev
$ curl -i -X POST \
  -F "name=Angel" \
  -F "surname=Miralles" \
  -F "personalId=12345R" \
  -F "country=Spain" \
  http://localhost:8080/application.html
goose session --with-extension="java -jar quarkus-mcp-server/target/quarkus-mcp-server-1.0.0-SNAPSHOT.jar"
No reviews yet — be the first

Sign in to leave a review

Use Google, GitHub, or an email account so ratings stay tied to real people.

Email sign in

No reviews posted yet.