SQL Server MCP
mcp-노드-mssql
용법
커서
자세한 내용은 공식 커서 문서를 참조하세요.
mcp.json파일을 엽니다(또는 만듭니다). (이 파일은~/.cursor/mcp.json또는<project-root>/.cursor/mcp.json에 있어야 하지만, 자세한 내용은 커서 문서를 참조하세요).다음 세부 정보를 추가하고 파일을 저장합니다.
지엑스피1
윈드서핑
자세한 내용은 Windsurf 공식 문서를 참조하세요.
Windsurf MCP Configuration Panel엽니다.Add custom server클릭합니다.다음 세부 정보를 추가하고 파일을 저장합니다.
{
"mcpServers": {
"mssql": {
"command": "npx",
"args": [
"-y",
"mcp-node-mssql"
],
"env": {
"DB_HOST": "localhost",
"DB_PORT": "1433",
"DB_USERNAME": "<username>",
"DB_PASSWORD": "<password>",
"DB_DATABASE": "<database>"
}
}
}
}클로드 코드
자세한 내용은 공식 Claude Code 문서를 참조하세요.
Claude Code CLI에서 새 MCP 서버를 추가할 수 있습니다. 하지만 JSON 파일을 직접 수정하는 것이 더 간단합니다!
Claude Code 구성 파일을 엽니다(
~/.claude.json에 있어야 함).projects>mcpServers섹션을 찾아 다음 세부 정보를 추가하고 파일을 저장합니다.
{
"projects": {
"mcpServers": {
"mssql": {
"command": "npx",
"args": [
"-y",
"mcp-node-mssql"
],
"env": {
"DB_HOST": "localhost",
"DB_PORT": "1433",
"DB_USERNAME": "<username>",
"DB_PASSWORD": "<password>",
"DB_DATABASE": "<database>"
}
}
}
}
}Related MCP server: Microsoft SQL Server MCP Server
문제 및 문제 해결
다른 작업을 하기 전에, 반드시 최신 버전을 실행하고 있는지 확인하세요!
이 MCP 서버를 사용하는 데 문제가 발생하면 GitHub 에서 문제를 열어주세요!
개발
설치
npm install짓다
npm run build개발 서버를 로컬로 실행
게시된 패키지를 사용하는 대신 MCP 서버의 로컬 개발 버전을 테스트하려면 다음 단계를 따르세요.
프로젝트를 빌드하세요:
npm run build로컬 빌드를 참조하도록
mcp.json파일을 만들거나 수정하세요.
{
"mcpServers": {
"mssql": {
"command": "node",
"args": [
"/path/to/your/local/mcp-node-mssql/dist/index.js"
],
"env": {
"DB_HOST": "localhost",
"DB_PORT": "1433",
"DB_USERNAME": "<username>",
"DB_PASSWORD": "<password>",
"DB_DATABASE": "<database>"
}
}
}
}다음 위치 중 하나에
mcp.json파일을 넣으세요.커서의 경우: 홈 디렉토리(
~/.cursor/mcp.json) 또는 프로젝트 디렉토리(.cursor/mcp.json)Windsurf의 경우: MCP 구성 패널을 사용하여 사용자 지정 서버를 추가합니다.
새로운 구성을 로드하려면 AI 어시스턴트(Cursor 또는 Windsurf)를 다시 시작하세요.
이를 통해 새 버전을 게시하지 않고도 MCP 서버의 변경 사항을 즉시 테스트할 수 있습니다.
Available Tools
8 toolscommit-transactionC
Commit a transaction
Inputs: transactionId (required).
get-stored-procedureC
Get a specific stored procedure by name
Inputs: procedureName (required).
get-stored-proceduresB
Get a list of all stored procedures in the database
get-tableC
Get a specific table by name
Inputs: tableName (required).
get-tablesB
Get a list of all tables in the database
queryC
Query the database with a SQL statement
Inputs: query (required).
rollback-transactionC
Rollback a transaction
Inputs: transactionId (required).
start-transactionC
Start a new transaction
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 8 tools
Every tool has a clearly distinct purpose with no ambiguity. Tools are clearly separated by resource type (tables vs stored procedures) and action type (get specific vs get list vs transaction operations vs query). The query tool stands alone as a general-purpose operation.
All tools follow a consistent verb-noun pattern with hyphens. Transaction tools use verb-transaction pattern (start-transaction, commit-transaction, rollback-transaction), get operations use get-noun pattern (get-table, get-tables), and query stands alone as a clear single verb. The naming is perfectly predictable throughout.
8 tools is well-scoped for a database server. Each tool earns its place with clear responsibilities: 4 for data/metadata retrieval, 3 for transaction management, and 1 for general querying. This provides comprehensive coverage without bloat.
The toolset covers core database operations well with querying, transaction management, and metadata retrieval. Minor gaps exist in write operations beyond transactions (no explicit insert/update/delete tools) and schema modification (no create/alter/drop tools), but the query tool provides a workaround for most of these operations.
Maintenance
Related MCP Connectors
Hosted SQL Server MCP server for Claude, ChatGPT and Cursor, with each action switched per account.
A comprehensive Model Context Protocol (MCP) server that enables AI assistants to interact with yo…
A Model Context Protocol server for Wix AI tools
Text-to-SQL MCP server: read-only queries on PostgreSQL, MySQL and SQL Server with your real schema
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceA Model Context Protocol server that enables secure and structured interaction with Microsoft SQL Server databases, allowing AI assistants to list tables, read data, and execute SQL queries with controlled access.63MIT
- AlicenseBqualityCmaintenanceA Model Context Protocol server that enables secure interaction with Microsoft SQL Server databases, allowing AI assistants to list tables, read data, and execute SQL queries through a controlled interface.1406MIT
- FlicenseNot gradedqualityCmaintenanceA Model Context Protocol server that allows Large Language Models like Claude to execute SQL queries, explore database schemas, and maintain persistent connections to SQL Server databases.-
- FlicenseAqualityCmaintenanceA Model Context Protocol server that enables LLMs like Claude to interact with Microsoft SQL Server databases through natural language, supporting queries, data manipulation, and table management.8-