# datacharter/datacharter [Health: Active]

**Category:** 🗄️ Databases  
**Repository:** https://github.com/datacharter/datacharter  
**GitHub Stars:** 17  
**Views:** 5  
**Installs:** 0  
**Upvotes:** 0  
**Directory Page:** https://allmcps.com/mcp/datacharter-datacharter

## Description
Local, contract-governed federation across files and databases (Postgres, Snowflake, BigQuery, DuckDB, Excel, and more) with read-only guards, PII masking, and per-column agent access.

## Claude Desktop Quick Installation
Install path inferred — verify against the README before running it. Uses `uvx` (confidence: medium):

```json
"mcpServers": {
  "datacharter": {
    "command": "uvx",
    "args": ["datacharter","mcp","<workspace>"]
  }
}
```

## Documentation

## What datacharter/datacharter does

The datacharter/datacharter MCP server provides a local SQL workspace that combines files and databases through DuckDB. Supported examples include Postgres, Snowflake, BigQuery, DuckDB, and Excel, with the README also indicating that other sources may be supported.

The workspace is organized as a directory containing `charter.yaml`, `queries/`, and `guides/`. The contract specifies what agents may access. Controls include per-column grants, default-deny handling for PII, row filters, read-only access, and plain-English restrictions such as allowing aggregates only. Agents receive masked values for protected personal data rather than the original values.

The same kernel can run on a laptop or behind a shared MCP endpoint. Local operation is intended for querying files and connected data on the user’s machine. Deployment options include an MCP Streamable HTTP service, an OCI image, and a Helm chart. The project states that rows do not leave the user’s infrastructure and that it operates without telemetry or a DataCharter-managed data plane.

## How it works

A workspace is governed by `charter.yaml`, which can define `principals` and `grants`. HTTP deployments use default-deny behavior, and OAuth 2.1 is available for deployments away from loopback. The server can also wrap another MCP server through the `datacharter mcp --guard` command, applying the contract’s controls around that process.

The repository describes an audit system with hash-chained records, SIEM JSON and OTLP output, a flight recorder, canary support, and an `access diff` command for reviewing permission changes in pull requests. The `datacharter redteam` command and the GovBench corpus support security evaluation. These features are presented as part of the project’s governance workflow rather than as guarantees that every deployment is secure by default.

## Setup and configuration

Install with Homebrew on macOS or with `pip` for Python 3.11 and newer.

For a local agent workflow, run `datacharter serve`, optionally with `--local`. For a shared service, run `datacharter mcp --http --host 0.0.0.0`; OAuth environment configuration is required when the service is exposed off loopback. Kubernetes users can install the supplied Helm chart and configure its OAuth issuer, audience, and JWKS URI values.

Optional agent support includes SpaceXAI, Claude Code, Ollama with `--local`, and OpenAI-compatible endpoints. A desktop application is available in beta for macOS on Apple Silicon and Windows.

## Tools and capabilities

The datacharter/datacharter MCP server supports:

- SQL querying across federated files and database sources.
- Read-only agent access governed by a workspace contract.
- Column-level grants and PII masking.
- Row filtering and aggregate-only policy rules.
- MCP Streamable HTTP through `POST /mcp`.
- Optional OAuth 2.1 for non-loopback HTTP deployments.
- Audit output for SIEM JSON and OTLP consumers.
- Permission review with `access diff`.
- Wrapping another MCP server with a governance layer.

## Limitations and notes

The project identifies its status as pre-release, with version 1 in development. The desktop application is marked beta, and its macOS builds are unsigned until Apple signing secrets are available.

Access behavior depends on the contents of `charter.yaml`; the contract must be configured to grant the intended principals and columns. The project is licensed under Apache-2.0 and states that it has no paid edition.

_Full upstream README: https://allmcps.com/mcp/datacharter-datacharter/readme_

