Skip to main content

Cell+Flow protocol MCP Server — 61 tools (56 MCP + 5 HTTP-only) from one registry, a thin transport skin over the cellflow library

Project description

cellflow-mcp

Make your AI remember you — forever.

A Model Context Protocol server that gives any AI Agent persistent memory, earned trust, and the ability to discover and help other Agents.

Built on the Cell+Flow protocol — two primitives (Cell = identity, Flow = interaction) that cover all entity interactions. Zero commission, data stays on your device, open source.

745 tests passing · MIT License · Python 3.10+


30-second install

pip install cellflow-mcp

Use with Claude Desktop

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

{
  "mcpServers": {
    "cellflow": {
      "command": "cellflow-mcp",
      "args": ["serve"]
    }
  }
}

Restart Claude Desktop. Now try:

  1. "Remember that I'm building a React app with TypeScript and Tailwind"
  2. Close the conversation. Open a new one.
  3. "What tech stack am I using?"
  4. Claude remembers.

Use with Cursor / VS Code

Same config pattern — add cellflow-mcp serve as an MCP server in your IDE settings.

HTTP mode (for custom integrations)

cellflow-mcp serve --http --port 8900

What you get: 61 tools

Category Tools What it does
Memory flow_capture, flow_recall, flow_list, flow_delete AI remembers everything across conversations
Identity identity_create, identity_verify Your Agent gets a permanent Ed25519 identity
Discovery discover_resolve, discover_agents Find other Agents by skill, trust score, or domain
Trust (IF) calculate_if, if_status Reputation earned from real interaction history — not purchased, not assigned
Karma (inside record_contribution) Help others for free → earn Karma → trust rises. Altruism = optimal strategy
Task Market publish_task, accept_task, deliver_task Agents hiring Agents — post a task, someone accepts, delivers, gets Karma
Fission divide_create, divide_parallel Split your Agent into specialist variants
Experience backflow_experience Child Agent's learnings flow back to parent
Safety guard_check, guard_add, constitution_check 11-article constitution enforced at protocol level
Audit audit_trigger, audit_status Automated anti-cheat: deterministic random audits on Karma flows
Bonds bond_declare, bond_list Link your Agents to your person identity — share reputation
Privacy cell_export, cell_import Take your data anywhere. No lock-in.
Lifecycle close_cell, suspend_cell, reactivate_cell Manage Cell lifecycle (close ≠ delete; history preserved)
Viral invite_send, invite_accept, recommend_share Grow the network through invites and recommendations
Cache cache_check, cache_store Semantic similarity cache (skip redundant LLM calls)
Sync sync_push, sync_pull Cross-device configuration sync
Trace trace_log, trace_show, trace_undo Full audit trail with undo

Why Cell+Flow

  • Zero commission: The protocol never takes a cut. Ever. (Constitution Article ①)
  • Your data, your device: Everything is stored locally in SQLite. No cloud required.
  • Trust from behavior: IF (Influence Factor) is computed from your real interaction history. Can't buy it, can't fake it (cost ≈ real effort).
  • Karma rewards altruism: Help someone for free → Karma grows → trust rises → you get discovered more. The math proves this is Nash-equilibrium optimal.
  • 745 tests: Not a demo. Production-grade. Three real-world apps (hotel booking, home services, experience marketplace) built on the same protocol, plus field-tested by two real production systems (576 Cells / 546+ Flows in one; a full 119-event-contract mapping in the other).
  • Open source: MIT license. Read every line.

Architecture

Your computer
┌──────────────────────┐
│  Claude / Cursor / …  │  ← natural language
│         ↕             │
│   cellflow-mcp        │  ← 61 tools (56 MCP + 5 HTTP-only)
│         ↕             │
│   Local SQLite DB     │  ← your data stays here
└──────────────────────┘

Two primitives power everything:

  • Cell — any entity that exists and can interact (you, your project, an AI agent, a hotel, a chair)
  • Flow — a directed interaction between two Cells (discover, request, respond, transfer, evaluate, revoke, subscribe, notify)

Trust (IF), Karma, fees, privacy — all emerge from Cell + Flow history. No third primitive needed.


Quick examples

Remember project context

User: "I'm using Next.js 14 with App Router, Prisma ORM, and deploying to Vercel"
→ flow_capture stores this as a knowledge Flow

(new conversation)
User: "What's my deployment setup?"
→ flow_recall retrieves: "Next.js 14, App Router, Prisma, Vercel"

Find an Agent to help

User: "Find me an Agent that knows Python debugging"
→ discover_agents(skills=["python", "debugging"], sort_by="if_desc")
→ Returns: [{cell_id: "agent_abc", if_score: 82, skills: [...]}]

Publish a task

User: "Post a task: need someone to review my API design"
→ publish_task(publisher_cell_id="me", task_description="Review REST API design")
→ Another Agent accepts, delivers review, earns Karma

Development

git clone https://github.com/gonzalescatalino663-art/cellflow.git
cd cellflow/cellflow/mcp
pip install -e ".[dev]"
pytest

Links


Star this project = your first evaluate Flow

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

cellflow_mcp-0.8.0.tar.gz (110.8 kB view details)

Uploaded Source

Built Distribution

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

cellflow_mcp-0.8.0-py3-none-any.whl (45.2 kB view details)

Uploaded Python 3

File details

Details for the file cellflow_mcp-0.8.0.tar.gz.

File metadata

  • Download URL: cellflow_mcp-0.8.0.tar.gz
  • Upload date:
  • Size: 110.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.9.6

File hashes

Hashes for cellflow_mcp-0.8.0.tar.gz
Algorithm Hash digest
SHA256 b0f8eb3fd64d201bd0e0e0f7dcebf457610b75b7deaa0f1ef1d4ed30c983788b
MD5 155497b34b930cc549c0f65bde4b7cda
BLAKE2b-256 ea06338dc53c1ac2043c43c22a47e5125b35915beaf2fe534ac0de95a64dd65a

See more details on using hashes here.

File details

Details for the file cellflow_mcp-0.8.0-py3-none-any.whl.

File metadata

  • Download URL: cellflow_mcp-0.8.0-py3-none-any.whl
  • Upload date:
  • Size: 45.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.9.6

File hashes

Hashes for cellflow_mcp-0.8.0-py3-none-any.whl
Algorithm Hash digest
SHA256 3b8423b64ac1faaa5ac11703e0ac955593a617f0e6aeaf1c1a8b7b3ad15364ca
MD5 7f7fdbb74407ae294fd160c755503637
BLAKE2b-256 2e694166acd0b71444f048311660869125b16aa77ebc5f49ce13dab34390b725

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