# Contitext

> Contitext is an open-source MCP server. Self-hosted project continuity for AI agents: state, decisions, checkpoints, and handoffs. It runs locally on your machine and is started by your AI client.

- **Kind:** MCP server
- **Pricing:** Open source
- **Repository:** https://github.com/jessysw/contitext
- **MCP Registry name:** io.github.jessysw/contitext
- **Listing updated:** 2026-11-18

## About

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

## Install

### Claude Code (Terminal)

```sh
claude mcp add contitext --env DATABASE_URL='<DATABASE_URL>' --env CONTITEXT_AUTH_TOKENS='<CONTITEXT_AUTH_TOKENS>' --env CONTITEXT_MCP_TOKEN='<CONTITEXT_MCP_TOKEN>' -- uvx contitext
```

### Claude Desktop (claude_desktop_config.json)

```json
{
  "mcpServers": {
    "contitext": {
      "command": "uvx",
      "args": [
        "contitext"
      ],
      "env": {
        "DATABASE_URL": "<DATABASE_URL>",
        "CONTITEXT_AUTH_TOKENS": "<CONTITEXT_AUTH_TOKENS>",
        "CONTITEXT_MCP_TOKEN": "<CONTITEXT_MCP_TOKEN>"
      }
    }
  }
}
```

### Cursor (~/.cursor/mcp.json)

```json
{
  "mcpServers": {
    "contitext": {
      "command": "uvx",
      "args": [
        "contitext"
      ],
      "env": {
        "DATABASE_URL": "<DATABASE_URL>",
        "CONTITEXT_AUTH_TOKENS": "<CONTITEXT_AUTH_TOKENS>",
        "CONTITEXT_MCP_TOKEN": "<CONTITEXT_MCP_TOKEN>"
      }
    }
  }
}
```

### VS Code (.vscode/mcp.json)

```json
{
  "servers": {
    "contitext": {
      "type": "stdio",
      "command": "uvx",
      "args": [
        "contitext"
      ],
      "env": {
        "DATABASE_URL": "<DATABASE_URL>",
        "CONTITEXT_AUTH_TOKENS": "<CONTITEXT_AUTH_TOKENS>",
        "CONTITEXT_MCP_TOKEN": "<CONTITEXT_MCP_TOKEN>"
      }
    }
  }
}
```

### Windsurf (~/.codeium/windsurf/mcp_config.json)

```json
{
  "mcpServers": {
    "contitext": {
      "command": "uvx",
      "args": [
        "contitext"
      ],
      "env": {
        "DATABASE_URL": "<DATABASE_URL>",
        "CONTITEXT_AUTH_TOKENS": "<CONTITEXT_AUTH_TOKENS>",
        "CONTITEXT_MCP_TOKEN": "<CONTITEXT_MCP_TOKEN>"
      }
    }
  }
}
```

### Other clients (your client's MCP settings (most use this shape))

```json
{
  "mcpServers": {
    "contitext": {
      "command": "uvx",
      "args": [
        "contitext"
      ],
      "env": {
        "DATABASE_URL": "<DATABASE_URL>",
        "CONTITEXT_AUTH_TOKENS": "<CONTITEXT_AUTH_TOKENS>",
        "CONTITEXT_MCP_TOKEN": "<CONTITEXT_MCP_TOKEN>"
      }
    }
  }
}
```

## FAQ

### Is Contitext free?

Yes. Contitext is open source, so you can use and self-host it for free.

### How do I add Contitext to Claude Code?

Run this command in your terminal: claude mcp add contitext --env DATABASE_URL='<DATABASE_URL>' --env CONTITEXT_AUTH_TOKENS='<CONTITEXT_AUTH_TOKENS>' --env CONTITEXT_MCP_TOKEN='<CONTITEXT_MCP_TOKEN>' -- uvx contitext

## Where this comes from

- Description: from the official MCP Registry entry.
- Install steps: from the official MCP Registry entry.

---
Source: https://ai-powered.com/mcp/contitext
