{
  "markdown": "# Raw SQL MCP\n\n[![CI](https://github.com/KifoPL/RawSqlMcp/actions/workflows/ci.yml/badge.svg?branch=master)](https://github.com/KifoPL/RawSqlMcp/actions/workflows/ci.yml)\n[![NuGet](https://img.shields.io/nuget/v/RawSqlMcp?label=NuGet)](https://www.nuget.org/packages/RawSqlMcp)\n[![Latest release](https://img.shields.io/github/v/tag/KifoPL/RawSqlMcp?label=release)](https://github.com/KifoPL/RawSqlMcp/tags)\n\n<!-- mcp-name: io.github.KifoPL/RawSqlMcp -->\n\nRaw SQL MCP is a STDIO MCP server for executing raw SQL against SQL Server, SQLite, PostgreSQL, MySQL, and MariaDB.\n\n> [!IMPORTANT]\n> 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.\n\n![Install and run demo](docs/vhs/install-run.gif)\n\n## Installation\n\nRun the server with `dnx`:\n\n```bash\ndnx RawSqlMcp\n```\n\nFor a specific version:\n\n```bash\ndnx RawSqlMcp@0.0.2\n```\n\nPackage: [RawSqlMcp on NuGet](https://www.nuget.org/packages/RawSqlMcp)\n\n## Configuration\n\nDatabases are configured with environment variables under `RawSqlMcp__Databases__`.\n\nSQLite:\n\n```bash\nexport RawSqlMcp__Databases__Local__Provider=\"sqlite\"\nexport RawSqlMcp__Databases__Local__ConnectionString=\"Data Source=/absolute/path/app.db\"\n```\n\nPostgreSQL:\n\n```bash\nexport RawSqlMcp__Databases__Reporting__Provider=\"postgres\"\nexport RawSqlMcp__Databases__Reporting__ConnectionString=\"Host=localhost;Port=5432;Database=reporting;Username=postgres;Password=postgres\"\n```\n\nMySQL/MariaDB:\n\n```bash\nexport RawSqlMcp__Databases__Shop__Provider=\"mysql\"\nexport RawSqlMcp__Databases__Shop__ConnectionString=\"Server=localhost;Port=3306;Database=shop;User ID=mysql;Password=mysql\"\n```\n\nSQL Server:\n\n```bash\nexport RawSqlMcp__Databases__Default__Provider=\"sqlserver\"\nexport RawSqlMcp__Databases__Default__ConnectionString=\"Server=localhost,1433;Database=master;User Id=sa;Password=Your_password123;TrustServerCertificate=True\"\n```\n\nOptional command timeout, in seconds:\n\n```bash\nexport RawSqlMcp__CommandTimeout=30\n```\n\n> [!INFO]\n> The legacy `RawSqlMcp__ConnectionStrings__Default=\"...\"` format is obsolete. It still works for compatibility and is interpreted as SQL Server.\n\n## Usage\n\nRegister the server in an MCP client as a STDIO server:\n\n```json\n{\n  \"servers\": {\n    \"raw-sql-mcp\": {\n      \"command\": \"dnx\",\n      \"args\": [\"RawSqlMcp\"],\n      \"env\": {\n        \"RawSqlMcp__Databases__Default__Provider\": \"sqlserver\",\n        \"RawSqlMcp__Databases__Default__ConnectionString\": \"Server=localhost,1433;Database=master;User Id=sa;Password=Your_password123;TrustServerCertificate=True\"\n      }\n    }\n  }\n}\n```\n\nThe server exposes tools for listing configured database names, reading schema metadata, and executing raw, parameterized, and scalar SQL queries.\n\n![Short end-to-end demo](docs/vhs/end-to-end.gif)\n",
  "bytes": 2875,
  "sha": "53c712bca08633f69d37dfd316d85343230fd43494d860f161142edf43a9fee2",
  "repo_slug": "kifopl/rawsqlmcp",
  "fonte": "repo",
  "truncated": false,
  "api": "https://agentalog.com/api/listings/mcp_io_github_kifopl_rawsqlmcp_ee138f90/readme"
}