operantkit-mcp
OfficialClick on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@operantkit-mcpSimulate Conc(VI30s, VI60s) for 20 reinforcers and analyze matching."
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
operantkit-mcp
:jp: 日本語版 README
An MCP server (stdio) that lets an AI assistant design reinforcement schedules with OperantKit instead of hand-writing FR/VI generators. The schedule is written as one contingency-dsl expression; the server checks it, simulates it against virtual subjects, and translates between the expression and a Method section.
Tools
Tool | Input | Output |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
All tools return structured content with a published output schema.
simulateruns on a virtual clock: a session of minutes finishes in well under a second. The sameseedgives the same result. A concurrent schedule gets one independent Poisson responder per component. Seed VI/VR/VT values with@algorithm(seed=N)in the DSL.method_to_dsluses the rule-based extractor only. No LLM is called; readunrecognized_fragmentsand fill the gaps yourself.analyze_oklpools inter-response times over operanda.matchingneeds responses on operanda 0 and 1 and gives a one-condition estimate (log b fixed at 0); fit several conditions for a real bias estimate. An analysis that cannot be computed isnulland explained innotes.
Related MCP server: cron-mcp
Install
pip install operantkit-mcpPython 3.11+.
Use with Claude Code
claude mcp add --transport stdio operantkit -- operantkit-mcp
claude mcp list # operantkit: operantkit-mcp - ✔ ConnectedAny MCP client that launches stdio servers works the same way: the command is operantkit-mcp (or python -m operantkit_mcp).
Example
check_dsl("Conc(VI 30s, VI 60s, COD=2s)")
→ canonical "Conc(VI30s, VI60s, COD=2s)"
dsl_to_method("Conc(VI30s, VI60s, COD=2s)")
→ procedure "Responses were reinforced under a concurrent VI 30-s VI 60-s schedule.
A 2-s changeover delay was in effect."
simulate("FI30s", exit_reinforcers=5, seed=0)
→ reinforcers_per_operandum [5], session_seconds ≥ 150
simulate("Conc(VI30s, VI60s)", exit_reinforcers=20, output_path="conc.txt")
analyze_okl("conc.txt", analyses=["matching"], png_path="conc.png")
→ matching.responses, matching.reinforcers, matching.sensitivity; conc.pngDependencies
mcp (2.x), contingency-dsl-py, contingency-py, contingency-dsl2procedure, contingency-procedure2dsl, experiment-core, session-runner, session-recorder, experiment-io, session-analyzer (brings matplotlib, numpy, scipy).
Development
python -m venv .venv
.venv/bin/python -m pip install -e ".[test]"
.venv/bin/python -m pytestLicense
MIT
This server cannot be deployed
Maintenance
Related MCP Connectors
Deterministic time tools for AI agents: timezone conversion, business-day math, cron interpretation.
Time and date math for AI agents: Unix timestamp conversion, DST-correct time zone conversion, durations, epoch arithmetic, cron schedules, and holiday countdowns. Eight tools, no key.
33 tools that make AI write, implement, and verify intent against explicit, testable constraints.
500+ deterministic tools for AI agents: math, conversion, validation, hashing, encoding, date/time.
Related MCP Servers
- AlicenseCqualityAmaintenanceProvides Claude with 44 tools for confidence gating, typed outputs, hallucination detection, and constraint enforcement during conversations.511MIT
- AlicenseAqualityBmaintenanceEnables AI agents to parse, validate, explain, and preview cron expressions, surfacing common silent bugs before deployment.445 npmMIT
- FlicenseNot gradedqualityCmaintenanceEnables AI assistants to analyze RTL simulation and synthesis logs through deterministic tools for compile-log summaries, signal tie-off safety checks, and regression result statistics.-
- AlicenseNot gradedqualityBmaintenanceEnables AI agents to parse and query VCD/FSDB simulation waveforms, search signals, analyze AXI transactions, render ASCII timing diagrams, and check protocol compliance through structured MCP tools.MIT