opencontext MCP server
2026년 9월 3일 커밋AI 코딩 에이전트가 아키텍처 결정 사항과 API 규약을 저장할 수 있도록 프로젝트 로컬에 지속적인 마크다운 메모리를 제공합니다.
다른 이름 slxca/opencontext
- 스타
- 8
- Tools
- 3
- 다운로드, 30일
- —
- 최신 버전
- —
- 마지막 커밋
- 2026년 9월 3일
- 라이선스
- MIT
opencontext MCP란?
opencontext은(는) MCP server입니다. AI 코딩 에이전트가 아키텍처 결정 사항과 API 규약을 저장할 수 있도록 프로젝트 로컬에 지속적인 마크다운 메모리를 제공합니다. 3개 도구를 제공합니다. 예: read_context, save_context, delete_context.
프로젝트 README에서 생성된 요약
opencontext MCP server 정보
opencontext는 AI 코딩 에이전트가 프로젝트 내에 아키텍처 결정 사항과 API 규약을 로컬로 저장할 수 있게 해줍니다. 전용 디렉토리에 저장된 마크다운 파일을 읽고 씀으로써 에이전트가 서로 다른 세션 간에도 지속적인 메모리를 유지할 수 있는 방법을 제공합니다. 모든 컨텍스트가 Git을 통해 직접 추적 가능한 일반 마크다운 파일로 유지되므로 클라우드 구독이나 벡터 데이터베이스가 필요하지 않습니다.
개발자는 npx를 사용하거나 init 명령어를 실행하여 opencode.json 및 .mcp.json과 같은 설정 파일을 생성하고 서버를 설정할 수 있습니다. 이 서버는 Claude Desktop, Cursor, Windsurf와 같은 클라이언트와 함께 작동하며, streamable HTTP 전송 방식을 사용하여 네트워크에 노출할 수도 있습니다. 정보를 관리하기 위해 read_context, save_context, delete_context와 같은 특정 도구를 포함합니다.
정리된 문서를 유지하기 위해 이 시스템은 YAML frontmatter를 지원하여 주제의 생명주기를 추적합니다. 이를 통해 에이전트는 정보를 active, deprecated 또는 superseded로 표시할 수 있으며, 오래된 아키텍처 패턴이 프로젝트 인덱스 내에서 명확하게 표시되도록 보장합니다.
활용 사례
- 1아키텍처 결정 사항 보존AI 에이전트가 구조적 불변성을 기록하고 검색하여 세션 간에 중요한 프로젝트 지식을 잃어버리는 것을 방지할 수 있습니다.
- 2API 규약 진화 관리개발자는 deprecated 또는 superseded와 같은 생명주기 상태를 사용하여 API 규칙을 문서화하고 업데이트하는 데 이 서버를 사용할 수 있습니다.
- 3오래된 문서 추적이 시스템은 어떤 아키텍처 주제가 최신 버전으로 교체되었는지 에이전트가 식별할 수 있도록 도와줍니다.
프로젝트의 README를 바탕으로 작성되었습니다. 모든 활용 사례는 해당 내용의 인용문과 대조하여 확인합니다.
opencontext MCP 도구 3
README에서 감지됨read_contextsave_contextdelete_context
| read_context | — | |
| save_context | — | |
| delete_context | — |
자동 검사
2026년 11월 15일에 실행됨전체 보고서 →아직 인증되지 않았습니다. 서버는 80점 이상의 점수, 심각한 결함 없음, 그리고 검사에 충분한 데이터를 갖추어야 합니다. 검사 방식 · 점수를 높이기 위해 수정할 항목
- 소스 저장소 연결 및 접근 가능slxca/opencontext is public and reachablegithub.com/slxca/opencontext ↗통과
- 패키지가 이 저장소를 소스로 명시검사되지 않음
- 빌드 출처(Sigstore 증명)검사되지 않음
- 오픈 소스 라이선스 (OSI)MITspdx.org/licenses/MIT.html ↗통과
- 최근 1년 내 커밋 또는 릴리스Last commit or release 2026-09-03github.com/slxca/opencontext ↗통과
- OpenSSF Scorecard검사되지 않음
- 패키지 이름이 인기 패키지와 유사하지 않음검사되지 않음
- 패키지 및 해당 종속성에 중요한 보안 권고 없음검사되지 않음
- 모델에 대한 숨겨진 지침 없음3 tool descriptions and the README read; no override phrases, credential paths or hidden characters통과
- 파괴적인 도구에 라벨 표시됨검사되지 않음
- 원격 엔드포인트가 MCP 핸드셰이크에 응답검사되지 않음
README
GitHub에서 보기Most coding agents lose critical decisions between sessions: architecture invariants, API contracts, rejected patterns, and setup quirks. OpenContext solves context loss through a lightweight Model Context Protocol (MCP) server that lets agents read and mutate durable markdown files inside .opencontext/.
No vector databases, no cloud subscriptions, and no hidden state. Memory is plain markdown tracked directly in Git.
Quickstart
Run the MCP server directly without installation via npx:
npx -y opencontext-mcp
One-Command Setup
Scaffold OpenContext in the current project interactively:
npx -y opencontext-mcp init
init walks you through the setup (enabling OpenCode and Claude Code integration) and generates everything you need:
.opencontext/— directory that holds your context topic files.opencontext.json— configuration templateopencode.json— MCP server entry for OpenCode.mcp.json— MCP server entry for Claude CodeAGENTS.md/CLAUDE.md— workflow reminders for your agents
The init command takes no arguments: it always runs in the current directory, prompts interactively, and never overwrites an existing config.
Client Setup
OpenCode
Add OpenContext to your project MCP configuration (opencode.json) — or let opencontext-mcp init do it for you:
{
"mcp": {
"opencontext": {
"type": "local",
"command": ["npx", "-y", "opencontext-mcp"],
"enabled": true
}
}
}
Cursor / Claude Desktop / Windsurf
Add OpenContext to your MCP settings file (claude_desktop_config.json or Cursor MCP settings):
{
"mcpServers": {
"opencontext": {
"command": "npx",
"args": ["-y", "opencontext-mcp"]
}
}
}
Remote Access (HTTP)
Expose the MCP server over the network with the Streamable HTTP transport. The endpoint URL is printed to stderr on startup.
# Plain HTTP on 127.0.0.1:3032 (default)
opencontext-mcp --http
# Custom port / bind to all interfaces
opencontext-mcp server --http --port 8787 --host 0.0.0.0
The server listens at http://<host>:<port>/mcp (stateless Streamable HTTP — one request at a time, no sessions). GET / returns basic server info, handy for a browser health check.
Core Tools
| Tool | Parameters | Description |
|---|---|---|
read_context |
topic? (optional string) |
Reads a specific context topic, or returns the lightweight topic index (~100 tokens) if omitted. |
save_context |
topic (string), content (string) |
Writes or mutates markdown memory inside .opencontext/<topic>.md with built-in write guards and symlink protections. |
delete_context |
topic (string) |
Removes an obsolete topic file and automatically rebuilds the topic index. |
ADR Lifecycle & Frontmatter
Topics support optional YAML frontmatter to track lifecycle status — useful when architectural decisions evolve and old context should be visible but clearly flagged as outdated.
---
description: OAuth2 + PKCE authentication flow
status: active
supersedes: auth_v1
---
# Authentication v2
Migrated from JWT to OAuth2 with PKCE.
Supported frontmatter keys:
| Key | Values | Description |
|---|---|---|
description |
string | Short summary used in the auto-generated index. |
status |
active | deprecated | superseded |
Lifecycle status. Defaults to active when omitted. |
supersedes |
string | Topic name this topic replaces (set on the newer topic). |
superseded_by |
string | Topic name that replaced this one (set on the older topic). |
Non-active topics automatically receive [DEPRECATED] or [SUPERSEDED] badges in the auto-generated index.md, along with cross-references showing which topic replaced or was replaced.
Agent Workflows
Instruct your agents to automatically leverage project context. Add this snippet to your .cursorrules, CLAUDE.md, or system prompt:
Before making structural code changes, run `read_context` to inspect existing project topics and architectural decisions.
Whenever a new architectural convention, database schema, or API rule is established or refactored, call `save_context` with a concise, topic-scoped markdown summary. Use YAML frontmatter (status, supersedes) when updating conventions to track lifecycle changes.
When a topic becomes obsolete, call `delete_context` to remove it. For deprecated topics that should remain visible, set status: deprecated or status: superseded in the frontmatter instead of deleting.
Configuration
Customize storage paths and security boundaries with an optional .opencontext.json file in your repository root (plain JSON — comments are not supported):
{
"path": ".opencontext",
"readOnly": false,
"autoIndex": true,
"guard": {
"enabled": true,
"maxFileSizeKb": 50,
"strictPatternCheck": true
}
}
Local Development
# Clone and install dependencies
git clone [https://github.com/slxca/opencontext.git](https://github.com/slxca/opencontext.git)
cd opencontext
pnpm install
# Build & run tests
pnpm build
pnpm test
Documentation
For advanced setup guides, guard parameters, and agent prompt templates, visit opencntx.dev/docs.
Contributing
Contributions are welcome. Please ensure all unit tests and typechecks pass before submitting a pull request:
pnpm typecheck && pnpm test
opencontext MCP 질문
opencontext MCP는 어떤 도구를 제공하나요?
3개 도구를 제공합니다. 예: read_context, save_context, delete_context.
OpenContext는 메모리를 어떻게 저장하나요?
로컬 .opencontext/ 디렉토리에 저장되는 일반 마크다운 파일을 사용하며, Git으로 직접 추적할 수 있습니다.
OpenContext를 사용하려면 데이터베이스나 클라우드 구독이 필요한가요?
아니요, 벡터 데이터베이스나 클라우드 구독이 필요 없는 가벼운 솔루션입니다.
네트워크를 통해 서버를 실행할 수 있나요?
네, streamable HTTP 전송 방식을 사용하여 MCP server를 네트워크에 노출할 수 있습니다.