# Schemity

> Schemity is a freemium MCP server for databases. Local database MCP server that lets AI agents read schemas and stage edits without running. It runs locally on your machine and is started by your AI client.

- **Kind:** MCP server
- **Pricing:** Freemium
- **Platforms:** macOS, Windows, Linux, CLI, Self-hosted
- **Website:** https://schemity.com/database-mcp-server/
- **Repository:** https://github.com/schemity/mcp
- **MCP Registry name:** com.schemity/mcp
- **Categories:** [databases](https://ai-powered.com/categories/databases)
- **Listing updated:** 2026-11-19

## About

Schemity's MCP server is built into its desktop database design app and runs on your own machine. An agent connected through Claude Code, Cursor, Codex or another MCP host can read tables, relations, context views and lint findings, and measure what a pending migration would do to existing data. Edits the agent proposes appear as unsaved changes on the diagram, and nothing reaches the database until you click Migrate yourself.

The server deliberately has no tool that executes SQL written by the agent and none that returns rows. Its only database query is an exact row count for a specific finding, run on request with a 60-second timeout. The agent connects to a localhost server with a bearer token, so it never sees a password or connection string.

The server suits engineers who want an assistant's help with schema design and migration review while keeping data access closed. Teams that need an agent to answer questions about row contents will need a separate SQL-capable server. The MCP server is part of the paid desktop license, with a 2-week trial.

## Features

- **Schema reading tools:** Agents can read tables, columns, keys, indexes, relations and context views from the open diagram.
- **Migration impact analysis:** Pending changes or migration files are analysed for data loss, failing statements and table rewrites before they run.
- **Staged diagram edits:** Agent-proposed changes land as unsaved edits that you review, save or undo.
- **No SQL execution:** The server has no tool that runs agent-written SQL and no tool that returns table rows.
- **Localhost access control:** HTTP mode listens on 127.0.0.1 and requires a bearer token stored in the OS keychain.

## Good for

- Reviewing a hand-written migration file against a live schema before deploying it
- Asking an AI assistant to explain dependencies and domains in a database diagram
- Having an agent propose new tables or columns as reviewable changes
- Checking which views or relations a schema change would break
- Grouping and tidying a large ER diagram by domain

## Install

### Claude Code: Add with the CLI (Terminal)

```sh
claude mcp add mcp -- npx -y schemity-mcp
```

Add --scope user to use it in every project, or --scope project to share it in .mcp.json.

### Claude Code: Or share it with your project (.mcp.json)

```json
{
  "mcpServers": {
    "mcp": {
      "command": "npx",
      "args": [
        "-y",
        "schemity-mcp"
      ]
    }
  }
}
```

### Claude Desktop (claude_desktop_config.json)

```json
{
  "mcpServers": {
    "mcp": {
      "command": "npx",
      "args": [
        "-y",
        "schemity-mcp"
      ]
    }
  }
}
```

Settings → Developer → Edit Config, then quit and reopen Claude Desktop.

### Cursor (~/.cursor/mcp.json)

```json
{
  "mcpServers": {
    "mcp": {
      "command": "npx",
      "args": [
        "-y",
        "schemity-mcp"
      ]
    }
  }
}
```

Use .cursor/mcp.json in a project to share it with the project.

### VS Code (~/.copilot/mcp-config.json)

```json
{
  "mcpServers": {
    "mcp": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "schemity-mcp"
      ]
    }
  }
}
```

Or put the same entry in .mcp.json at your workspace root to share it.

### Codex: Add with the CLI (Terminal)

```sh
codex mcp add mcp -- npx -y schemity-mcp
```

### Codex: Or add to config.toml (~/.codex/config.toml)

```toml
[mcp_servers.mcp]
command = "npx"
args = ["-y", "schemity-mcp"]
```

### Gemini CLI and Antigravity: Gemini CLI (~/.gemini/settings.json)

```json
{
  "mcpServers": {
    "mcp": {
      "command": "npx",
      "args": [
        "-y",
        "schemity-mcp"
      ]
    }
  }
}
```

Or run: gemini mcp add -s user mcp npx -- -y schemity-mcp

### Gemini CLI and Antigravity: Antigravity (~/.gemini/config/mcp_config.json)

```json
{
  "mcpServers": {
    "mcp": {
      "command": "npx",
      "args": [
        "-y",
        "schemity-mcp"
      ]
    }
  }
}
```

Use .agents/mcp_config.json to add it to one workspace only.

### Devin Desktop (~/.config/devin/mcp_config.json)

```json
{
  "mcpServers": {
    "mcp": {
      "command": "npx",
      "args": [
        "-y",
        "schemity-mcp"
      ]
    }
  }
}
```

On Windows the file is %APPDATA%\\devin\\mcp_config.json. Use .devin/mcp_config.json to share it with a project.

### Cline (cline_mcp_settings.json)

```json
{
  "mcpServers": {
    "mcp": {
      "command": "npx",
      "args": [
        "-y",
        "schemity-mcp"
      ]
    }
  }
}
```

Open it from the MCP Servers icon → Configure → Configure MCP Servers.

### Zed (Zed settings.json)

```json
{
  "context_servers": {
    "mcp": {
      "command": "npx",
      "args": [
        "-y",
        "schemity-mcp"
      ]
    }
  }
}
```

Open it with zed: open settings file. Merge context_servers into the settings you already have.

### JetBrains AI Assistant and Junie: AI Assistant (Settings → Tools → AI Assistant → Model Context Protocol (MCP) → Add)

```json
{
  "mcpServers": {
    "mcp": {
      "command": "npx",
      "args": [
        "-y",
        "schemity-mcp"
      ]
    }
  }
}
```

### JetBrains AI Assistant and Junie: Junie (~/.junie/mcp/mcp.json)

```json
{
  "mcpServers": {
    "mcp": {
      "command": "npx",
      "args": [
        "-y",
        "schemity-mcp"
      ]
    }
  }
}
```

Use .junie/mcp/mcp.json to share it with a project.

### Kiro (~/.kiro/settings/mcp.json)

```json
{
  "mcpServers": {
    "mcp": {
      "command": "npx",
      "args": [
        "-y",
        "schemity-mcp"
      ]
    }
  }
}
```

Use .kiro/settings/mcp.json to add it to one workspace only.

### Other clients (your client's MCP settings (most use this shape))

```json
{
  "mcpServers": {
    "mcp": {
      "command": "npx",
      "args": [
        "-y",
        "schemity-mcp"
      ]
    }
  }
}
```

## Tools

From the tool list in its README, going by the names, 12 of 19 tools read data; 7 names don't say. From the server's own tool labels and tool names; not verified by us.

- `get_schema` (name suggests: reads): Tables, columns, keys, checks and indexes of a diagram or context view, with no row data.
- `get_dependencies` (name suggests: reads): Relations into and out of one table, with the columns on both sides.
- `get_context_views` (name suggests: reads): Context views, dependencies between them, cycles and undeclared foreign keys.
- `get_data_dictionary` (name suggests: reads): Markdown data dictionary of the diagram or one context view.
- `lint`: Schema findings on conventions, missing indexes and type mismatches.
- `get_pending_changes` (name suggests: reads): Unsaved edits as the undo history that produced them.
- `analyze_impact` (name suggests: reads): Cost of a pending migration: data loss, failing statements, rewrites and dependents.
- `analyze_migration_file` (name suggests: reads): Impact analysis for a migration file, parsed and never executed.
- `count_rows` (name suggests: reads): Exact SELECT COUNT for one finding, with a 60-second timeout, only on request.
- `open_schemity`: Start the app or bring it to the front.
- `list_diagrams` (name suggests: reads): List the diagrams open right now.
- `find_diagrams` (name suggests: reads): Find saved diagrams by name, database or workspace.
- `open_diagram`: Open a named diagram in a new tab.
- `show_preview` (name suggests: reads): Draw pending edits, a migration file or tables on the canvas with findings.
- `propose_changes`: Create, change and delete tables, columns, relations, constraints, indexes, legends and context views as unsaved edits.
- `group_entities`: Group tables into legends by domain.
- `arrange_entities`: Place a few tables in rows and columns.
- `route_relations`: Re-route relation lines around tables.
- `check_relation_lines` (name suggests: reads): Count overlapping lines, crossings and bends in the layout.

## FAQ

### Does Schemity's MCP server run queries against my database?

It reads the catalogue for impact analysis, and runs a COUNT for a finding only when you ask. No tool returns rows.

### Can an AI agent change my database schema through Schemity?

It can propose changes, which stay unsaved on the diagram. The database changes only when you click Migrate or run the migration yourself.

### Which AI agents does Schemity work with?

Claude Code, Claude Desktop, Cursor, Codex, OpenCode, MCP Inspector and other MCP hosts that speak stdio or Streamable HTTP.

### How much does the MCP server cost?

It is part of the desktop app, a one-time $129 purchase with no subscription. Every tool works during the 2-week trial, and the server stays free afterwards with a reduced toolset.

### How do I add Schemity to Claude Code?

Run this command in your terminal: claude mcp add mcp -- npx -y schemity-mcp

### What are the best alternatives to Schemity?

The closest alternatives to Schemity are SchemaSketch, AdoMcp, SQL Server MCP (Windows), Mysql and NeoSQL MCP.

## Where this comes from

- Description: written from the project's README, the project's website and its MCP Registry entry.
- Install steps: from the official MCP Registry entry.

## Alternatives

- [SchemaSketch](https://ai-powered.com/mcp/schemasketch): SchemaSketch is a free MCP server for databases.
- [AdoMcp](https://ai-powered.com/mcp/adomcp): AdoMcp is an open-source MCP server for databases.
- [SQL Server MCP (Windows)](https://ai-powered.com/mcp/sql-server-mcp-windows): SQL Server MCP (Windows) is an open-source MCP server for databases.
- [Mysql](https://ai-powered.com/mcp/mysql): Mysql is an open-source MCP server for databases.
- [NeoSQL MCP](https://ai-powered.com/mcp/neosql-mcp): NeoSQL MCP is an open-source MCP server for databases.
- [dryrun](https://ai-powered.com/mcp/dryrun): dryrun is an open-source MCP server for databases.
- [databasedmcp](https://ai-powered.com/mcp/databasedmcp): databasedmcp is a freemium MCP server for databases.
- [Schemagate](https://ai-powered.com/mcp/schemagate): Schemagate is an open-source MCP server for databases.

---
Source: https://ai-powered.com/mcp/schemity
