# Deedglass [Health: Active]

**Category:** 🗄️ Databases  
**Repository:** https://github.com/deedglass/deedglass  
**GitHub Stars:** 7  
**npm Downloads (last month):** 713  
**Views:** 2  
**Installs:** 0  
**Upvotes:** 0  
**Directory Page:** https://allmcps.com/mcp/deedglass

## Description
Rules decide each AI agent tool call; Deedglass checks what really changed and seals a record.

## Tools
Capabilities this server exposes over MCP:

- **postgres_call** — Call an allow-listed function with named arguments: public.ship_order(bigint): Mark a paid order shipped.
- **postgres_describe** — List the tables the agent can read: columns, types, primary keys, row estimates, and which tables are writable and watched.
- **postgres_execute** — Run one INSERT, UPDATE, DELETE or MERGE in a transaction Deedglass controls, as a least-privilege role. Writable tables: public.orders, public.refunds.
- **postgres_query** — Run one read-only SQL statement against public and get up to 500 rows back. Read-only: it never commits.
- **deedglass_check_approval** — Checks whether a person has countersigned an action that Deedglass paused for approval. Call it with the approval_id from a 'Waiting for approval' message. It waits up to wait_seconds (0 to 20, default 10) for the decision, so one call is usually enough. If it was approved, Deedglass runs the original tool call and returns its result. Nothing runs while the approval is pending.

## Claude Desktop Quick Installation
Install path detected from listing signals. Uses `npx` (confidence: high):

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

## Documentation

## What Deedglass does

Deedglass governs database actions made by AI agents and checks the difference between what an agent claims to have changed and what Postgres actually changed. Policies can allow a call, deny it, or pause it until a person approves. The resulting status distinguishes whether an action was checked or proven and whether the reported result matched the database outcome.

The MCP surface is focused on a constrained Postgres connection. Agents can inspect the tables available to them, read from public schemas, perform limited writes on configured tables, call a named database function, and wait for the result of a human approval decision. The listed writable tables are `public.orders` and `public.refunds`; the allow-listed function is `public.ship_order(bigint)`.

Deedglass is intended for developers running agents against operational databases, as well as teams that need a review step before sensitive writes. It runs self-hosted, with the agent operating through Deedglass rather than holding the database credentials directly.

## How it works

Each MCP call passes through Deedglass and is evaluated against its rules before execution. An allowed call runs with credentials supplied by Deedglass, while a denied call does not run. Calls requiring approval return a waiting message with an `approval_id`; the agent can pass that identifier to `deedglass_check_approval`, which waits up to 20 seconds for a decision and normally completes the workflow in one call.

Database writes run in a Deedglass-controlled transaction using a least-privilege role. After execution, Deedglass checks the database change against the action and seals the result as a signed record that can be checked offline. The project also describes undoing rows changed by an action after a person countersigns, although the MCP tool list here centers on execution, inspection, querying, function calls, and approval checks.

## Setup and configuration

Run the server without a global install through:

```sh
npx -y deedglass
```

Node.js 18 or newer is required. The project also supports a global npm installation, a platform archive from the latest release, or installation of the CLI with Go. An install script is available for macOS and Linux, and Docker images can be built locally from a checkout.

The application runs on the local computer and can connect to Claude Desktop, Cursor, VS Code, a record system, or a database. The quick-start commands include `deedglass start`, `deedglass protect`, and `deedglass help`. Configuration details such as database access and policy setup are handled by the Deedglass application and its connected systems.

## Tools and capabilities

- `postgres_describe` lists readable tables, columns, types, primary keys, estimated row counts, writable tables, and watched tables.
- `postgres_query` runs one read-only SQL statement against `public` and returns up to 500 rows. It does not commit changes.
- `postgres_execute` runs one `INSERT`, `UPDATE`, `DELETE`, or `MERGE` in a transaction controlled by Deedglass.
- `postgres_call` invokes an allow-listed function with named arguments. The exposed function is `public.ship_order(bigint)`, which marks a paid order as shipped.
- `deedglass_check_approval` checks whether a person countersigned a paused action. On approval, Deedglass runs the original tool call and returns its result; nothing runs while approval is pending.

## Limitations and notes

The project is pre-1.0 and is maintained as a self-hosted system. Its database MCP surface is limited to the configured readable and writable tables, the supported SQL statement types, and the allow-listed function. A write can be paused for approval, but approval is not implicit: the agent must check the supplied approval identifier before the original call can proceed.

The broader project includes a beta FHIR connector and change-feed support for other databases, but those capabilities are separate from the Postgres tools listed here. The project identifies the open-source core as Apache-2.0 and describes enterprise control-plane code separately.

_Full upstream README: https://allmcps.com/mcp/deedglass/readme_

