HutchDB

com.hutchdb由 hutchdb.com 发布官方发布者v1.0.0更新于 Oct 24, 2026

Store, query, and update structured data from any AI agent

已验证Streamable HTTP可网页运行数据库知识与记忆数据与分析

概览

AI 生成的概览

HutchDB 是面向 AI 智能体的可选模式记录库,让助手跨会话保存、查询、更新并导出共享的 JSON 记录集合。

可以做什么
  • 创建和查看集合,包括每个集合的统计信息
  • 存储、查询、搜索、更新、删除记录并修改记录状态,支持过滤操作符、字段投影以及 count/min/max/distinct/sum/avg 聚合
  • 转换记录,并以 CSV 或 JSON 导出、导入集合
  • 描述、推断和更新可选模式,并在集合上定义视图
适用场景
适合智能体产生的结构化数据需要跨越单次对话保留的场景:持续积累的调研、跟踪清单、带状态交接的多智能体流水线、长期项目状态或可重复执行的流程。当需要过滤、聚合或多个智能体并发更新时,它可替代 markdown 笔记或电子表格。
运行要求
需要远程 MCP 端点(托管应用),或通过 Docker 或 Node.js 与 npm 自托管实例,并配备 Postgres 数据库(HUTCH_DATABASE_URL)。托管服务使用 OAuth 认证;自托管 Core 实例使用通过 HUTCH_API_KEY 设置的静态 bearer 令牌。
安装前请注意
自托管 Core 在未设置 HUTCH_API_KEY 时会信任所有请求,因此不应在无密钥的情况下暴露到公网。该服务器会写入、更新和删除记录,集合在首次写入时自动创建。托管 Cloud 版增加带读写作用域的 OAuth、社交登录和组织共享,数据由服务方保管而非你自己的数据库。

安装

在 SourceWeft 中

  1. 打开 控制台中的 HutchDB,将其添加到工作区。
  2. 连接 所需的 凭据。它们会被私密存储,绝不会在公开页面上展示。
  3. 为需要使用其工具的对话启用该服务。

Web executable,通过 Streamable HTTP。 远程服务在工作区中配置后即可从网页运行时运行。

交给智能体安装

把这段提示词粘贴到 Claude Code、Codex、Cursor 等智能体,或 SourceWeft 对话中。智能体会读取该服务器的安装指南,先向你展示发布者、端点和登录方式,经你同意后再把它添加到你的客户端。密钥不会写进任何命令。

阅读 https://sourceweft.com/mcp/com.hutchdb%2Fhutchdb/install.md,并按其中说明把这个 MCP 服务器接入我的客户端。修改任何配置之前,先告诉我它的发布者、端点和登录方式,等我确认。不要把 API 密钥写进命令或我会提交的文件;问我密钥应从哪里获取。

查看智能体所依据的安装指南

其他 MCP 客户端

把它添加到你客户端的 mcpServers 配置中。 客户端会在首次连接时完成 OAuth 登录。

{
  "mcpServers": {
    "hutchdb": {
      "type": "http",
      "url": "https://app.hutchdb.com/api/mcp"
    }
  }
}

README

HutchDB

A database for AI agents. No schema, SQL, or structure required.
A structured workspace that Claude Code, Codex, Cursor, Hermes, Claw, Grokbot, and other MCP clients can read and update together. Open source.

[Website]  [HutchDB Cloud]  [MCP]  [License]


What is HutchDB?

HutchDB Core is a headless, single-user MCP server that gives every agent you run the same durable, structured data. Connect Claude Code, Codex, Cursor, VS Code, or another MCP client and they can store, query, and update shared collections of records across sessions.

Collections use schema-optional Postgres JSONB with full-text search, optional validation, and view definitions. There is no dashboard, no login screen, and no OAuth ceremony — just an MCP endpoint and a Postgres database you control.

This repo is the OSS engine. If you want people and agents working from the same visual workspace, HutchDB Cloud adds web views, published pages, social login, and organization sharing. See Core vs Cloud below.

What can you use it for?

The default home for agent working data is a markdown file: a TODO.md, a notes directory, a memory file full of prose. That works for one agent taking notes to itself. It breaks down the moment you want to filter ("open bugs above severity 2"), aggregate ("pipeline value by stage"), or have two agents update the same list without overwriting each other.

HutchDB holds the same information as real records: individually addressable, queryable, and safe for multiple agents to read and update at once. That makes it fit anywhere an agent produces or uses structured data that needs to outlast one chat. Some patterns people run on it:

Research that accumulates. Customer interviews, competitor teardowns, scraped listings, literature reviews. Each session adds records to a collection; any later session can query the whole set.

"Save these five competitor pricing pages to competitor-pricing, then tell me who changed since last month."

Trackers you'd otherwise keep in a spreadsheet. Bug reports, content calendars, job applications, inventory, reading lists. The difference from a spreadsheet: your agents can query and update the records mid-task.

"Log this bug to bug-reports with severity high, then list everything still open."

Pipelines with handoffs between agents. One agent collects records, another processes them, a third reports on the results. A status field on each record marks where it is in the pipeline, so nothing gets copied between tools.

"Pull every leads record with status new, enrich each one, and set its status to ready-for-outreach."

Working state for long-running projects. Decisions, open questions, and backlog items stay queryable after the context window closes. A new session starts by asking what came before instead of being re-briefed.

"What did we decide about the pricing page last week, and what's still unresolved?"

Repeatable playbooks. Store the instructions, inputs, and current status for recurring jobs (weekly reports, release checklists, content production) so any agent can pick one up and run it.

"Run the weekly-metrics playbook and store the results in weekly-reports."

