DataCharter

io.github.datacharter由 GitHub 账号 datacharter 发布v0.44.0更新于 Oct 24, 2026

Local-first, contract-governed data explorer with read-only, PII-masked query tools for AI agents.

发布方自己的服务:Charter Boats

概览

AI 生成的概览

DataCharter 是一个本地优先的 SQL 工作区,让 AI 助手在 charter.yaml 契约约束下,以只读、PII 脱敏的方式查询文件和数据库。

可以做什么
通过基于 DuckDB 的本地 SQL 工作区查询文件和数据库,跨数据源联合查询,并由 charter.yaml 契约文件管控。只向助手开放契约授予的列和行,PII 默认拒绝并做脱敏。应用行过滤和“仅聚合”等自然语言策略,并提供金丝雀标记与飞行记录器。可运行本地服务或带 principals 与 grants 的共享 MCP 端点,也可把其他 MCP 服务器包在同一防护之下。
适用场景
当你希望助手探索本地或公司数据而不暴露敏感列,并需要一份纳入版本管理、明确限制助手可读范围的书面契约时使用。也适合需要在共享端点上实现可审计、默认拒绝的助手访问的团队。
运行要求
通过 uvx 或 pip 作为本地进程运行(Python 3.11+),或使用 macOS Apple Silicon 或 Windows 上的桌面应用。需要一个包含 charter.yaml、queries 和 guides 的工作区目录。在非回环地址上以 HTTP 提供服务需要 OAuth 设置(issuer、audience、JWKS URI)。可选助手后端如 Claude Code、Ollama 或任意 OpenAI 兼容端点。
安装前请注意
项目处于预发布阶段,V1 仍在开发中。桌面应用未签名。通过 HTTP 提供服务需要配置 OAuth 且默认拒绝,必须谨慎设置授权。不要把密钥提交到工作区。只读与 PII 脱敏仅适用于契约授予的范围,连接助手前请审阅 charter.yaml。

安装

在 SourceWeft 中

  1. 打开 控制台中的 DataCharter,将其添加到工作区。
  2. 为需要使用其工具的对话启用该服务。

Desktop only,通过 STDIO。 STDIO 服务会启动本地进程,因此需要 SourceWeft 桌面宿主。

其他 MCP 客户端

参照 仓库 中的启动说明。

README

DataCharter

Query all your data locally. Hand agents exactly the columns you choose.

A local SQL workspace over files and databases, federated by DuckDB and governed by charter.yaml. Agents get read-only, PII-masked access to what the contract grants. Apache-2.0. No paid edition.

[PyPI] [Python] [License: Apache-2.0]

datacharter.dev · Docs · Desktop · GovBench · Deploy

Two ways in. Same kernel.

Laptop

Drop a file. Query it. Chart it. An agent sees ••• where PII lives.

sh
uvx datacharter serve          # demo workspace, http://127.0.0.1:8321# or: datacharter init --from && datacharter serve# or: datacharter init --template life && datacharter serve --local

No terminal: desktop app (beta). macOS (Apple Silicon) or Windows. Unsigned until Apple secrets exist.

sh
brew install datacharter/tap/datacharter   # macOSpip install datacharter                    # Python 3.11+

The workspace is a directory: charter.yaml, queries/, guides/. Commit it. Secrets stay out. Optional agent: SpaceXAI, Claude Code, Ollama (--local), or any OpenAI-compatible endpoint.

Company

The same binary, on a shared MCP endpoint. Identities live in git, not on our servers. No rows leave your infrastructure.

sh
datacharter mcp --http --host 0.0.0.0   # OAuth env required off loopbackhelm install datacharter ./chart \  --set oauth.issuer=... --set oauth.audience=... --set oauth.jwksUri=...datacharter govbench --json             # cite corpus govbench-v1
  • MCP Streamable HTTP (POST /mcp) with optional OAuth 2.1
  • principals: and grants: in charter.yaml (default-deny on HTTP)
  • Helm chart and OCI image
  • Hash-chained audit plus SIEM JSON/OTLP
  • GovBench: frozen 28-attack corpus, grade A-F

Wrap someone else's MCP server: datacharter mcp --guard "npx -y some-mcp-server".

What the contract enforces

PII default-deny, row filters, plain-English policies (aggregates only), canaries, a flight recorder, datacharter redteam, access diff on PRs. CLI reference: docs/cli.md. Security: docs/security.md.

Status: pre-release. V1 in development.

Privacy

Runs on your machine or in your cluster. No telemetry. No DataCharter-operated data plane. Privacy Policy.

License

Apache-2.0

来源:README.md,提交 a7cb14e

工具

0
SourceWeft 尚未在沙箱中启动过该软件包,因此其工具未知。

版本历史

1
  1. v0.44.0最新Sep 16, 2026

评分

已满足适用检查项的 50%

该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。

  • 近 30 天内可连通25 分

    请保持端点能够响应 MCP 握手;SourceWeft 每 30 天探测一次。

  • 已声明认证方式10 分

    请在注册中心条目中声明凭据请求头,或保持端点能够响应探测,以便判定其认证方式。

  • 已列出工具15 分

    请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。

  • 描述必需15 分
  • 图标10 分
  • 文档15 分
  • 许可证10 分

其他 Charter 集成