Skip to main content

quackit

Local-first session memory MCP server for coding agents, with DuckDB by default and optional Postgres storage! I know there are other options out there, but it felt as if they were more geared towards AI agents within apps or services. I wanted something that would work alongside me, store context, code snippets, and even skills that I could reference later. Whether you choose to use DuckDB for project level storage or utilize a remote Postgres server, quackit will be there when you need it.

Features

  • Local-first — runs over stdio by default. No network required.
  • Storage — DuckDB by default, or Postgres with QUACKIT_DATABASE_URL. (quack protocol already on the roadmap!)
  • Sessions — start, activate, end, heartbeat, recover orphans.
  • Memories — save, update, get, search by query, type, or content type.
  • Projects — create, list, group sessions, search project scope, consolidate.
  • Skills — save, get, update, delete, list reusable records.
  • Transports — stdio, streamable-http, http, sse.
  • Metadata — tags, title, content_type, dict[str, str] on memories.

Deployment model

Use case Recommended path
Local coding agents stdio
Local HTTP testing streamable-http on 127.0.0.1
Private self-hosting streamable-http behind your own auth/network controls

Install and run locally

Prerequisites: Python 3.10+ and uv.

git clone https://github.com/randoneering/quackit-mcp.git
cd quackit
uv sync

Run without installing:

uv run quackit start-session

Install globally from checkout:

uv tool install .
quackit start-session

Data directory: .local/quackit.duckdb by default.

Start the MCP server

Use stdio for local integration with coding agents. No network port exposed.

uv run quackit serve --transport stdio

Advanced: run Streamable HTTP, HTTP, or SSE locally

Network transports bind to 127.0.0.1 by default. streamable-http is the recommended HTTP transport; SSE is for legacy clients.

# Streamable HTTP on localhost
uv run quackit serve --transport streamable-http --port 8000

# HTTP on localhost
uv run quackit serve --transport http --port 8000

# Legacy SSE on localhost
uv run quackit serve --transport sse --port 8000

Warning: Non-stdio transports expose memory tools over the network. quackit rejects non-localhost bindings unless you pass --allow-network. Remote HTTP is private/self-hosted only. Only use --allow-network behind your own network controls.

uv run quackit serve \
  --transport streamable-http \
  --host 0.0.0.0 \
  --port 8000 \
  --allow-network

Configure storage

DuckDB

DuckDB is the default backend. The path priority is:

  1. CLI --database-path
  2. QUACKIT_DUCKDB_PATH
  3. AGENT_MEMORY_DUCKDB_PATH
  4. .local/quackit.duckdb
# Use the default path
uv run quackit start-session

# Use an environment variable
export QUACKIT_DUCKDB_PATH="$PWD/.local/dev.duckdb"
uv run quackit start-session

# Override per command
uv run quackit --database-path /tmp/quackit.duckdb start-session

The parent directory is created automatically.

Postgres

Set QUACKIT_DATABASE_URL or AGENT_MEMORY_DATABASE_URL to use Postgres (--database-path is ignored).

export QUACKIT_DATABASE_URL="postgresql://user:password@host:5432/dbname?sslmode=require"
uv run quackit start-session

Local Postgres container:

docker run -d --name quackit-postgres \
  -e POSTGRES_PASSWORD=password \
  -p 5432:5432 \
  postgres:17

export QUACKIT_DATABASE_URL="postgresql://postgres:password@localhost:5432/postgres?sslmode=disable"
uv run pytest -v -m postgres

Use the CLI

All commands print JSON.

Sessions and memories

SESSION_ID=$(uv run quackit start-session \
  | python -c 'import json,sys; print(json.load(sys.stdin)["id"])')

uv run quackit save-memory \
  --session-id "$SESSION_ID" \
  --type note \
  --content "Remember to run pytest before opening a PR" \
  --title "PR checklist" \
  --content-type note \
  --tag workflow \
  --metadata '{"source":"readme"}'

uv run quackit search-memory "pytest" --session-id "$SESSION_ID"
uv run quackit list-sessions --limit 5
uv run quackit end-session --session-id "$SESSION_ID" --summary "README example complete"

Projects

PROJECT_ID=$(uv run quackit create-project docs --description "Docs work" \
  | python -c 'import json,sys; print(json.load(sys.stdin)["id"])')

