# HutchDB [Health: Active]

**Category:** 🗄️ Databases  
**Repository:** https://github.com/ExpeditedProjects/hutchdb  
**GitHub Stars:** 35  
**Views:** 2  
**Installs:** 0  
**Upvotes:** 0  
**Directory Page:** https://allmcps.com/mcp/hutchdb

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

## Claude Desktop Quick Installation
No generated config for this server: it installs through its own setup steps.

The project's own setup steps (from https://github.com/ExpeditedProjects/hutchdb), copied verbatim. Follow them in order; they are not an mcpServers config.

1. Install:

```sh
git clone https://github.com/ExpeditedProjects/hutchdb
```

2. Run:

```sh
cd hutchdb
```

3. Start the server:

```sh
docker compose up
```

4. Install:

```sh
npm install
```

5. Configure:

```sh
cp .env.local.example .env.local
```

6. Configure:

```sh
npm run db:migrate
```

## Documentation

## What HutchDB MCP server does

The HutchDB MCP server provides a headless, single-user data workspace for AI agents. It stores records in named collections so multiple connected sessions can read and update the same information over time. Collections do not require a predefined schema: the first write can create one, and each record can contain arbitrary JSON data.

The project belongs in the 🗄️ Databases category and is designed for structured working data such as research records, bug trackers, content calendars, job applications, project decisions, and handoff queues. Records remain individually addressable and queryable after the original conversation ends. A status field can also support workflows where one agent collects data and another processes it.

Core is self-hosted and does not include a dashboard, login screen, OAuth authorization server, or multi-user organization features. Those product features are available in HutchDB Cloud rather than this repository.

## How it works

HutchDB MCP server exposes an HTTP MCP endpoint at `/api/mcp`. In the Docker setup, the service runs on port 3000. The development setup uses port 3111. MCP clients send requests to the endpoint and can authenticate with a bearer token when `HUTCH_API_KEY` is configured.

The storage layer uses Postgres with JSONB documents. Each collection has its own table, while frequently used fields can receive indexes automatically. Queries can use containment filters, Mongo-style operators such as `$gt`, `$in`, `$exists`, and `$contains`, field projection, full-text search, and aggregation operations including count, minimum, maximum, distinct, sum, and average.

## Setup and configuration

The Docker quick start clones the repository and runs `docker compose up`. Database migrations run as part of the startup flow, and the single-user account and personal organization are created lazily on the first request. No separate seed step is required.

For a non-Docker installation, install dependencies with npm, copy `.env.local.example` to `.env.local`, set `HUTCH_DATABASE_URL`, run `npm run db:migrate`, and start the development process with `npm run dev`.

Set `HUTCH_API_KEY` before startup when the endpoint is reachable beyond localhost. Clients then send `Authorization: Bearer <token>` with MCP requests. If the variable is not set, requests are trusted, which is suitable for a local setup but unsafe for an exposed host.

## Tools and capabilities

The HutchDB MCP server includes tools for:

- Creating and inspecting collections, including collection statistics.
- Storing, querying, searching, updating, deleting, and changing the status of records.
- Transforming records and importing or exporting collections as CSV or JSON.
- Describing, inferring, and updating optional collection schemas.
- Defining and working with views.
- Applying filters, projections, full-text search, and supported aggregations.

Collections and records can therefore serve as durable memory, research storage, operational trackers, or intermediate state between agents without copying data between separate tools.

## Limitations and notes

Core is single-user and self-hosted. It does not provide a web dashboard, visual record grid, published pages, social login, sessions, invitations, organization sharing, or OAuth 2.1 authorization. In particular, Core cannot connect to claude.ai web out of the box because that client requires OAuth. Claude Code, Cursor, Codex, and VS Code can use the static bearer-token setup described by the project.

The server exposes an HTTP MCP endpoint rather than requiring a local-only client process. Protect any non-local deployment with an API key and restrict access to the endpoint appropriately. Existing databases upgraded from an older per-collection storage design require `npm run storage:cutover` after migrations.

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

