Basic information
About Schemabrain MCP Server
A read-only trust + intelligence layer between AI agents and your database — the agent never writes SQL, PII is refused before the query runs, and every call lands in a tamper-evident audit log. Postgres today.
Schemabrain is a MCP server in the Databases category listed in the AddMCP.net directory, published by Arun-kc. Supported transport: stdio. Runtime: Python. License: Apache-2.0. The repository has 12 GitHub stars. Source code is hosted on github.com. Related topics: agent-tools, agent-trust, agentic-ai, ai-agents, ai-security.
Setup
{
"mcpServers": {
"schemabrain": {
"command": "uvx",
"args": [
"schemabrain",
"serve",
"--url-env",
"DATABASE_URL"
],
"env": {
"DATABASE_URL": "postgresql://user:password@localhost:5432/dbname"
}
}
}
}
{
"mcpServers": {
"schemabrain": {
"command": "uvx",
"args": [
"schemabrain",
"serve",
"--url-env",
"DATABASE_URL"
],
"env": {
"DATABASE_URL": "postgresql://user:password@localhost:5432/dbname"
}
}
}
}
{
"servers": {
"schemabrain": {
"command": "uvx",
"args": [
"schemabrain",
"serve",
"--url-env",
"DATABASE_URL"
],
"env": {
"DATABASE_URL": "postgresql://user:password@localhost:5432/dbname"
}
}
}
}
Schemabrain MCP Server config
Add this server to your MCP-compatible client using the configuration below.
{
"mcpServers": {
"schemabrain": {
"command": "uvx",
"args": [
"schemabrain",
"serve",
"--url-env",
"DATABASE_URL"
],
"env": {
"DATABASE_URL": "postgresql://user:password@localhost:5432/dbname"
}
}
}
}
Schemabrain MCP Server tools
Tool list not available yet
This listing does not currently have a tool list to display. This does not mean the server has no tools; check its documentation for supported capabilities.
We auto-extract tools from the README. The maintainer can list them under a ## Tools heading to populate this section.
Overview
What is Schemabrain?
Schemabrain is an MCP server that acts as a read-only trust and intelligence layer between AI agents (Claude, Cursor, Windsurf) and your SQL database. It compiles SQL from definitions you control and refuses queries touching blocked categories before the database is queried.
How to use Schemabrain?
Install Schemabrain using the uvx package manager. It sits between an AI agent and a Postgres database. Twelve read-only MCP tools are available; the agent never writes SQL directly.
Key features of Schemabrain
- Read-only architecture — 12 MCP tools, none can write.
- PII-aware refusal — blocked-category queries are rejected before hitting the database.
- Tamper-evident audit — SHA-256‑chained append‑only log of every call, refusal, and recovery.
- Postgres support today; Apache‑2.0 licensed.
- Simple installation via
uvx.
Use cases of Schemabrain
- Letting AI agents query a production database without risk of writes.
- Preventing accidental or malicious PII extraction from the database.
- Maintaining an immutable, verifiable audit trail of all agent queries.
- Enforcing data-access policies through category-based refusal rules.
Frequently asked questions
1 Is Schemabrain read-only?
Yes. All 12 MCP tools are read-only by architecture. The agent never writes SQL; SchemaBrain compiles SQL from definitions you control.
2 How does Schemabrain handle PII?
It maintains a set of blocked categories. Any query touching a blocked category is refused before the database is queried.
3 What database does Schemabrain support?
Currently only Postgres.
4 Is there an audit log?
Yes. Every call, refusal, and recovery is recorded in a SHA-256-chained append-only log that is tamper-evident.
5 How do I install Schemabrain?
Install using uvx.
Comments
No comments yet
Be the first to share feedback about this listing. Sign in to leave a comment.
Sign In