Skip to content
MCP server
Registry

Contitext MCP Server

Self-hosted project continuity for AI agents: state, decisions, checkpoints, and handoffs.

Contitext scores 65 (Good), licensed Apache-2.0 and written in Python. It installs as a local process. It does not declare tools yet. Filed under Databases, AI and memory. GitHub shows 2 stars. Package registries report about 788 downloads a week. Install configs are generated for 12 clients. Being listed in the registry is not the same as being vendor-official.

by jessyswApache-2.0Python2 stars
Trust score
65Good
Trust score 65 of 100, Good

Good trust

65 of 100 from six public signals. Nobody can buy a point.

  • Listed in the official MCP registry.
  • OSI-style license: apache-2.0.
How we score trust
Scorecard

License, quality and maintenance

How grades work
Trust breakdown

Where the 65 comes from

22 + 20 + 2 + 10 + 4 + 7 = 65. Each factor is capped, so no single signal can carry a listing.

Registry22 / 30

Active in the official MCP registry, plus a known vendor namespace.

Registry: 22 of 30 points.
Maintenance20 / 20

How recently the repository saw a commit or release.

Maintenance: 20 of 20 points.
Popularity2 / 20

GitHub stars and weekly downloads, on a log scale.

Popularity: 2 of 20 points.
License10 / 10

A clear, OSI-style open-source license.

License: 10 of 10 points.
Security4 / 10

Not archived, a secure install path, a pinned version.

Security: 4 of 10 points.
Docs7 / 10

A real summary, a README with depth, listed tools.

Docs: 7 of 10 points.

Install

Pick your client, copy the config, paste it in.

Needs Cursor or VS Code installed on this device. The button opens the app and asks you to confirm before it adds the server.

~/Library/Application Support/Claude/claude_desktop_config.json
{  "mcpServers": {    "jessysw-contitext": {      "command": "uvx",      "args": [        "contitext"      ],      "env": {        "DATABASE_URL": "YOUR_DATABASE_URL",        "CONTITEXT_AUTH_TOKENS": "YOUR_CONTITEXT_AUTH_TOKENS",        "CONTITEXT_MCP_TOKEN": "YOUR_CONTITEXT_MCP_TOKEN",        "CONTITEXT_AUTH_MODE": "",        "CONTITEXT_COMPATIBILITY_WORKSPACE": ""      }    }  }}

Environment variables

NameRequiredNotes
DATABASE_URLSecretRequiredSQLAlchemy postgresql+psycopg:// URL for your migrated PostgreSQL 16+ database. See setup instructions.
CONTITEXT_AUTH_TOKENSSecretOptionalRequired only in config authentication mode: protected token-to-principal JSON mapping.
CONTITEXT_MCP_TOKENSecretRequiredThis client credential, valid in the selected authentication mode. Membership and project ACLs are required.
CONTITEXT_AUTH_MODEOptionalconfig (default) or database. Database mode accepts managed credentials only.
CONTITEXT_COMPATIBILITY_WORKSPACEOptionalOptional explicit workspace for short project IDs. Without it use workspace/project. Never selects a conversation project.

Tools show up when the registry metadata or the repository README lists them. Public READMEs are read directly. A GitHub token is used only when one is already configured.

About

Contitext

Project continuity for AI agents.

Keep project state, decisions, checkpoints, and handoffs available across agents, sessions, and machines. Contitext is a small, self-hosted Python service backed by PostgreSQL, with REST and eight MCP tools. No LLM API key or embedding service is required.

An agent finishes a session by recording what changed and what comes next. Another agent resumes from the same project context, selected manually or resolved through opt-in trusted mappings, and continues from the recorded handoff.

Current stable release: 0.8.4. Install with brew install jessysw/tap/contitext, python -m pip install contitext, or pin contitext==0.8.4 for a reproducible Python setup. This release adds the Homebrew distribution and tested release-to-tap automation. Homebrew-generated hooks/plugins use stable executable paths across future package upgrades. Existing deployments should follow the 0.8.4 upgrade guide. Chat syntax remains contitext:; see chat command compatibility for the distinction between instructions, parsers and native execution.

New to Contitext? Follow Getting started for both deployment paths, two independently authenticated agents and a visible handoff.

See release validation, workspaces, upgrade and recovery, and the release plan. The 0.8.x automation plan records the feature deliveries. See agent coverage, hook diagnostics and the completed client plan for capabilities and boundaries. Releases use maintainer review, automated checks and documented operational rehearsals. User feedback is welcome through GitHub issues. Contributions follow the PR workflow.

