MCP server for Empirica — AI measurement and calibration tools via Model Context Protocol
Project description
Empirica MCP Server
AI measurement and calibration tools via Model Context Protocol.
Exposes Empirica's 44 tools to Claude Desktop, IDEs, and any MCP-compatible environment. Track what AI knows, gate what it does, and compound learning across sessions — without needing Claude Code or Bash access.
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.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file empirica_mcp-1.7.13.tar.gz.
File metadata
- Download URL: empirica_mcp-1.7.13.tar.gz
- Upload date:
- Size: 11.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c88a1f407cdedd58bfbab1057bed78fb0c6874548feda6592602a6e7b3d88772
|
|
| MD5 |
3989e5657578db48a307786aff039fd6
|
|
| BLAKE2b-256 |
5d133c997a1a6ac524744c36ae29073b4e93bfae1fa29b4b8248982c480b8c29
|
File details
Details for the file empirica_mcp-1.7.13-py3-none-any.whl.
File metadata
- Download URL: empirica_mcp-1.7.13-py3-none-any.whl
- Upload date:
- Size: 10.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
97e443a9038fabdfa93c379de37f910676101bb8627dc663e8456f2fe2f5a71a
|
|
| MD5 |
6aa6c136715db67dde565c332a40aceb
|
|
| BLAKE2b-256 |
6c87d10614b8888d7118fa0c282a4200c464b156632392a793702c5493f773a6
|