Skip to main content
Glama
kongen-mcp

kongen-mcp

Official
by kongen-labs

kongen-mcp

MCP (Model Context Protocol) server for the Kongen Labs Pattern Intelligence API.

Connects Claude Code, Cursor, Windsurf, and any MCP-compatible client to Kongen's cross-domain pattern intelligence — reasoning regime detection, structural transfer scoring, and intelligent model routing.

Tools

Tool

Description

Cost

score_prompt

Detect reasoning regime and optimal token budget for a prompt

1 KT

transfer_score

Score a structural signature against cross-domain reference patterns

50 KT

check_usage

Check your token balance and usage

0 KT

route_model

Recommend Haiku/Sonnet/Opus based on prompt complexity

1 KT

Related MCP server: claude-patent-creator

Installation

pip install kongenlabs-mcp

Or install from source:

git clone https://github.com/kongen-labs/kongen-mcp.git
cd kongen-mcp
pip install .

Configuration

Get your API key at kongenlabs.life.

Claude Code

Add with the CLI:

claude mcp add kongen -- kongen-mcp

Then set your API key when prompted, or add it manually to .claude/mcp.json:

{
  "mcpServers": {
    "kongen": {
      "command": "kongen-mcp",
      "env": {
        "KONGEN_API_KEY": "kl_live_..."
      }
    }
  }
}

Cursor

  1. Open Settings > MCP > Add Server

  2. Name: kongen

  3. Command: kongen-mcp

  4. Environment variables:

    • KONGEN_API_KEY: your API key

Windsurf

Add to your MCP configuration:

{
  "mcpServers": {
    "kongen": {
      "command": "kongen-mcp",
      "env": {
        "KONGEN_API_KEY": "kl_live_..."
      }
    }
  }
}

Custom base URL

To point the server at a different API endpoint (for example a local proxy), set KONGEN_API_BASE_URL:

{
  "mcpServers": {
    "kongen": {
      "command": "kongen-mcp",
      "env": {
        "KONGEN_API_KEY": "kl_test_...",
        "KONGEN_API_BASE_URL": "http://localhost:8000"
      }
    }
  }
}

Usage examples

Once configured, the tools are available to your AI assistant. Examples of what you can ask:

Prompt scoring:

"Score this prompt for complexity: Prove that the square root of 2 is irrational using proof by contradiction."

Model routing:

"Which Claude model should I use for this task: Summarize this 3-line email."

Transfer scoring:

"Score this structural signature against cross-domain patterns."

Usage check:

"How many Kongen tokens do I have left?"

Environment variables

Variable

Required

Default

Description

KONGEN_API_KEY

Yes

—

Your Kongen API key (kl_live_... or kl_test_...)

KONGEN_API_BASE_URL

No

https://api.kongenlabs.life

API base URL override

License

MIT

Available Tools

4 tools
check_usageA

Check your Kongen Token balance, usage in the current billing cycle, and active plan. No token cost.

Inputs: no named parameters.

route_modelA

Recommend which Claude model (Haiku/Sonnet/Opus) to use for a given prompt based on its reasoning complexity. Internally scores the prompt with Logic, then maps the detected regime to a model recommendation with estimated cost savings. Costs 1 Kongen Token.

Inputs: text (required).

score_promptB

Score a text prompt for reasoning complexity using Kongen's Logic engine. Returns the detected reasoning regime (trivial/fast/moderate/deep/exhaustive), a confidence adjustment factor, and recommended token budget. Costs 1 Kongen Token.

Inputs: text (required), model_hint.

transfer_scoreA

Score a 7-dimensional signal vector against reference patterns. Returns pattern classification, confidence, confidence adjustment, and supporting evidence. Costs 50 Kongen Tokens.

Inputs: complexity (required), constraint (required), boundary (required), coherence (required), +4 more.

Tool Schema Changelog

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

Loading tool schema changelog…

    TDQS

    A4/5.0

    Scored across 4 tools

    Disambiguation5/5

    Each tool has a clearly distinct purpose: checking usage, recommending models, scoring prompts, and scoring transfer vectors. No overlapping functionality.

    Naming Consistency5/5

    All tool names follow a consistent verb_noun pattern in snake_case (check_usage, route_model, score_prompt, transfer_score), making them predictable.

    Tool Count5/5

    With 4 tools, the set is well-scoped for the server's purpose, covering core operations without being too thin or bloated.

    Completeness4/5

    The tools cover primary use cases (check usage, route/score prompts, transfer scoring). Minor gaps like account management or token budget adjustments are missing but not critical for the core workflow.

    Maintenance

    ActivityInactive
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers

    • F
      license
      Not graded
      quality
      A
      maintenance
      Exposes 20+ MCP tools that let clients query MPEP/USC/CFR rules through hybrid vector and lexical search, run prior-art searches across 100M+ patents via Google BigQuery, flag compliance problems in draft claims and applications, and generate patent-style diagrams. It works programmatically from any MCP-compatible client to support drafting and analysis workflows.
      -