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 |
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
- Open Settings > MCP > Add Server
- Name:
kongen - Command:
kongen-mcp - 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
Metadata
Release files for kongenlabs-mcp 1.0.4
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| kongenlabs_mcp-1.0.4.tar.gz | 7.6 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| kongenlabs_mcp-1.0.4-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 15.3 kB
Release files / kongenlabs_mcp-1.0.4.tar.gz
| Download URL | kongenlabs_mcp-1.0.4.tar.gz |
|---|---|
| Size | 7.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
4b8e9bf4284de13f048856815e8eaeea13f57ba83bfa6f4bca4d1e0aa5992ffd
|
|
BLAKE2b-256 checksum How to use checksums |
bd543fa4c554fe2d86a84783a49c55a22fe699ab8e213ef142f6bd75b97128a3
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.2.0 CPython/3.12.13
|
Release files / kongenlabs_mcp-1.0.4-py3-none-any.whl
| Download URL | kongenlabs_mcp-1.0.4-py3-none-any.whl |
|---|---|
| Size | 7.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
f6a3185d18df39900ada348f85b502ac97dbc32968dca8fd824f35bb6c58ab87
|
|
BLAKE2b-256 checksum How to use checksums |
8f486ec71219b1d8a3eb1beb27d939cd355de68d2e517a2df5061d3a9deeb5f1
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.2.0 CPython/3.12.13
|