Metadata-Version: 2.5
Name: schemagate-mcp
Version: 1.23.0
Summary: One-command install of the schemagate MCP server, with every database driver and model SDK.
Project-URL: Homepage, https://github.com/ashishsinha1602/schemagate
Project-URL: Source, https://github.com/ashishsinha1602/schemagate
Author: Ashish Sinha
License-Expression: Apache-2.0
License-File: LICENSE
Classifier: Development Status :: 5 - Production/Stable
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: Apache Software License
Classifier: Programming Language :: Python :: 3
Classifier: Topic :: Database
Requires-Python: >=3.10
Requires-Dist: databricks-sqlalchemy>=2.0
Requires-Dist: duckdb-engine>=0.13
Requires-Dist: keyring>=24
Requires-Dist: pymssql>=2.3
Requires-Dist: schemagate[all]==1.23.0
Requires-Dist: snowflake-sqlalchemy>=1.7
Requires-Dist: sqlalchemy-bigquery>=1.11
Description-Content-Type: text/markdown

# schemagate-mcp

The [schemagate](https://github.com/ashishsinha1602/schemagate) MCP server in one command, with everything it
needs: the MCP server, every database driver and the model SDKs. This package has no code of its own: it
installs `schemagate[all]` at the same version plus the drivers the core package has no extra for, and provides
the `schemagate-mcp` command.

```bash
uvx schemagate-mcp --url demo                              # the bundled sample schema, no database needed
uvx schemagate-mcp --url postgresql://user@host:5432/db    # or your own database
pip install schemagate-mcp                                 # or install it
```

Keep a password out of the command line. Either give the connection as separate fields, with the password typed
as it is (no URL encoding):

```bash
SCHEMAGATE_DB_TYPE=postgresql SCHEMAGATE_DB_HOST=db.example.com SCHEMAGATE_DB_USER=app \
SCHEMAGATE_DB_PASSWORD='p@ss/word' SCHEMAGATE_DB_NAME=sales uvx schemagate-mcp
```

(`SCHEMAGATE_DB_TYPE`: demo, postgresql, mysql, mssql, oracle, sqlite, duckdb, snowflake, databricks, bigquery;
also `SCHEMAGATE_DB_PORT` and `SCHEMAGATE_DB_OPTIONS`, e.g. `http_path=...` for Databricks.) Or put a URL in
`SCHEMAGATE_DATABASE_URL`:

| Database | URL starts with | Driver included |
|---|---|---|
| PostgreSQL | `postgresql://` or `postgres://` | psycopg |
| MySQL / MariaDB | `mysql://` | PyMySQL |
| SQL Server | `mssql://` or `sqlserver://` (pymssql, no ODBC needed), or `mssql+pyodbc://` | pymssql, pyodbc |
| Oracle | `oracle://` | oracledb |
| SQLite | `sqlite:///path/to/file.db` | built in |
| DuckDB | `duckdb:///path/to/file.duckdb` | duckdb-engine |
| Snowflake | `snowflake://` | snowflake-sqlalchemy |
| Databricks | `databricks://` | databricks-sqlalchemy |
| BigQuery | `bigquery://project` | sqlalchemy-bigquery |

Databases already saved in VS Code (SQL Server, PostgreSQL, SQLTools extensions) or SQL Developer / SQLcl can be
picked in chat: ask "which databases can you connect to?" and the model calls `list_connections`, then
`connect_database`. VS Code's saved passwords are not readable by other programs, so give one once:

```bash
uvx schemagate-mcp connections              # what schemagate can see
uvx schemagate-mcp login "Warehouse PG"     # asks for the password, keeps it in the system keychain
```

Model SDKs for the server's answer tools (bring your own key): Anthropic, OpenAI, Google Gemini.

schemagate hands a text-to-SQL model only the tables a question needs, and only the ones the caller may read.
Documentation, benchmarks and source: https://github.com/ashishsinha1602/schemagate

mcp-name: io.github.ashishsinha1602/schemagate