None of this needs schema design up front: collections auto-create on the first write and records are arbitrary JSON. Start with "save this to HutchDB," then query the same records from any connected agent.

Quick Start

Note: Full documentation lives at hutchdb.com.

  1. Clone and boot (Docker):

    bash
    git clone https://github.com/ExpeditedProjects/hutchdbcd hutchdbdocker compose up

    Core migrates the database and boots on port 3000. The singleton user and personal org are inserted lazily on the first request — there is no seed step.

  2. Lock it down (optional but recommended off-localhost) — require a bearer token on every MCP call by setting an API key before booting:

    bash
    export HUTCH_API_KEY="$(openssl rand -hex 32)"

    If unset, all requests are trusted — fine for localhost, not fine for a public host.

  3. Connect your agent. For Claude Code, add to your MCP config:

    json
    {  "mcpServers": {    "hutch": {      "type": "http",      "url": "http://localhost:3000/api/mcp",      "headers": {        "Authorization": "Bearer YOUR_HUTCH_API_KEY"      }    }  }}

    Cursor, Codex, and VS Code accept the same HTTP MCP server shape — same url, same bearer header.

  4. Use it. Collections auto-create on first write — there is no setup step. Just talk to your agent:

    "Save these launch tasks to HutchDB." "What did we store about the pricing research last week?" "Query the bug-reports collection for anything mentioning timeouts."

  5. Verify the endpoint (optional):

    bash
    curl -X POST http://localhost:3000/api/mcp \  -H "Authorization: Bearer $HUTCH_API_KEY" \  -H "Content-Type: application/json" \  -H "Accept: application/json, text/event-stream" \  -d '{"jsonrpc":"2.0","id":1,"method":"tools/list","params":{}}'

    You should see the hutch_* tool list (collections, records, schema, views).

Running without Docker
bash
git clone https://github.com/ExpeditedProjects/hutchdbcd hutchdbnpm installcp .env.local.example .env.local# Required: HUTCH_DATABASE_URL# Optional: HUTCH_API_KEYnpm run db:migratenpm run dev

The dev MCP endpoint is http://localhost:3111/api/mcp (production/Docker: port 3000).

Example

A typical session with Claude Code connected to a local Core instance:

text
You:    Save each of these customer interviews as a record — tag the ones        that mention pricing.
Agent:  Stored 9 records in `customer-interviews`, 4 tagged "pricing".
You:    (a week later) Which interviewees complained about onboarding?
Agent:  Querying `customer-interviews`... 3 records match: Dana R.,        Marcus T., and the anonymous Feb 12 call.

Records are arbitrary JSON in Postgres JSONB — queryable via containment filters, Mongo-style operators ($gt, $in, $exists, $contains, …), and full-text search, with optional schemas when you want structure enforced. Collections export and import as CSV or JSON when data needs to move.

HutchDB Core vs HutchDB Cloud

Core is intentionally small. If you want the product layer, run HutchDB Cloud — or fork Core and build your own.

Core (this repo)HutchDB Cloud
MCP server (collections, records, schema, views)✅✅
Self-hosted, single-user, static API key✅—
Web dashboard, record grid, view editor—✅
Published views + public pages—✅
OAuth 2.1 authorization server + consent (read/write scopes)—✅
Social login, sessions, multi-user orgs, invitations—✅
Works with claude.ai (web)—✅

claude.ai requires OAuth. Core ships no OAuth authorization server, so adding a Core instance to claude.ai (web) won't work out of the box. Claude Code, Cursor, Codex, and VS Code all accept a static bearer token and work fine.

Architecture

  • Next.js App Router — one static landing page, one MCP route (/api/mcp), one REST seed route (/api/v1/collections). Everything else is deleted.
  • Drizzle + Postgres — each collection is its own table of JSONB documents; hot fields become indexed columns automatically, everything else is queried via containment operators and full-text search. Upgrading a database from before per-collection storage: run npm run storage:cutover once after db:migrate.
  • MCP server — collection tools (including per-collection stats), record tools (store/query/search/update/delete/status/transform plus CSV/JSON export and import), schema tools (describe/infer/update), and view tools. Queries support filter operators ($gt/$gte/$lt/$lte/$ne/$in/$nin/$exists/$contains), field projection, and count/min/max/distinct/sum/avg aggregations.
  • Auth seam (src/lib/auth/seam.ts) — the only place auth lives: bearer-key check when HUTCH_API_KEY is set, singleton context otherwise.
  • Singleton bootstrap (src/lib/auth/singleton.ts) — one user, one personal org, created lazily on first request.

Contributing

  • Found a bug? Open an issue with repro steps.
  • Want to improve Core? PRs welcome — contributors sign a CLA so the maintainer can dual-license into HutchDB Cloud. See CONTRIBUTING.md and CLA.md.
  • Feedback or ideas? Issues are the front door; tell us what you're building.
Development
bash
npm test          # vitestnpm run smoke     # end-to-end smoke test against a running instance:                  #   SMOKE_BASE_URL=http://localhost:3000 npm run smoke                  #   (keyed mode: add SMOKE_API_KEY=...)

Status: stable enough for a single-user self-host. Breaking changes land on main; pin a commit if you need stability.

License

AGPL v3.

[GitHub stars]  [Issues]  [Last commit]  [License]

来源:README.md,提交 677fd23

工具

0
该服务器需要登录,因此 SourceWeft 无法在没有账号的情况下读取其工具,也未收录。已连接账号所能看到的内容可能因账号及其权限而异。

版本历史

1
  1. v1.0.0最新Sep 23, 2026

评分

已满足适用检查项的 85%

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

  • 近 30 天内可连通必需25 分
  • 已声明认证方式必需10 分
  • 已列出工具15 分

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

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