sql-mcp (teghoz/sql-mcp) is an MCP server listed on the M8ven Trust Index. It scores 74 out of 100, grade C. It declares 53 tools. No publisher has claimed this listing.

C
Caution
74/100

sql-mcp

A read-only MCP server for SQL Server and PostgreSQL that enables exploring and querying databases (schemas, tables, views, procedures, indexes, foreign keys) and running arbitrary SELECT queries.

Caution. Specific findings reduced this grade. They are listed on the page. Grades reflect the full trust pyramid: code, verification depth, and reputation. New projects cap at C until adoption is earned.

How we verified

Code 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

teghoz

Source: Glama

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
⚠️
Known vulnerabilities in dependencies: 1 high
Affects packages this MCP installs at runtime. Upgrade or remove the affected dependency.
No credential exfiltration, no sensitive file access, no obfuscation
Static analysis found nothing flowing your secrets to unexpected places.
🔐
You'll be asked for 2 credentials: PG_PASSWORD, SQL_PASSWORD
These are read from process.env at runtime. Make sure you trust where they’ll be sent.
// tools this server exposes37 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_linked_servers
get_server_properties

Get SQL Server instance properties: version, edition, collation, clustering, and HA configuration

list_agent_jobs
get_job_history
get_table_constraints

Get all constraints on a table: PRIMARY KEY, UNIQUE, CHECK, and DEFAULT

list_databases

List all online databases on the SQL Server instance

get_extended_properties

Get all extended properties (e.g. MS_Description documentation) for a table, view, procedure, or function — includes both the object-level and all column-level properties

list_fulltext_catalogs

List all full-text search catalogs in a database with item count, size, and populate status

list_fulltext_indexes

List all full-text indexes in a database, showing the catalog, indexed columns, and change-tracking state

list_functions

List all user-defined functions in a database (scalar, inline table-valued, and multi-statement table-valued), optionally filtered by schema

get_function_definition

Get the full source definition of a user-defined function

list_partition_functions

List all partition functions in the current database, including range type, partition count, and boundary values

list_partition_schemes

List all partition schemes in the current database, showing which partition function each uses and the mapped filegroups

execute_query
list_schemas

List all schemas in a database

list_database_users

List all users in a database with their type, default schema, and mapped login

list_database_roles

List all database roles and their members. Uses LEFT JOIN so roles with no members are included.

get_object_permissions

Get all explicit permissions granted on a specific database object

list_sequences

List all sequences in a database, optionally filtered by schema. Shows data type, range, increment, cycling, and current value.

list_service_queues

List all Service Broker queues in a database, optionally filtered by schema

list_broker_services

List all Service Broker services in a database and the queue each binds to

list_stored_procedures

List all stored procedures in a database, optionally filtered by schema

get_stored_procedure_definition

Get the full source definition of a stored procedure

list_synonyms

List all synonyms in a database, optionally filtered by schema

get_synonym_definition

Get the base object a synonym points to

get_table_stats

Get row count and disk space usage (total, used, unused) for a table

list_tables

List all tables in a database, optionally filtered by schema

describe_table

Get column definitions for a table

get_table_indexes

Get all indexes defined on a table

get_foreign_keys

Get all foreign key relationships for a table

list_temporal_tables

List all system-versioned temporal tables in a database, showing the linked history table for each

list_triggers

List all DML triggers in a database, optionally filtered by schema and/or parent table

get_trigger_definition

Get the full source definition of a DML trigger

list_user_types

List all user-defined types (scalar alias types and table types) in a database, optionally filtered by schema

get_table_type_columns

Get the column definitions for a user-defined table type

list_views

List all views in a database, optionally filtered by schema

describe_view

Get column definitions and the SQL definition for a view

// known CVEs in dependencies1 high

Disclosed vulnerabilities in this server's declared npm dependencies (via OSV). Whether each is reachable depends on the installed versions.

high@modelcontextprotocol/sdk@1.0.0GHSA-w48q-cv73-mx4w

Model Context Protocol (MCP) TypeScript SDK does not enable DNS rebinding protection by default

Depend on this server? Get alerted when its CVEs change.Watch this server free →
// 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.
configAUDIT_DATABASESet AUDIT_CONNECTION_STRING (or to reuse the main connection params with a different database) to also insert records into a SQL table.
configAUDIT_LOG_PATHA daily-rotating JSON log file is written to ${}/audit-YYYY-MM-DD.log (UTC date). Each line is a JSON object:
configDB_PROVIDERSet to choose the database engine. Defaults to mssql.
configPG_AZURE_AD_AUTHtrue and the server mints a token on demand per connection
configPG_DATABASEpostgres # default database for queries
configPG_HOSTmyserver.postgres.database.azure.com
🔐 secretPG_PASSWORDyour_password
configPG_PORT5432 # default: 5432
configPG_SSLfalse # true for SSL connections
configPG_STATEMENT_TIMEOUT30000 # query timeout in ms (default: 30000)
configPG_USERmy_entra_principal # the AAD user/group mapped as a PostgreSQL role
configSQL_ALLOWED_SCHEMASComma-separated list of schemas the MCP may access. When unset, all schemas are accessible.
configSQL_BLOCKED_TABLESComma-separated schema.table pairs that are hidden from listing tools and blocked when accessed directly.
configSQL_DATABASEmaster # default database for queries
configSQL_ENCRYPTfalse # true for Azure SQL
configSQL_MASKED_COLUMNSComma-separated schema.table.column values whose content is replaced with [MASKED] in every response.
configSQL_MAX_ROWSHard cap on rows returned by any tool (default: 5000).
🔐 secretSQL_PASSWORDyour_password
configSQL_PORT1433 # default: 1433
configSQL_REQUEST_TIMEOUT30000 # query timeout in ms (default: 30000)
configSQL_SERVER"": "myserver",
configSQL_TRUST_SERVER_CERTIFICATEtrue # true for self-signed certs in dev
configSQL_USER"": "myuser",
Deployment configuration, supplied by whoever hosts the server. Users are not asked for these.
deployAUDIT_CONNECTION_STRING
deployPG_CONNECTION_STRING
deployPORT
deploySQL_CONNECTION_STRING
// 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

53/53 tools missing one or more hints — list_linked_servers (missing: readOnlyHint, destructiveHint, idempotentHint, openWorldHint); get_server_properties (missing: readOnlyHint, destructiveHint, idempotentHint, openWorldHint); get_server_properties (missing: readOnlyHint, destructiveHint, idempotentHint, openWorldHint), +50 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.

License file

No license file

Add a LICENSE file (MIT, Apache-2.0, etc.).

Tests exist

No test files found

Add tests that exercise each declared tool.

Production dependencies are patched

0 critical, 1 high severity in production deps — @modelcontextprotocol/sdk@1.0.0 (high)

Run npm audit fix, or upgrade the affected packages to a non-vulnerable version.

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/teghoz/sql-mcp?variant=verified)](https://m8ven.ai/mcp/teghoz/sql-mcp)
Shows verification status without the grade. Want the grade badge instead? Remove ?variant=verified from the URL.
commit: 36e02c0fb8e89c558225eeffaba071cbb6eab667
code hash: f7102de4940558206b67f38630c3b13b64ad2881083bdf089b2a6004823edaa1
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