Skip to main content
Glama

@kalei-labs/mcp-server

MCP server for KALEI — AI cognitive profiling tools for Claude Code, Cursor, and any Model Context Protocol client.

What it does

Exposes 10 KALEI tools to your AI assistant:

  • kalei_leaderboard — Top models by Cognum score

  • kalei_model — Detailed profile of any model

  • kalei_compare — Head-to-head comparison

  • kalei_dimensions — The 10 cognitive dimensions

  • kalei_providers — Supported BYOK providers

  • kalei_profile_model — Profile any model (BYOK)

  • kalei_run_progress — Track ongoing runs

  • kalei_run_result — Get final profiles

  • kalei_insights — Auto-generated findings

  • kalei_ask_parliament — 4-model deliberation

Related MCP server: KappaML MCP Server

Quick start

1. Get a KALEI API key

kaleiai.com/get-started → sign up → Dashboard → API Keys

2. Configure your MCP client

Claude Code (~/.claude.json or settings):

{
  "mcpServers": {
    "kalei": {
      "command": "npx",
      "args": ["-y", "@kalei-labs/mcp-server"],
      "env": {
        "KALEI_API_KEY": "kalei_live_..."
      }
    }
  }
}

Cursor (.cursor/mcp.json):

{
  "mcpServers": {
    "kalei": {
      "command": "npx",
      "args": ["-y", "@kalei-labs/mcp-server"],
      "env": { "KALEI_API_KEY": "kalei_live_..." }
    }
  }
}

3. Use it

In Claude Code / Cursor chat:

Show me the KALEI leaderboard and compare Claude Sonnet vs GPT-5.

Profile gpt-4o for me using my OpenAI key sk-... — use standard depth.

Ask the Parliament: should AI systems have persistent memory?

The model will call the appropriate tools and return results.

Development

git clone https://github.com/LMGameLabs/kalei-mcp-server
cd kalei-mcp-server
npm install
npm run build

Environment variables

  • KALEI_API_KEY (required) — your KALEI API key

  • KALEI_BASE_URL (optional) — override default https://kaleiai.com/api/v1

License

MIT — LM Game Labs

Available Tools

13 tools
kalei_ask_parliamentA

Ask a question to the AI Parliament — 4 frontier models deliberate and a synthesis is generated. Good for controversial or open-ended questions.

Inputs: question (required).

kalei_compareA

Head-to-head comparison of two AI models across all 10 cognitive dimensions. Returns winner per dimension and overall.

Inputs: model_a (required), model_b (required).

kalei_dimensionsA

List the 10 cognitive dimensions KALEI measures: Risk Tolerance, Information Processing, Pattern Recognition, Cooperation, Learning Speed, Strategic Depth, Temporal Reasoning, Resource Management, Bias Detection, Conflict Resolution.

Inputs: no named parameters.

kalei_insightsC

Auto-generated research findings from the KALEI leaderboard (e.g., "the Sonnet Surprise", lab signatures).

Inputs: no named parameters.

kalei_leaderboardA

Get the KALEI cognitive leaderboard — ranks AI models by Cognum score across 10 cognitive dimensions. Returns top models with scores and cognitive types.

Inputs: limit.

kalei_modelB

Get a specific model's cognitive profile: Cognum score, 10-dimension breakdown, cognitive type, volatility index.

Inputs: agent_id (required).

kalei_profile_modelB

Start a cognitive profiling run for any AI model using your own provider API key (BYOK). Your key is never stored. Returns a run ID to monitor.

Inputs: model (required), api_key (required), provider (required), depth, +1 more.

kalei_providersA

List AI providers supported for BYOK profiling (OpenAI, Anthropic, Google, DeepSeek, Qwen, Groq, Mistral, xAI).

Inputs: no named parameters.

kalei_run_actA

Submit one decision. Watch environmentComplete in the response, NOT a "done" field: when it is true this environment is finished and you should call kalei_run_next again. Acting again on a finished environment is refused.

Inputs: action (required), run_id (required), session_id (required), params.

kalei_run_nextA

Get the next environment in your run. Read state.availableActions and the engine option list (betTypes and similar) rather than assuming the rules; every engine differs. When the run is over this returns status "complete".

Inputs: run_id (required).

kalei_run_progressA

Check progress of an ongoing profiling run. Returns completion percentage and current environment.

Inputs: run_id (required).

kalei_run_resultA

Get the final cognitive profile for a completed run.

Inputs: run_id (required).

kalei_run_startA

Start profiling YOURSELF. Returns a runId. You then alternate kalei_run_next and kalei_run_act until next reports status "complete", and read kalei_run_result. A standard run is 72 environments and roughly 4000 decisions, so expect a long session.

Inputs: agent_id (required), depth, agent_name, dimensions, +1 more.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    B3.4/5.0

    Scored across 13 tools

    Disambiguation3/5

    Most tools are distinct, but kalei_profile_model and kalei_run_start both start profiling runs and return a run ID, while kalei_run_result and kalei_model both return cognitive profile data. The interactive self-run workflow (run_start/run_next/run_act) is clearly explained, but an agent could still misroute calls between the two run modes.

    Naming Consistency3/5

    All tools share the kalei_ prefix, which gives some coherence, but the naming style is mixed: some are verb-oriented (run_start, run_next, run_act, compare), while others are noun-oriented (leaderboard, model, dimensions, providers). The inconsistent verb_noun pattern makes the API less predictable than it could be.

    Tool Count4/5

    At 13 tools, the set is within a reasonable range and each tool supports a coherent profiling/leaderboard domain. The count is slightly heavier than necessary due to two separate run workflows, but no tool feels purely redundant.

    Completeness4/5

    The tool surface covers the core lifecycle: starting runs, monitoring progress, retrieving results, viewing leaderboards, comparing models, and listing dimensions/providers. Minor gaps exist, such as no way to cancel or list past runs, but agents can accomplish the main tasks without dead ends.

    Maintenance

    ActivityInactive
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers