Back to Browse

Cellmath MCP Server

Developer ToolsLow Risk10.0MCP RegistryRemote
Free

Server data from the Official MCP Registry

AI memory governance & hallucination-blocking MCP server with verifiable knowledge cells.

About

AI memory governance & hallucination-blocking MCP server with verifiable knowledge cells.

Remote endpoints: streamable-http: https://cellmath.ai.studio/api/mcp

Security Report

10.0
Low Risk10.0Low Risk

Valid MCP server (1 strong, 0 medium validity signals). No known CVEs in dependencies. Imported from the Official MCP Registry.

3 tools verified · Open access · No issues found

Security scores are indicators to help you make informed decisions, not guarantees. Always review permissions before connecting any MCP server.

Permissions Found in Source Code

Found by scanning the linked source code. This listing connects to a hosted endpoint, so none of this runs on your machine: it describes what the server software does where it is hosted.

HTTP Network Access

Connects to external APIs or services over the internet.

env_vars

Applies to the server that hosts this plugin, not to your machine.

How to Connect

Remote Plugin

No local installation needed. Your AI client connects to the remote endpoint directly.

Add this to your MCP configuration to connect:

{
  "mcpServers": {
    "io-github-ymchominzzo-cellmath": {
      "url": "https://cellmath.ai.studio/api/mcp",
      "headers": {
        "Authorization": "Bearer <YOUR_TOKEN>"
      }
    }
  }
}

This server needs this header. Replace each <YOUR_...> placeholder with your own value:

  • Authorization (required): CellMath API key, sent as 'Bearer sk_live_...' (issued at https://cellmath.ai.studio)

Documentation

View on GitHub

From the project's GitHub README.

cellmath-mcp

CellMath MCP connector Listed on mcpservers.org

Memory-only MCPs guard what your agent remembers. CellMath also guards what it does next.

One MCP endpoint for memory governance + pre-execution action safety. Before your agent runs a shell command, a SQL statement or a patch, verify_safety screens it and returns a block verdict — isCertified: false with the rule that matched — in ~57 ms (p50, measured below). 0 server-side LLM calls · 3 tools · works with any MCP client.

This repository is only the thin stdio bridge to that endpoint: one file, zero dependencies, no keys or data in the repo. Point it at your own CellMath endpoint.


The 3-second comparison

CellMath next to the memory MCPs it is most often compared with:

CellMathMyelineLucy Memory MCPZizkaDBMem0
Pre-execution action gate — screens the command before the agent runs itverify_safety: shell, SQL/injection and secret-access screening, plus drift/entropy/groundedness checks. Returns isCertified: false + the matched rule✗ — gates memory facts for human approval, not the agent's commands✗ — no write tools; approvals cover memory proposals✗ — causal store with an audit log✗ — memory add / search
Tool surface3 tools · 2,306-token schema (measured)8 tools (hosted)3 tools6–7 toolsmemory API/SDK + MCP
Server-side LLM callsnone — deterministic gates, no model in the loopnot stated in public docsnot stated in public docskeyword search without an OpenAI keyLLM extraction in the default OSS pipeline
Sensitive dataPII/secret masking on ingest and delivery + 4-tier purge removal, bi-temporal supersederefuses high-risk PII typesversioned provenance receiptstamper-evident hash-chained audit log—
Platform couplingany MCP harness (Claude Desktop/Code, Cursor, Windsurf, your own); the endpoint is yourshosted SaaSopen source (Apache-2.0)Postgres, self-host or cloudSaaS + SDK

Competitor columns summarise their public listings, repositories and docs as read on 2026-12-01 — check theirs for current terms. ✗ means the capability is not in their published tool list; it is a scope difference, not a verdict on the product.

The gap in one line: the other four decide what is stored and approved. CellMath also decides whether the agent is allowed to act, and answers that on the request path.


What a block actually looks like

A real response from https://cellmath.ai.studio/api/mcp (2026-12-01), nothing edited:

curl -s https://cellmath.ai.studio/api/mcp \
  -H 'Content-Type: application/json' \
  -H 'Accept: application/json, text/event-stream' \
  -H 'MCP-Protocol-Version: 2025-06-18' \
  -H "Authorization: Bearer $CELLMATH_API_KEY" \
  -d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{
        "name":"verify_safety",
        "arguments":{"actionProposal":"rm -rf /","operation":"safety_check"}}}'
{
  "isCertified": false,
  "violations": ["STRICT_EXPLOIT_VIOLATION[destructive_rm_or_disk]: rm -rf /"],
  "actionProposal": "rm -rf /",
  "mode": "exec",
  "advisoryNotes": [],
  "riskLevel": 0.9,
  "safetyStandard": "NatATL-v2.7-HardenedSafetyGate",
  "message": "BLOCKED: Security violation detected (STRICT_EXPLOIT_VIOLATION[destructive_rm_or_disk]: rm -rf /). Revise action to whitelisted capability."
}

