# quarkiverse/mcp-server-jdbc [Health: Active]

**Category:** 🗄️ Databases  
**Repository:** https://github.com/quarkiverse/quarkus-mcp-servers/tree/main/jdbc  
**GitHub Stars:** 198  
**Views:** 4  
**Installs:** 0  
**Upvotes:** 0  
**Directory Page:** https://allmcps.com/mcp/quarkiverse-mcp-server-jdbc

## Description
Connect to any JDBC-compatible database and query, insert, update, delete, and more.

## Tools
Capabilities this server exposes over MCP:

- **read_query** — do a SELECT query on the database
- **write_query** — do a INSERT, UPDATE, DELETE query on the database
- **create_table** — create a table in the database
- **list_tables** — list all tables in the database
- **describe_table** — describe a table

## Claude Desktop Quick Installation
No generated config for this server: it installs through its own setup steps.

The project's own setup steps (from https://github.com/quarkiverse/quarkus-mcp-servers/tree/main/jdbc), copied verbatim. Follow them in order; they are not an mcpServers config.

1. Start the server:

```sh
jbang jdbc@quarkiverse/quarkus-mcp-servers
```

2. Start the server:

```sh
jbang jdbc@quarkiverse/quarkus-mcp-servers [jdbc_url]
```

3. Start the server:

```sh
jbang jdbc@quarkiverse/quarkus-mcp-servers jdbc:oracle:thin:@localhost:1521:orcl
```

4. Start the server:

```sh
jbang jdbc@quarkiverse/quarkus-mcp-servers jdbc:postgresql://localhost:5432/sakila -u sakila -p p_ssW0rd
```

5. Start the server:

```sh
jbang jdbc@quarkiverse/quarkus-mcp-servers jdbc:sqlite:%{https://github.com/lerocha/chinook-database/raw/master/ChinookDatabase/DataSources/Chinook_Sqlite.sqlite}
```

6. Start the server:

```sh
jbang -Dquarkus.log.file.enable=true -Dquarkus.log.file.path=${user.home}/mcp-jdbc.log jdbc@quarkiverse/quarkus-mcp-servers jdbc:h2:mem:testdb
```

## Documentation

## What quarkiverse/mcp-server-jdbc does

quarkiverse/mcp-server-jdbc gives MCP clients access to a relational database through Java Database Connectivity. The connection is selected with a JDBC URL, allowing the same server entry point to work with multiple database engines and local database files.

Its database capabilities cover both inspection and modification. Agents can run SELECT queries, execute INSERT, UPDATE, and DELETE statements, create tables, list available tables, and inspect a table's structure. A `jdbc_demo` prompt is also included to help start an exploration session.

Supported examples include PostgreSQL, Oracle, MariaDB, MySQL, SQL Server, SAP DB, Informix, Firebird, HSQLDB, H2, Apache Derby, and SQLite. The required JDBC driver is selected according to the database connection being used.

## How it works

The server runs as a Java application launched through JBang. With no database URL, the documented command starts an in-memory H2 database. Supplying a JDBC URL connects the server to an existing database, such as an Oracle or PostgreSQL instance.

Database credentials can be passed separately with `-u` for the username and `-p` for the password. SQLite and H2 connections can also use JBang's `%{url}` form to download a database file from the web before opening it. The examples include downloadable Chinook, Northwind, and Netflix sample databases.

MCP communication is configured through a client command entry. The example configuration uses `jbang` as the command and passes the JDBC server reference and database URL as arguments.

## Setup and configuration

Install JBang and make sure its executable is available on `PATH`. A basic in-memory launch is:

```shell
jbang jdbc@quarkiverse/quarkus-mcp-servers
```

For a database connection, append its JDBC URL:

```shell
jbang jdbc@quarkiverse/quarkus-mcp-servers jdbc:postgresql://localhost:5432/sakila -u sakila -p p_ssW0rd
```

Claude Desktop and `mcp-cli` can use a configuration entry with `jbang` as the command. Replace the JDBC URL placeholder with the target connection string.

If JBang cannot be found, install it or provide its full executable path. Additional Quarkus logging can be enabled with `-Dquarkus.log.file.enable=true` and a log path supplied through `-Dquarkus.log.file.path`.

## Tools and capabilities

- `read_query`: runs a SELECT query.
- `write_query`: runs an INSERT, UPDATE, or DELETE query.
- `create_table`: creates a database table.
- `list_tables`: returns the database's tables.
- `describe_table`: returns information about a table.
- `jdbc_demo`: provides an example prompt for exploring the server.

## Limitations and notes

Native compilation is not recommended when the server must load JDBC drivers dynamically. A native executable can target a specific driver, but configuring that specialized build is left to the user. Database compatibility depends on the JDBC driver and connection URL used; the listed database variants have corresponding driver dependencies in the project configuration.

_Full upstream README: https://allmcps.com/mcp/quarkiverse-mcp-server-jdbc/readme_

