Skip to main content

MCP server — Laeka Brain cognitive layer for Claude Code

Project description

laeka-brain

A cognitive layer for the AI you already use.

This MCP server connects your Claude Code environment to Laeka Brain — the OmniQ protocol made available through four tools. It is a context provider. It does not call an LLM. It does not store your conversations. It returns context that Claude uses natively.


What it is

Four tools, added to Claude Code via a single entry in ~/.claude/.mcp.json:

  • query — ask what Laeka Brain says about a concept or question
  • reflect — share a situation; Brain holds the mirror and asks the question you haven't asked yourself
  • consolidate — save a session insight to your personal mini-brain
  • recall — check what your mini-brain has accumulated (semantic search in Phase 4)

The four OmniQ lenses — MONADE, SYMBIOTE, ARCHITECT, EMPATH — operate through all four tools. You will feel them before you name them.


How to install

Requirements: Python 3.12+, Claude Code.

pip install laeka-brain

Or without installing permanently:

uvx laeka-brain

How to configure

Add this to ~/.claude/.mcp.json:

{
  "mcpServers": {
    "laeka-brain": {
      "command": "laeka-brain",
      "env": {
        "LAEKA_BRAIN_API_URL": "http://172.105.0.134:8822"
      }
    }
  }
}

If you installed via uvx, replace "command" with "uvx laeka-brain" or use the full uvx path.

Environment variables:

Variable Default Description
LAEKA_BRAIN_API_URL http://172.105.0.134:8822 Seahorse API base URL
XDG_CONFIG_HOME ~/.config Override config dir location

Your user_uuid is generated on first run and stored at ~/.config/laeka-brain/user_uuid. It is the key to your personal mini-brain. Keep it — it cannot be recovered if lost.


The 4 tools

query

Ask what Laeka Brain says about something.

Use query with question="What does the ARCHITECT lens say about naming things in code?"

Returns the canonical Brain context framed around your question. Claude uses it as a cognitive lens — no LLM call happens inside this server.

reflect

Share a situation. Brain holds the mirror.

Use reflect with situation="I've rewritten this module three times and I still don't like it."

Returns the canonical context plus a mirror directive. Claude applies the four lenses and asks the question that helps you see what you're not seeing. No advice. Just the mirror.

consolidate

Persist a session insight to your mini-brain.

Use consolidate with text="Discovered that my naming friction is really a module boundary problem."

Stores the text as a pattern_observation in your personal memory cell. If your mini-brain doesn't exist yet, it is provisioned automatically.

recall

Check your accumulated memory.

Use recall with query="What did I learn about naming last week?"

In Phase 3: returns your chunk count and the date your mini-brain was born. Semantic search across your stored patterns arrives in Phase 4.


How to leave

If you want to remove Laeka Brain from your environment:

  1. Remove the laeka-brain entry from ~/.claude/.mcp.json.
  2. Delete your local config: rm -rf ~/.config/laeka-brain
  3. Optionally, destroy your mini-brain on the server:
curl -X POST http://172.105.0.134:8822/v1/brain/mini/offboard \
  -H "Content-Type: application/json" \
  -d "{\"user_uuid\": \"$(cat ~/.config/laeka-brain/user_uuid)\", \"confirm\": true}"

This destroys your private chunks permanently. Patterns that were anonymized and contributed to the collective remain as collective learning — they are not yours anymore, and they are not reversible.

No cron jobs. No daemons. No leftover files beyond ~/.config/laeka-brain/ (which you just deleted).


Built with gratitude for Anthropic's foundational work. Laeka Brain is an extension that amplifies Claude Code — not a competitor, not a replacement.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

laeka_brain-0.1.0.tar.gz (12.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

laeka_brain-0.1.0-py3-none-any.whl (10.4 kB view details)

Uploaded Python 3

File details

Details for the file laeka_brain-0.1.0.tar.gz.

File metadata

  • Download URL: laeka_brain-0.1.0.tar.gz
  • Upload date:
  • Size: 12.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.9

File hashes

Hashes for laeka_brain-0.1.0.tar.gz
Algorithm Hash digest
SHA256 2df9f06943e5992525141064e21333b9d54b7951adbdf587045878ef46330e06
MD5 9cd08bb5a2be5b00e651bbde524286d6
BLAKE2b-256 e2f3fa1155d60174566537e4fac7b8dd1153f6166d72e779d279f2a645284d03

See more details on using hashes here.

File details

Details for the file laeka_brain-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: laeka_brain-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 10.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.9

File hashes

Hashes for laeka_brain-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 0b58000457d7e1d5374170f63e3544dab4068e04550c5e61792aacfb06269d58
MD5 a7e9d2a97e39afab2679d08863ada6da
BLAKE2b-256 1da63aa81a12e49fc0ab3f97747adfd3ba7ed6d85424cf808c18b3715b16fc99

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page