1. Conduid
  2. Data
  3. SQL MCP
MCP server · Data

SQL MCP

Lightweight MCP server for SQL Server, Oracle, Postgres, and MySQL

Unclaimed dotnetmcpsql-mcp
34Low

Scored 11 days ago · breakdown

About SQL MCP

SQL MCP is an MCP server in the Data category: lightweight MCP server for SQL Server, Oracle, Postgres, and MySQL.

The repository has 5 stars and 0 forks.

Install

From source
git clone https://github.com/ustabar/sql-mcp

This server has no ConduID identity, so agent calls to it are not receipted. Pin the version you install and review the source before granting it credentials.

Ask AI

✦

Ask AI about SQL MCP

Powered by Claude · Grounded in docs

I know everything about SQL MCP. Ask me about installation, configuration, usage, or troubleshooting.

Security checks

  • ✓README presentThe repository ships documentation.

5 checks have not been run yet.

README

SQL MCP - SQL Server for Model Context Protocol

A Model Context Protocol (MCP) server implementation for SQL Server queries that enables natural language interaction with your database through GitHub Copilot.

Flow

Overview

SQL MCP allows you to query SQL Server databases using natural language through GitHub Copilot. This integration makes database interaction more accessible without requiring extensive SQL knowledge.

Key features:

  • Natural language queries to SQL Server databases
  • Integration with GitHub Copilot
  • JSON-formatted responses
  • Works with Azure SQL Database

Prerequisites

  • .NET 9.0 SDK or later
  • Visual Studio 2022 or Visual Studio Code
  • GitHub Copilot with Agent Mode
  • SQL Server or Azure SQL Database access

Setup Instructions

  1. Clone the repository

    git clone https://github.com/ustabar/sql-mcp.git
    cd sql-mcp
    
  2. Configure the database connection

    Edit the appsettings.json file to update your database connection string:

    {
      "ConnectionStrings": {
        "AzureSqlConnection": "Server=yourserver.database.windows.net,1433;Database=yourdatabase;User Id=yourusername;Password=yourpassword;TrustServerCertificate=True;"
      }
    }
    
  3. Build and run the application

    dotnet build
    dotnet run
    
  4. Configure VS Code for MCP

    Add the MCP server to your VS Code settings:

    Settings Sample

    Example settings entry:

    "github.copilot.advanced": {
      "mcp": {
        "enabled": true,
        "mcp_server_command": "dotnet run --project C:\\path\\to\\sql-mcp"
      }
    }
    
  5. Verify the MCP server is running

    You can check available MCP servers in VS Code:

    List MCP Servers

Usage

Once set up, you can query your database in natural language through GitHub Copilot Agent Mode:

Chat Sample

The MCP server processes your natural language query, converts it to SQL, and returns the results in a structured format.

Example interaction: Chat Sample 2

Structure

  • Program.cs: Application entry point and MCP server configuration
  • Services/SqlConnectionService.cs: Manages database connections
  • Tools/SqlServerTools.cs: Implements the MCP tools for SQL interaction
  • Data/prompt-tr.txt: Contains prompt templates for Turkish language support

Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

License

This project is licensed under the MIT License - see the LICENSE file for details.

README copy captured when this server was indexed; it may lag the repository. The original is authoritative.

Questions

About SQL MCP

How do I install SQL MCP?

No package has been published for this server, so install it from source: clone the repository and follow its README.

Is SQL MCP safe to use with an AI agent?

Its trust score is 34 out of 100 (low). It passes 1 of the 1 static security checks run so far. It has no ConduID identity yet, so agent calls to it are not receipted.

Is SQL MCP still maintained?

Conduid hasn't recorded a commit date for this repository yet. Check the repository directly for recent activity.