Datacharter logo

Datacharter

by datacharter

Federates local files and databases through DuckDB with contract-based access controls, read-only safeguards, and PII masking.

Install Datacharter

Pick your client, then add it in one click or paste the config.

STDIOPython
~/Library/Application Support/Claude/claude_desktop_config.json
claude_desktop_config.json
{
  "mcpServers": {
    "datacharter-datacharter": {
      "command": "uvx",
      "args": [
        "datacharter",
        "mcp",
        "<workspace>"
      ]
    }
  }
}

Settings → Developer → Edit Config, merge this into mcpServers, then fully quit and reopen Claude Desktop.

Claude Code command
claude mcp add --transport stdio datacharter-datacharter -- uvx datacharter mcp '<workspace>'

Run in your terminal. Add --scope project to share it with your team through .mcp.json.

We couldn’t confirm it starts correctly

We ran the install command but it didn't respond within our test window — this can mean a slow first-time install rather than a real problem.

uvx datacharter mcp <workspace>

Process exited before answering initialize.

This is an experimental automated check and can have false negatives — missing environment variables, a slow cold install, etc. It doesn’t necessarily mean something’s wrong. Last checked .

Overview

The datacharter/datacharter MCP server creates a local SQL workspace over files and databases, using DuckDB to federate queries across sources such as Postgres, Snowflake, BigQuery, DuckDB, and Excel. A versioned `charter.yaml` controls which agents can access which columns, with read-only access, PII masking, row filters, and policy rules. It can run locally or expose an MCP Streamable HTTP endpoint for shared deployments, with optional OAuth 2.1. Reach for it when agents need governed access to mixed data without sending rows to an external service.

Use cases

  • Query files and databases from one local SQL workspace
  • Restrict agents to approved columns and rows
  • Mask PII before data reaches an agent
  • Review access changes in pull requests
  • Guard another MCP server with a contract

Key features

  • DuckDB-based federation across files and databases
  • Read-only and default-deny access controls
  • Per-column grants and PII masking
  • Row filters and aggregate-only policies
  • Streamable HTTP with optional OAuth 2.1
  • Hash-chained audit and SIEM output

Security & health

What it can reach and how reliably it runs — from our own checks, not the maintainer’s claims.

ActiveLast checked

Recent health check succeeded.

27/27 checks healthy over the last 117d

Supply-chain signal

No high-severity advisories surfaced by our automated scan.

Critical 0High 0Medium 0Low 0

Scanned 16d ago via OSV.dev · datacharter (PyPI)

Adoption & maintenance

Factual signals from GitHub, npm, and our automated checks — not a rating.

GitHub stars17Stargazers on the source repository.
Last commit1mo agoMost recent push to the default branch.
Install checkInconclusiveDidn't respond in our test window — often a slow first install.
Directory activity5 viewsConfig copies, upvotes, and views on AllMCPs.

How Datacharter works

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.

Written by AllMCPs with AI assistance from the project’s README and listing data. How we build listings

Reviews

No reviews yet — be the first to share how it worked for you.

Frequently Asked Questions about Datacharter

datacharter/datacharter is an MCP server that connects agents to local files and databases through a DuckDB-based SQL workspace. It supports sources such as Postgres, Snowflake, BigQuery, DuckDB, and Excel. Its main capabilities include querying, charting, read-only access, per-column grants, row filters, and PII masking under a YAML contract.

Install it with `pip install datacharter`, `uvx`, or the Homebrew tap on macOS. The README requires Python 3.11 or newer for the pip installation. You can then run `datacharter serve`, initialize a workspace first, or use the beta desktop application on supported macOS and Windows systems.

Run `datacharter mcp --http --host 0.0.0.0` to start the shared MCP endpoint. The service uses Streamable HTTP at `POST /mcp`; OAuth configuration is required when exposing it away from loopback. A Helm chart and OCI image are also provided for deployment.

It does identify Claude Code, Ollama, SpaceXAI, and OpenAI-compatible endpoints as optional agent integrations, while exposing an MCP Streamable HTTP endpoint for shared use.

Related MCP servers

Add a badge to your READMEShow it’s listed — live SVG, Markdown or HTML.

AllMCPs Directory Badge

Full Badge Customizer

Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.

Badge Style:
Live Dynamic SVG PreviewDatacharter AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/datacharter-datacharter?style=directory)](https://allmcps.com/mcp/datacharter-datacharter)
HTML Embed
<a href="https://allmcps.com/mcp/datacharter-datacharter"><img src="https://allmcps.com/api/badge/datacharter-datacharter?style=directory" alt="Datacharter on AllMCPs" /></a>