{"id":27142380,"url":"https://github.com/rodrigopaml/mcp-sqlserver","last_synced_at":"2026-04-01T20:34:43.600Z","repository":{"id":286712689,"uuid":"962306671","full_name":"RodrigoPAml/MCP-SqlServer","owner":"RodrigoPAml","description":"A MCP Server implementation in C# for LLM integration with SQL Server tested with Claude Desktop","archived":false,"fork":false,"pushed_at":"2025-04-10T23:30:55.000Z","size":31,"stargazers_count":1,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-14T17:14:06.943Z","etag":null,"topics":["llm","mcp-server","sql-server"],"latest_commit_sha":null,"homepage":"","language":"C#","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/RodrigoPAml.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2025-04-08T00:51:26.000Z","updated_at":"2025-04-14T15:13:51.000Z","dependencies_parsed_at":"2025-04-11T03:49:28.346Z","dependency_job_id":"04166537-e74d-4a90-870d-68a053ea85fb","html_url":"https://github.com/RodrigoPAml/MCP-SqlServer","commit_stats":null,"previous_names":["rodrigopaml/mcp-sqlserver"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RodrigoPAml%2FMCP-SqlServer","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RodrigoPAml%2FMCP-SqlServer/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RodrigoPAml%2FMCP-SqlServer/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RodrigoPAml%2FMCP-SqlServer/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/RodrigoPAml","download_url":"https://codeload.github.com/RodrigoPAml/MCP-SqlServer/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248923768,"owners_count":21183953,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["llm","mcp-server","sql-server"],"created_at":"2025-04-08T07:46:21.883Z","updated_at":"2026-03-27T01:56:51.338Z","avatar_url":"https://github.com/RodrigoPAml.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"# MCP-SqlServer\n\nA MCP Server (STDIO) implementation in C# for LLM integration with SQL Server tested with Claude Desktop\n\nThe server register logs into a **mcp_server.log** file\n\n**Caution, the LLM can modify your database**\n\n# Tools\n\nList of tools provided to the LLM\n\n* **HealthCheck**: Tests if the Microsoft SQL Server Database connection is good and alive.\n* **GetSchema**: Get a list of all tables with their respective schema, columns and types.\n* **Query**: Execute a query into the Microsoft SQL Server database and return the result as a JSON.\n\n# Setup with Claude\n\n1. Fill the _env.database_ with the connection string from your SQL Server\n2. Compile the project\n3. In the Claude Destkop Go _File-\u003eConfigurations-\u003eDeveloper_ and edit the MCP configuration (_claude_desktop_config.json_)\n4. Paste the json as: \n\n```json\n{\n    \"mcpServers\": {\n        \"database\": {\n            \"command\": \"dotnet\",\n            \"args\": [\n                \"run\",\n                \"--project\",\n                \"C:\\\\Users\\\\{USER}\\\\Desktop\\\\MCP-SqlServer\",\n                \"--no-build\"\n            ]\n        }\n    }\n}\n```\n5. Restart Claude Desktop\n   \n# Testing\n\nOpen Claude Desktop and if everything is configured well you should be able to see this\n\n![image](https://github.com/user-attachments/assets/005590e3-e419-41e4-a3ae-9fec08d6ad7a)\n\nClick on the icon and you should be able to see the tools\n\n![image](https://github.com/user-attachments/assets/af776f81-8e61-46c3-9d9a-24ef08f8d813)\n\n## Asking for connection check\n\n![image](https://github.com/user-attachments/assets/086c2054-a88a-404b-a00c-a26751e1e7e0)\n\n## Asking for schema/table informations\n\n![image](https://github.com/user-attachments/assets/817dd04c-d530-40fe-8261-fe574ee674b2)\n\n## Asking for read query\n\n![image](https://github.com/user-attachments/assets/727b56e9-cee3-44f5-a4b6-33019771c43a)\n\n## Asking for modifications\n\n![image](https://github.com/user-attachments/assets/1af29d63-547f-4ad2-8a37-2eaae039c99b)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frodrigopaml%2Fmcp-sqlserver","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frodrigopaml%2Fmcp-sqlserver","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frodrigopaml%2Fmcp-sqlserver/lists"}