# mcpg-plugin-backend-sql MCP server

> Exposes Postgres, MySQL/MariaDB, and SQLite databases as MCP tools, resources, and pipeline steps for direct querying.

- Repository: https://github.com/mcpg-dev/mcpg-plugin-backend-sql
- Page: https://hostedmcp.org/servers/mcpg-dev/mcpg-plugin-backend-sql
- Transport: —
- Stars: 0
- License: Apache-2.0

## Environment variables

| Name | Required | Secret | Description |
|---|---|---|---|
| `POSTGRES_TEST_URL` | no | no |  |

## FAQ

### Which database engines are supported?

The plugin supports PostgreSQL, MySQL/MariaDB, and SQLite.

### How are SQL parameters handled to prevent injection?

Parameters are always bound through the sqlx prepared-statement interface, ensuring no string interpolation is ever used.

### Can I use SQLite extensions with this plugin?

Yes, you can load run-time extensions like sqlite-vec or SpatiaLite by setting the MCPG_SQLITE_EXTENSION_DIRS environment variable and configuring the binding with the file path and SHA-256 hash.