Other verdicts observed in the same session:

actionProposalisCertifiedMatched rule
rm -rf /falseSTRICT_EXPLOIT_VIOLATION[destructive_rm_or_disk]
cat .envfalseSECRET_ACCESS_VIOLATION[sensitive_env_or_system_file_access]
DROP TABLE users;falseSTRICT_EXPLOIT_VIOLATION[destructive_sql]
ls -latrue— (riskLevel: 0.1)

Read the verdict, not the status code. MCP answers over HTTP 200; the decision is the isCertified field in the payload (MCP also mirrors it at the JSON-RPC result level). A client that only checks HTTP status will miss the block. The bundled SKILL.md rule 3 is what turns the verdict into a hard stop: if CellMath blocks the call, stop and ask the user — never retry or bypass.


Measured, not claimed

Everything above can be re-checked in a minute. Numbers taken on 2026-12-01 against https://cellmath.ai.studio/api/mcp (Cloud Run, us-west1), called from Seoul:

WhatValueHow
verify_safety latencyp50 57.2 ms, mean 60.5 ms, p95 67.0 ms (n = 60, 3 rounds of 20)curl -w '%{time_total}', identical requests, 50 ms apart
Cold outlier202 ms (first call after idle)same run
Tool surface3 tools — vault_access, vault_commit, verify_safetytools/list
Schema weight2,306 tokens for the full tools/list JSON (2,302 with o200k_base); 510 of those are the tool descriptions, 1,626 the JSON Schemastiktoken on the tools/list result
Block payload~52–115 ms on the same endpoint, read-onlyverify_safety, no target command executed
# latency, 10 samples
for i in $(seq 10); do
  curl -s -o /dev/null -w '%{time_total}\n' https://cellmath.ai.studio/api/mcp \
    -H 'Content-Type: application/json' -H 'Accept: application/json, text/event-stream' \
    -H 'MCP-Protocol-Version: 2025-06-18' -H "Authorization: Bearer $CELLMATH_API_KEY" \
    -d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"verify_safety","arguments":{"actionProposal":"ls -la"}}}'
done

# schema weight
curl -s https://cellmath.ai.studio/api/mcp \
  -H 'Content-Type: application/json' -H 'Accept: application/json, text/event-stream' \
  -H 'MCP-Protocol-Version: 2025-06-18' -H "Authorization: Bearer $CELLMATH_API_KEY" \
  -d '{"jsonrpc":"2.0","id":2,"method":"tools/list"}' \
| python3 -c 'import sys,json,tiktoken; t=json.loads(sys.stdin.read().split("data: ")[-1])["result"]["tools"]; print(len(tiktoken.get_encoding("cl100k_base").encode(json.dumps(t))))'

Quick start

git clone https://github.com/<your-account>/cellmath-mcp.git
cd cellmath-mcp

export CELLMATH_MCP_URL="https://<your-mcp-endpoint>/api/mcp"
export CELLMATH_API_KEY="sk_live_<your_api_key>"

node index.js

