mcpbeat Sign in

Schemagate MCP Server

by ashishsinha1602 Your server? Claim it
local only

Schemagate runs on your own machine — the client starts it, so there is no endpoint to ping. 3 495 installs a week from pypi. Last commit 7 Nov 2026.

Identity-scoped schema selection for text-to-SQL. Returns only the tables the caller may read.

Installs per day peak 1 286 · avg 522 · +9% w/w
a month agotoday
3 495
Installs / week
pypi · schemagate
133
Stars
0 open issues
7 Nov 2026
Last commit
from GitHub
Apache-2.0
License
Python

What the code does

We read the source, 2 h ago · rules 995398eba69f

Capabilities

What this server is able to do. For an MCP server this is often the job itself — a terminal server runs commands because that is what it is for. Listed so you know what you are plugging in, not as an accusation.

Runs an external command studio/build.py:16
subprocess.run([sys.executable, str(HERE / "export_schemas.py")], check=True)
Executes code built at runtime studio/build_answers.py:55
    mod = __import__(mods[key])
Page executes code built at runtime studio/studio.template.html:580
      c.innerHTML=esc(r); c.onclick=()=>{ state.roles.has(r)? state.roles.delete(r): state.roles.add(r); renderRoles(); run(); };

Is this your server and something here is wrong? Tell us — corrections are free and do not require a plan.

This code can reach further than it looks

We found places where it runs commands, builds paths or queries from values it is given. None of that is a flaw by itself — it becomes one when the code changes, and code changes quietly between releases. We re-read it on every one.

Three servers free · no card

Connect this server

This server runs on your own machine — install it with the package manager and the client starts it for you. Package name taken from the official registry entry.

run in your terminal
claude mcp add schemagate -e 'SCHEMAGATE_DATABASE_URL=<SCHEMAGATE_DATABASE_URL>' -- uvx schemagate
~/Library/Application Support/Claude/claude_desktop_config.json
{
  "mcpServers": {
    "schemagate": {
      "command": "uvx",
      "args": [
        "schemagate"
      ],
      "env": {
        "SCHEMAGATE_DATABASE_URL": "<SCHEMAGATE_DATABASE_URL>"
      }
    }
  }
}
~/.codex/config.toml
[mcp_servers.schemagate]
command = "uvx"
args = ["schemagate"]
env = { SCHEMAGATE_DATABASE_URL = "<SCHEMAGATE_DATABASE_URL>" }
.cursor/mcp.json
{
  "mcpServers": {
    "schemagate": {
      "command": "uvx",
      "args": [
        "schemagate"
      ],
      "env": {
        "SCHEMAGATE_DATABASE_URL": "<SCHEMAGATE_DATABASE_URL>"
      }
    }
  }
}
.vscode/mcp.json
{
  "servers": {
    "schemagate": {
      "type": "stdio",
      "command": "uvx",
      "args": [
        "schemagate"
      ],
      "env": {
        "SCHEMAGATE_DATABASE_URL": "<SCHEMAGATE_DATABASE_URL>"
      }
    }
  }
}

Put your own value in place of <SCHEMAGATE_DATABASE_URL> (SQLAlchemy URL of the database to reflect, or 'demo' for the bundled schema). The author’s registry entry marks it as required.

Optional settings from the registry entry, left out of the block above: SCHEMAGATE_CATALOG_CONFIG (Optional path to a JSON file with roles, hints and shadow-name overrides).

Alternatives to Schemagate

same job, measured the same way
DB2TOON MCP
by kamil5b

Read-only SQL database and plain-text SQL dump schema extraction to compact TOON for MCP clients.

local only
Archery MCP
by itzhouq

Read-only MCP server for the Archery SQL audit platform: production schema and release SQL checks

162 installs/wk local only
Postgres (read-only)
by contextflo

Read-only Postgres: drop-in for the archived server-postgres, with schema context.

288 installs/wk local only
SqlServerMcp
by nithish1206

MCP server for SQL Server: schema inspection, safe read-only queries, query plan analysis

local only
Elekto MCP for SQL Server
by elekto-com-br

Read-only SQL Server introspection and querying: schema, definitions, dependencies and data.

local only
IBM Db2 for i
by strom-capital

Read-only SQL queries and schema inspection for IBM Db2 for i over ODBC, JT400 or Mapepire (SSH).

388 installs/wk local only
AI2SQL
by ai2sql

Text-to-SQL MCP server: read-only queries on PostgreSQL, MySQL and SQL Server with your real schema

answering
DB Explorer
by ayush-148

Read-only SQL for PostgreSQL, MySQL and SQLite: schema, safe SELECTs, EXPLAIN, index advice

134 installs/wk local only

Schemagate — questions

Answers built from our own checks of this server.

Why is there no uptime for Schemagate?
Schemagate runs on your own machine over stdio — there is no network address to reach, so uptime cannot be measured for it by anyone. What can be measured is adoption: the pypi package schemagate was installed 3 495 times last week.
How do I connect Schemagate?
Copy the ready config from this page. We generate it for Claude Code, Claude Desktop, Codex, Cursor and VS Code, each in the form that client actually reads. It runs locally, so the command pulls schemagate straight from pypi; nothing to host, nothing to sign up for.
How many people use Schemagate?
The pypi package schemagate was installed 3 495 times in the last week. Week over week that is +9%. We show installs rather than GitHub stars on purpose: a star is a bookmark, an install is someone actually running it.
Is Schemagate open source?
Yes — it is published under the Apache-2.0 licence, written in Python and 133 stars on GitHub. The source link is on this page, so you can read exactly what it does with your data before you connect it.