OwnContext lets developers who use multiple AI clients read and correct shared Markdown notes in a private GitHub repository through a single-user, self-hosted MCP server.
Preview: the account-free local demo works; live deployment, OAuth and AI-client acceptance are still pending.
24.5-second replay of real npm run demo output, paced for reading. Both tool clients and storage are in memory; this is not a live AI-client recording.
From a source checkout, with Node.js 24.11+ and npm:
npm ci --registry=https://registry.npmjs.org
npm run demo
npm run setup -- --dry-runAfter dependency installation, both commands run offline. The demo uses synthetic notes to check duplicate suppression, correction and stale-SHA rejection. It starts no HTTP server and changes no repository. Setup's dry run prints the deployment plan without account access or configuration writes.
Verified locally on macOS with Node 24: lint, type checking, unit/integration tests, a dry-run Worker build, and the demo/setup preview from a fresh local clone. MCP Streamable HTTP tests use the real Worker handler with fake GitHub/KV.
Still pending: real GitHub/Cloudflare deployment; live OAuth sign-in, consent, refresh and revocation; and cross-client read/save/correction/conflict acceptance in Claude Code and claude.ai. Linux CI is configured; native Windows is unverified. The GIF above demonstrates the local tool logic only.
Context should survive a change of AI client. Markdown and Git keep it portable; stated and inferred labels separate your statements from deductions; source references make an answer traceable; SHA-checked updates let a client correct a note without overwriting a newer edit.
The server supplies storage and tools. Your client decides what to read and how to merge a correction. Labels and source references are client-supplied, not independent verification of a claim.
Read the quickstart and permissions before running:
npm run setupLive setup needs Git, GitHub CLI, your GitHub and Cloudflare accounts, a GitHub OAuth App, and a repository-scoped token. It inspects those accounts and asks you to type deploy before creating resources or publishing the Worker. It can create a private notes repository, add missing synthetic template files, provision OAuth KV, and deploy. Existing template files are preserved.
Setup prints your endpoint, for example https://owncontext.example/mcp. Start with read-only consent. Writes require a separate checkbox on the consent page.
| Surface | Current status |
|---|---|
| Local demo | Executable Node.js demo; exercised on macOS with Node 24 |
| MCP SDK over Streamable HTTP | Integration-tested against the real Worker handler with fake GitHub and KV |
| Claude Code and claude.ai | Connection instructions are provided by setup; live sign-in and cross-client operation still need release acceptance |
| Deployment | Cloudflare Workers with Workers KV and GitHub.com; no other hosting adapter |
| Setup CLI | Requires Node 24.11+, Git, gh, and bundled Wrangler; macOS exercised, Linux CI configured; native Windows not validated |
Other clients must support the same HTTP transport and OAuth flow. No stdio transport or legacy SSE endpoint is included. See compatibility for the exact verification boundary.
MCP client → your Cloudflare Worker → your private GitHub repository
↓
OAuth state in Workers KV
GitHub sign-in identifies the one allowed account. A separate fine-grained token gives the Worker repository access. Notes, corrections, and optional selected snippets remain in private Git history. Cloudflare processes requests; GitHub stores the files; a connected AI client can send returned context to its model provider under that provider's terms.
OwnContext makes no model calls and has no analytics service or automatic capture hook. Tool logs contain the tool name and status, not note bodies. Provider and CLI logging have their own controls. There is no application-level end-to-end encryption or automatic redaction. Privacy and data flow.
- Read:
get_context,search,read. - Write, with explicit OAuth write consent:
remember,update_note. - Optional, disabled by default:
capture_conversation,log_decision,log_meal.
update_note requires the SHA from read, or null to create. A conflicting content change is rejected; the client must re-read and merge. remember suppresses exact repeated facts. Optional capture stores only the snippets the client supplies, with stable batch identifiers for retries; it does not collect conversations by itself.
The software is free under Apache-2.0. You supply your own GitHub and Cloudflare accounts and pay any applicable storage, request, or platform charges. Free-tier eligibility and quotas depend on those providers. AI client subscriptions or model usage are separate. OwnContext does not set up billing or promise a zero-cost deployment.
- One allowed GitHub identity and one private repository; no team accounts or per-folder OAuth scopes.
- Plain UTF-8 text, at most 200 KiB per readable file; keyword substring search, not semantic or vector search.
- GitHub API latency and quotas apply. Search is paginated; a page with no matches can still have a continuation cursor.
- Sources and
stated/inferredlabels require client judgment. Corrections are client-authored; there is no automatic truth resolution. - Rules files and
me/values.mdare protected from MCP writes. Git history retains old content; deleting a current file does not erase its history. - No delete tool, scheduler, background collection, full conversation export, multi-file transaction, or hosted service operated by the maintainer.
- Quickstart
- Privacy and data flow
- Permissions and scopes
- Costs and limits
- Local benchmark method and raw samples (
npm run benchmark; in-memory GitHub substitute, not deployed latency) - Upgrade and rollback
- Recovery and uninstall
- Compatibility
npm run lint
npm run typecheck
npm test
npm run check:release
npm run buildSee CONTRIBUTING, SECURITY, and Code of Conduct. Licensed under Apache-2.0, copyright clean99. See NOTICE.
