# MCP SqlServer

> A MCP Server implementation in C# for LLM integration with SQL Server tested with Claude Desktop

- **Type:** MCP server
- **Install:** `agentstack add mcp-rodrigopaml-mcp-sqlserver`
- **Verified:** Yes — security-reviewed for prompt injection and unsafe behavior
- **Seller:** [RodrigoPAml](https://agentstack.voostack.com/s/rodrigopaml)
- **Installs:** 0
- **Category:** [Databases](https://agentstack.voostack.com/c/databases)
- **Latest version:** 0.1.0
- **License:** MIT
- **Upstream author:** [RodrigoPAml](https://github.com/RodrigoPAml)
- **Source:** https://github.com/RodrigoPAml/MCP-SqlServer

## Install

```sh
agentstack add mcp-rodrigopaml-mcp-sqlserver
```

Requires the [AgentStack CLI](https://agentstack.voostack.com/docs/cli). Works with Claude Code, Cursor, and any MCP-compatible agent.

## About

# MCP-SqlServer

A MCP Server (STDIO) implementation in C# for LLM integration with SQL Server tested with Claude Desktop

The server register logs into a **mcp_server.log** file

**Caution, the LLM can modify your database**

# Tools

List of tools provided to the LLM

* **HealthCheck**: Tests if the Microsoft SQL Server Database connection is good and alive.
* **GetSchema**: Get a list of all tables with their respective schema, columns and types.
* **Query**: Execute a query into the Microsoft SQL Server database and return the result as a JSON.

# Setup with Claude

1. Fill the _env.database_ with the connection string from your SQL Server
2. Compile the project
3. In the Claude Destkop Go _File->Configurations->Developer_ and edit the MCP configuration (_claude_desktop_config.json_)
4. Paste the json as: 

```json
{
    "mcpServers": {
        "database": {
            "command": "dotnet",
            "args": [
                "run",
                "--project",
                "C:\\Users\\{USER}\\Desktop\\MCP-SqlServer",
                "--no-build"
            ]
        }
    }
}
```
5. Restart Claude Desktop
   
# Testing

Open Claude Desktop and if everything is configured well you should be able to see this

Click on the icon and you should be able to see the tools

## Asking for connection check

## Asking for schema/table informations

## Asking for read query

## Asking for modifications

## Source & license

This open-source MCP server is cataloged on AgentStack and links to its original source — we do not rehost the code.

- **Author:** [RodrigoPAml](https://github.com/RodrigoPAml)
- **Source:** [RodrigoPAml/MCP-SqlServer](https://github.com/RodrigoPAml/MCP-SqlServer)
- **License:** MIT

Install and usage instructions live in the source repository linked above.

## Pricing

- **Free** — Free

## Security capabilities

Automated source analysis of v0.1.0 — what this tool can access:

- **Network access:** no
- **Filesystem access:** no
- **Shell / process execution:** no
- **Environment & secrets:** no
- **Dynamic code execution:** no

*"Yes" means the capability is present in the source — more access means more to trust, not that it is unsafe.*


## Versions

- **0.1.0** — security scan: passed — Imported from the upstream source.

## Links

- Listing page: https://agentstack.voostack.com/l/mcp-rodrigopaml-mcp-sqlserver
- Seller: https://agentstack.voostack.com/s/rodrigopaml
- Browse the marketplace: https://agentstack.voostack.com/browse

---
Listed on AgentStack — the marketplace for AI agent skills and MCP servers. Every listing is security-reviewed. Creators keep 70%.
