MCP Server Jdbc logo

MCP Server Jdbc

by quarkiverse

Query and modify JDBC-compatible databases through MCP, with tools for SQL, schema inspection, and table creation.

Install MCP Server Jdbc

Run the project’s own setup commands, in order.

Setup steps from the project

quarkiverse/mcp-server-jdbc installs with its own steps rather than a config we can generate, so these are copied as-is. Follow them in order and run the commands in a terminal. Source: github.com

  1. 1. Start the server
    jbang jdbc@quarkiverse/quarkus-mcp-servers
    
  2. 2. Start the server
    jbang jdbc@quarkiverse/quarkus-mcp-servers [jdbc_url]
    
  3. 3. Start the server
    jbang jdbc@quarkiverse/quarkus-mcp-servers jdbc:oracle:thin:@localhost:1521:orcl
    
  4. 4. Start the server
    jbang jdbc@quarkiverse/quarkus-mcp-servers jdbc:postgresql://localhost:5432/sakila -u sakila -p p_ssW0rd
    
  5. 5. Start the server
    jbang jdbc@quarkiverse/quarkus-mcp-servers jdbc:sqlite:%{https://github.com/lerocha/chinook-database/raw/master/ChinookDatabase/DataSources/Chinook_Sqlite.sqlite}
    
  6. 6. Start the server
    jbang -Dquarkus.log.file.enable=true -Dquarkus.log.file.path=${user.home}/mcp-jdbc.log jdbc@quarkiverse/quarkus-mcp-servers jdbc:h2:mem:testdb
    

Overview

quarkiverse/mcp-server-jdbc connects an MCP client to a JDBC-compatible database using a JDBC URL. It exposes tools for SELECT statements, INSERT/UPDATE/DELETE statements, table creation, table listing, and table descriptions. PostgreSQL, Oracle, MariaDB, SQLite, H2, MySQL, SQL Server, and other listed JDBC variants are supported. Reach for it when an agent needs to inspect or change relational database content through a standard MCP connection.

Use cases

  • Query a PostgreSQL database with natural-language assistance
  • Inspect tables and columns in an unfamiliar schema
  • Create tables in an H2 or SQLite database
  • Update or delete records through MCP tools
  • Explore downloadable sample databases

Key features

  • JDBC URL-based database connections
  • SELECT query execution
  • INSERT, UPDATE, and DELETE execution
  • Table creation and schema inspection
  • Support for multiple JDBC database variants
  • Downloadable SQLite and H2 database examples

Tools5

What MCP Server Jdbc lets your agent do. Expand a tool for its parameters.

Self-reported~54 tokens of context

Security & health

What it can reach and how reliably it runs — from our own checks, not the maintainer’s claims.

ActiveLast checked

Recent health check succeeded.

34/35 checks healthy over the last 111d

Supply-chain signal

No high-severity advisories surfaced by our automated scan.

Critical 0High 0Medium 0Low 0

Scanned 10/19/2026 via OSV.dev

Adoption & maintenance

Factual signals from GitHub, npm, and our automated checks — not a rating.

GitHub stars198Stargazers on the source repository.
Last commit23d agoMost recent push to the default branch.
Tools exposed5Callable tools this server registers over MCP.
Directory activity4 viewsConfig copies, upvotes, and views on AllMCPs.

How MCP Server Jdbc works

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.

Written by AllMCPs with AI assistance from the project’s README and listing data. How we build listings

Reviews

No reviews yet — be the first to share how it worked for you.

Frequently Asked Questions about MCP Server Jdbc

quarkiverse/mcp-server-jdbc is an MCP server that connects AI clients to JDBC-compatible databases. Its main tools run SELECT, INSERT, UPDATE, and DELETE statements, create tables, list tables, and describe tables. It supports databases such as PostgreSQL, Oracle, MariaDB, MySQL, H2, and SQLite through JDBC URLs.

Install JBang, then launch the server with `jbang jdbc@quarkiverse/quarkus-mcp-servers`. For a live database, append its JDBC URL and optionally provide `-u` and `-p` for the username and password.

It supports the listed JDBC variants, including PostgreSQL, Oracle, MariaDB, MySQL, SQL Server, SAP DB, Informix, Firebird, HSQLDB, H2, Apache Derby, and SQLite. The connection uses the JDBC URL and corresponding driver.

Add a server entry that uses `jbang` as the command and passes `jdbc@quarkiverse/quarkus-mcp-servers` plus the database URL as arguments. The same style of configuration is also shown for `mcp-cli`.

Yes. Use JBang's `%{url}` syntax inside a SQLite JDBC URL to download a database file and open it. The documented examples use the Chinook, Northwind, and Netflix sample databases.

Related MCP servers

Add a badge to your READMEShow it’s listed — live SVG, Markdown or HTML.

AllMCPs Directory Badge

Full Badge Customizer

Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.

Badge Style:
Live Dynamic SVG PreviewMCP Server Jdbc AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/quarkiverse-mcp-server-jdbc?style=directory)](https://allmcps.com/mcp/quarkiverse-mcp-server-jdbc)
HTML Embed
<a href="https://allmcps.com/mcp/quarkiverse-mcp-server-jdbc"><img src="https://allmcps.com/api/badge/quarkiverse-mcp-server-jdbc?style=directory" alt="MCP Server Jdbc on AllMCPs" /></a>