Empirica MCP Server
AI measurement and calibration tools via Model Context Protocol.
Exposes Empirica's tool surface to Claude Desktop, IDEs, and any MCP-compatible environment (Cursor, Gemini CLI, Codex, etc.). Track what AI knows, gate what it does, and compound learning across sessions — without needing Claude Code or Bash access.
Tool surface (70 tools as of 1.11.2) covers session lifecycle, the epistemic transaction loop, artifact logging, goals, project search, calibration, lessons, sync, entity registry, and (added 2026-06-03) the mesh primitives:
practice_context(Ambassador addressbook),commit_context(temporal trail),listener_on/arm/off(listener facade),loop_*(adaptive scheduler),notify_emit(multi-backend dispatcher),mailbox_reply(atomic propose+complete),mesh_status(mesh health). Runempirica mcp-list-toolsto see the live registry against your installed package.
Installation
pip install empirica-mcp
Note: The MCP server requires the full Empirica package for stateful operations:
pip install empirica # Recommended - includes empirica-mcp
Verify Installation
empirica --version # CLI
empirica-mcp --help # MCP server
Quick Start
1. Standard Mode
empirica-mcp
Works as a standard MCP tool provider. No epistemic layer.
2. Epistemic Mode
export EMPIRICA_EPISTEMIC_MODE=true
empirica-mcp
Every tool call now includes epistemic self-awareness - the server maintains vector state and routes behavior based on confidence/uncertainty.
3. Personality Profiles
# Cautious (investigates early)
export EMPIRICA_PERSONALITY=cautious_researcher
# Pragmatic (action-oriented)
export EMPIRICA_PERSONALITY=pragmatic_implementer
# Balanced (default)
export EMPIRICA_PERSONALITY=balanced_architect
# Adaptive (learns over time)
export EMPIRICA_PERSONALITY=adaptive_learner
Claude Desktop Configuration
Standard Mode
{
"mcpServers": {
"empirica": {
"command": "empirica-mcp"
}
}
}
Epistemic Mode
{
"mcpServers": {
"empirica-epistemic": {
"command": "bash",
"args": [
"-c",
"EMPIRICA_EPISTEMIC_MODE=true EMPIRICA_PERSONALITY=balanced_architect empirica-mcp"
]
}
}
}
After editing config, restart Claude Desktop completely.
Available Tools
The MCP server exposes 100+ Empirica CLI commands as MCP tools:
Session Management:
session_create- Create new sessionsession_list- List sessionssession_show- Show session details
CASCADE Workflow:
preflight_submit- Submit PREFLIGHT assessmentcheck_submit- Execute CHECK gatepostflight_submit- Submit POSTFLIGHT assessment
Goals & Findings:
goals_create- Create goalsgoals_list- List goalsfinding_log- Log findingsunknown_log- Log unknowns
And many more...
Epistemic Responses
Standard Response
{
"ok": true,
"session_id": "abc123",
"message": "Session created"
}
Epistemic Response
{
"ok": true,
"session_id": "abc123",
"message": "Session created",
"epistemic_state": {
"vectors": {
"know": 0.60,
"uncertainty": 0.40,
"context": 0.70,
"clarity": 0.85
},
"routing": {
"mode": "confident_implementation",
"confidence": 0.85,
"reasoning": "Know=0.60 >= 0.6, Uncertainty=0.40 < 0.5"
}
}
}
Behavioral Modes
| Mode | Trigger | Behavior |
|---|---|---|
| clarify | clarity < 0.6 | Ask questions before proceeding |
| load_context | context < 0.5 | Load project data first |
| investigate | uncertainty > 0.6 | Systematic research |
| confident_implementation | know >= 0.7, uncertainty < 0.4 | Direct action |
| cautious_implementation | Moderate vectors | Careful, incremental steps |
Troubleshooting
"empirica CLI not found"
# Check if empirica is in PATH
which empirica
# If not, install full package
pip install empirica
"Module not found: empirica"
# Install full package (not just MCP server)
pip install empirica
Claude Desktop not connecting
- Verify JSON syntax (no trailing commas)
- Quit Claude Desktop completely
- Restart Claude Desktop
- Check logs for errors
Docker
docker pull nubaeon/empirica:1.6.6
docker run -p 3000:3000 nubaeon/empirica:1.6.6 empirica-mcp
Requirements
- Python 3.11+
- empirica >= 1.5.0
- mcp >= 1.0.0
Documentation
License
MIT License - See Empirica repository for details.
Release files for empirica-mcp 1.14.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| empirica_mcp-1.14.1.tar.gz | 29.2 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| empirica_mcp-1.14.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 48.7 kB
Release files / empirica_mcp-1.14.1.tar.gz
| Download URL | empirica_mcp-1.14.1.tar.gz |
|---|---|
| Size | 29.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
9d501b76eb13c67881879b0214ebf783610787054821fde3622769d29d2ad2d2
|
|
BLAKE2b-256 checksum How to use checksums |
d6a037ebf839457a540596812c75842d8cff539d40f766bb27fa0482a0c790a4
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Sep 24, 2026.
Transparency logRelease files / empirica_mcp-1.14.1-py3-none-any.whl
| Download URL | empirica_mcp-1.14.1-py3-none-any.whl |
|---|---|
| Size | 19.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
137712f10a41edf7a312f76ad9d629d7c97b319cb218892b67a31a80eedd92e4
|
|
BLAKE2b-256 checksum How to use checksums |
7f1120052c99421e360c683aae8a48945ced25075d24f401753576ccbc4bcc72
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Sep 24, 2026.
Transparency log