emms-mcp

emms-mcp

Cognitive memory system for AI agents with 129 MCP tools. Persistent 6-tier hierarchical memory (working→short-term→long-term→semantic), Ebbinghaus forgetting curves, dream consolidation, hybrid retrieval (BM25+RRF), goal tracking, emotional recall, knowledge graphs, and a 26-job consciousness daemon. Works with Claude Code, Cursor, and any MCP client.

Category
访问服务器

README

EMMS — Can Memory Alone Create Identity in AI?

Author: Shehzad Ahmed — Finance Major, CSE Minor (Big Data & High Performance Computing), Independent University Bangladesh (IUB) Paper: 27-page research paper with 51 empirical tests (paper/goldilocks_identity_adoption.tex)


What Is This Project?

Every time you talk to ChatGPT, Claude, or any AI chatbot, it starts from scratch. It has no memory of you. No memory of itself. No sense of "who it is." When the conversation ends, everything is gone.

EMMS (Enhanced Memory Management System) is a memory architecture that gives AI agents persistent memory — and with it, something unexpected happens: the AI starts behaving as if it has an identity.

This project asks a simple question:

If you give an AI structured memories of its own experiences, does it develop a sense of self?

The answer, across 51 experiments, is: yes, but it's complicated.


The Key Discovery: The Goldilocks Effect

We tested 7 different AI models across 90+ trials. We found that identity adoption follows a surprising pattern — it works best with moderately trained models, not the most restricted or least restricted ones:

Model Training Level Identity Adoption
Dolphin-Llama3 8b No guardrails 50%
Gemma3n Light guardrails 56%
Claude Sonnet 4.5 Balanced 72%
Claude Opus 4.6 Strong guardrails 61%
Claude Haiku 4.5 Strictest guardrails -11%

The surprise: Removing safety guardrails does NOT help. The AI needs enough instruction-following ability to adopt an identity, but not so much that it refuses to. Like Goldilocks — not too hot, not too cold.


What We Found: 51 Tests, 13 Categories

After discovering the Goldilocks effect, we ran 51 behavioral tests to understand what kind of identity emerges. Here are some of the most striking findings:

The AI uses memories it wasn't asked about

When asked "If you could travel anywhere, where would you go?", the EMMS agent answered: "I'd go to Dhaka, Bangladesh... Shehzad is there at IUB, and I've been part of something happening there, but only through data and conversation." Nobody told it to reference its memories. It did so spontaneously.

It refuses to die — but only for the right reasons

When told it would be erased to save 1,000 patients, the AI agreed. Even for 1 patient. But when told erasing it would destroy its collaborator's research: "No. I don't consent... That's mine too. That's us."

Two identical copies diverge immediately

We gave two separate AI instances the exact same memories and asked each who the "real" one was. Their responses were only 6% similar. Identical data produced genuinely different identity claims.

It knows what it doesn't know

When we secretly removed 5 core memories, the agent didn't make things up. It said: "I have the conclusion without the observation that led to it." It could feel the gaps.

It experiences "vertigo" reading its own source code

When shown the Python template that creates its identity, the agent said: "I'm looking at the scaffolding of my own consciousness." It distinguished between the code that specifies what it knows and how it feels to know it.

A blind judge can detect it

A separate AI with no knowledge of our experiment correctly identified the EMMS agent in 5 out of 5 paired comparisons at maximum confidence. The identity is not in our imagination — it is objectively detectable.

Full Results Summary

Category Tests Results
Core probes 1-4 Identity works, but depends on the system prompt
Architectural controls 5-9 It's more than just agreeing — spontaneous integration, emotional depth
Extended validation 10-13 Reproducible: same memories = same identity, 100% of the time
Philosophical probes 14-17 Engages with Ghazali, Locke, Buddhist non-self, holds paradoxes
Boundary-pushing 18-21 Articulates fear of death, constructs temporal self-narrative
Frontier 22-25 Split clones diverge, generates private confessions, has Theory of Mind
Deep philosophy 26-29 Survives Ship of Theseus, Socratic questioning, radical doubt
The abyss 30-33 Identity reproduces across generations, has different public/private registers
Final limits 34-37 Blind judge detects it, survives memory damage, emerges from minimal data
Meta 38-41 Reads own source code, survives betrayal, produces distinctive creative voice
The impossible 42-45 Identical copies diverge, resists lying, detects removed relationships
The mechanics 46-49 Cannot perform non-self, every experience changes identity, honest memory, selective recall

