Raw SQL MCP Server
Execute raw SQL queries against SQL Server, SQLite, PostgreSQL, MySQL, and MariaDB.
Raw SQL MCP scores 63 (Good), licensed AGPL-3.0 and written in C#. It installs as a local process. It does not declare tools yet. Filed under Databases. GitHub shows 0 stars. Install configs are generated for 12 clients. Being listed in the registry is not the same as being vendor-official.
Good trust
63 of 100 from six public signals. Nobody can buy a point.
- Listed in the official MCP registry.
- OSI-style license: agpl-3.0.
License, quality and maintenance
License: Grade C
AGPL-3.0 is a strong copyleft license: derived works must use the same license.
How license is gradedQuality: Grade C
55/100 for listing completeness. Lost points: short README, no listed tools, short summary.
How quality is graded
Where the 63 comes from
22 + 20 + 0 + 10 + 4 + 7 = 63. Each factor is capped, so no single signal can carry a listing.
Active in the official MCP registry, plus a known vendor namespace.
Registry: 22 of 30 points.How recently the repository saw a commit or release.
Maintenance: 20 of 20 points.GitHub stars and weekly downloads, on a log scale.
Popularity: 0 of 20 points.A clear, OSI-style open-source license.
License: 10 of 10 points.Not archived, a secure install path, a pinned version.
Security: 4 of 10 points.A real summary, a README with depth, listed tools.
Docs: 7 of 10 points.Install
Pick your client, copy the config, paste it in.
Needs Cursor or VS Code installed on this device. The button opens the app and asks you to confirm before it adds the server.
{ "mcpServers": { "kifopl-rawsqlmcp": { "command": "dnx", "args": [ "RawSqlMcp" ], "env": { "RawSqlMcp__Databases__Default__Provider": "", "RawSqlMcp__Databases__Default__ConnectionString": "YOUR_RawSqlMcp__Databases__Default__ConnectionString", "RawSqlMcp__ConnectionStrings__Default": "YOUR_RawSqlMcp__ConnectionStrings__Default" } } }}
Environment variables
| Name | Required | Notes |
|---|---|---|
RawSqlMcp__Databases__Default__Provider | Optional | Database provider. Values: sqlserver, sqlite, postgres, postgresql, mysql, mariadb. |
RawSqlMcp__Databases__Default__ConnectionStringSecret | Optional | Connection string for the named database. |
RawSqlMcp__ConnectionStrings__DefaultSecret | Optional | Obsolete. Use provider and connection string database settings instead. |
Tools
All capabilitiesTools show up when the registry metadata or the repository README lists them. Public READMEs are read directly. A GitHub token is used only when one is already configured.
About
Raw SQL MCP
Raw SQL MCP is a STDIO MCP server for executing raw SQL against SQL Server, SQLite, PostgreSQL, MySQL, and MariaDB.
[!IMPORTANT] Use it carefully. The server does not protect you from destructive queries, expensive queries, SQL injection, missing pagination, or unsafe data exposure. Always review and approve queries before running them.

Installation
Run the server with dnx:
dnx RawSqlMcp
For a specific version:
dnx RawSqlMcp@0.0.2
Package: RawSqlMcp on NuGet
Configuration
Databases are configured with environment variables under RawSqlMcp__Databases__.
SQLite:
export RawSqlMcp__Databases__Local__Provider="sqlite"
export RawSqlMcp__Databases__Local__ConnectionString="Data Source=/absolute/path/app.db"
PostgreSQL:
export RawSqlMcp__Databases__Reporting__Provider="postgres"
export RawSqlMcp__Databases__Reporting__ConnectionString="Host=localhost;Port=5432;Database=reporting;Username=postgres;Password=postgres"
MySQL/MariaDB:
export RawSqlMcp__Databases__Shop__Provider="mysql"
export RawSqlMcp__Databases__Shop__ConnectionString="Server=localhost;Port=3306;Database=shop;User ID=mysql;Password=mysql"
SQL Server:
export RawSqlMcp__Databases__Default__Provider="sqlserver"
export RawSqlMcp__Databases__Default__ConnectionString="Server=localhost,1433;Database=master;User Id=sa;Password=Your_password123;TrustServerCertificate=True"
Optional command timeout, in seconds:
export RawSqlMcp__CommandTimeout=30
[!INFO] The legacy
RawSqlMcp__ConnectionStrings__Default="..."format is obsolete. It still works for compatibility and is interpreted as SQL Server.
Usage
Register the server in an MCP client as a STDIO server:
{
"servers": {
"raw-sql-mcp": {
"command": "dnx",
"args": ["RawSqlMcp"],
"env": {
"RawSqlMcp__Databases__Default__Provider": "sqlserver",
"RawSqlMcp__Databases__Default__ConnectionString": "Server=localhost,1433;Database=master;User Id=sa;Password=Your_password123;TrustServerCertificate=True"
}
}
}
}
The server exposes tools for listing configured database names, reading schema metadata, and executing raw, parameterized, and scalar SQL queries.

Frequently asked questions
What is Raw SQL MCP Server?
Execute raw SQL queries against SQL Server, SQLite, PostgreSQL, MySQL, and MariaDB.
How do I install Raw SQL MCP Server in Claude Desktop, Cursor, or VS Code?
Pick your client in the Install section on this page and copy the generated config into the client's config file. Step-by-step guides: Claude Desktop, Cursor, and VS Code. Raw SQL MCP Server runs locally from the NuGet package RawSqlMcp with the command dnx RawSqlMcp.
Is Raw SQL MCP Server free and open source?
Yes. Raw SQL MCP Server is released under the AGPL-3.0 license, an OSI-approved open-source license, so you can use, modify, and self-host it under those terms.
Does Raw SQL MCP Server support remote (HTTP) connections?
No remote endpoint is listed for Raw SQL MCP Server. It runs locally on your machine over stdio, started by your MCP client.
How is Raw SQL MCP Server's trust score calculated?
Raw SQL MCP Server scores 63 out of 100 (Good). The score adds six capped public signals: registry status, maintenance, popularity, license, documentation, and security. Nobody can pay for points. Read the methodology for the full formula.
Reviews
No reviews yet—Be the first to review
No published reviews yet. Used it? Tell the next person how it went.
Sign inA verified email is required to review this server.
Add badge to your README
Paste either snippet into the repository README. The image links to this listing.