kongen-mcp
Officialkongen-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 |
| Detect reasoning regime and optimal token budget for a prompt | 1 KT |
| Score a structural signature against cross-domain reference patterns | 50 KT |
| Check your token balance and usage | 0 KT |
| Recommend Haiku/Sonnet/Opus based on prompt complexity | 1 KT |
Installation
pip install kongenlabs-mcpOr 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-mcpThen 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
Open Settings > MCP > Add Server
Name:
kongenCommand:
kongen-mcpEnvironment 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 |
| Yes | — | Your Kongen API key ( |
| No |
| API base URL override |
License
MIT