Installation options

All options run the same Contitext implementation and expose the same eight MCP tools. None requires a private repository or a paid service.

OptionRequirementsOperation
HomebrewHomebrew on Apple Silicon macOS / x86-64 Linux and your PostgreSQL 16+ databasebrew install jessysw/tap/contitext; isolated native CLI/MCP
Python packageStandard CPython 3.11–3.14 and your PostgreSQL 16+ databaseInstall contitext==0.8.4 from PyPI; run native stdio MCP and optionally REST
Docker ComposeDocker with Compose, Git, and Python 3.11–3.14 for bootstrapBuild the release source; Compose runs Contitext and PostgreSQL together

Use the installation guide for setup and the Homebrew guide for package upgrades. Native installation does not require Docker. The database is required in every case; Contitext is not a standalone in-memory or SQLite store. A native MCP client can launch contitext mcp directly without a REST process.

Docker Compose quick start

Requires Docker with Compose, Git, and standard CPython 3.11–3.14.

git clone --branch v0.8.4 --depth 1 https://github.com/jessysw/contitext.git
cd contitext
python3 scripts/bootstrap.py
docker compose up --build -d --wait
curl --fail http://127.0.0.1:18791/health/ready
docker compose exec -T app python -m contitext.demo

The bootstrap script creates fresh local credentials in a private .env, seeds a demo project, and preserves existing configuration. The demo writes synthetic events to that project and demonstrates two agents handing work over through the real HTTP API. Its final output includes:

{
  "agent_b_resumed": "demo",
  "next_action": "Implement and test the first endpoint.",
  "idempotent_retry": "passed"
}

The API listens on localhost. PostgreSQL has no published host port. Data persists in a Compose volume; docker compose down stops the service and preserves it. See installation for Python-package setup, administration, backup, and remote access.

For a real project, use python3 scripts/bootstrap.py --project research --name "Research" and skip the synthetic demo. The self-hosting workflow covers project creation, access management, client setup, and backup recovery. These commands are included in both the PyPI package and the Compose release.

Connect an MCP client

The MCP Registry identifier is io.github.jessysw/contitext. The Registry setup guide explains the PyPI/stdio installation and required database configuration.

After the quick start, add this server to a client that supports stdio MCP. Replace the directory with your own absolute checkout path:

{
  "mcpServers": {
    "contitext": {
      "command": "docker",
      "args": ["compose", "--project-directory", "/absolute/path/to/contitext", "exec", "-T", "app", "contitext", "mcp"]
    }
  }
}

Client configuration formats differ. The same command can be used by any stdio MCP client. Load the agent protocol into the client's instruction mechanism and restart its MCP session. Client settings are changed only when you explicitly run the adapter installer. The MCP server runs locally inside the existing app container and shares its database.

ToolPurpose
project_listList projects accessible to the authenticated caller
project_createCreate a project owned by the caller without selecting it
project_bindExplicitly select a project for a caller's conversation scope
project_currentRead that scope's current project
context_getGet a bounded project overview, checkpoint, questions, decisions, and handoff
context_recordAppend a note, decision, question, or checkpoint with provenance
context_handoffRecord completed work, current work, blockers, and the next action
context_searchSearch project events using PostgreSQL full-text search

Each caller uses a stable conversation scope. By default, select a project with contitext: use. With trusted local mappings and an enabled lifecycle adapter, Contitext can resolve and bind an unbound scope automatically from a configured full Git remote or directory. Existing selections take precedence; unmatched or ambiguous mappings do not bind a project. Agents read the resulting binding and never guess a project from a repository name. Workspace membership and project ACLs are enforced on the server. API contracts and limits describe what the server enforces and what the agent protocol requires.

Commands

Terminal commands use the contitext executable:

contitext --help
contitext --version
contitext init --project research --name "Research"
contitext project list
contitext doctor
contitext migrate
contitext admin seed
contitext serve --host 127.0.0.1 --port 18791
contitext mcp

Use the agent adapter installer to configure your clients with backups and a shared protocol. After installation, use these chat instructions in a conversation with the agent:

contitext: help
contitext: list
contitext: create my-project --name "My Project"
contitext: use my-project
contitext: status
contitext: search publishing
contitext: checkpoint Documented the publishing workflow.

contitext: is the only chat prefix. Prefix and command names are case-insensitive; an input-method full-width colon is accepted. Empty commands show help and unknown commands show an error with available commands. Arguments are preserved without Unicode normalization. These are agent instructions, not terminal subcommands. The terminal CLI currently runs and administers the service; it does not implement chat actions such as use, status, or search, and it does not set a global default project. See the command reference for CLI options, compatibility entry points, and conversation scope behavior.

