Skip to main content
Glama
kongen-labs

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: Letta MCP Server

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.

ParametersJSON Schema
NameRequiredDescriptionDefault

No parameters

TDQS

A4/5.0
Behavior3/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

No annotations are provided, so the description carries the full burden. It discloses 'No token cost' which is a positive behavioral trait, but does not mention authentication, rate limits, or data freshness. For a read-only check, this is adequate but not exceptional.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is extremely concise, consisting of two short sentences. Every word adds value, and the structure is front-loaded with the main purpose followed by a key benefit. No wasted words.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given the tool's simplicity (no parameters, no output schema), the description provides sufficient context for an AI agent to understand what the tool does. It could be improved by specifying the return format, but it's largely complete for its purpose.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

There are zero parameters, so the baseline is 4. The description adds no parameter details, but the schema coverage is 100% by default. The description's mention of checking balance and usage compensates for the lack of parameters.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states the tool checks token balance, usage in the current billing cycle, and active plan. It uses a specific verb 'Check' and resource 'Kongen Token balance/usage/plan', and is easily distinguishable from the sibling tools which involve routing, scoring, and transferring.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description implies usage for checking token status but does not explicitly state when to use this tool versus alternatives or provide any exclusions. Given the simplicity and distinct purpose, the lack of explicit guidance is acceptable but not above average.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

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.

ParametersJSON Schema
NameRequiredDescriptionDefault
textYesThe prompt text to evaluate for model routing.

TDQS

A4.2/5.0
Behavior4/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

With no annotations provided, the description carries the full burden. It discloses that the tool internally scores using 'Logic', maps to a model, and provides cost savings, and costs 1 token. This is fairly transparent, though it could mention the exact output format (e.g., a string recommendation or structured data).

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is three sentences long, contains no redundant information, and front-loads the core purpose. Every sentence adds distinct value: purpose, internal mechanism, and cost. It is optimally concise.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given the tool's simplicity (1 param, no output schema, no annotations), the description covers purpose, internal logic, and cost. However, it could be enhanced by specifying what the output looks like (e.g., a model name string) and how cost savings are presented. Overall, it is sufficiently complete for a basic recommendation tool.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

The schema coverage is 100% with one parameter 'text' described as 'The prompt text to evaluate'. The description adds value by explaining the purpose (routing based on reasoning complexity) beyond the schema's minimal description. It provides semantic context that aids in parameter usage.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states the tool recommends which Claude model to use based on reasoning complexity, and distinguishes itself from siblings like score_prompt (which likely only scores) and check_usage (which likely checks usage limits). The verb 'recommend' and resource 'model' are specific, and the description explains the internal process.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description implies usage (when you need a model recommendation) but does not explicitly state when to use this tool versus alternatives like score_prompt or check_usage. No exclusions or when-not-to-use guidance is provided, which is a gap given the sibling tools.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

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.

ParametersJSON Schema
NameRequiredDescriptionDefault
textYesThe prompt text to analyze for reasoning complexity.
model_hintNoOptional model identifier for calibration (e.g., 'haiku', 'sonnet', 'opus').

TDQS

B3.4/5.0
Behavior3/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

With no annotations provided, the description carries the full burden. It discloses that the tool costs 1 Kongen Token and returns specific outputs. However, it does not mention whether the operation is read-only, has side effects, or requires permissions. It adds some value beyond the schema but is not comprehensive.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is extremely concise: two sentences that front-load the core purpose and outputs. Every sentence adds value with no fluff.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

The tool is simple with 2 parameters, one required. The description explains the purpose, outputs, and cost. There is no output schema, but the description lists return values. Missing error cases or prerequisites, but overall adequate for the complexity.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

The input schema covers 100% of parameters with descriptions. The tool description does not add any additional meaning beyond what is already in the schema for the parameters. Baseline score of 3 is appropriate.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states the tool scores a text prompt for reasoning complexity using a specific engine. It uses a specific verb ('score') and resource ('prompt'), and lists the returned values. However, it does not explicitly differentiate from sibling tools like check_usage or route_model, though the purpose is distinct enough.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description provides no guidance on when to use this tool versus alternatives. There is no mention of context, exclusions, or when not to use it. The agent must infer usage from the purpose alone.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

transfer_scoreA

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

ParametersJSON Schema
NameRequiredDescriptionDefault
complexityYesPrimary signal dimension. Range [0, 1].
constraintYesCounterbalancing signal dimension. Range [0, 1].
boundaryYesBoundary sharpness. Range [0, 1].
coherenceYesMulti-scale consistency. Range [0, 1].
magnitudeYesOverall signal magnitude.
balanceYesPrimary signal ratio.
gradientYesSpatial gradient strength. Range [0, 1].
source_domainNoOriginating domain hint. Excludes same-domain patterns from evidence.

TDQS

A3.7/5.0
Behavior4/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Since no annotations are provided, the description carries full burden. It discloses return values (pattern classification, confidence, adjustment, evidence) and token cost (50 Kongen Tokens). It also mentions that the optional parameter 'source_domain' excludes same-domain patterns. However, it does not explicitly state whether the operation has side effects or requires authentication, but as a scoring function it is likely safe.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is extremely concise: two sentences covering purpose, return values, and token cost. Every word is meaningful and front-loaded. No fluff or repetition. It is well-structured for quick understanding.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

The tool has 8 parameters and no output schema. The description provides a high-level overview of output fields but lacks details on their structure or types. It covers the essential purpose and cost, but could be more complete given the complexity of the tool. It is adequate but not thorough.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 100% with all parameters described in the JSON schema. The tool description adds no parameter-specific information beyond the schema. Since the schema fully documents parameters, a baseline score of 3 is appropriate.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states the tool's purpose: scoring a 7-dimensional signal vector against reference patterns. It uses a specific verb ('score') and specifies the resource ('7-dimensional signal vector'). The output is also listed: pattern classification, confidence, etc. This distinguishes it from siblings like 'score_prompt' which likely scores prompts, not signal vectors.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

No usage guidelines or comparisons to sibling tools are provided. The description does not indicate when to use this tool over alternatives like 'score_prompt', nor does it specify prerequisites or context. The implied usage is for signal vector scoring, but no explicit guidance is given.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Tool Schema Changelog

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

  1. 4 tool updatesv1.0.4
    • First observedcheck_usage
    • First observedroute_model
    • First observedscore_prompt
    • First observedtransfer_score

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 issues

Resources

Unclaimed servers have limited discoverability.

Looking for Admin?

If you are the server author, to access and configure the admin panel.

Related MCP Connectors

Related MCP Servers