A server that enables LLMs to connect and interact with databases via JDBC, built using the Spring AI MCP framework.
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.
The server contains the following tools.
addBusinessInsight
insight
(String): business insight discovered during data analysisexecuteQuery
query
(string): the SQL query to be executedgetTableNames
describeTable
catalog
(string, optional): Catalog Nameschema
(string, optional): Schema NametableName
(string): Name of the table to get description forgetDatabaseInfo
The server contains 1 prompt.
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
The server contains 1 resource.
Business Insights
uri
: "memo://insights"This server currently supports the following databases.
Database |
---|
sqlite |
PostgreSQL |
Oracle |
h2 |
MySQL |
Netflix Movies
Sample movie data based on Netflix catalog Netflix sample DB
Northwind
Classic Microsoft sample database with customers, orders, products etc.
Chinook
Sample music store data including artists, albums, tracks, invoices etc.
mvn clean package
Add this to your claude_desktop_config.json
:
{
"mcpServers": {
"jdbc-explorer": {
"command": "java",
"args": [
"-jar",
"C:\\\\mcp\\\\jdbc.explorer-0.4.0.jar",
"--db.url=jdbc:sqlite:C:\\\\mcp\\\\jdbc-explorer\\\\netflixdb.sqlite"
]
}
}
}
{
"mcpServers": {
"jdbc-explorer": {
"command": "java",
"args": [
"-jar",
"C:\\\\mcp\\\\jdbc.explorer-0.4.0.jar",
"--db.url=jdbc:postgresql://localhost:5432/chinook",
"--db.username=dbuser",
"--db.password=dbpassword"
]
}
}
}
You can either build the image locally or pull it from GitHub Container Registry:
docker pull ghcr.io/mikechao/jdbc-explorer:latest
docker build -t jdbc-explorer .
Add this to your claude_desktop_config.json
:
{
"mcpServers": {
"jdbc-explorer": {
"command": "docker",
"args": [
"run",
"-i",
"--rm",
"-e",
"DB_URL=jdbc:postgresql://host.docker.internal:5432/chinook",
"-e",
"DB_USERNAME=dbuser",
"-e",
"DB_PASSWORD=dbpassword",
"ghcr.io/mikechao/jdbc-explorer"
]
}
}
}
Contributions are welcome! Please feel free to submit a Pull Request.
This MCP server is licensed under the MIT License. This means you are free to use, modify, and distribute the software, subject to the terms and conditions of the MIT License. For more details, please see the LICENSE file in the project repository.
Leverages your Schemas and Access Patterns to interact with your DynamoDB Database using natural language.
Read and write access to your Baserow tables.
A Model Context Protocol Server for MongoDB
Access Socrata Open Data APIs from government data portals.
Access the OSV (Open Source Vulnerabilities) database for vulnerability information. Query vulnerabilities by package version or commit, batch query multiple packages, and get detailed vulnerability information by ID.
A collection of tools for managing the platform, addressing data quality and reading and writing to Teradata Database.
A standardized interface for AI assistants to interact with a SurrealDB database.
Allows LLMs to directly interact with a YugabyteDB database.
Provides real-time, structured access to League of Legends game data, including champions, items, abilities, game mechanics, and patch information.
A read-only MCP server by CData that enables LLMs to query live data from Exact Online.