Labsco
mikechao logo

JDBC Explorer

โ˜… 1

from mikechao

A server that enables LLMs to connect and interact with databases via JDBC, built using the Spring AI MCP framework.

๐Ÿ”ฅ๐Ÿ”ฅ๐Ÿ”ฅโœ“ VerifiedFreeAdvanced setup

JDBC Explorer

A Model Context Protocol server for connecting LLM to databases via JDBC. This server is implemented using the Spring AI MCP framework. The server exposes tools, a prompt and resources to interact with the connected database.

Tools ๐Ÿ› 

The server contains the following tools.

  • addBusinessInsight

    • Adds business insights discovered during data analysis to the "Business Insights" resource. Usually executed as part of the prompt "data-explorer"
    • Inputs:
      • insight (String): business insight discovered during data analysis
  • executeQuery

    • Executes a SQL query against the connected database, returning the results
    • Inputs:
      • query (string): the SQL query to be executed
  • getTableNames

    • Gets the table names, including type, schema, and remarks
    • Inputs: none
  • describeTable

    • Describe a table in the database including column information, primary keys, foreign keys, and indexes.
    • Inputs:
      • catalog (string, optional): Catalog Name
      • schema (string, optional): Schema Name
      • tableName (string): Name of the table to get description for
  • getDatabaseInfo

    • Get information about the database including SQL dialect, keywords, database product name, etc.
    • Inputs: none

Prompts ๐Ÿ“„

The server contains 1 prompt.

  • data-explorer

This prompt helps the user explore the data in their databases. It should present the user with a choice of dashboards that the LLM can create. The LLM will then execute the necessary queries and create the selected dashboard using an artifact.

The prompt result in Claude Desktop

claude desktop example

Resources ๐Ÿ—‚๏ธ

The server contains 1 resource.

  • Business Insights

    • Contains the list of business insights that the LLM came up with during data analysis.
    • uri: "memo://insights"

Supported JDBC variants

This server currently supports the following databases.

Database
sqlite
PostgreSQL
Oracle
h2
MySQL

Example Databases

Netflix Movies

Sample movie data based on Netflix catalog Netflix sample DB

Northwind

Classic Microsoft sample database with customers, orders, products etc.

Northwind Sqlite

Chinook

Sample music store data including artists, albums, tracks, invoices etc.

Chinook Database