{
"mcpServers": {
"java-db-mcp-server": {
"command": "<see-readme>",
"args": []
}
}
}No install config available. Check the server's README for setup instructions.
Are you the author?
Add this badge to your README to show your security score and help users find safe servers.
mpc server talk to local db and act as ETL service
Is it safe?
No package registry to scan.
No authentication — any process on your machine can connect.
License not specified.
Is it maintained?
Last commit 27 days ago.
Will it work with my client?
Transport: stdio. Works with Claude Desktop, Cursor, Claude Code, and most MCP clients.
A Java-based Model Context Protocol (MCP) server built with Spring AI that allows AI tools like Cursor or Claude Desktop to interact directly with a local Sakila SQLite database.
SELECT queries and returns results in a structured format.@Tool annotations.src/main/java/com/example/mcp/McpServerApplication.java: Main Spring Boot entry point.src/main/java/com/example/mcp/DatabaseTools.java: Tool definitions (listTables, describeTable, executeQuery).sakila.db: The SQLite database file.target/java-db-mcp-server-0.0.1-SNAPSHOT.jar: The executable server JAR.If you make changes to the Java code or tools, rebuild the JAR:
mvn clean package -DskipTests
Cmd + Shift + J).sakila-java-servercommandjava -jar /Users/vjy0/.gemini/antigravity/scratch/java-db-mcp-server/target/java-db-mcp-server-0.0.1-SNAPSHOT.jar
Once connected, the AI will have access to:
listTables(): Lists all non-internal tables in the Sakila database.describeTable(tableName): Provides column definitions for a specific table.executeQuery(sql): Executes a provided SQL SELECT statement.Try asking Cursor:
Database connection settings are located in src/main/resources/application.properties.
spring.datasource.url=jdbc:sqlite:sakila.db
logging.level.root=OFF
spring.main.banner-mode=off
To run this project on any system (Windows, Mac, Linux) without setting up Java or Kafka manually, use Docker.
Run the following to start Zookeeper and Kafka:
docker-compose up -d zookeeper kafka
Build the container for the Java MCP app:
docker build -t java-db-mcp .
To use this server in Claude Desktop via Docker, use the following configuration in your claude_desktop_config.json:
For Mac/Windows (Local Kafka):
"java-db-mcp": {
"command": "docker",
"args": [
"run",
"-i",
"--rm",
"-e", "SPRING_KAFKA_BOOTSTRAP_SERVERS=host.docker.internal:9092",
"java-db-mcp"
]
}
For Linux (Local Kafka):
"java-db-mcp": {
"command": "docker",
"args": [
"run",
"-i",
"--rm",
"--network", "host",
"java-db-mcp"
]
}
The following tools are available to the AI assistant:
listTables: Explore the database schema.describeTable: Inspect specific table structures.executeQuery: Run analytical SQL queries.searchFilmRegistry: Fast keywords search in the in-memory cache.deleteFilmById: Delete a film from both the database and cache (safely handles foreign keys).# Push a film ID to Kafka to trigger automated deletion
echo "10" | docker exec -i kafka kafka-console-producer --bootstrap-server localhost:9092 --topic film-deletion-topic
No automated test available for this server. Check the GitHub README for setup instructions.
This server is missing a description. Tools and install config are also missing.If you've used it, help the community.
Add informationNo known vulnerabilities.
Have you used this server?
Share your experience — it helps other developers decide.
Sign in to write a review.
Query and manage PostgreSQL databases directly from AI assistants
Manage Supabase projects — databases, auth, storage, and edge functions
Asynchronous coordination layer for AI coding agents: identities, inboxes, searchable threads, and advisory file leases over FastMCP + Git + SQLite
Context7 Platform -- Up-to-date code documentation for LLMs and AI code editors
MCP Security Weekly
Get CVE alerts and security updates for Java Db Mcp Server and similar servers.
Start a conversation
Ask a question, share a tip, or report an issue.
Sign in to join the discussion.