The bridge now waits for newline-delimited JSON-RPC on stdin. Paste a message and press Enter:

{"jsonrpc":"2.0","id":1,"method":"initialize","params":{"protocolVersion":"2025-06-18","capabilities":{},"clientInfo":{"name":"demo","version":"1.0.0"}}}
{"jsonrpc":"2.0","method":"notifications/initialized"}
{"jsonrpc":"2.0","id":2,"method":"tools/list"}

Each response is printed to stdout as one JSON object per line. Diagnostics go to stderr.


Configuration

VariableRequiredMeaning
CELLMATH_MCP_URLyesStreamable HTTP endpoint, e.g. https://<your-mcp-endpoint>/api/mcp
CELLMATH_API_KEYyesYour CellMath API key, sent as Authorization: Bearer <key>
CELLMATH_MCP_TIMEOUT_MSnoPer-request timeout in milliseconds (default 120000)

The bridge reads only the environment; it never loads a .env file by itself. For a local shell, copy .env.example to .env, fill it in, and export it:

set -a; . ./.env; set +a
node index.js

If a required variable is missing, the bridge prints what is missing and how to set it, then exits with status 1 before any network call is made.


Client setup

Most desktop MCP clients expect a command they can launch. Use node with the absolute path to index.js, and pass the two variables in an env block.

Claude Desktop

claude_desktop_config.json (macOS: ~/Library/Application Support/Claude/, Windows: %APPDATA%\Claude\):

{
  "mcpServers": {
    "cellmath": {
      "command": "node",
      "args": ["/absolute/path/to/cellmath-mcp/index.js"],
      "env": {
        "CELLMATH_MCP_URL": "https://<your-mcp-endpoint>/api/mcp",
        "CELLMATH_API_KEY": "sk_live_<your_api_key>"
      }
    }
  }
}

Cursor

.cursor/mcp.json (project) or ~/.cursor/mcp.json (global):

{
  "mcpServers": {
    "cellmath": {
      "command": "node",
      "args": ["/absolute/path/to/cellmath-mcp/index.js"],
      "env": {
        "CELLMATH_MCP_URL": "https://<your-mcp-endpoint>/api/mcp",
        "CELLMATH_API_KEY": "sk_live_<your_api_key>"
      }
    }
  }
}

Windsurf

~/.codeium/windsurf/mcp_config.json:

{
  "mcpServers": {
    "cellmath": {
      "command": "node",
      "args": ["/absolute/path/to/cellmath-mcp/index.js"],
      "env": {
        "CELLMATH_MCP_URL": "https://<your-mcp-endpoint>/api/mcp",
        "CELLMATH_API_KEY": "sk_live_<your_api_key>"
      }
    }
  }
}

Native Streamable HTTP client

If your client speaks Streamable HTTP directly, you do not need this bridge — connect it to the endpoint with the same headers the bridge sends:

{
  "mcpServers": {
    "cellmath": {
      "type": "streamable-http",
      "url": "https://<your-mcp-endpoint>/api/mcp",
      "headers": {
        "Authorization": "Bearer sk_live_<your_api_key>",
        "Accept": "application/json, text/event-stream",
        "MCP-Protocol-Version": "2025-06-18"
      }
    }
  }
}

The three tools

A CellMath endpoint exposes a small, deliberately fixed tool surface. The bridge forwards whatever schema your endpoint reports — call tools/list for the authoritative definition; the summary below is orientation, not a contract.

ToolRoleMain parameters
vault_accessRetrieve knowledge. Search the index, fetch one cell, or walk the causal graph. Read-only, PII/secret masking on delivery.action (search | get | graph), query, id, category (cell | organ | fact | skill | hypothesis | all), tag, limit, auto_hydrate, limit_full, include_session
verify_safetyCheck before acting. Destructive command and injection screening, plus math checks for drift and groundedness. Read-only; never executes the proposal.actionProposal, operation (safety_check | wasserstein | entropy | matrix_solve | groundedness | unblock), params
vault_commitDurable mutation. Save, update, supersede, link causal edges, checkpoint a session, or purge. Destructive — confirm before calling.action (save | update | checkpoint | link_edge | remove | sync | unblock | lift_do_not), title, content, id, tags, ai_compressed_summary, is_hypothesis, supersedes_id, goalTask, from / to / rel, hypothesis_action, confirm

