java-mcp-sql-server

Provides an MCP server (Java 21+) that connects to relational databases via JDBC and exposes tools to list schemas/tables, inspect table structure, query table data, and execute custom SQL (optionally restricted to SELECT). Supports stdio (local launch) and HTTP/SSE (remote connection) modes.

Evaluated Apr 04, 2026 (16d ago)
Repo ↗ Ai Ml ai-ml mcp sql postgresql mysql mariadb oracle sqlserver sqlite java data-access database-exploration
⚙ Agent Friendliness
51
/ 100
Can an agent use this?
🔒 Security
32
/ 100
Is it safe for agents?
⚡ Reliability
24
/ 100
Does it work consistently?

Score Breakdown

⚙ Agent Friendliness

MCP Quality
72
Documentation
70
Error Messages
0
Auth Simplicity
85
Rate Limits
0

🔒 Security

TLS Enforcement
20
Auth Strength
25
Scope Granularity
10
Dep. Hygiene
50
Secret Handling
60

TLS/auth for the MCP HTTP/SSE endpoint are not documented; security likely depends on running locally/trusted networks. Authentication to the database is via username/password env vars, and no per-user authorization/scopes are described. Execution includes a potentially write-capable SQL tool when the select-only flag is disabled, so principle-of-least-privilege at the DB user is critical. Rate limits, audit logging, and structured error/code guidance are not described.

⚡ Reliability

Uptime/SLA
0
Version Stability
35
Breaking Changes
30
Error Recovery
30
AF Security Reliability

Best When

You control the database credentials, run locally (stdio) or within a trusted network (HTTP/SSE), and mostly need read/inspection SQL capabilities for development or controlled internal use.

Avoid When

You need internet-exposed remote access, fine-grained per-user permissions, or strong reliability guarantees without additional operational hardening; also avoid when you cannot enforce SELECT-only (or can’t constrain downstream SQL execution).

Use Cases

  • Database exploration for LLM/MCP agents (schemas, tables, columns, primary keys)
  • Read-only data querying for investigation and research
  • Building agent workflows that translate user intent into SQL with controlled tool access

Not For

  • Production systems requiring strong authN/authZ, auditability, and hardened security controls out of the box
  • Write-heavy workloads or multi-tenant environments without additional network controls and least-privilege DB accounts
  • Handling sensitive regulated data without verified compliance controls

Interface

REST API
No
GraphQL
No
gRPC
No
MCP Server
Yes
SDK
No
Webhooks
No

Authentication

Methods: Environment-variable DB credentials (JMCP_DB_USERNAME, JMCP_DB_PASSWORD) for database login
OAuth: No Scopes: No

No user-facing auth mechanism is documented for the MCP server itself; access control appears to rely on network exposure and the underlying database credentials/privileges.

Pricing

Free tier: No
Requires CC: No

Agent Metadata

Pagination
none
Idempotent
False
Retry Guidance
Not documented

Known Gotchas

  • Potentially dangerous capability: execute_query can run non-SELECT statements when JMCP_QUERY_SELECT_ONLY=false; agents may attempt writes if tool usage is not constrained.
  • HTTP/SSE mode implies remote network access; without documented MCP-layer auth, ensure you run behind a firewall/reverse proxy with access control.
  • Credential handling is via environment variables; agents or operators must ensure secrets are not leaked through logs or misconfiguration.

Alternatives

Full Evaluation Report

Comprehensive deep-dive: security analysis, reliability audit, agent experience review, cost modeling, competitive positioning, and improvement roadmap for java-mcp-sql-server.

AI-powered analysis · PDF + markdown · Delivered within 30 minutes

$99

Package Brief

Quick verdict, integration guide, cost projections, gotchas with workarounds, and alternatives comparison.

Delivered within 10 minutes

$3

Score Monitoring

Get alerted when this package's AF, security, or reliability scores change significantly. Stay ahead of regressions.

Continuous monitoring

$3/mo

Scores are editorial opinions as of 2026-04-04.

8642
Packages Evaluated
17761
Need Evaluation
586
Need Re-evaluation
Community Powered