MCP Hub
Back to servers

Cortex MCP — Multi-Level Reasoning Server

Multi-level reasoning MCP server with configurable depth levels

Registry
Updated
Feb 12, 2026

Quick Install

npx -y @j0hanz/cortex-mcp

Cortex MCP

npm version Release workflow Node.js >=24 TypeScript 5.9+ MCP SDK 1.26+ License MIT

Install in VS Code Install in VS Code Insiders

Install in Cursor

Multi-level reasoning MCP server with configurable depth levels.

Cortex MCP exposes a single reasoning.think tool over stdio, providing structured, multi-step reasoning with session continuity, resource views, and optional task execution for long-running runs.

Key Features

  • Multi-level reasoning (basic, normal, high) with configurable thought counts and token budgets.
  • Optional task execution with progress notifications for long-running requests.
  • Resource endpoints for session lists, session detail, and markdown traces.
  • Prompt helpers for building correct tool calls.

Requirements

  • Node.js >= 24
  • An MCP client that supports stdio servers

Quick Start

Standard config (works in most MCP clients):

{
  "mcpServers": {
    "cortex-mcp": {
      "command": "npx",
      "args": ["-y", "@j0hanz/cortex-mcp@latest"]
    }
  }
}

[!TIP] Use the standard config first, then add per-client configuration below if needed.

Client Configuration

Install in VS Code

Install in VS Code

Add to your user settings.json:

{
  "mcp": {
    "servers": {
      "cortex-mcp": {
        "command": "npx",
        "args": ["-y", "@j0hanz/cortex-mcp@latest"]
      }
    }
  }
}

[!NOTE] Missing info: official VS Code MCP docs URL is not referenced in this repo.

Install in VS Code Insiders

Install in VS Code Insiders

Add to your user settings.json:

{
  "mcp": {
    "servers": {
      "cortex-mcp": {
        "command": "npx",
        "args": ["-y", "@j0hanz/cortex-mcp@latest"]
      }
    }
  }
}

[!NOTE] Missing info: official VS Code Insiders MCP docs URL is not referenced in this repo.

Install in Cursor

Install in Cursor

Add to ~/.cursor/mcp.json:

{
  "mcpServers": {
    "cortex-mcp": {
      "command": "npx",
      "args": ["-y", "@j0hanz/cortex-mcp@latest"]
    }
  }
}

[!NOTE] Missing info: official Cursor MCP docs URL is not referenced in this repo.

Install in Claude Desktop

Add to claude_desktop_config.json:

{
  "mcpServers": {
    "cortex-mcp": {
      "command": "npx",
      "args": ["-y", "@j0hanz/cortex-mcp@latest"]
    }
  }
}

[!NOTE] Missing info: official Claude Desktop MCP docs URL is not referenced in this repo.

MCP Surface

Tools

reasoning.think

Perform multi-step reasoning on a query with a selected depth level.

NameTypeRequiredDefaultDescription
querystringYes-The question or problem to reason about (1-10,000 chars).
levelenumYes-Reasoning depth level: basic, normal, high.
targetThoughtsnumberNo-Optional explicit thought count within the selected level range.
sessionIdstringNo-Session ID to continue a previous reasoning session.

Returns a structured result with session metadata, thoughts, and token usage:

{
  "ok": true,
  "result": {
    "sessionId": "8e2e2c7a-1234-4567-89ab-001122334455",
    "level": "normal",
    "status": "active",
    "thoughts": [{ "index": 0, "content": "Step 1/6: ...", "revision": 0 }],
    "generatedThoughts": 1,
    "requestedThoughts": 6,
    "totalThoughts": 6,
    "tokenBudget": 8192,
    "tokensUsed": 128,
    "ttlMs": 1800000,
    "expiresAt": 1739356800000,
    "createdAt": 1739356500000,
    "updatedAt": 1739356505000,
    "summary": "Session [8e2e2c7a-1234-4567-89ab-001122334455] at level [normal] with [1] thoughts."
  }
}

Resources

URI PatternDescriptionMIME Type
internal://instructionsUsage instructions for the MCP server.text/markdown
reasoning://sessionsList of active reasoning sessions with summaries.application/json
reasoning://sessions/{sessionId}Detailed view of a reasoning session.application/json
file:///cortex/sessions/{sessionId}/trace.mdMarkdown trace of a reasoning session.text/markdown
file:///cortex/sessions/{sessionId}/{thoughtName}.mdMarkdown content of a single thought.text/markdown

Prompts

NameArgumentsDescription
reasoning.basicquery, targetThoughtsPrepare a basic-depth reasoning request.
reasoning.normalquery, targetThoughtsPrepare a normal-depth reasoning request.
reasoning.highquery, targetThoughtsPrepare a high-depth reasoning request.
reasoning.retryquery, level, targetThoughtsRetry a failed reasoning task with modified parameters.
reasoning.continuesessionId, query, level, targetThoughtsContinue an existing reasoning session.
get-help-Return server usage instructions.

Tasks

Task-augmented tool calls are supported for reasoning.think with taskSupport: optional.

  • Call the tool as a task to receive a task id.
  • Poll tasks/get and read results via tasks/result.
  • Cancel with tasks/cancel.

Configuration

Runtime Modes

ModeDescription
stdioThe only supported transport.

Environment Variables

[!NOTE] Missing info: no environment variables are documented in this repo.

Development

Install dependencies:

npm install

Scripts:

ScriptCommandPurpose
cleannode scripts/tasks.mjs cleanRemove build artifacts.
buildnode scripts/tasks.mjs buildBuild the server to dist/.
devtsc --watch --preserveWatchOutputWatch and compile TypeScript.
dev:runnode --env-file=.env --watch dist/index.jsRun the built server with auto-restart.
formatprettier --write .Format the codebase.
type-checknode scripts/tasks.mjs type-checkRun TypeScript type checks.
linteslint .Lint the codebase.
testnode scripts/tasks.mjs testBuild and run tests.
inspectornpm run build && npx -y @modelcontextprotocol/inspector node dist/index.js ${workspaceFolder}Launch MCP Inspector.

Debug with MCP Inspector:

npx @modelcontextprotocol/inspector node dist/index.js

Build and Release

The GitHub Actions workflow in .github/workflows/release.yml automates version bumps, testing, publishing to npm, MCP Registry, and Docker image publishing.

Docker support is included via the multi-stage Dockerfile and docker-compose.yml.

Troubleshooting

  • If your client shows no output, remember this is a stdio server and the JSON-RPC stream is on stdout.
  • Use npm run inspector to explore tools, resources, and prompts.
  • Sessions are in-memory and expire after 30 minutes of inactivity.

License

MIT

Reviews

No reviews yet

Sign in to write a review