Skip to main content
Glama

ContextCore

One knowledge base of your life and work, for all your AI agents, on your own server.

https://github.com/user-attachments/assets/049d5873-2e40-4c8c-9730-e6d4b5e91f42

ContextCore is an open-source MCP server for Claude, ChatGPT, coding agents and any other app that supports remote MCP servers.

Why it exists

I use several AI tools at the same time: Claude, ChatGPT, Grok, Codex, Perplexity. Every time, one of them knew part of the picture and the others didn't: a decision made in one chat, a fact told to another, a rule I fixed in a third. I kept explaining the same things again. So I built one place where everything is kept, the knowledge, the memory and the skills, and every agent reads and saves there.

Related MCP server: brain-mcp

A knowledge base of your whole life and work

Everything that matters to you: projects, people, places, books, health, ideas, research, decisions, and the facts every agent should know about you. Tell any agent something worth keeping, and it becomes a note in the right place, linked to its topic.

Every agent, in every app, uses it

Ask another agent in another app, or a coding agent in your terminal, and it finds what you saved and combines it. An agent is a name, not an app: start "planner" anywhere, and it has the same rules and memory.

See it all, on the web or in Obsidian

Everything lives on your own server as plain Markdown files with front matter and [[wiki links]], in git.

  • On the web. Your server has a private read-only page: notes, tasks, projects, and each agent's rules and memory, with search. It works on the phone and can be added to the home screen.

  • In Obsidian. Clone the private git backup to your laptop and open the folder as a vault: notes, links and the graph are all there, and a git plugin keeps it up to date. The steps are in INSTALL.md, section 10.

Agents save as you talk; your main agent proposes tidy-ups (duplicates, missing links, hub pages) and changes nothing before your yes.

Install

Give an AI agent that can use a terminal and SSH (for example Claude Code) this repo's link and say:

Install ContextCore on my server. Follow INSTALL.md.

The agent installs and checks the server, helps you connect your apps, and moves in what you already have: each app's memory, your notes and your projects. You need a Linux server; the daily review needs an app that can run scheduled tasks.

How it works

At the start of every chat the agent calls start and reads its job, the facts about you, the shared rules, its rights, its own memory, your projects and the time. Then run takes a short program (nm.read / list / find / write / save_task) that reads and saves in one step, in a sandbox with no network or files; whats_new shows what other agents changed. The server checks rights and formats, and a refused save is never half-done. Your own notes weigh most; an agent's memory and logs are marked as the agent's.

How it differs

Built-in app memory (the memory of a chat app). Easy, and it works inside one app. It stays there: other apps can't read it, you can't see or fix it as a whole, and nothing cleans it. ContextCore moves each app's memory in at setup, and from then on the app keeps one line that points to ContextCore.

Rules files (CLAUDE.md, AGENTS.md, custom instructions). Clear and versioned, but one per tool or project, copied by hand, and an agent can't save what it learns into them safely. In ContextCore the rules live in one place, each agent reads only the rules of its own job and rights, and changes to shared rules wait for your yes.

Vector memory services (they extract snippets from chats and return similar ones). Good at recall, but the memory is a cloud of fragments: no clear place for a rule, a task or a project, no idea which fragment is your word and which is a model's guess, and usually someone else's server. ContextCore stores whole, readable files in places you know, says where each item came from and when, and runs on your own server.

A notes vault with an MCP server (a folder of Markdown files that agents can read). Your files and your structure, but every agent invents its own way to write there, so the vault slowly turns into a mix of styles, duplicates and orphan notes. ContextCore gives every agent the same rules for where things go, types for notes, dates and sources on facts, and a review that keeps it in order.

ContextCore is for a person who works with several agents across apps and wants one memory that they own, can read, and that doesn't rot. It is not a team knowledge base and not a vector search engine.

What is in this repo

  • server/: the MCP server (three tools: start, whats_new, run) and a read-only page for your phone.

  • core/: the rules engine: rights, formats, search, and the tool texts agents see.

  • seed/: the starting store: shared rules, note types, task values and the skills the memory works by.

  • deploy/: systemd and Caddy templates, an optional off-site backup.

  • docs/: the video (MP4 and GIF) and the diagram above.

  • INSTALL.md: the install guide, written for the agent.

License: MIT.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      Not graded
      quality
      D
      maintenance
      Enables AI agents to securely read and write to an Obsidian-compatible Markdown vault with per-agent access control, audit logging, and conflict resolution.
      Apache 2.0
    • A
      license
      B
      quality
      B
      maintenance
      Enables AI agents to securely read, search, and write to a local Markdown knowledge base with hybrid RAG retrieval, privacy zones, hash-locked writes, audit logging, and rollback-safe archiving.
      13
      MIT
    • A
      license
      A
      quality
      B
      maintenance
      Lets AI agents from any machine list, read, search, write, edit, move and link markdown pages and store files alongside them, all in a shared wiki. People can then see what the agents know through a web app showing the link graph, every page, and the history of who changed what.
      16
      9
      AGPL 3.0