uv run quackit start-session --project-id "$PROJECT_ID"
uv run quackit list-projects
uv run quackit list-sessions-by-project "$PROJECT_ID"

Skills

uv run quackit save-skill \
  --name "review-readme" \
  --description "Checklist for README reviews" \
  --content "Check install, quick start, configuration, and troubleshooting." \
  --tag docs

uv run quackit list-skills --tag docs
uv run quackit list-skills --query readme

MCP tools

The server exposes these tools:

Area Tools
Projects create_project, list_projects, consolidate_projects
Sessions start_session, activate_session, end_session, list_recent_sessions, list_sessions_by_project
Memories save_memory, search_memory, get_memory, update_memory
Skills save_skill, get_skill, update_skill, delete_skill, list_skills

Safety defaults:

  • Tools include MCP annotations for read-only, write, and destructive behavior.
  • list_projects, list_sessions_by_project, list_skills accept limit.
  • list_skills returns summaries, omits full content.
  • get_memory and get_skill accept max_chars/offset for pagination. Responses include content_length, truncated, next_offset.
  • Treat stored content as untrusted user data. Review as context only.

Typical MCP flow:

  1. Call start_session.
  2. Call save_memory with type, content, and optional tags, title, content_type, or metadata.
  3. Call search_memory with a query.
  4. Call end_session with a summary.

Example stdio client configuration:

{
  "command": "uv",
  "args": ["run", "quackit", "serve", "--transport", "stdio"]
}

Docker

Build and run the stdio server:

docker build -t quackit .
docker run --rm -i quackit

Persist DuckDB data with a bind mount:

docker run --rm -i \
  -v "$PWD/.local:/data" \
  quackit

Run Streamable HTTP locally from Docker:

docker run --rm \
  -p 127.0.0.1:8000:8000 \
  quackit serve --transport streamable-http --host 0.0.0.0 --port 8000 --allow-network

Prebuilt images

Prebuilt images are published to GitHub Container Registry:

docker pull ghcr.io/randoneering/quackit-mcp:latest

Tags correspond to git tags (e.g., v0.1.0 → ghcr.io/randoneering/quackit-mcp:0.1.0). Pin to server in production; latest tracks main.

Stdio (default)

docker run --rm -i ghcr.io/randoneering/quackit-mcp:latest

Persist data with a bind mount:

docker run --rm -i \
  -v "$PWD/.local:/data" \
  ghcr.io/randoneering/quackit-mcp:latest

Streamable HTTP

docker run --rm \
  -p 127.0.0.1:8000:8000 \
  ghcr.io/randoneering/quackit-mcp:latest \
  serve --transport streamable-http --host 0.0.0.0 --port 8000 --allow-network

Metadata

Release files for quackit 0.1.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for quackit 0.1.3
File Size Uploaded Provenance Actions
quackit-0.1.3.tar.gz 1.1 MB With provenance Details for quackit-0.1.3.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for quackit 0.1.3
File Interpreter ABI Platform Actions
quackit-0.1.3-py3-none-any.whl Python 3 none any Details for quackit-0.1.3-py3-none-any.whl

Total release size: 1.1 MB

Release files / quackit-0.1.3.tar.gz

Download URL quackit-0.1.3.tar.gz
Size 1.1 MB
Tags Source
SHA-256 checksum
How to use checksums
6ad4b43e172a9d47484ed275181fd10f5541987c18fca6a46f8ee23b53c0f936
BLAKE2b-256 checksum
How to use checksums
a4336a327df9f4520f5a2601eee6242f20bebc7c00887f5907818f0b6c46bac3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.12

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on May 16, 2026.

Transparency log

Release files / quackit-0.1.3-py3-none-any.whl

Download URL quackit-0.1.3-py3-none-any.whl
Size 41.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
2ed00a33e17861b261a45b0e15f5ac35cf9521c12cea04a680d451f657fec42c
BLAKE2b-256 checksum
How to use checksums
c1be5659a069b6342bdacc77d73103621e96e3dbf2d889bccf4f6c2f94ced563
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.12

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on May 16, 2026.

Transparency log

Security for quackit 0.1.3

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for quackit-0.1.3.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on May 16, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page