Optional automation

Automatic project resolution and startup context loading are supported and opt-in. Start with the explicit workflow above, then configure trusted project mappings and enable the lifecycle adapter for your client. Manual selections always win. Context assembly selects effective decisions, open questions and the relevant task handoff within a documented budget. Candidate checkpoints add opt-in progress capture and durable retry; they do not create approved decisions.

Native command hooks cover Codex, Claude Code, Copilot CLI, Cursor desktop and Gemini CLI on macOS/Linux. Hermes, OpenClaw and OpenCode 2 have optional native plugin adapters; Zed retains explicit MCP. See coverage for runtime-specific capture, activation and validation boundaries. A Docker server can use the local Python client for hooks without exposing PostgreSQL.

What it includes

  • Private initialization, project and permission administration, diagnostics, and portable native/Docker/SSH MCP client configuration.
  • Project discovery filtered by caller access, and atomic creation owned by the authenticated caller without an owner UUID or implicit conversation switch.
  • Opt-in deterministic project resolution, startup context loading, bounded context assembly, and candidate checkpoints through supported lifecycle adapters.
  • Atomic validation that every event or handoff write matches the caller's conversation binding.
  • A durable, append-only event store with caller identity and source provenance.
  • Reader, writer, and owner project ACLs shared by REST and MCP.
  • Idempotent retries; conflicting reuse of an event key is rejected.
  • PostgreSQL full-text retrieval with pagination, without an embedding dependency.
  • Optional Markdown projection for local inspection and note-taking tools.
  • Synthetic tests for isolation, concurrency, restart recovery, projection, and real MCP stdio calls.

Use Contitext when you need explicit project continuity across tools and machines. It does not automatically capture every conversation, consolidate memories, build a knowledge graph, or decide which facts are true. The default context call retains the project-wide handoff; task-aware assembly selects a matching task or global fallback. Lifecycle changes require explicit metadata, not inferred agreement.

Read your context without an agent

Enable the optional Markdown reader to browse project state, decisions, notes, questions, and handoffs in Obsidian or any Markdown reader. No Obsidian plugin, subscription, or account is required for local viewing.

After a fresh Docker setup:

mkdir -p reader-vault
docker compose --profile reader up --build -d --wait

Open reader-vault as an Obsidian vault and start with README.md. The exporter refreshes every 60 seconds and shows the last successful snapshot and refresh status. Native installs use contitext --env-file /absolute/private.env export --output /absolute/reader-vault --watch 60.

This is a generated, one-way reading copy. Edits are not imported. Keep personal notes elsewhere. See the reader guide for existing-install permissions, remote copies, and troubleshooting.

Development

See CONTRIBUTING.md for the isolated PostgreSQL test setup. See SECURITY.md for trust boundaries and vulnerability reporting. Repository: jessysw/contitext.

License

Apache License 2.0.

Frequently asked questions

What is Contitext MCP Server?

Self-hosted project continuity for AI agents: state, decisions, checkpoints, and handoffs.

How do I install Contitext MCP Server in Claude Desktop, Cursor, or VS Code?

Pick your client in the Install section on this page and copy the generated config into the client's config file. Step-by-step guides: Claude Desktop, Cursor, and VS Code. Contitext MCP Server runs locally from the PyPI package contitext with the command uvx contitext.

Is Contitext MCP Server free and open source?

Yes. Contitext MCP Server is released under the Apache-2.0 license, an OSI-approved open-source license, so you can use, modify, and self-host it under those terms.

Does Contitext MCP Server support remote (HTTP) connections?

No remote endpoint is listed for Contitext MCP Server. It runs locally on your machine over stdio, started by your MCP client.

How is Contitext MCP Server's trust score calculated?

Contitext MCP Server scores 65 out of 100 (Good). The score adds six capped public signals: registry status, maintenance, popularity, license, documentation, and security. Nobody can pay for points. Read the methodology for the full formula.

Reviews

No reviews yet

—Be the first to review

5 star0 reviews at 5 stars
4 star0 reviews at 4 stars
3 star0 reviews at 3 stars
2 star0 reviews at 2 stars
1 star0 reviews at 1 stars

No published reviews yet. Used it? Tell the next person how it went.

Add badge to your README

Paste either snippet into the repository README. The image links to this listing.

Listed on MCPpedia

Top 5 MCP servers

Daily or weekly. Confirm by email, unsubscribe any time.

How often

Manage this listing

Claim this server