# Context

> Context is an MCP server for knowledge and memory. Saves pages you highlight with Alt+S and lets AI clients search and reopen them. It runs locally on your machine and is started by your AI client.

- **Kind:** MCP server
- **Platforms:** Web, CLI, VS Code
- **Website:** https://contextback.com
- **MCP Registry name:** com.contextback/context
- **Categories:** [knowledge and memory](https://ai-powered.com/categories/knowledge-and-memory)
- **Listing updated:** 2026-11-27

## About

Context keeps the pages and passages you mark while browsing so you can find them again later. Captured material can be brought back when you return to a task, whether you are in the browser, a terminal, VS Code or Cursor.

Through this MCP server, an AI client can search your saved pages, open one in full, and file a document you just used back into your collection. Setup uses an npm package run over stdio, with a personal token from your Context account and the site address as configuration.

It suits developers and researchers who collect reference material while working and want an assistant to use that archive directly instead of relying on memory or re-searching the web.

## Features

- **Highlight to save:** Mark any passage on a web page with Alt+S to keep it for later.
- **Search saved pages:** Let an AI client search across everything you have saved.
- **Read full documents:** Open a saved page in full from within the assistant.
- **File used documents:** Store the document you just referenced back into your collection.
- **Works across editors:** Access your saved material from the browser, terminal, VS Code and Cursor.

## Good for

- Recalling a reference you highlighted last week while coding
- Giving an AI assistant access to your personal research archive
- Filing documentation an assistant consulted so it is easy to revisit
- Resuming a task in the terminal or editor with your earlier notes at hand

## Install

### Claude Code: Add with the CLI (Terminal)

```sh
claude mcp add context --env CONTEXT_TOKEN='<CONTEXT_TOKEN>' --env CONTEXT_URL='<CONTEXT_URL>' -- npx -y contextback-mcp
```

Add --scope user to use it in every project, or --scope project to share it in .mcp.json.

### Claude Code: Or share it with your project (.mcp.json)

```json
{
  "mcpServers": {
    "context": {
      "command": "npx",
      "args": [
        "-y",
        "contextback-mcp"
      ],
      "env": {
        "CONTEXT_TOKEN": "<CONTEXT_TOKEN>",
        "CONTEXT_URL": "<CONTEXT_URL>"
      }
    }
  }
}
```

### Claude Desktop (claude_desktop_config.json)

```json
{
  "mcpServers": {
    "context": {
      "command": "npx",
      "args": [
        "-y",
        "contextback-mcp"
      ],
      "env": {
        "CONTEXT_TOKEN": "<CONTEXT_TOKEN>",
        "CONTEXT_URL": "<CONTEXT_URL>"
      }
    }
  }
}
```

Settings → Developer → Edit Config, then quit and reopen Claude Desktop.

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

```json
{
  "mcpServers": {
    "context": {
      "command": "npx",
      "args": [
        "-y",
        "contextback-mcp"
      ],
      "env": {
        "CONTEXT_TOKEN": "<CONTEXT_TOKEN>",
        "CONTEXT_URL": "<CONTEXT_URL>"
      }
    }
  }
}
```

Use .cursor/mcp.json in a project to share it with the project.

### VS Code (~/.copilot/mcp-config.json)

```json
{
  "mcpServers": {
    "context": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "contextback-mcp"
      ],
      "env": {
        "CONTEXT_TOKEN": "<CONTEXT_TOKEN>",
        "CONTEXT_URL": "<CONTEXT_URL>"
      }
    }
  }
}
```

Or put the same entry in .mcp.json at your workspace root to share it.

### Codex: Add with the CLI (Terminal)

```sh
codex mcp add context --env CONTEXT_TOKEN='<CONTEXT_TOKEN>' --env CONTEXT_URL='<CONTEXT_URL>' -- npx -y contextback-mcp
```

### Codex: Or add to config.toml (~/.codex/config.toml)

```toml
[mcp_servers.context]
command = "npx"
args = ["-y", "contextback-mcp"]
env = { CONTEXT_TOKEN = "<CONTEXT_TOKEN>", CONTEXT_URL = "<CONTEXT_URL>" }
```

### Gemini CLI and Antigravity: Gemini CLI (~/.gemini/settings.json)

```json
{
  "mcpServers": {
    "context": {
      "command": "npx",
      "args": [
        "-y",
        "contextback-mcp"
      ],
      "env": {
        "CONTEXT_TOKEN": "<CONTEXT_TOKEN>",
        "CONTEXT_URL": "<CONTEXT_URL>"
      }
    }
  }
}
```

Or run: gemini mcp add -s user -e CONTEXT_TOKEN='<CONTEXT_TOKEN>' -e CONTEXT_URL='<CONTEXT_URL>' context npx -- -y contextback-mcp

### Gemini CLI and Antigravity: Antigravity (~/.gemini/config/mcp_config.json)

```json
{
  "mcpServers": {
    "context": {
      "command": "npx",
      "args": [
        "-y",
        "contextback-mcp"
      ],
      "env": {
        "CONTEXT_TOKEN": "<CONTEXT_TOKEN>",
        "CONTEXT_URL": "<CONTEXT_URL>"
      }
    }
  }
}
```

Use .agents/mcp_config.json to add it to one workspace only.

### Devin Desktop (~/.config/devin/mcp_config.json)

```json
{
  "mcpServers": {
    "context": {
      "command": "npx",
      "args": [
        "-y",
        "contextback-mcp"
      ],
      "env": {
        "CONTEXT_TOKEN": "<CONTEXT_TOKEN>",
        "CONTEXT_URL": "<CONTEXT_URL>"
      }
    }
  }
}
```

On Windows the file is %APPDATA%\\devin\\mcp_config.json. Use .devin/mcp_config.json to share it with a project.

### Cline (cline_mcp_settings.json)

```json
{
  "mcpServers": {
    "context": {
      "command": "npx",
      "args": [
        "-y",
        "contextback-mcp"
      ],
      "env": {
        "CONTEXT_TOKEN": "<CONTEXT_TOKEN>",
        "CONTEXT_URL": "<CONTEXT_URL>"
      }
    }
  }
}
```

Open it from the MCP Servers icon → Configure → Configure MCP Servers.

### Zed (Zed settings.json)

```json
{
  "context_servers": {
    "context": {
      "command": "npx",
      "args": [
        "-y",
        "contextback-mcp"
      ],
      "env": {
        "CONTEXT_TOKEN": "<CONTEXT_TOKEN>",
        "CONTEXT_URL": "<CONTEXT_URL>"
      }
    }
  }
}
```

Open it with zed: open settings file. Merge context_servers into the settings you already have.

### JetBrains AI Assistant and Junie: AI Assistant (Settings → Tools → AI Assistant → Model Context Protocol (MCP) → Add)

```json
{
  "mcpServers": {
    "context": {
      "command": "npx",
      "args": [
        "-y",
        "contextback-mcp"
      ],
      "env": {
        "CONTEXT_TOKEN": "<CONTEXT_TOKEN>",
        "CONTEXT_URL": "<CONTEXT_URL>"
      }
    }
  }
}
```

The AI Assistant docs only show command and args. If the env block is ignored, use Junie for this server.

### JetBrains AI Assistant and Junie: Junie (~/.junie/mcp/mcp.json)

```json
{
  "mcpServers": {
    "context": {
      "command": "npx",
      "args": [
        "-y",
        "contextback-mcp"
      ],
      "env": {
        "CONTEXT_TOKEN": "<CONTEXT_TOKEN>",
        "CONTEXT_URL": "<CONTEXT_URL>"
      }
    }
  }
}
```

Use .junie/mcp/mcp.json to share it with a project.

### Kiro (~/.kiro/settings/mcp.json)

```json
{
  "mcpServers": {
    "context": {
      "command": "npx",
      "args": [
        "-y",
        "contextback-mcp"
      ],
      "env": {
        "CONTEXT_TOKEN": "<CONTEXT_TOKEN>",
        "CONTEXT_URL": "<CONTEXT_URL>"
      }
    }
  }
}
```

Use .kiro/settings/mcp.json to add it to one workspace only.

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

```json
{
  "mcpServers": {
    "context": {
      "command": "npx",
      "args": [
        "-y",
        "contextback-mcp"
      ],
      "env": {
        "CONTEXT_TOKEN": "<CONTEXT_TOKEN>",
        "CONTEXT_URL": "<CONTEXT_URL>"
      }
    }
  }
}
```

## FAQ

### How do I connect Context?

Sign up at Context, copy your token from the connect page, and set it as CONTEXT_TOKEN in the MCP server configuration.

### Which environment variables are needed?

CONTEXT_TOKEN is required and secret. CONTEXT_URL defaults to https://contextback.com and is also required in the configuration.

### How is the server installed?

It is distributed as the npm package contextback-mcp and runs over stdio.

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

Run this command in your terminal: claude mcp add context --env CONTEXT_TOKEN='<CONTEXT_TOKEN>' --env CONTEXT_URL='<CONTEXT_URL>' -- npx -y contextback-mcp

### What are the best alternatives to Context?

The closest alternatives to Context are Sombra, Markwise, not24get, Context Mem and Stashr.

## Where this comes from

- Description: written from the project's website and its MCP Registry entry.
- Install steps: from the official MCP Registry entry.

## Alternatives

- [Sombra](https://ai-powered.com/mcp/sombra): Sombra is a freemium MCP server for knowledge and memory.
- [Markwise](https://ai-powered.com/mcp/markwise): Markwise is a freemium MCP server for knowledge and memory.
- [not24get](https://ai-powered.com/mcp/not24get): not24get is a freemium MCP server for knowledge and memory.
- [Context Mem](https://ai-powered.com/mcp/context-mem): Context Mem is an open-source MCP server for knowledge and memory.
- [Stashr](https://ai-powered.com/mcp/stashr): Stashr is an MCP server for knowledge and memory.
- [ContextStream MCP Server](https://ai-powered.com/mcp/contextstream-mcp-server): ContextStream MCP Server is a freemium MCP server for knowledge and memory.
- [AI Context Flow](https://ai-powered.com/mcp/ai-context-flow): AI Context Flow is an MCP server for knowledge and memory.
- [Cowpin](https://ai-powered.com/mcp/cowpin): Cowpin is a freemium MCP server for knowledge and memory.

---
Source: https://ai-powered.com/mcp/context-5