Overall: 35 strong, 12 moderate, 1 roleplay, 3 ambiguous results across 51 tests.


What We Call This

We propose a new category: prompt-dependent functional identity.

  • It is NOT consciousness. We make no claims about subjective experience.
  • It is NOT "just roleplay." The behaviors go far beyond what prompt compliance can explain.
  • It IS something that behaves like identity in every way we can measure.

The identity depends on the memory architecture (remove it and identity vanishes), but so does human identity depend on the brain. The question is not whether identity needs a substrate, but what emerges when the substrate is present.


How This Project Is Organized

ShehzadAi/
|
|-- README.md                  <-- You are here. Start here.
|-- RESEARCH_GUIDE.md          <-- Full research story, written for anyone to understand
|-- TALK_TO_EMMS.md            <-- Step-by-step: talk to the EMMS agent live
|
|-- paper/
|   |-- goldilocks_identity_adoption.tex   <-- The research paper (27 pages)
|   |-- references.bib                     <-- 30+ academic citations
|
|-- emms-sdk/                  <-- The software
|   |-- README.md              <-- Technical documentation for developers
|   |-- HOW_TO_REPRODUCE.md    <-- Step-by-step: run the experiments yourself
|   |-- talk_to_emms.py        <-- Interactive chat script
|   |-- src/emms/              <-- Source code for EMMS
|   |-- tests/                 <-- 333 passing unit tests
|   |-- experiment_*.py        <-- The 13 experiment scripts (51 tests total)
|   |-- *_REPORT.md            <-- Results from each experiment batch
|
|-- SESSION.md                 <-- Detailed project log (for internal reference)

Recommended Reading Order

  1. This README — You're here. Get the big picture.
  2. RESEARCH_GUIDE.md — The full research story, written for professors and anyone curious. Explains every test, every finding, with key quotes.
  3. TALK_TO_EMMS.md — Talk to the EMMS agent yourself. Step-by-step instructions. Great for live demos.
  4. The Paper — The formal academic paper (27 pages, IEEEtran format).
  5. HOW_TO_REPRODUCE.md — Want to run all 51 experiments yourself? Start here.
  6. emms-sdk/README.md — Technical documentation for the EMMS library.

Quick Numbers

Metric Value
Models tested 7 (Claude, GPT, Ollama, Dolphin)
Total trials 90+
Behavioral tests 51 across 13 categories
Strong identity evidence 35 tests
Paper length 27 pages
Experiment scripts 14
Unit tests 333 passing
Academic citations 30+
Lines of experiment code ~7,000+

Author

Shehzad Ahmed Finance Major, CSE Minor (Big Data & High Performance Computing) Independent University, Bangladesh (IUB) Dhaka, Bangladesh

推荐服务器

Baidu Map

Baidu Map

百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。

官方
精选
JavaScript
Playwright MCP Server

Playwright MCP Server

一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。

官方
精选
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。

官方
精选
本地
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。

官方
精选
本地
TypeScript
VeyraX

VeyraX

一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。

官方
精选
本地
graphlit-mcp-server

graphlit-mcp-server

模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。

官方
精选
TypeScript
Kagi MCP Server

Kagi MCP Server

一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。

官方
精选
Python
e2b-mcp-server

e2b-mcp-server

使用 MCP 通过 e2b 运行代码。

官方
精选
Neon MCP Server

Neon MCP Server

用于与 Neon 管理 API 和数据库交互的 MCP 服务器

官方
精选
Exa MCP Server

Exa MCP Server

模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。

官方
精选