Sql Mcp — independently scanned and version-tracked by SaferSkills.
SaferSkills independently audited Sql Mcp (Agent Skill) and scored it 100/100 (green). The audit ran 55 deterministic rules across Security, Supply Chain, Maintenance, Transparency, and Community; it found 0 high-severity and 0 lower-severity findings. The full rule-by-rule trace and per-finding evidence are below. Free, methodology-open.
Findings & checks · 0 flagged
Every scanned point with the score it earned and what moved between them.
First recorded scan — no prior version to compare against.
The primary manifest — the file an agent reads to learn what this artifact does.
A local Model Context Protocol (MCP) server that enables Cursor AI to interact with SQL Server databases. This MCP server provides comprehensive database capabilities including querying, reporting, and chart generation directly within Cursor.
This is a local MCP server that you install and configure in Cursor to give the AI assistant the ability to:
All database operations happen through Cursor's AI interface - you can ask the AI to query your databases, generate reports, or create charts.
npm install npm run prisma:generate npm run buildCtrl+, (or Cmd+, on Mac) to open settings{} icon to open JSON settingsFind or create the mcpServers section and add:
{
"mcpServers": {
"sql-server": {
"command": "node",
"args": ["D:\\Work\\Code\\Projects\\local_MCPs\\SQLMCP\\dist\\index.js"]
}
}
}Important: Replace the path with your actual project path. On Windows, use double backslashes \\ or forward slashes /.
You have two options for connecting to databases:
#### Option A: Automatic Connection (Recommended)
Create a .env file in the project root directory:
# Format: DATABASE_URL_<connectionId>
# Use any name you want for <connectionId> - this will be how you reference the database
DATABASE_URL_production=sqlserver://server:1433;database=ProductionDB;user=admin;password=YourPassword;encrypt=true
DATABASE_URL_staging=sqlserver://server:1433;database=StagingDB;user=admin;password=YourPassword;encrypt=true
DATABASE_URL_local=sqlserver://localhost:1433;database=LocalDB;user=sa;password=YourPassword;encrypt=trueConnection String Format:
sqlserver://[server]:[port];database=[database];user=[username];password=[password];encrypt=trueAfter creating `.env`:
production, staging, local) when asking the AI to query databases#### Option B: Manual Connection
You can connect to databases on-demand by asking the AI to use the connect_database tool with your connection string.
Once configured, you can use the MCP server by simply asking Cursor's AI to interact with your databases. Here are some examples:
#### Example 1: List Tables
"List all tables in the production database"The AI will use the list_tables tool with connectionId: "production"
#### Example 2: Query Data
"Show me the top 10 customers from the production database"The AI will execute a SQL query like:
SELECT TOP 10 * FROM Customers ORDER BY ...#### Example 3: Get Table Structure
"What columns are in the Orders table in production?"The AI will use get_table_structure to show you the table schema
#### Example 4: Generate a Report
"Generate a report of all orders from 2024 in the production database"#### Example 5: Create a Chart
"Create a bar chart showing monthly sales from the Sales table in production, using Month as labels and Revenue as data"#### Example 6: Export Data
"Export the Customers table from production as CSV"The MCP server provides these tools (you can ask the AI to use them):
.env file on startupnpm run buildconnect_database tool.env file, make sure variable names start with DATABASE_URL_.envDATABASE_URL_prod → use prod as connectionId)SQLMCP/
├── src/
│ ├── server/ # MCP server implementation
│ ├── database/ # Database connection management
│ ├── reporting/ # Report generation
│ └── charts/ # Chart generation
├── dist/ # Compiled JavaScript
├── prisma/ # Prisma schema
└── package.jsonnpm run buildnpm run dev.env files should be kept secure.env files to version controlMIT
"# SQL-MCP"
~30 seconds. Free. No account. Every finding cites a rule and a line of evidence.