Skip to content
Back to search

sql-mcp-servers

Standalone Native ANSI C SQLite MCP Server

Safety scan

A static text scan, not a guarantee. Select the badge to see what was scanned and every finding.

Checked today

Check it deeper on your machine

It has changed since its scan on 19 Nov 2026.

As a Claude Code plugin, install it and then ask Claude Code:

/plugin marketplace add keithmackay/mackayi/plugin install scanskillsafety@mackayiDo a deep scan of https://github.com/davidemoraschi/sql-mcp-servers with scanskillsafety

Or from a terminal, clone it and run it:

git clone https://github.com/keithmackay/scanskillsafety-skill ~/.claude/skills/scanskillsafetynode ~/.claude/skills/scanskillsafety/cli.cjs --deep 'https://github.com/davidemoraschi/sql-mcp-servers'

It checks the exact commit: every file, its packages against OSV (api.osv.dev), how it compares with this page's scan (findsafeskills.com receives the repository's address), and, if you agree, Claude reading every file with your own Claude subscription. It never runs the code.

Badge for your README
findsafeskills safety rating

Markdown

[![findsafeskills safety rating](/api/listings/davidemoraschi--sql-mcp-servers/badge.svg)](/listings/davidemoraschi--sql-mcp-servers)

HTML

<a href="/listings/davidemoraschi--sql-mcp-servers"><img src="/api/listings/davidemoraschi--sql-mcp-servers/badge.svg" alt="findsafeskills safety rating" /></a>

Install

i

What was scanned

The files the safety scan read, as written by the repository's author and shown as plain text. Lines with a finding are marked.

README.md · README · 79 lines
  1. # Standalone Native ANSI C SQLite MCP Server
  2. A high-performance, zero-dependency Model Context Protocol (MCP) server written in C11. Operating over Standard I/O (`stdio`), it provides local AI desktop hosts (such as Studio, Claude Desktop, and Claude Code) with secure, high-speed access to SQLite databases.
  3. Built strictly in accordance with the **MCP 2026-07-28 Specification** and **JSON-RPC 2.0**.
  4. ---
  5. ## Key Features
  6. - **Zero External Dependencies**: Statically compiled for Linux (64-bit ELF) and Windows (64-bit PE32+).
  7. - **Strict Line Budget**: Every source file (`.c` / `.h`) is strictly under 500 lines of code.
  8. - **Environment Credentials**: DB path, access mode, busy timeout, and encryption key are loaded strictly from environment variables.
  9. - **SQL Injection Defense**: Strict parameter binding and table/column name whitelisting.
  10. - **Portable RDBMS Tools**: Includes tools for `read_query`, `write_query`, `backup_database`, `explain_query`, `describe_table`, `infer_relationships`, `generate_erd`, `list_tables`, `export_data`, and `check_database_health`.
  11. ---
  12. ## Environment Variable Configuration
  13. Configure database settings via environment variables:
  14. | Variable | Type | Default | Description |
  15. |---|---|---|---|
  16. | `SQLITE_DB_PATH` | String | `./database.db` | Absolute or relative path to target SQLite database file. |
  17. | `SQLITE_OPEN_MODE` | String | `READWRITE` | Database access mode (`READONLY` or `READWRITE`). |
  18. | `SQLITE_BUSY_TIMEOUT_MS` | Integer | `5000` | Busy timeout in milliseconds. |
  19. | `SQLITE_ENCRYPTION_KEY` | String | `NULL` | Optional encryption key (memory wiped after init). |
  20. ---
  21. ## Building
  22. ### Windows
  23. Run the automated Windows batch script from **Developer Command Prompt for Visual Studio**:
  24. ```cmd
  25. build.bat
  26. ```
  27. Alternatively, build with CMake (supports both Debug and Release configurations):
  28. ```cmd
  29. mkdir build
  30. cd build
  31. cmake ..
  32. cmake --build . --config Release
  33. ```
  34. ### Linux
  35. Run the automated build script:
  36. ```bash
  37. ./build.sh
  38. ```
  39. Or use `make`:
  40. ```bash
  41. make
  42. ```
  43. ---
  44. ## Host Configuration (`claude_desktop_config.json`)
  45. ```json
  46. {
  47. "mcpServers": {
  48. "sqlite": {
  49. "command": "/path/to/sqlite-mcp-server",
  50. "env": {
  51. "SQLITE_DB_PATH": "/path/to/my_database.db",
  52. "SQLITE_OPEN_MODE": "READWRITE",
  53. "SQLITE_BUSY_TIMEOUT_MS": "5000"
  54. }
  55. }
  56. }
  57. }
  58. ```
  59. ---
  60. ## License
  61. MIT License

Ratings and comments

Sign in to rate this skill.

Sign in

Free to use. If it’s helped, pass it on.