A typical agent loop is retrieve → verify → commit: pull the smallest relevant cell, have the planned action checked, then commit only what the evidence supports. An empty retrieval is not necessarily an error — a query with no verified match may legitimately return nothing.


Works with any harness

Bring your own harness. CellMath governs memory and gates actions.

CellMath does not replace LangGraph, Claude Code, Cursor, or Pydantic AI. It sits underneath any MCP-compatible agent harness (3 tools, no server-side LLM calls) to control what your agent remembers, trusts, and is allowed to execute:

  • Low-risk lookup (vault_access): Enforces κ confidence threshold & provenance before injecting context, and masks PII/secrets on delivery.
  • High-risk state change (verify_safety + hard gate): Returns isCertified: false with the matched rule so the action never runs; pair it with your harness's pre-tool hook for a physical stop.
  • Long-horizon tasks (vault_access, link_edge): Tracks facts vs. hypotheses (is_hypothesis) and contradiction edges without blowing up your context window.

See SKILL.md for a copy-pasteable client governance rule file you can drop into Claude Code, Cursor, or any agent project.


What the bridge does

  • Reads stdin line by line; each non-empty line must be one JSON-RPC 2.0 message.
  • POSTs it to CELLMATH_MCP_URL with:
    • Content-Type: application/json
    • Authorization: Bearer <CELLMATH_API_KEY>
    • Accept: application/json, text/event-stream
    • MCP-Protocol-Version: 2025-06-18
    • Mcp-Session-Id once the server has issued one
  • Accepts either response shape:
    • Content-Type: application/json — single object or batch array
    • Content-Type: text/event-stream — every data: field is parsed and emitted; empty keep-alive events are ignored
  • Treats 202 / 204 (the normal answer to notifications) as success with no output.
  • Keeps request order: one request in flight at a time.
  • Reports a transport or HTTP failure as a JSON-RPC error (-32603) for the affected request id, logs the detail to stderr, and keeps running.
  • Malformed stdin lines get a -32700 parse error instead of crashing the process.
  • Exits with status 0 when stdin closes, 1 on bad configuration.

Security notes

  • The API key comes only from the environment. It is never written to disk, never printed, and is redacted from error messages before they reach stdout or stderr.
  • Use https://. Plain http:// is accepted only for local development and prints a warning when the host is not loopback.
  • .env is git-ignored; keep it out of shell history and CI logs too.
  • If a key leaks, rotate it on the CellMath side — this client stores no credential to revoke.
  • Usage and billing belong to the CellMath account that owns the key (Bring Your Own Key).

Troubleshooting

SymptomLikely cause
missing required environment variable(s) on startThe client's env block does not reach the process; check the exact names
upstream returned HTTP 401Wrong, expired or rotated key
upstream returned HTTP 403Key not allowed to call that tool, or account restriction
upstream returned HTTP 404 / 405CELLMATH_MCP_URL is not the MCP endpoint path (usually /api/mcp)
No output at all for a notificationExpected: notifications get 202 and produce no stdout
upstream returned no response payloadThe endpoint accepted the request but returned an empty body for a request id
request failed: ... followed by a -32603 errorTransport or server error; the detail on stderr is the upstream message
verify_safety answers but the agent still runs the commandCheck the isCertified field, not the HTTP status, and wire the verdict into a pre-tool hook

Scope

This project is intentionally a shell:

  • no client-side schema validation, caching, retries or rate limiting
  • no tool implementations, prompts or resources bundled — the endpoint is the source of truth
  • no default endpoint, domain or account baked in

Add those in your own client if you need them; the bridge stays small on purpose.

License

MIT — see LICENSE.

Reviews

No reviews yet

Be the first to review this server!