OpenContext

v1.0.0Knowledge & Memorystable

A personal context store for AI agents and assistants—reuse your existing coding agent CLI (Codex/Claude/OpenCode) with built‑in Skills/tools and a desktop GUI to capture, search, and reuse project knowledge across agents and repos.

agentaiai-agentsclaude-codecli
Share:
582
Stars
0
Downloads
0
Weekly
0/5

What is OpenContext?

OpenContext is a Model Context Protocol (MCP) server that allows AI assistants like Claude, Cursor, and VS Code to personal context store for ai agents and assistants—reuse your existing coding agent cli (codex/claude/opencode) with built‑in skills/tools and a desktop gui to capture, search, and reuse project know...

A personal context store for AI agents and assistants—reuse your existing coding agent CLI (Codex/Claude/OpenCode) with built‑in Skills/tools and a desktop GUI to capture, search, and reuse project knowledge across agents and repos.

This server falls under the Knowledge & Memory category on MCPgee, the world's largest MCP server directory with 33,000+ servers.

Features

  • A personal context store for AI agents and assistants—reuse

Use Cases

Personal context store for agents
Project knowledge capture and reuse
Desktop GUI for context management
0xranx

Maintainer

LicenseMIT
Languagejavascript
Versionv1.0.0
UpdatedMay 21, 2026
Statushealthy
Maintenanceactive

Works with

ClaudeOpenAIwindowsmacoslinux

Installation

Manual Installation

npx opencontext

Configuration

Configuration Details

Config File

claude_desktop_config.json

Performance

Response Metrics

Response Time< 200ms
ThroughputMedium

Resource Usage

Memory UsageLow
CPU UsageLow

How to Set Up and Use OpenContext

OpenContext is a personal context store and knowledge management tool for AI coding agents that works alongside Claude Code, Cursor, and OpenAI Codex. It captures project documentation, architectural decisions, and reusable knowledge snippets, then makes them searchable and injectable into agent sessions through MCP tools and slash commands. Developers use it to avoid re-explaining project context in every conversation and to share knowledge across multiple agents and repositories.

Prerequisites

  • Node.js 18 or higher installed
  • npm 9 or higher for global package installation
  • An MCP client such as Claude Code CLI, Cursor, or Codex CLI
  • No external API keys required
1

Install the OpenContext CLI globally

Install the @aicontextlab/cli package globally via npm to get the 'oc' command available system-wide.

npm install -g @aicontextlab/cli
2

Initialize OpenContext in your project

Run 'oc init' from your project directory. This detects installed coding agents (Claude Code, Cursor, Codex) and writes MCP configuration and slash command files for each.

cd your-project
oc init
# Non-interactive install for specific tools:
oc init --tools cursor,claude
3

Create a context folder and add documentation

Organize your project knowledge into folders. Each folder can hold Markdown documents describing architecture, APIs, conventions, or any reusable context.

oc folder create architecture -d "System architecture decisions"
oc doc create architecture api-design.md -d "REST API design patterns"
4

Start the MCP server

Launch the OpenContext MCP server so your coding agents can query the context store through the standard MCP protocol.

oc mcp
5

Search your knowledge base

Use the CLI search command to find relevant documentation before a coding session, or let the AI agent call the MCP search tool automatically.

oc search "authentication flow"
6

(Optional) Launch the web UI

Open the local desktop GUI to browse, create, and edit context documents visually.

oc ui

OpenContext Examples

Client configuration

MCP configuration entry written by 'oc init' for Claude Code (~/.claude/mcp.json).

{
  "mcpServers": {
    "opencontext": {
      "command": "npx",
      "args": ["opencontext"],
      "env": {}
    }
  }
}

Prompts to try

Use these slash commands and prompts inside Claude Code or Cursor once OpenContext is configured.

- "/opencontext-context" — load all relevant project background before starting a task
- "/opencontext-search authentication" — find docs related to authentication in this project
- "/opencontext-create" — create a new context document capturing what you just learned
- "/opencontext-iterate" — persist new knowledge from this conversation into the context store
- "Search OpenContext for our database schema conventions and apply them to this new migration"

Troubleshooting OpenContext

'oc' command not found after global npm install

Run 'npm bin -g' to find where global binaries are installed, and add that directory to your PATH. On macOS with nvm this is typically ~/.nvm/versions/node/<version>/bin.

Slash commands do not appear in Claude Code after oc init

Verify that the commands were written to ~/.claude/commands/ by running 'ls ~/.claude/commands/'. If the directory is empty, re-run 'oc init --tools claude' from your project directory. Restart Claude Code to reload commands.

MCP server fails to start with port already in use error

Find and stop the existing process using the port: 'lsof -i :<port> | grep LISTEN' then 'kill <PID>'. Or configure OpenContext to use a different port if the option is available in your version.

Frequently Asked Questions about OpenContext

What is OpenContext?

OpenContext is a Model Context Protocol (MCP) server that personal context store for ai agents and assistants—reuse your existing coding agent cli (codex/claude/opencode) with built‑in skills/tools and a desktop gui to capture, search, and reuse project knowledge across agents and repos. It connects AI assistants to external tools and data sources through a standardized interface.

How do I install OpenContext?

Follow the installation instructions on the OpenContext GitHub repository. Clone the repo, install dependencies, and add the server config to your AI client.

Which AI clients work with OpenContext?

OpenContext works with all major MCP-compatible AI clients including Claude Desktop, Claude Code, Cursor, VS Code (GitHub Copilot), Windsurf, and Cline.

Is OpenContext free to use?

Yes, OpenContext is open source and available under the MIT license. You can use it freely in both personal and commercial projects.

Browse More Knowledge & Memory MCP Servers

Explore all knowledge & memory servers available in the MCPgee directory. Each server includes setup guides for Claude, Cursor, and VS Code.

Quick Config Preview

{ "mcpServers": { "opencontext": { "command": "npx", "args": ["-y", "opencontext"] } } }

Add this to your claude_desktop_config.json or .cursor/mcp.json

Read the full setup guide →

Ready to use OpenContext?

Browse our complete directory of 33,000+ MCP servers, read setup guides for your editor, and start building with the Model Context Protocol.

33,000+ ServersFree & Open SourceStep-by-Step Guides