Atlas / MCP servers / hendrickcastro / mcpql

mcpqlSAFE

mcp/hendrickcastro/mcpql

MCPQL - MCP Server for SQL Server database operations and analysis

Verdict
SAFE
Grade
B
Trust score
89 /100
Exposed tools
11 9r · 2w · 0d
Transport
stdio
License
MIT
Stars
15
01

Overview

From the repository's own README, as read at the audited commit. Badges and raw HTML are left out.

[](https://opensource.org/licenses/MIT) [](https://nodejs.org/) [](https://www.typescriptlang.org/) [](https://www.npmjs.com/package/mcpql) [](https://www.npmjs.com/package/mcpql) [](https://github.com/hendrickcastro/MCPQL/stargazers) [](https://github.com/hendrickcastro/MCPQL/issues) [](https://github.com/hendrickcastro/MCPQL/network) [](https://github.com/hendrickcastro/MCPQL/actions) [](https://codecov.io/gh/hendrickcastro/MCPQL) [](https://www.microsoft.com/sql-server) [](https://azure.microsoft.com/services/sql-database/) [](https://github.com/modelcontextprotocol/sdk) [](https://claude.ai/desktop) [](https://cursor.sh/) [](https://trae.ai/) [](https://hub.docker.com/r/hendrickcastro/mcpql) [](https://github

Read from source at commit cfdd15692673OBSERVED · 2026-10-12
02

Connect

Built from this server's own package name, version and transport as found in its source — not copied from anyone's documentation, so it cannot drift against a page we do not control. Replace the environment placeholders with a token scoped to the least it needs.

claude-code
claude mcp add mcpql --env DB_AUTHENTICATION_TYPE=${DB_AUTHENTICATION_TYPE} --env DB_AZURE_CLIENT_SECRET=${DB_AZURE_CLIENT_SECRET} --env DB_PASSWORD=${DB_PASSWORD} -- npx -y [email protected]
claude-desktop
{
  "mcpServers": {
    "mcpql": {
      "command": "npx",
      "args": [
        "-y",
        "[email protected]"
      ],
      "env": {
        "DB_AUTHENTICATION_TYPE": "${DB_AUTHENTICATION_TYPE}",
        "DB_AZURE_CLIENT_SECRET": "${DB_AZURE_CLIENT_SECRET}",
        "DB_PASSWORD": "${DB_PASSWORD}"
      }
    }
  }
}
03

Exposed tools (11)

9 read · 2 write · 0 destructive.

ToolRiskDescription
mcp_execute_procedurewriteExecute a SQL Server stored procedure with parameters and return results
mcp_execute_querywriteExecute a raw SQL query and return the results
mcp_get_column_statsreadGet comprehensive statistics for a specific column in a table
mcp_get_dependenciesreadGet dependencies for a database object (tables, views, stored procedures, etc.)
mcp_get_sample_valuesreadGet sample values from a specific column in a table
mcp_get_security_statusreadGet current security configuration and status for database operations
mcp_preview_datareadGet a preview of data from a SQL Server table with optional filters
mcp_quick_data_analysisreadQuick statistical analysis of a table including row count, column distributions, and top values
mcp_search_comprehensivereadSearch across database objects by name and definition with configurable criteria
mcp_sp_structurereadAnalyze SQL Server stored procedure structure including parameters, dependencies, and source code
mcp_table_analysisreadComprehensive SQL Server table analysis including structure, columns, keys, indexes, and constraints
04

Trust audit

SAFEgrade B · trust 89/100 Nothing in the source contradicts what it says it does. Grade A is reserved for packages that have also passed the behavioural sandbox.

LayerWhat it checksResult
L0Provenance & inventoryPASS
L1Static analysis of the codePASS
L2Instruction surface (what it tells the agent)PASS
L3Class-specific surfacePASS
L4Behavioural (sandbox)SKIPPED

What the source does

Filesystem
none-observed
Network
none-observed
Shell
declared (2 observation(s))
Dependencies
not all pinned
Secrets in source
none-found

Findings (1)

LOWSupply chain · supply.unpinned · CWE-829, CWE-1357
package.json
@azure/msal-common, @modelcontextprotocol/sdk, dotenv, mssql, @types/jest, @types/mssql, @types/node, chalk
Why it matters. 15 dependency range(s) float
Fix. pin exact versions or ship a lockfile

Gates applied: no_behavioural_pass.

Audited 2026-10-12 · audit v0.4.1 · source sha cfdd15692673full audit observations/trust-audit/mcp-server/hendrickcastro__mcpql.json · Report an issue / request a re-scan
05

Audit history

Every audit this server has had. A grade with a past is a grade somebody is still checking.

DateSourceVerdictGradeScoreChange
2026-10-12cfdd15692673SAFEB89first audit
06

Questions

What is the mcpql MCP server?

MCPQL - MCP Server for SQL Server database operations and analysis

What tools does mcpql expose?

11 in total: 9 read-only, 2 that write, and 0 that can delete or overwrite. Every one is listed on this page with its risk.

Is mcpql safe to connect to an agent?

The audit found nothing in the source that contradicts what it says it does, and graded it B (89/100). Grade A is held back for packages that have also passed a sandboxed behavioural run, which is why a clean server reads B.

What credentials does mcpql need?

It reads DB_AUTHENTICATION_TYPE, DB_AZURE_CLIENT_SECRET and DB_PASSWORD from the environment. Give it a token scoped to the least it needs — an agent that can be talked into calling a tool can be talked into calling it with your credentials.

How does mcpql run?

It speaks stdio, so it runs as a local process your client starts. It is published on npm as mcpql at 1.0.1.

How current is this page?

The grade is for one exact copy of the source (cfdd15692673), read on 2026-10-12. The repository is watched and re-audited when it changes.

Advertisement