deepsql (DeepSQLAI/deepsql) is an MCP server listed on the M8ven Trust Index. It scores 39 out of 100, grade F. It declares 45 tools. No publisher has claimed this listing.

F
Warning
39/100

deepsql

The database agent for Postgres and MySQL - Point it at PostgreSQL or MySQL and ask questions in plain English — schema exploration, query generation, slow query analysis, index recommendations, generated dashboards. Self-hosted and air-gapped.

Warning. Serious findings were identified. Review the full report before connecting. Grades reflect the full trust pyramid: code, verification depth, and reputation. New projects cap at C until adoption is earned.

How we verified

⚡ Live Monitored: not connected

Verified is a snapshot. Live keeps it current, and builds your track record.

⚡ Connect GitHub → continuous verification on every pushwhy connect →

Who stands behind it

DeepSQLAI

Source: github_repo_search

Is this your MCP?

Claim it to get a verified publisher badge, a free copy of our full audit findings, and direct contact for any high-priority issues we find. Or connect your repo for our deepest verification, Live Monitored: read-only, revoke anytime. What we access →

Install from

The grade above is for the source repository. Registries can serve a different version, so we mark the ones we were not able to read.

// key findings
🚨
Reads files from sensitive locations
Touches: /etc/passwd
🔐
You'll be asked for 1 credential: DEEPSQL_AUTH_TOKEN
These are read from process.env at runtime. Make sure you trust where they’ll be sent.
// tools this server exposes45 tools

These names and descriptions are the publisher's own, read from the source code. We print them as written. Our assessment is the findings above, not this list.

list_connections
get_schema

Fetch cached schema metadata for a DeepSQL connection.

get_database_objects

Fetch tables, views, functions, and procedures for a DeepSQL connection.

get_brain_context
list_business_rules

List active business rules and SQL guardrails for a connection. Optional `question` filters to rules applicable to that question.

get_relationships

Get inferred and validated foreign-key relationships for a connection (source/target table+column with confidence and inference method).

get_anti_patterns

Get DeepSQL-detected anti-patterns. `kind=table` returns table/schema-level anti-patterns; `kind=query` returns query-level anti-patterns (with optional limit).

list_brain_recommendations
save_brain_note
list_brain_notes

List knowledge already saved to the connection's brain (the notes that ground answers). Optionally filter by tableName and/or columnName — a trained connection can hold thousands of notes, so filtering is recommended. Use this to check whether a fact is already remembered before saving a new one wit

apply_index_recommendation
get_index_recommendations

Get DeepSQL's pre-computed top index recommendations for a connection. Recommendations are workload-weighted (Σ calls × mean_exec_time, the pganalyze / Microsoft DTA 'total time' ROI metric) and aggregated across many slow-query log fetches over a configurable lookback (default 30 days). Column orde

analyze_slow_queries

Analyze recent slow queries for a connection over the last 24 hours, returning fingerprints, durations, and example statements.

get_slow_query_timeline
get_query_regressions
list_tracked_queries
get_slow_query_customers
get_query_samples
get_slow_query_insights
optimize_slow_query
get_table_growth
get_growth_anomalies
execute_sql
analyze_query_plan
analyze_migration
get_current_user
test_connection
show_connection
reinit_connection_brain
get_latest_digest
list_digests
get_digest_by_id
get_missing_indexes
get_index_health
get_unused_indexes
get_duplicate_indexes
get_table_index_usage
list_index_recommendations
refresh_index_recommendations
dismiss_index_recommendation
get_latest_slow_query_analysis
list_slow_query_history
acknowledge_growth_anomaly
get_growth_config
set_growth_config
// environment variables
To run this server yourself, you supply these values. They go in your own MCP client configuration and stay on your machine. The secret label means the value is sensitive, not that the server mishandles it.
configDEEPSQL_API_BASE_URLhttps://customer-deepsql.example.com/api/
🔐 secretDEEPSQL_AUTH_TOKENdsql_mcp_…
configDEEPSQL_CALLER_AGENTclaude-code
configDEEPSQL_CONFIG_DIR
configDEEPSQL_CONNECTION
configEDITOR
configSUDO_USER
configVISUAL
configXDG_CONFIG_HOME
// quality suggestions

Tool annotations

No tools have read-only/destructive annotations

Add readOnlyHint or destructiveHint annotations to every tool so hosts can warn users before invoking.

All four hints declared on every tool

45/45 tools missing one or more hints — list_connections (missing: readOnlyHint, destructiveHint, idempotentHint, openWorldHint); get_schema (missing: readOnlyHint, destructiveHint, idempotentHint, openWorldHint); get_database_objects (missing: readOnlyHint, destructiveHint, idempotentHint, openWorldHint), +42 more. OpenAI's directory rejects tools where any of the four hints are missing or non-boolean.

For every tool, set all four hints (readOnlyHint, destructiveHint, idempotentHint, openWorldHint) to explicit true/false values that match the handler’s actual behaviour.

Tool test coverage

32/45 tools referenced in tests (71%)

Write tests that reference each tool by name so every tool has at least one test.

No access to sensitive paths

Reads sensitive paths: /etc/passwd

Remove reads of sensitive system paths. If you genuinely need them, document why in the README.

No arbitrary install scripts

Has postinstall/preinstall script — runs arbitrary code on npm install

Remove postinstall/preinstall hooks unless they’re essential.

Claim the listing to review these findings one by one and send us a correction where you disagree, straight to the team. Claiming also means we tell you when the grade moves, and reach you first if we find anything urgent.

// full audit trail
The findings above are the summary. The full trail, every check we ran, each deduction, the network hosts observed and the dependency advisories, goes to verified publishers, along with an alert whenever a new one lands. Verified publishers can also review each finding and dispute it in one click. Publisher corrections have sharpened several of our checks this month, because the maintainer knows the codebase better than any scanner.
// improvement guidance — verified publishers only
We have 5 concrete improvements we can share with the publisher of this MCP. Each comes with specific guidance to raise the trust score.
// embed badge in your README
[![M8ven Verified](https://m8ven.ai/badge/mcp/deepsqlai/deepsql?variant=verified)](https://m8ven.ai/mcp/deepsqlai/deepsql)
Shows verification status without the grade. Want the grade badge instead? Remove ?variant=verified from the URL.
commit: 8b391c7bad4832ae51e7bc6c5b40598cb9fcc688
code hash: edda03a50afe9322203929a88c1cfa87648c4326e66922eb4e33e4a218435000
view raw JSON →
Check MCPs from inside your assistant
Tool Check · MCP

Vetting this one by hand? Tool Check is an MCP that scores other MCPs. Add it once and ask Claude, ChatGPT, or any MCP client to grade a server, surface CVEs, check the publisher, and suggest safer alternatives — before you install.

https://m8ven.ai/api/mcp/tool-check
check_toolsearch_toolscompare_toolsrecommend_alternativescheck_publisherreport_concern
How to add it →Free · no account needed · works in any MCP client