SuperAPI AI Directory

ejentum-mcp

MCP server with reasoning, code, anti-deception, and memory tools for AI agents.

Open website

About this tool

Ejentum MCP is an MCP server for the Ejentum API, with the goal of improving LLM reasoning performance on complex, multi-step, or multi-constraint tasks. Before the agent generates content, it calls one of eight tools to retrieve a "cognitive operation": a structured procedure (numbered steps, indicating failure modes to reject, and accompanied by falsifiability tests), combined with an executable reasoning topology (a DAG composed of these steps, including decision gates, parallel branches, bounded loops, metacognitive exits, and escape paths). The agent must read both layers before generating a response.

Main capabilities The eight tools are divided into two retrieval modes:

  1. Dynamic mode (4 tools: reasoning, code, anti-deception, memory): selects a top-1 operation from a library of 679 abstract operations by semantic matching against the query string; available in all plans (including the 30-day free trial).
  2. Adaptive mode (4 tools: adaptive-reasoning, adaptive-code, adaptive-anti-deception, adaptive-memory): uses the same retrieval pool, but an adapter LLM rewrites each step and DAG node of the matched operation with task-specific identifiers (for example, rewriting extract_duration_estimates as extract_migration_duration_estimates(DDL_time|backfill_time|trigger_overhead|lock_hold_time)). This adds about 2-3 seconds of latency and requires the Go or Super plan.

How to use Both installation paths share the same EJENTUM_API_KEY:

  • stdio: use via npx -y ejentum-mcp, suitable for Claude Desktop, Cursor, Windsurf, Codex CLI, Claude Code, Cline, Continue, and any client that starts an MCP server as a subprocess.
  • Hosted Streamable HTTP: the address is https://api.ejentum.com/mcp,适用于 n8n MCP Client and any HTTP-MCP client. It is necessary to send Authorization: Bearer YOUR_EJENTUM_API_KEY. An Ejentum API key is required. A 30-day free trial is available at ejentum.com/pricing (no credit card required).

Installation Install from npm, or reference it directly in the client configuration with npx -y ejentum-mcp without installing. Claude Desktop: open claude_desktop_config.json (macOS path: ~/Library/Application Support/Claude/claude_desktop_config.json; Windows path: %APPDATA%\Claude\claude_desktop_config.json), then restart Claude Desktop, and the eight tools will appear in the tool selector. Cursor: open MCP settings → Add new MCP server → paste the same ejentum configuration block. n8n: add an MCP Client node, set transport to stdio, set command to npx, set args to ["-y", "ejentum-mcp"], and set env to { "EJENTUM_API_KEY": "ej_..." }. Both the stdio MCP server and the hosted endpoint proxy to the same upstream.

Response format The response is an array of length 1, with only one key matching the request mode. For hyphenated keys, bracket access should be used (result[0]["anti-deception"]), because dot access parses the hyphen as subtraction. The injected string is plain text and contains seven fields. Each tool accepts only one parameter, query (a string, 1-2 sentences describing the task), and returns that injected string. Each retrieval record contains seven labeled blocks and one cognitive payload; the specific set of labels varies by mode. The fields appear in a fixed order in each response, and each mode uses its own labels for the same slot (for example, [PROCEDURE] in reasoning corresponds to [ENGINEERING PROC in codeEDURE]). The same pattern maintains the same six-slot order in dynamic and adaptive variants; in the adaptive response, the adapter LLM rewrites slots 1 and 2 (procedure and topology), while slots 3-6 are returned unchanged. The topology block uses a flat string notation. The DAG is meant to be read by the LLM as a structured outline for a reasoning path, not executed by the host runtime. The labeled step structure remains retrieval-salient even in long context windows.

Canonical example: dynamic vs. adaptive under the same query Query: Evaluate whether a database migration plan that adds a NOT NULL column to a 50M-row table is safe under concurrent writes, given that the backfill strategy uses a trigger-based default. In both calls, the selector matched the same operation ("realistic duration estimation" paired with a Hofstadter buffer). The [NEGATIVE GATE], [TARGET PATTERN], [FALSIFICATION TEST], and [COGNITIVE PAYLOAD] fields are identical in both responses (the adapter does not rewrite them). The [PROCEDURE] and [REASONING TOPOLOGY] fields differ: the adaptive response replaces abstract identifiers with task-specific identifiers. The dynamic response returns the matched abstract operation; the adaptive response returns the same operation, but the PROCEDURE and topology nodes are rewritten according to the caller's task (DDL execution time, lock_blocking_app_queries, trigger-based backfill on a table this size), while preserving the operation's structural identity, safety language, and cognitive payload.

Applicable scenarios and limitations Suitable for complex tasks that require structured reasoning, such as multi-step, multi-constraint planning and decision-making. At the static level, the MCP wrapper is stateless: no local logs, no telemetry, no third-party calls. The upstream API bills requests by key; the request body (query string) is used only for retrieval and is not retained after the response. Local development: can target the live API for smoke testing, and use MCP Inspector for interactive testing; the npm global install command is npm install -g ejentum-mcp. For more information, see the Ejentum documentation, n8n integration, and Claude Code integration; contact email info@ejentum.com. The license is MIT, see LICENSE for details.